这个策略用来交易rb01,命名为gs1:
if todaybar=1 and tholding=0 then tbuy(1,1,mkt);
tt:=c-tenterprice;
t1:=tt;
t2:=stkindi('','gs2.tt',0,1);
if t1+t2<=-30 then tsell(1,0,mkt);
if t1+t2>=50 then tsell(1,0,mkt);
这个策略用来交易rb05,命名为gs2:
if todaybar=1 and tholding=0 then tbuyshort(1,1,mkt);
tt:=tenterprice-c;
t1:=tt;
t2:=stkindi('','gs1.tt',0,1);
if t1+t2<=-30 then tsellshort(1,0,mkt);
if t1+t2>=50 then tsellshort(1,0,mkt);
1需要后台交易
2不能