a1:=ref(asset,todaybar);
最高盈利:hhv(asset-a1,todaybar);
if taccount(4)>extgbdata('fy') then extgbdataset('fy',taccount(4));
if time=closetime(0) then extgbdataset('fy',taccount(4));
extgbdata('fy')为所求值
不能用在图表交易里
想做到最高浮盈超过1000回撤到800就平仓,改怎么使用?
if taccount(4)>extgbdata('fy') then extgbdataset('fy',taccount(4));
if taccount(4)<=extgbdata('fy')-200 then begin
tsell(1,0,mkt);
tsellshort(1,0,mkt);
end
if time=closetime(0) then extgbdataset('fy',taccount(4));
if taccount(4)>extgbdata('fy') then extgbdataset('fy',taccount(4));
if time=closetime(0) then extgbdataset('fy',taccount(4));
extgbdata('fy')为所求值
不能用在图表交易里
extgbdata('fy')是最高值,如果最高盈利是1000那么extgbdata('fy')为1000