Auftrag beendet
Spezifikation
I want to create an EA with the details below:
The inputs of the EA:
1. MA Type: MA, EMA, etc..
2. MA1 value
3. MA2 value
4. Test MA: MA1, MA2
5. Default trade value: x lots
6. Default added Stoploss Value: pips
7. Default R:R
8. Autotrade: yes, no
The EA needs to work on Renko chart with Heiken Ashi candle
The EA will check the below conditions:
1. Candle A touches test MA
2. If the Candle A is a bullish candle (white color), it will check if the next candle B is bearish candle (red color), and the closed price is lower than the lowest of Candle A --> EA will look for short
. In opposite, if the candle A is a bearish candle (red), it will check if the next candle B is a bullish one (white color), and the closed price is higher than the highest of Candle A --> EA will look for long
3. If the condition #2 not met, it will check Candle C if it is changing color, and having closed price lower than the lowest of Candle B (in short)
.....
4. If the Autotrade = yes, EA will trade automatically with:
a) SL = Min(MA1, MA2, lowest point of the previous red candle) - default added SL with long
SL = Max(MA1, MA2, highest point of the previous white candle) + default added SL with short
b) TP = Current price + SL* default R:R with long
TP = Current price - SL* default R:R with short
c) EA won't open new trade if the previous has not closed for the same forex Pairs
d) EA will stop if having 2 losses consecutively
5. If the Autotrade = no, EA will send me an alert (to phone or mail), and a confirmation board appears. I need to choose:
a. Trade Value
b. Added Stoploss Value
c. R:R: 1:x
If I click Ok, then it will place an instance order based on the above parameters, else it will not trade that position.