工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
Create a setting with name "divisor"
Today the revert calculation is perfect, however it repeats lots in case keeps going to same direction after the reversion.
With the new function DIVISOR, when it reverts will calculate the lot as it is today, but the next lots in same direction will not repeat and the will decrease by the DIVISOR.
Example
Martingale 2.0
Divisor 4.0
#001 buy 0.10
#002 buy 0.10
revert
#003 sell 0.2
#004 sell 0.05 (= 0.2/4)
#005 sell 0.01 (= 0.05/4)
then will repeat minimum lot until reverts. (not initial lot, but minimum lot because will decrease until minimum)
revert
#006 buy 0.92 (= total lots 0.46 x martingale)
2- In case it reaches a stop loss.
Create a RECOVERY SL setting. This will be a factor to be multiplied as below.
read the LOT of the hit sl order.
lot x sl = X
open order immediatelly in the same grid level, respecting the trend.
new lot = X / (GRID LEVEL x RECOVERY SL)
All lots must be closed as per money management from previous version.