Lavoro terminato
Specifiche
Introduction:
a) When EA starts it always will be like this. This is fine. 1 buy/sell and 4 pending sells and 4 pending buys https://www.mql5.com/en/charts/7732908/eurusd-h1-quantix-financial-services
b) During the trading as new grid level is hit. Every buy will open 4 pending sells (and every buy opens 4 pending buys). As order Number 6 is filled here. https://www.mql5.com/en/charts/7732928/eurusd-h1-quantix-financial-services
Or like this https://www.mql5.com/en/charts/7732947/eurusd-h1-quantix-financial-services
Now we have 2 BUGS;
1) Lotsize of merged Pending Trades
Assuming that initial lotsize is 0.01, when merge is TRUE EA may fill a trade of 0.02 or 0.04 or higher, in this case it is important that all its 4 pending orders will be the same lot size. Example, if EA opens a BUY 0.06, it should also plant 4 Pending sells each with lotsize of 0.06. THE EA however, opens the first Pending Order with the correct lot size but the remaining three Pending Orders with basic lotsize.
Example: Sell 98 is filled for 0.10, first Pending BUY is 0.10 and the remaining are basic 0.01 (merged with other trades 0.02). ALL 4 Pending BUYs should be 0.10 coz the value of the parent SELL that’s opened is 0.10. https://www.mql5.com/en/charts/7732999/eurusd-h1-quantix-financial-services
2) Missing Pending orders for filled trades after SL and TP is hit.
This bug exists with Merge True or False. In some grid levels we may have TP, SL and Pending Trades that need to be filled and placing new pending trades. So EA should do all FOUR of those. BUT it seems that EA always misses to plant new pending trades for the filled pending trade. Example. Sell trades of 3, 12 and 17 are filled after a SL/TP hit but no new Pending BUYS are placed. (Note this is not a Target hit or beginning of a new cycle where EA deletes all trades) https://www.mql5.com/en/charts/7732935/eurusd-h1-quantix-financial-services
And this SELL 4 and 13 are filled but no counter Pending BUYs are placed. https://www.mql5.com/en/charts/7732943/eurusd-h1-quantix-financial-services