MTF AGAIN // 9×20 cross

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #215964 quote
    eckerth
    Participant
    New

    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 quote
    JS
    Participant
    Senior

    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)
  • You must be logged in to reply to this topic.

MTF AGAIN // 9×20 cross


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
eckerth @eckerth Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by JS
2 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 06/11/2023
Status: Active
Attachments: No files
Logo Logo
Loading...