if extgbdata('cs')<10 and 开多条件 then begin
tbuy(1,1,mkt);
extgbdataset('cs',extgbdata('cs')+1);
end
if extgbdata('cs')<10 and 开空条件 then begin
tbuyshort(1,1,mkt);
extgbdataset('cs',extgbdata('cs')+1);
end
if time=closetime(0) then extgbdataset('cs',0);
使用走完k线下单模式
if cs<10 and 开多条件 then begin tbuy(1,1,mkt); cs:=cs+1 end
if cs<10 and 开空条件 then begin tbuyshort(1,1,mkt); cs:=cs+1; end
if time=closetime(0) then cs=0; 请问可以用这样的全局变量吗? |
不行,这个是图表的全局变量