OPEN-SOURCE SCRIPT
已更新 Candle State (The Strat)

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
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.开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。