Compression / Expansion of MAs

Forums ProRealTime English forum ProScreener support Compression / Expansion of MAs

Viewing 3 posts - 1 through 3 (of 3 total)
  • #198106

    Hello,

    I’d like to screen securities for which MAs, for example Exponential MA 5/8/13/21/34/50, compress then expand like on the attached screenshot (SP500 TF M15). I tried to calculate the difference between MAs and put a condition if the difference is <= to a certain fixed value say (5) for example but it misses many occurrences or generates many false signals.

    Can someone please come with a solution where the delta is relative without being too big? may be using std or atr or ste or other function or may be should introduce a loop?

    Thanks

    I tried the code below but it either show too many occurrences (false signals) or misses signals

     

    #198117

    There you go:

    This is an indicator to show the GAP bwtween them:

    And this one is the indicator I used to plot the averages:

     

     

     

    1 user thanked author for this post.
    #198123

    Thanks a million Roberto,  to the point as always!

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

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