OPEN-SOURCE SCRIPT
업데이트됨

Candle State (The Strat)

17 682
This script identifies the 2 different Candle States for use in #TheStrat.

Candle Up - The close of the current candle is greater than the close of the previous candle.
Candle Down - The close of the current candle is less than the close of the previous candle.

Though this script is extremely simple it is a teaching aid for #TheStrat.
The script also assists in the identification of up and down candles with gaps where the color of candle will not always match the Candle State.

Analysis of the candle types can help you define actionable signals and draw broadening formations.

Disclaimer: All scripts from this account are for informational purposes only and do not produce buy or sell recommendations.

© 2020 Crinklebine
릴리즈 노트
Implemented to the correct logic to be compliant with #TheStrat guides.

The source is open and viewable for review, critic and for you to extend or change.

Disclaimer: All scripts from this account are for informational purposes only and do not produce buy or sell recommendations.

© 2020 Crinklebine
릴리즈 노트
Removed version label
릴리즈 노트
Updated Candle State to support Pine Script v6.
This version modernizes the script and improves Type 3 candle rendering so shape order now follows candle direction more clearly: on red candles the red marker appears on top, and on green candles the green marker appears on top. This makes outside bar state visuals easier to read at a glance while preserving the original Candle State behavior.
릴리즈 노트
The Candle State script was updated so it rounds the current candle’s OHLC values, and the previous candle values used for comparison, to 2 decimal places before any candle-state logic runs. This was done because TradingView charts may appear rounded to 2 decimals, while the internal values have been observed to contain 3 decimal places. The plotting logic did not change — only the values being compared were changed from raw prices to rounded prices.
릴리즈 노트
Decided to back out of the rounding plan as this messes up Forex and others. Will have to accept that Tradingview rounds charts. Accept the data as it is.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.