How would you create a Mov Ave Distribution Histogram?

Forums ProRealTime English forum ProBuilder support How would you create a Mov Ave Distribution Histogram?

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • #92759

    Hi

    I was reading Shay Campbells’ E-Mini Swing Trading System: http://timingcharts.com/articles/2017/10/20/e-mini-sp-500-swing-trading-system/
    where he uses a technique to enter the market based on pull backs of the price based upon a Moving Average Distribution indicator: Pls see image.

    “Using a very short moving average of median price does a good job of defining a usable equilibrium point.  A distribution can then be calculated around that equilibrium by subtracting the equilibrium point from the market price.

    To normalize these readings for volatility, this result is then divided by the recent daily range of price.

    Buy Signal=  Trend Direction is Up (6 to 9 month Mov Ave) and the MA Distribution registers a significant Pullback, i.e, negative value.

    Sell Signal=  Trend Direction is Down and the MA Distribution registers a significant Pullback, i.e, positive value.”

    I was attempting to re-create that indicator but wondered how as I’m not a coder. My attempt based on other indicators is not working but I hope I’m thinking along the right lines.. unless I have over complicated it?

    Cheers

     

    #92798

    this result is then divided by the recent daily range of price.

    daily range is not the ATR, it is called the ADR (an average of the last X days range). “Recent” would mean how many period?

    #92840

    Oh, right, thanks. In the article Shay doesn’t specify exactly other than to say recent. It would make sense to keep the ADR in relation to the moving average for the distribution, no? He writes:

    The MA Distribution tells us what’s happening in the very short term using just a couple weeks of data.

    So I guess 20 days?

    #92863

    Ok, I took this value in the below code, you can change it of course. The indicator makes sense since it finds easily the pullbacks when you are in a well established trend.

    If you find it correct according to the original description, I will put it into the library for everyone to benefit from this concept.

    1 user thanked author for this post.
    #92887
    #92891

    😆

    The indicator is now available in the library: Moving Average Distribution

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

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