MA1:MA(C,10);
MA2:MA(C,120);
MA3:MA(C,300);
保证金:=0.10;
ss:=200000/close/multiplier/保证金;
if MA2>MA3 and CROSS(C,MA1) then buy(holding=0,ss,limitr,close);
if MA2<MA3 and CROSS(MA1,c) then buyshort(holding=0,ss,limitr,close);
if REF(CROSS(MA1,c),1) and EVERY(C<MA1,1) then sell(1,0,limitr,close);
if REF(CROSS(C,MA1),1) and EVERY(C>MA1,1) then sellshort(1,0,limitr,close);
老师这个模型 我想加入开盘价回撤2% 止损, 应该怎么写
if holding>0 and c<enterprice*0.98 then sell(1,0,market);
if holding<0 and c>enterprice*1.02 then sellshort(1,0,market);
比如日线的收盘价模型, 止损能设定到1秒 或 10分钟 吗,不要等到日线的收盘价再止损