buycond:=( stopprice)<做多;
sellcond:=(stopprice)>做空;
//平多
if extgbdata('t1_flag')>0 and sellcond and barpos>extgbdata('bar') then begin
tsell(1,ss,mkt);
extgbdataset('t1_flag',0);
end
//平空
if extgbdata('t1_flag')<0 and buycond and barpos>extgbdata('bar') then begin
tsellshort(1,ss,mkt);
extgbdataset('t1_flag',0);
end
//开多
if extgbdata('t1_flag')=0 and buycond then begin
tbuy(1,ss,mkt);
extgbdataset('t1_flag',1);
extgbdataset('bar',barpos);
从这里引用的:
http://www.weistock.com/bbs/dispbbs.asp?BoardID=4&ID=53236&skin=0
不知道如何让处理,请帮忙处理一下吧,
http://www.weistock.com/bbs/dispbbs.asp?boardid=10&Id=48570
公式编辑器里面的提示链接是这个