OPEN-SOURCE SCRIPT

Speed Indicator

업데이트됨
The indicator showcases the Speed at which the prices change based on the set length. It does not show trend direction simply because Speed is a scalar quantity. It helps to identify when the prices are racing, slowing down, or in a range.

The formula used for calculation is Speed = Total Distance Travelled / Time.

Time is the period range that can be defined to set the lookback period.

The length is calculated by finding the absolute value of the difference between the current and closing prices one period ago. The lengths are added for the defined Time, and the Total Distance Travelled by the price is calculated. The formula of 'current price' - price 'Time' periods ago is not used, which calculates the displacement of the price used in figuring the velocity.

The Speed is then calculated using the defined formula.

For example, in the last 20 days, a stock price moved a total of 15000 points, then the Speed of the price would be 750 points per day. Therefore the price is expected to be moving around 750 points, either up or down.

There is also an application of the Donchian Channels to the calculated Speed. It helps to define a dynamic range of the Speed and easily visualize if the Speed is increasing, decreasing, or being stable. The range showcases a Speedometer, hence easing the interpretation of the Speed. Speed Range can also be customized for the Donchian channel. The contraction of the channels would occur when the Speed has been steady for some time, which would mean the price has not moved out from its range.

The importance of the indicator is to identify when the prices have slowed down to enter positions safely, since entering positions during higher speeds would be like jumping onto a fast-moving train. Although, it is up to the user's risk appetite if they wish to enter during low speeds or high speeds. The basic strategy is to enter during slow speeds, hold as speed increases, exit as Speed starts to slow down for its highs. That is the basic idea but can be customized as per the user.
릴리즈 노트
There is now an option to convert the speed values to percentages concerning the closing price. The speed percentage helps with a more straightforward interpretation of the volatility in percentage terms rather than points. The formula used to calculate the speed percentage is:

Speed Percentage = Speed / Close Price x 100

The percent value can be interpreted as the expected price move in percent in either direction.
릴리즈 노트
Added an EMA line and Triple Bollinger Band Channels. Made it selectable on the Inputs Page. Updated the default settings to 20 periods for all. Also simplified the code.
스냅샷
릴리즈 노트
Added a new option to select between High/Low range or closing prices. The high/low option also considers any gap up or gap down values between the candles.
speedvolatileVolatilityvolatilitypercentile

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?

면책사항