MTF AGAIN // 9×20 cross

Forums ProRealTime English forum ProBuilder support MTF AGAIN // 9×20 cross

  • This topic has 1 reply, 2 voices, and was last updated 10 months ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #215964

    Hi

    i try to indicate the EMA 9 and EMA 20 Cross on every timeframe

    The crossing should be evaluated on the 1Mn chart, and an arrow shall be shown on the candles in the higher charts too.

    Here my code

    TIMEFRAME(1mn)

    indicator1 = ExponentialAverage[9](close)
    indicator2 = ExponentialAverage[20](close)
    c1 = (indicator1[1] CROSSES OVER indicator2[1])
    c2 = (indicator1[1] CROSSES Under indicator2[1])

    if C1 then
    DRAWARROWUP(barindex,low – (high-low)) COLOURED(245,129,5)
    elsif c2 then
    DRAWARROWDOWN(barindex,high +(high-low)) COLOURED(245,129,5)
    endif

    Return

     

    But whenever i change to a higher time frame 5 min , 15 min, 1 h, 1d then the MTF Error comes up and the indicator gets removed.

    How can i fix this and get my arrow shown ?

    thx

    thomas

    #215967
    JS

    Hi,

    You can only go from a higher time frame, for example 15 minutes, to a lower time frame, for example 1 minute, and not the other way around…

    Arrows from an indicator with a time frame of 1 minute cannot be displayed in a time frame of, for example, a day… (where and how to put all the arrows from the TF 1 minute in your TF 1 day… is not possible unfortunately)

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

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