Job finished
Specification
I am looking for an EA for XAUUSD (5 min timeframe).
Position (BUY) is opened just when the new 5min candle is created and when all the following requirements are met:
1. last (just closed) 5min bar of MACD histogram is above zero (value of MACD line is more than value of signal line)
2. the bar of MACD histogram before that bar (mentioned in point 1.) is below zero (value of MACD line is less than value of signal line)
3. open and close price of the last (just closed) 5 minute XAUUSD candle is above MA (SMA) 200
Position (BUY) can be closed in two different ways (user predefined):
- SL or TP hit
- SL hit or MACD histogram bar color change (i.e. position is opened while MACD histogram bars are above zero, and it is closed when first 5 min. MACD histogram bar closes below zero)
Position (SELL) is opened just when the new 5min candle is created and when all the following requirements are met:
1. last (just closed) 5min bar of MACD histogram is below zero (value of MACD line is less than value of signal line)
2. the bar of MACD histogram before that bar (mentioned in point 1.) is above zero (value of MACD line is more than value of signal line)
3. open and close price of the last (just closed) 5 minute XAUUSD candle is below MA (SMA) 200
Position (SELL) can be closed in two different ways (user predefined):
- SL or TP hit
- SL hit or MACD histogram bar color change (i.e. position is opened while MACD histogram bars are below zero, and it is closed when first 5 min. MACD histogram bar closes above zero)
Indicators:
- MACD; settings -> 12,26,40
- MA (SMA) 200
Positions are opened with user predefined values of lot size (or % risk), stop loss and closure type.
User input:
- Lot size
- SL (default value 80 pips) -> can be different for BUY and SELL
- Closure type:
- fixed TP (default value 100 pips) -> can be different for BUY and SELL
- change of MACD histogram
- Position type: only BUY, only SELL, both BUY and SELL