Specification of the values or the policy of the mean line crossing

Author: cyberking, Date: 2020-03-01 16:15:06
Tags:

MA ((10) MA))) 30) is purchased; Stoploss is 8, 8% stop loss point. Cycle by daylight. Back-measurement data is also possible; back-measurement data below daylight cycle is not good. This strategy is a trend indicator. * The reason for taking 10000 and 6725 is based on Jiang's ideas.img img


(*backtest
start: 2019-01-05 00:00:00
end: 2020-02-29 00:00:00
period: 1d
exchanges: [{"eid":"Huobi","currency":"BTC_USDT"}]
*)
//
MA10:=MA(C,10);
MA30:=MA(C,30);

买入开仓价:=VALUEWHEN(BARSBK=1,O);
卖出开仓价:=VALUEWHEN(BARSSK=1,O);
//开仓条件

BUYCONDITION:=REF(C,1) < MMD OR CROSSUP(MA10,MA30);
SELLCONDITION:=REF(C,1) > HGH OR CROSSDOWN(MA10,MA30);

BKVOL=0 AND BUYCONDITION,BK;
SKVOL=0 AND SELLCONDITION,SK;

//离场条件
BKVOL>0 AND SELLCONDITION,SP;
SKVOL>0 AND BUYCONDITION,BP;
// 启动止损
SKVOL>0 AND HIGH>=卖出开仓价*(1+STOPLOSS*0.01),BP;
BKVOL>0 AND LOW<=买入开仓价*(1-STOPLOSS*0.01),SP;
AUTOFILTER;

More

cyberkingRetest logs - Progress: 100.0 % - Consumption time (s): 4.339 seconds - Total logs: 46 - Number of transactions: 21 - Completed (Tick 683.42 KB) 0.0000 Account information Name Pricing currency Trade varieties Fees estimated income Huobi USDT BTC USDT: 389.673 11364.345 /upload/asset/149338fe3f9011badc20c.png /upload/asset/14947231d56707e5f7e8c.png This is a list of all the different ways Huobi USDT is credited in the database.