TimmyHanke wrote: ↑Fri May 11, 2018 4:18 pmDune2000 wrote: ↑Fri May 11, 2018 2:18 pm
Thank You Sir for your Effort!
Can you modify the EA so that when 1st SL is hit, the EA opens a Buy/Sell trade immediately Opposite to the 1st trade? And if 2nd Trade Hit its SL also then immediately open Opposite trade to 2nd Trade and so on.
The EA placed two orders at an offset of 10 pips, A Buy Stop order and a Sell Stop Order.
Lets say that Buy Stop got triggered, the EA Deleted the Other Pending Order.
When this Buy order Hit its SL1, the EA should Immediately open a Sell Order (Not a Pending Sell Stop) This is Step 2 of Martingale.
Now if this 2nd order Hits its SL2, The EA should Immediately open a Buy Order (Not a Pending Buy Stop) This is Step 3 of Martingale.
And so on.....
The EA should stop when TP is hit on any Step of Martingale!
Thank You in Advance!
This is how it does now.
It creates 2 pending orders as before buy & sell , lets call it pending group 1 , if it get a take profit from it it continues and creates group pending 2 , if it hits a stoploss it waits in the group until it hits a take profit then it continues .
So lets say pending group 1 buy hits stoploss it will trigger an instant sell , if that hits stoploss it triggers a buy trade and so on until a profit has been taken.
I used the same parameters for the countertrades as for the pending orders just to keep the size of the settings down.
See if its to your liking .
Once again thank you for your efforts!
The current EA does the following:
-It opens PO's at Offset of certain pips say 10 pips and when One is triggered, the other one is deleted. (This is Fine)
-When 1st order hits SL, it opens Opposite order with same TP and SL settings as original. (This is not fine as If It get 4 orders in a row SL,then results will be -1-1-1-1+1=-3 Loss)
So because of above, I propose to split the EA into two EA's, EA Buy First and EA Sell First:
EA Buy First:
It starts by Placing a Buy Stop Pending order of Lots1 and SL1 and TP1 at a distance of Price Offset1
If Hit TP1, EA Closed
IF SL1 Hitted, the EA Sells Immediately Lots2 with SL2 and TP2
If Hit TP2, EA Closed
IF SL2 Hitted, the EA Buys Immediately Lots3 with SL3 and TP3
If Hit TP3, EA Closed
IF SL3 Hitted, the EA Sells Immediately Lots4 with SL4 and TP4
And So On.... Untill Lots10 hits SL10 where the EA will also Stop.
Opposite for EA Sell First.
Thank You In advance!