Lavoro terminato
Specifiche
I have an EA that works like this. The only difference is that it closes all trades in loss or profit when SL and TP is reached.
I want a 2nd function added to the EA. Adding Martingale function such that trades do not close with negative until a total dollar amount is reached.
I will share EA in the private section.
Step-by-step flow of the trades taking place:
Logic When we select Close Losing Trades=False/No
First and most important: Selecting No/False activates a martingale system- So, add this.
So, here is an example of how the system will work;
Assume we start with a buy and I have set SL=-50 and TP=50 for all trades and target $ value =1000
EXAMPLE
Step 1: Buy (lot 1) open BUT does not reach TP A (we call this Buy A)
Step 2: Since the single Buy A does not close by take profit and it reaches SL (-50) level, the trade DOES NOT CLOSE. Instead, Step 3 kicks in.
Step 3: After Buy A reaches SL (-50), a Sell (lot 2) is opened (We call this Sell B). In this case Sell B also has SL= -50 and TP=50.
So, if the down trend continues, we have two trades running (Buy A with lot 1 and Sell B with lot 2).
If (Buy A+ Sell B) = 1000 (Target $ value), the two trades close automatically.

Step 4: If (Buy A+ Sell B) continue to run and reach Sell B Take Profit before attaining the Target $ value of 1000, another Sell C (lot 4) is opened at Sell B Take Profit.
