OPEN-SOURCE SCRIPT

Wick to Candle Ratio with Multiple Colors

143
This Pine Script v5 indicator for TradingView visualizes the wick-to-candle ratio by plotting a colored dot above each candle to highlight the proportion of the wick compared to the total candle size. It calculates the upper and lower wick lengths, the body size, and the total candle range, then determines the wick-to-body ratio as a percentage. Based on this ratio, the script assigns a color to the dot: green when the body is large compared to the wick (wick-to-body ratio > 60%), and an invisible orange dot otherwise. However, the color logic appears incomplete, as there are references to additional conditions that are not fully implemented. The dot is positioned a fixed distance above the candle wick, determined by the offset input. This tool helps traders quickly identify candles with significant wicks, indicating potential price reversals or rejections.

免責聲明

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