Experts: Exp_ZeroFillingStop

 

Exp_ZeroFillingStop:

The Expert Advisor moves a position to a breakeven when a predefined profit is reached.

Author: Nikolay Kositsin

 

Good afternoon can your robot be combined with another robot

Thank you in advance

 

It doesn't work!)

I think I did everything correctly, but positions are not modified. Or have I misunderstood the purpose of this Expert Advisor?...?

 
AVAAR:

It doesn't work!)

I think I did everything correctly, but positions are not modified. Or did I misunderstand the purpose of this Expert Advisor...?

The whole point is that this code was originally designed for brokers who allow only one position for one traded instrument (as on the stock exchange). But for brokers who allow several positions on one traded instrument the logic of modifications should be different, because it is not clear which of the open positions to modify? I added the code in the TradeAlgorithms.mqh inclusion (current version of the inclusion is 1.5) so that the Expert Advisor could modify one position at a time for brokers with several open positions for one instrument. The Expert Advisor will modify the oldest open position and ignore the rest.

So, expect the replacement of the includnik file.

Совершение сделок - Торговые операции - MetaTrader 5
Совершение сделок - Торговые операции - MetaTrader 5
  • www.metatrader5.com
Торговая деятельность в платформе связана с формированием и отсылкой рыночных и отложенных ордеров для исполнения брокером, а также с управлением текущими позициями путем их модификации или закрытия. Платформа позволяет удобно просматривать торговую историю на счете, настраивать оповещения о событиях на рынке и многое другое. Открытие позиций...