Job finished
Specification
I want an ea which is like martingale strategy. I am writing it in English, so you can translate it to mql4 codes.
-EA must open 1 lot long and 1 lot short trade when EA activated. That means its going to start with hadge. I am writing short trade loop... The long trade loop is going opposite way, instead of sell stops, its going to be buy stops.
For Short TRADES and ORDERS
- Open "1 LOT" short TRADE with 20pipTP, 20pip SL. when EA activated.
and
open "1.10 LOT" Sell Stop ORDER with 20 pip TP, 20pip SL.; at TRADE's stopp loss level.
if TRADE closed with Take Profit
delete Sell Stop ORDER and Turn to Top (open 1 LOT short trade)
else if Trade closed with stop loss (means 1.10 lot trade opened)
open "1.11 LOT" Sell Stop ORDER with 20 pip TP, , 20pip SL.; at 1.10 lot tTRADE's stopp loss level.
if TRADE closed with Take Profit
delete Sell Stop ORDER and Turn to Top (open 1 LOT short trade)
else if Trade closed with stop loss (means 1.11 lot trade opened)
open "1.21 LOT" Sell Stop ORDER with 20 pip TP, , 20pip SL.; at 1.11 lot TRADE's stopp loss level.
.
.
.
Lots are going like this levels: 1.00 , 1.10, 1.11, 1.21, 1.34, 1.48, 1.63, 1.80, 1.98, 2.18, 2.40, 2.64, 2.91, 3.21, 3.54, 3.90, 4.29, 4.72, 5.20, 5.72, 6.30, 6.93, 7.63, 8.40, 9.24, 10,16
So, it is going like this. open trade and an order, if trade goes take profit, delete order and turn to top; if goes to sell stop open another order. I will use it with 1:50 leverage.
*IMPORTANT*
* There will be always a long trade and order, and a short trade and order at the same time, so ea must not get mix orders, trades etc.
* Lot levels, Take profit levels and stop loss levels must be changeble through metatrader (means without coding)
* I wiil use same ea with different currencies at the same time, so ea must not get mix orders, trades etc.