For stage 2 (and stage4), you don have to delete PO sell stop, so in stage 3, u only need to reopen PO buy stop 10 pips apart with SL 10pips [0.2 lots]
1) When the Buy PO is triggered n becomes a market Buy Order, the lowest possible price is the Buy Order SL [0.2 lots]. There is no possibility of the price going beyond that to trigger the Sell PO with existing Buy orders still opened. In other words all Buy Orders must be closed, either all hit SL or hit targetted TP before it can cross over to trigger the Sell PO. There's no significance in leaving a redundunt Sell PO opened that'll only cloak up the chart. Therefore, once all the Buy Orders been closed, the Sell PO will reopen together with the Buy PO at an interval of 10 pips each.
2)Following ur premise, u wanted the Sell PO to stay opened n not to be deleted. Now, there's a problem here. When the Buy Order hit SL, it will reopen a new Buy PO with interval of 10 pips from current price. But what guarantees u hv that the Sell PO that's left there from the beginning would be at a 10 pips interval from the current price? Due to slippages, the interval could be more or less than 10 pips away. So u will not get a Buy/Sell PO that's equally 10 pips away from the current price. Deleting the Sell PO n reopening it during initialisation of first batch set-up ensures no such problems arises.
For stage3, you don have to clear Buy PO 20pips apart[0.1 lots] (opened in stage 2)
Again, do u want to risk slippages or do u want a Buy PO [0.1 lots] that has an interval of 20 pips away from the reopened Buy PO [0.2 lots]? When this Buy PO [0.2 lots] is triggered, the EA will open a Buy PO [0.1 lots] 20 pips apart. Solves all interval irregularities.
For stage 5, Buy Order #5 should be (0.2 lot), 0.2 lot always 10pips stop loss once raise to next 10pips, and 0.1 lot always fixed 20pips SL no need modified. In stage5 Buy Order #5 should be modified the SL to 10pips of current price mean same as open price.
Look carefully at the results, item #9 / order 5. Buy Order #5 is indeed 0.2 lots. It's exactly like what u r saying here. Again, look carefully at the stage 5 chart. The current open price is at Buy Order #6. I believe wht u mean by current open price is previous opened price which was Buy Order #5. The 10 pips SL modified to the same price as Buy Order #5. In other words, the 10pips SL to be moved to Break-Even [BE] of Buy Order #5. That's exactly how the EA operates.
I hope u could spend some time to digest the screen shots & results I have uploaded. U seemed to be rather confused by ur own system.![]()
These few days I may reply late because I will back hometown later.
Well, if u celebrate CNY, I wish u a Happy New Year.
Rgds,
Ashlynne
Happy Chinese New Year too
Could you please send it to me for testing?
Last edited: