MOVING AVRAGE AS SUPPORT SCREENER

Forums ProRealTime English forum ProScreener support MOVING AVRAGE AS SUPPORT SCREENER

Viewing 7 posts - 1 through 7 (of 7 total)
  • #210572

    Sometimes moving averages can act as support and resistance. I am trying to write a screener that price just crossed over a moving average that acted as a resistance in the last 100 candles.

    #210589

    I haven’t look at your conditions, but in your loop, you should refer to your condition at the time of I:

     

    1 user thanked author for this post.
    #210592

    I think the code should be like this, considering you are looking for an EMA between periods 20 to 50 that act as a resistance:

    The results will always be the longest period found, because the loop will go to the end.

    1 user thanked author for this post.
    #210613

    Results are not correct.

    for example ,  it screens CVS as a result with ema50 as answer, but last price is not crossing above ema50, in last candles there are other candles above ema50 while we want all below ema50 with one very close to it (with exception of last crossing candle)

    #210666

    Ok, let’s restart from scratch, what do you mean with:

    that acted as a resistance in the last 100 candles

    Please?

    #210692

    For example on the following stock (BBAI) EMA 54 acted as a resistance twice in the past similar to resistance lines , now in the pullback it is very close to it again and there is possibility to bounce back again. I am trying to write a screener to examine a range of moving averages for every stock and find any moving average that acted like this example.

     

    #210694

    I forgot to say that in screener formula that i post, it tries to find moving when price finally crosses over moving. Later i will modify it to find them when price pullback to moving.

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

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