명시
Hey folks!
So I want to start straight from creating an EA based on a traditional MACD with an EMA filter.
Basically, EA will only open a buy order (at candle close) if the price is above the EMA and will open a sell order (at candle close) if the price is below the EMA.
The buy signal will be the crossing of the MACD signal line with the 0 line (when the price is above the EMA) and when there is still the main trend of the EMA price and when the MACD signal line touches / crosses the histogram that is above 0. again. As for the sell position, quite the opposite. Price below EMA line: the macd line crosses the 0 level from above and the next sell position is when the signal line crosses the histogram. (I can post the screenshot for better understanding - sell and buy are only open after the candlestick is closed.)
As for the option for the EA:
- As for risk management, it will be based on the ATR. SL / TP will be taken from the ATR value with the option to multiply TP/SL separately from the value shown by the ATR at the moment after the candle closes.
-Position size: Fixed lot or "X"% of the agreed capital. E.g. 5% of $ 100. Despite some losing positions, where the account will already have a deposit of fo example, $80, EA will still open a SL worth $5 counting from $100 until we manually change it. Calculation of the position margin % based on the ATR.
So, sometimes the ATR will show, for example, 50 points, which is our SL and this has EA to calculate what lot size to open on a !given pair! so that a possible loss gives us, for example, X% loss which we will set above. Sometimes the ATR will show 30 points and EA also has to calculate lot size to be the same X% of deposit that we set above.
- Maximum number of open trades
- Modify MACD values,
- Choose a time frame,
- Modify SL and TP with "X" x ATR,
- EMA value (and choice of MA method),
- Trading sessions fixed hourly and separate days,
- Martingale option,
I think that's it, thanks for your interest!