Hi friends, I want to modify this EA that opens opposite direction on a trade when the trade is closed.
I want it to be able to be able to perform these actions:
1: still open opposite trade
2: the lot of the new open trade is calculated: Pips of the first closed trade divided by the targeted pips or TP + 1, then multiply by the initial lot used
Example: If tp is 20 pips, Opening lot is 2, Closed trade pips is 5: then the new lot will be ((5/20)+1) * 2= 2.5 lots
3: It should only do this when TP is not reached or hit
4: It repeats as soon as a new trade is opened then closed
I want it to be able to be able to perform these actions:
1: still open opposite trade
2: the lot of the new open trade is calculated: Pips of the first closed trade divided by the targeted pips or TP + 1, then multiply by the initial lot used
Example: If tp is 20 pips, Opening lot is 2, Closed trade pips is 5: then the new lot will be ((5/20)+1) * 2= 2.5 lots
3: It should only do this when TP is not reached or hit
4: It repeats as soon as a new trade is opened then closed
Attached File(s)
Opposite trade 1.mq5
6 KB
|
168 downloads