maksumit

Candlestick Trailing Allocation

maksumit 已更新   
A simple indicator that calculates the sum of 'Up'(green), 'Down'(red), and 'Doji'(near Doji) candlesticks and portrays the same in an allocation format in percentage. And since it is allocation-based, the total will never exceed 100% of the defined Length period.

The equation is Green + Red + Doji = Total Candles; where total candles = length

When calculating the allocation part, the doji candles are subtracted from the sum of green and red, and the new value is divided by the length period.

For example, the green line = (sum of all green candles - doji / 2) / length; the reason to divide doji by 2 is to eliminate the redundancy it can cause.

When the green line crosses above the red line, the number of green candles is more than red in the defined length period. Similarly, when the red line crossed above the green, there were more red candles than green in that period.

The Doji line shows if any doji or near doji candles have appeared. It acts as a form of resistance against the green and red candles.

There's also the option to change the value of the doji's weight. Default is at 0.1.

The indicator does not show trend nor momentum, even though it may replicate some of its behavior from time to time. It is purely showing the allocation of the number of candles classified as green, red, and doji within the length provided.
發布通知:
Truncated the variables used in the source code.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?