Experts: Waddah Attar Win

 

Waddah Attar Win:

Pending Buy Limit (BuyLimit) and Sell Limit (SellLimit) orders. Using OnTradeTransaction().

Waddah Attar Win tester

Author: Vladimir Karputov

 
Magic doesn't work
 
Ana29tol:
Magic isn't working.

How did you determine that?

 
If the robot stands on two charts with different magic, but closes at a profit on both charts.
 
Ana29tol:
If the robot stands on two charts with different magic, but closes at a profit on both charts.

Show the History tab with the Expert ID column enabled.

 
***
 
Ana29tol:
***

The picture should be inserted using the Picture button or attached to the message using the button Attach file

 
Here's a look
Files:
 
Ana29tol:
Check this out.

Did you look at it yourself? You can see that at 13:06:54 there were TWO magic (6574 and 28026) involved in the closures.

Everything is working correctly.

 
There was a profit on one chart (on the second chart there was a minus), and closed on both charts.
 
Ana29tol:
There was a profit on one chart (on the second chart there was a minus), but closed on both charts

Profit cannot be on the GRAPHIC - profit can be on the TRADING ACCOUNT.

You have two Expert Advisors trading - it makes no difference whether both of them are in profit or only one of them. BUT, as soon as the funds on the TRADING ACCOUNT reach the profit threshold, each EA starts to close HIS positions, because the EA has such logic: it keeps the funds on the TRADING ACCOUNT.