Hi. Its been a long time guys and its good to see the thread is still alive and kicking.
Hello Mr Tanaka good to see your still coding. My last EA didn't work very well I tried many variations but not working.
Anyway I have a nice simple idea I want to test.
I see it on youtube and it seems to be working quite well so I wondered if an EA would work just as well.
Its called
MACD Martingale.
how it works?
Its a normal MACD indicator. I would make a BUY when Histogram closes above yellow line and a SELL when histogram closes below magenta line. When trade will automatically set TP 10pips and SL 10pips. This is set as a martingale, so if SL is hit then another trade is made (when buy or sell condition is met) will be double the lot size of the previous loss trade. Then when TP is hit then start back to lowest lot size set. (See Picture for illustration).
Note: Only one trade open at a time
Variables I would Like are
Lot size - I want to be able to set the lot sizes of each trade (8 lines deep). Also if I entered 5 lines then I would want the ea to trade from the beginning again disregarding all the previous losses.
TP & SL - I want to be able to set TP and SL manually with both on different lines so if I wanted I could set TP to 20pips while SL is set to 10pips for example.
Trading hours - I want to be able to set the trading hours. And also to be able to turn on (True) or off (False)
Trailing Stop - I want an option to have a trailing stop
Yellow & Magenta Lines - I want to be able to set the numbers manually
BONUS
Currency Pairs To Trade - It would be a bonus if I can set the currency pairs I can trade. So that I can just add EA to one pair but will trade on all pairs I enter into the EA (15 lines deep).
Time Frame - If "currency pairs to trade" is coded in then I think I TF may also be needed.
If this can be done it would be wonderfulView attachment 88215