Tâche terminée
Spécifications
Simple EA
1/ The EA places a market order Buy/Sell (To be selected in the Inputs)
2/ Then EA places Stop order (Buy Stop/ Sell Stop) at X pips from the opening price of the market order by increasing Lot size using an Exponent or a Constant (Input).
Exemple with a constant 0.02:
a/ If Buy (Market Order) with lot =0.01
Then Sell Stop is placed at X pips below the Buy price with Lot= 0.01+0.02=0.03
Then if Sell Stop is triggered, it places a Buy Stop at X pips above the triggered Sell Stop price with Lot=0.03+0.02=0.05
Then if the Buy Stop is triggered, it places a Sell Stop below the triggered Buy Stop with Lot=0.05+0.02=0.07
And so on until the TP is triggered. All the open trades are close together when the TP is triggered
b/ If Sell (Market Order) with lot =0.01
Then Buy Stop is placed at X pips above the Sell price with Lot= 0.01+0.02=0.03
Then if Buy Stop is triggered, it places a Sell Stop at X pips below the triggered Buy Stop price with Lot=0.03+0.02=0.05
Then if the Sell Stop is triggered, it places a Buy Stop above the triggered Sell Stop with Lot=0.05+0.02=0.07
And so on until the TP is triggered. All the open trades are close together when the TP is triggered
Note:
a- All the Buy orders have the same TP and the same open price.
b- All the Sell Orders have also the Same TP and the same open price.
c- We should have the choice to use an Exponent or a Constant for Lot size increasing
d- We have the choice to use a SL or not meaning that if SL=0 then we are not using SL. But if SL is different from 0 it can be used to close previous triggered trades before the next Stop order is triggered (for example Case where SL<=X)
e- We can choose a period for trading.