OPEN-SOURCE SCRIPT

Dynamic Candle Strength

업데이트됨
How It Works
Initialization of Dynamic Levels:

The first candle's high and low are taken as the initial dynamic high and dynamic low levels.

If the next candle's close price is above the dynamic high, the candle is colored green, indicating bullish conditions.
If the next candle's close price is below the dynamic low, the candle is colored black, indicating bearish conditions.
If a candle's high and low crossed both the dynamic high and dynamic low, the dynamic high and low levels are updated to the high and low of that candle, but the candle color will continue with the same color as the previous candle.

Maintaining and Updating Dynamic Levels:

The dynamic high and low are only updated if a candle's close is above the current dynamic high or below the current dynamic low.
If the candle does not close above or below these levels, the dynamic high and low remain unchanged.

Visual Signals:

Green Bars: Indicate that the candle's close is above the dynamic high, suggesting bullish conditions.
Black Bars: Indicate that the candle's close is below the dynamic low, suggesting bearish conditions.
This method ensures that the dynamic high and low levels are adjusted in real-time based on the most recent significant price movements, providing a reliable measure of market sentiment.
릴리즈 노트
Dynamic Variables: The script defines dynamicHigh, dynamicLow, dynamicOpen, and dynamicClose to track the high, low, open, and close values of candles.
Update Dynamic Values: Dynamic values are updated based on the close price. If dynamicHigh or dynamicLow is na, or if the current close breaches either threshold, the values are set to the current candle's high, low, open, and close.
Determine Bullish and Bearish Conditions: The script checks if dynamicClose is less than dynamicOpen to identify bearish conditions or if dynamicClose is greater than dynamicOpen for bullish conditions.
Bar Color: Bars are colored green when dynamicClose is greater than dynamicOpen, indicating a bullish condition, and red when it is less, indicating a bearish condition.
릴리즈 노트
The previous version was not able to handle gap-up or gap-down situations, so those conditions have been added.
릴리즈 노트
The previous version was not able to handle gap-up or gap-down situations, so those conditions have been added.
candlesCandlestick analysisdynamic-trendstrengthtrendpattern

오픈 소스 스크립트

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

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

면책사항