TradingView
TheGeeBee
2023年1月25日午後4時13分

Pivot and Price Discovery 

E-mini S&P 500 FuturesCME

詳細

A Population Sampled linear regression model that provides additional detail about the distribution moments (skew, kurtosis, variance and mean) as well as providing indicators that track when a pivot has enough momentum to trade on as well as expected ranges of future price action based on Std Devs.

For the momentum lines -- red indicates that there has been a reducing pivot with momentum, this continues as a grey line for continuation, and will be cancelled when an increasing pivot with momentum is encountered.

Forward looking trend triangle captures the +/- stated standard deviation from the latest bar_index over 2 periods. Movements that trace outside of this can be considered a precursor to an upcoming pivot, and by analyzing skewness and kurtosis, the probability of an upcoming pivot should be better understood.

I have really only looked at this for timescales greater than 5 minutes. Adjust the lookback length accordingly when moving to different timescales:
For example, 1 hr at 10m timescale will be a lookback length of 6 which is too low for accurate analysis, so keep the lookback length appropriate for the timescales being used.
Also realize that trade volume will skew the deviations and regression if you are including data outside of regular trading hours (futures are different, but also experience volume sensitivity -- I maylook into accounting for this in future versions.)

© TheGeeBee

リリースノート

Minor changes -- added adjustable bkground color, added indicators when kurtosis is outside the critical values.

リリースノート

Updated graph to include historical periods where skew and excess kurtosis are past the critical values : Long boxes are kurtosis and short boxes are skew. The box outline indicates if the value was positive (green) or negative (red), the box color itself is not indicative of anything other than to allow the skew and kurtosis boxes to be visible when both are above the cv.

Refined the momentum directionality indicator dots to more accurately capture pivots that are probability driven, rather than just momentum driven.

Added historical values to the Moment data chart (visibility is selectable in the settings).
Added Variance and Mean values to the Moment data chart.

Moved some plots around to see if I could get layering of the data to work, but it doesn't seem to make any difference to z-order of the plots.
Made the background all black, because that's cool and I want to be cool too.

リリースノート

Added indicators (+) which appear when the price has re-entered the regression channel - this often is an early indicator of an upcoming pivot (when the two colors disagree), or a weakening of momentum when there is an existing direction. When both of the indicators are the same color and they break the previous trend, then we can expect the pivot to be concrete if the next timeframe follows. Please note that this is heavily dependent on the deviation used. If the deviation is 1, then this will happen often and be meaningless. If the deviation is 2.5 or greater then exit and re-entry into the channel is a significant event.

Added further details into the state of the various indicators used - can be disabled in the settings ; it's something I use for debugging and analyzing how the various indicators interact with each other to produce a plottable directional result.

Shifted to using volume weighted moving average in order to lessen the effects of movements outside trading hours / with futures.

リリースノート

Minor changes to usage description

リリースノート

Removed channel fib lines and replaced with Support and Resistance points with the capability of selecting different S&R calculation types -- defaulted to Fib and default visibility is false -- don't want the chart to get too cluttered
Fixed some small bugs in the way entry and skew pivots are calculated
Removed variance from the value display and replaced with R-squared -- if the price movement is too erratic over the channel length, R-squared will drop and indicate that the data being provided for the regression is invalid
Added an setting to allow user to not display boxes on the chart when skew / kurtosis is above or below the critical values.
コメント
Trendoscope
Well done.
PineCoders
PineCoders
This publication is now featured in our Editors' Picks: tradingview.com/scripts/editors-picks/ .
In the name of all TradingViewers, thank you for your valuable contribution to the community, and congrats!
Pratik_4Clover
Thanks!
shivamrakesh1967
Sir
Channel Means Momentum indicator line is very faint and sometimes it gives a lot of stress to eyes. Is there any way to improve its visibility then it will be a great help
Thanks
jrkellum84
Sooooo what does candle is bound, above standard deviation, and the rest mean?
Rokan_G
That is really cool, thanks.

Would it be possible to auto-dray Horizontal Rays from the past pivots into the future so thus auto-drawing S&R levels? That would be seriously useful
TheGeeBee
@Rokan_G, there is a setting that will draw lines from the lookback position to the point where a price breaks the deviation channel, this doesn’t explicitly show the pivot levels, but will show the historical trends on a breakout. I have the feature disabled by default, but you can select it in the settings.

I will look into displaying historical pivot rays, but i don’t want to make the chart too busy.
Rokan_G
@TheGeeBee, I think I was not able to express myself properly
I am referring to this:
If you notice, historically, the price levels at which price pierces one of the band boundaries, represent price levels that act as S&R for future price action. Try to plot an horizontal ray from the intersection of price and one of the bands and see how price reacts when it intersect it in the future: i have seen it is pretty effective. That is what I mean by auto-drawing these horizontal rays starting from the intersection levels into the future.
I assume that allowing the option to select the historical period to analyze to plot these rays would declutter the chart.
I hope I was clear in my explanation. Thanks
詳細