Demarker cross over moving average

Forums ProRealTime English forum ProScreener support Demarker cross over moving average

  • This topic has 3 replies, 2 voices, and was last updated 2 years ago by avatarJS.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #202091

    How do you write a screener where you want Demarker Indicator period 3 to cross over Exponential Moving Average period 3  ?

    Thank you in advance.

     

     

    #202100
    JS

    Hi @Mary

    DeMarker is an indicator with a ratio between 0 and 100 (equal to the RSI).

    EMA is an indicator with a value based on price.

    So, you can’t compare the two… (DeMarker can’t cross over an EMA)

    Or do I misunderstand your question?

    #202121

    So I have this Demarker Indicator on my chart (please see code below) and I added an Exponential Moving Average  period (3) to it so it crosses over( see pic below). I just don’t know how to write a screener for it.

     

    //DeMarker Indicator
    period=3
    up=max(0,high-high[1])
    down=max(0,low[1]-low)

    ratio=100*average[period](up)/(average[period](up)+average[period](down))

    return ratio as “DeMarker”,20,80

     

     

     

     

    #202123
    JS

    Hi @Mary

    Okay, I understand now…

    The screener can look like this…

     

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

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