Experts: Exp_XFatlXSatlCloud_Duplex

 

Exp_XFatlXSatlCloud_Duplex:

Two identical trading systems based on the change in the color of XFatlXSatlCloud for long and short trades, which can be configured in different ways in one Expert Advisor.


Author: Nikolay Kositsin

 

Hi. Can I ask, does your EA make only one trade on one currency pair until another one closes on that currency pair, or can the EA open many trades on one currency pair at the same time ?

And could you make your EA open only one trade on one currency pair until another one closes on that currency pair ? I am very much looking forward to your answer.

 
Сергей:

Hi. Can I ask, does your EA make only one trade on one currency pair until another one closes on that currency pair, or can the EA open many trades on one currency pair at the same time ?

And could you make your EA open only one trade on one currency pair until another one closes on that currency pair ? I am very much looking forward to your answer.

Stupid question. It seems to be clear: "These two trading systems use different magic numbers, and they are completely independent of each other" One magic number - one trade. Two magicians - two trades. And for your situation it is easier to find an analogue in the codebase. There is one.

 
Nikolay Kositsin:

Stupid question. It seems to be clear: "For these two trading systems different magic numbers are used, and they are absolutely independent of each other" One magic number - one trade. Two magicians - two trades. And for your situation it is easier to find an analogue in the codebase. There is one.

You must have misunderstood. In real life, I used and opened 6 trades for one magik sell on one currency pair at the same time. This is the problem. In the tester it opens one deal each for buy and sell.

 
Сергей:

You must have misunderstood. In real life used and on one magik sell on one currency pair opened simultaneously 6 trades on one sell at once. That's the problem. In the tester everywhere one deal opens on buy and sell.

This is something new! The logic of the code is as simple as a rake. If there is an already open position with a particular magician, the Expert Advisor will not open a second position with the same magician.

 
Nikolay Kositsin:

This is something new! The logic of the code is as simple as a rake. If there is already an open position with a particular magik, the Expert Advisor will not open a second position with the same magik.

That's the point, I opened 6 sell trades on one magik at once. And then the Expert Advisor closed only one deal out of 6 open deals, and the other 5 did not close. Maybe there is a bug? When testing in MT5 tester there is nothing like this.

 

Maybe the magicians were different, or maybe they didn't exist at all? Closing positions would have closed the other five without any hassle. That makes two whole bugs, and unrealistic ones at that.

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

Maybe the magicians were different, or maybe they didn't exist at all? Closing positions would have closed the other five without any hassle. That makes two whole bugs, unrealistic ones at that.

I renamed the magics so that they would not repeat on each currency pair. The Expert Advisor was placed on 7 different currency pairs. Naturally, magiks are different everywhere so that they do not interfere with each other's work.

And in general, this bug happened only 3 times, the other times, about 70 open trades, everything was normal, all one by one opened and closed as it should.

 
Сергей:

I renamed the magiks so that they would not repeat on each currency pair. The Expert Advisor was placed on 7 different currency pairs. Naturally, magiks are different everywhere so that they do not interfere with each other's work.

Is there a log file? According to all signs, positions without magik are open, because with magik they would have been closed unambiguously.
 
Nikolay Kositsin:
Do you have a log file? By all indications , positions are open without magik, because with magik they would have been closed unambiguously.

Unfortunately, the log is not saved. But there was a magician anyway. So the main time it works normally, and only 3 times it happened.

I tested the Expert Advisor on MQ5 FPS.