Attention, fixed bug in martingale that there would only be one lot after closebyindicator, remember that the closing distance according to martingale or hedge is always the Virtual_stoploss. This is very important, that is, you choose in the configuration closebyindicator and martingale, the indicator opens buy, then closes the buy position at losses due to signal change in the indicator and opens a martingale, this martingale will be closed according to the pips of virtual_stoploss