Hi Mr Tanaka san.
i want to combine 3 strategies into one EA.
1. buy/sell when price closed certain EMA-1 and keep repeating order when previous trade closed. open at next new candle. If not hit TP then martingale kicks in.
2. buy/sell when price closed certain EMA-2 and keep repeating order when previous trade closed. open at next new candle. If not hit TP then martingale kicks in.
3. buy/sell when both EMA-1 & EMA-2 cross each other. Entry order on new candle open and keep repeating order when previous trade closed. open at next new candle. If not hit TP then martingale kicks in.
Here is the trade logic:
EA opens buy or sell trade based on EMA after the candle price closed.
Candle price closed above EMA = Buy entry, allow to set TP
Candle price closed below EMA = Sell entry. allow to set TP
If the trade did not hit TP and reverse, then martingale strategy is applied.. every X pip reversal
Buy entry = 0.1, TP = Y pips. Martingale = reverse X pips buy 0.1, reverse X pips buy 0.2, reverse X pips buy 0.4... (all open trades change TP to the last trade TP = Y pips)
Sell entry = 0.1, TP = Y pips. Martingale = reverse X pips sell 0.1, reverse X pips sell 0.2, reverse X pips sell 0.4... (all open trades change TP to the last trade TP = Y pips)
For example when price closed above EMA-1, triggered Buy 0.1 withTP = Y pips.
If price continue stays above EMA-1, ea keeps opening new trade Buy 0.1 withTP = Y pips, repeatedly..
However if not hit , Then martingale strategy kicks in..
when price move X pips below, another Buy 0.1 will be placed
when price move another X pips below, another Buy 0.2 will be placed
when price move another X pips below, another Buy 0.4 will be placed
when price move another X pips below, another Buy 0.8 will be placed
when price move another X pips below, another Buy 1.6 will be placed (all open trades change TP to the last trade TP = Y pips)
and this goes on and the trade in loss will be doubled every time until hit TP = Y pips
Same goes to strategy 1,2,3 as mentioned above.
Which means the robot can monitor each strategy individually.
Hopefully Mr Tanaka san has time for converting this system into EA.
Thanks in advance..