TheGeeBee

Pivot and Price Discovery

TheGeeBee 已更新   
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.
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?