OPEN-SOURCE SCRIPT

David_candle length with average and candle direction

This indicator,
calculates the difference between the highest and lowest price (High-Low difference) for a specified number of periods and displays it in a table. Here are the functions and details included:

Number of Periods: The user can define the number of periods (e.g., 10) for which the High-Low differences are calculated.

Table Position: The position of the table that displays the results can be selected by the user (top left, top right, bottom left, or bottom right).

High-Low Difference per Candle: For each defined period, the difference between the highest and lowest price of the respective candle is calculated.

Candle Direction: The color of the displayed text in the table changes based on the candle direction:

Green for bullish candles (close price higher than open price).
Red for bearish candles (close price lower than open price).
White for neutral candles (close price equal to open price).
Average: Below the High-Low differences, the average value of the calculated differences is displayed in yellow text.

This indicator is useful for visually analyzing the volatility and movement range within the recent candles by highlighting the average High-Low difference.
Candlestick analysisTrend AnalysisVolume

نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الرمز في المنشور يخضع لقواعد‎‎قوانين الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟

إخلاء المسؤولية