if holding>0 and 天数>1 and L<AA1*TACCOUNT(41)*(-0.2)+AA1 then sell(1,0,market);作者: AAA浅笑 时间: 2022-7-28 11:22
按后台程序化的方式怎么写 作者: AAA浅笑 时间: 2022-7-28 11:23
开多:BUY(多开 AND HOLDING=0,1,THISCLOSE); //开多信号
平多:SELL(卖平,1,THISCLOSE);
if (c-TAVGENTERPRICEEX2('','',0))/TAVGENTERPRICEEX2('','',0)>81/1000 and REF(COUNT(C/REF(C,1)>1.03 and C/REF(C,1)<1.07,3)>=1,1)
and C/REF(C,1)<1.06 then tsell(1,0,mkt);
这个函数替换下就行了。作者: AAA浅笑 时间: 2022-7-28 13:50
//盘中移动止损
if holding>0 and 天数>1 and L<AA1*TACCOUNT(41)*(-0.2)+AA1 then sell(1,0,market);
//固定收盘止盈
if (c-AVGENTERPRICE)/AVGENTERPRICE>81/1000 and REF(COUNT(C/REF(C,1)>1.03 and C/REF(C,1)<1.07,3)>=1,1)and C/REF(C,1)<1.06 then sell(1,0,market);