timeframe command issue

Forums ProRealTime English forum ProOrder support timeframe command issue

Viewing 5 posts - 1 through 5 (of 5 total)
  • #161364

    hi,

    I trying to go long when the 4h chart has macd green histogram with other conditions on 15mins my positions are entering when the histogram is red as well on the 4h chart. Does anyone got any ideas?

    thank you

     

    #161365

    sorry

    “but on 15mins my positions are entering when the histogram is red as well on the 4h chart.”

    #161366

    You have not shown in your code how you define macdredline and macdblueline. You talk about the histogram so why are you referring to lines?

    The instruction to return the histogram value is MACD.

    https://www.prorealcode.com/documentation/macd/

    The lines are MACDSIGNAL and MACDLINE:

    https://www.prorealcode.com/documentation/macdsignal/

    https://www.prorealcode.com/documentation/macdline/

    #161367

     

    #161368

    You are declaring the MACDSIGNAL and MACDLINE values in the default time frame and not in the 4 hour timeframe.

     

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

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