程式碼如下 想問一下怎麼改可以讓plot持續一直線到隔天
var: _top(0), _botton(0), _avg(0), _bars(0);
_bars = getbaroffset(Date,084500)+1;
if _bars = 1 then begin
_top = H;
_botton = L;
end
else
begin
if volume = highest(volume, _bars) then begin
_top = H;
_botton = L;
end;
end;
_avg=getfield("均價");
Value1=(_top+_botton)/2;
plot1(_top,"爆量高點");
plot2(_botton,"爆量低點");
plot3(_avg,"均價線");
plot4(Value1,"爆量中線");
3 評論