思路:通道自适应策略,固定止损+浮动止盈 适用软件:发明者最最化/文华财经 数据周期:多周期 数据合约:指数合约 交易合约:商品期货/数字货币
(*backtest start: 2018-11-01 00:00:00 end: 2018-12-01 00:00:00 period: 1h exchanges: [{"eid":"Futures_BitMEX","currency":"XBT_USD"}] args: [["ContractType","XBTUSD",126961]] *) SLOSS:=2; N:=200; M:=4; TR1:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)); ATR:=MA(TR1,N); MAC:=MA(C,N); UBAND^^MAC+M*ATR; DBAND^^MAC-M*ATR; NH^^HHV(H,N); NL^^LLV(L,N); H>=NH,BPK; L<=NL,SPK; (H>=HHV(H,M*N) OR C<=UBAND) AND BKHIGH>=BKPRICE*(1+M*SLOSS*0.01),SP; (L<=LLV(L,M*N) OR C>=DBAND) AND SKLOW<=SKPRICE*(1-M*SLOSS*0.01),BP; //止损 StopLoss C>=SKPRICE*(1+SLOSS*0.01),BP; C<=BKPRICE*(1-SLOSS*0.01),SP; AUTOFILTER;
momox 这两句什么意思? //这样理解对不对?(最高价突破四个大周期的最高价 或者 跌破布林线上轨) 并且 建仓以来的利润搞过8%???? (H>=HHV(H,M*N) OR C<=UBAND) AND BKHIGH>=BKPRICE*(1+M*SLOSS*0.01),SP; (L<=LLV(L,M*N) OR C>=DBAND) AND SKLOW<=SKPRICE*(1-M*SLOSS*0.01),BP;