ea描述: 常见的马丁策略是亏损加仓,然后一块平仓,这样造成的浮亏总手数就会很多。 这个ea的特点就是也是浮亏加仓,但是永远只有一个单子,第一单亏损然后平仓,第二单是第一单的n倍,第三单是第二单的n倍,直到止盈为止。 参数设置: extern string Expert_Name = "ea那些事"; extern int MagicNumber = 1234; extern double StopLoss = 100,止损点 TakeProfit = 200;止盈点数 extern string TrailingStop_Setting = "移动止损设置"; extern int TrailingStopType = 1, TrailingStop = 40; extern string Indicator_Setting = "指标设置"; extern int FastMAPeriod = 10, FastMAType = 1, //0:SMA 1:EMA 2:SMMA 3:LWMA FastMAPrice = 0, //0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted FastMAshift = 0, SlowMAPeriod = 80, SlowMAType = 1, //0:SMA 1:EMA 2:SMMA 3:LWMA SlowMAPrice = 0, //0:Close 1:Open 2:High 3:Low 4:Median 5:Typical 6:Weighted SlowMAshift = 0;
回测图:(2018.2.01-2018.11.23)欧美30分钟
|