等级: 标准版
- 注册:
- 2021-12-22
- 曾用名:
|
空止盈:SELLSHORT(AVGENTERPRICE-C>=(ref(上线,ENTERBARS+1)-AVGENTERPRICE)*1.2,0,MARKETR);
空止损:SELLSHORT(C>上线,0,MARKETR);
开多:BUY(HOLDING=0 AND REF(C-O<70 AND (买 or 买1 or 买2),1),70,LIMITR,OPEN);
多止盈:SELL(C-AVGENTERPRICE>=(AVGENTERPRICE-ref(下线,ENTERBARS+1))*1.2,0,MARKETR);
多止损:SELL(C<下线,0,MARKETR);
开空:BUYSHORT(HOLDING=0 AND REF(O-C<70 AND (卖 or 卖1 or 卖2),1) ,70,LIMITR,OPEN);
用是固定轮询模式,进场点位固定,出场点位轮询,可以改成后台后用专业版精细化回测吧?
补充内容 (2022-1-27 13:28):
空止盈:SELLSHORT(AVGENTERPRICE-C>=(ref(上线,ENTERBARS+1)-AVGENTERPRICE)*1.2,0,MARKETR);
空止损:SELLSHORT(REF(C>上线,1),0,LIMITR,OPEN);
开多:BUY(HOLDING=0 AND REF(C-O<70 AND (买 or 买1 or 买2),1),70,LIMITR,OPEN);
多止盈:SELL(C-AVGENTERPRICE>=(AVGENTERPRICE-ref(下线,ENTERBARS+1))*1.2,0,MARKETR);
多止损:SELL(REF(C<下线,1),0,LIMITR,OPEN);
开空:BUYSHORT(HOLDING=0 AND REF(O-C<70 AND (卖 or 卖1 or 卖2),1) ,70,LIMITR,OPEN);
补充内容 (2022-1-27 13:28):
下面这个 |
|