Assistance Required code MACD RSI strategy

Forums ProRealTime English forum ProOrder support Assistance Required code MACD RSI strategy

Viewing 3 posts - 1 through 3 (of 3 total)
  • #16978

    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

    #17703

    Hello, still in need of assistance to code this trading strategy?

    #17705

    Hi Seanyboy

    My thoughts

    -How many periods define the MACD EMA Trend ?

    -What time frame ?

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login