Hello,
I am fairly new to the ‘coding’ community and wonder if anyone would be kind enough to assist with coding the following strategy?
timeframe: h5
instrument: Ukx
SUMMARY
Buy 1 position if RSI[14] < 30 AND MACD (12,26,90) is trending upwards and exit if RSI[14] >= 60 OR MACD (12,26,90) is trending downwards.
Sell 1 position if RSI[14] > RSI 70 AND MACD (12,26,90) is trending downwards and exit if RSI[14] <= 40 OR MACD (12,26,90) is trending upwards.
It’s the MACD rule that I am struggling with as all I want from this is the MACD EMA to trend in the same direction as the buy/ sell, but haven’t a clue how to programme this!
Thanks for any help you can offer.
Sean