INVITE-ONLY SCRIPT
已更新 Perfect Candles By Salamun

Perfect Candles Compass Trade Academy By Salamun
The "Perfect Candles By Salamun" indicator is a custom indicator for the TradingView trading platform that uses Pine Script v5. Let me explain its function and usage:
Main Function
1. Candlestick Display Modification
This indicator redraws candlesticks with special logic, especially to handle price gaps that occur when the market reopens after a close.
2. Eliminate Price Gaps
When the market opens after a break (for example after a weekend or holiday), there is usually a gap between the previous closing price and the new opening price.
This indicator "fixes" the gap by adjusting the open price of the new candle to be equal to the close price of the previous candle.
Input Parameters
"Valid only on open days" (default: false)
If enabled, modifications are only applied on market opening days.
If disabled, all candles will be modified
"Hourly threshold for detecting open days" (default: 6 hours)
Determine the time threshold for detecting gaps.
If the time interval between candles is > 6 hours, it is considered as the opening of a new day.
"Show Price" (default: true)
Displays a horizontal price line at the last price level
Ways of working
Gap Detection : Calculating the time difference between candles
Modification Conditions :
If applyToDayOpenOnly= false, OR
If the time gap > the specified threshold
Price Adjustment :
Open price = Close price of the previous candle
Close, High, Low still use original values
Coloring :
Teal green for bullish candles (close ≥ open)
Red for bearish candle (close < open)
Utility
For Traders:
Provides a smoother chart visualization without gaps
Helps with more continuous technical analysis
Useful for timeframes that often experience gaps (such as daily, weekly)
For Analysis:
Reduces noise from opening gap
Helps identify clearer trends
Suitable for strategies that focus on continuous price movements
The "Perfect Candles By Salamun" indicator is a custom indicator for the TradingView trading platform that uses Pine Script v5. Let me explain its function and usage:
Main Function
1. Candlestick Display Modification
This indicator redraws candlesticks with special logic, especially to handle price gaps that occur when the market reopens after a close.
2. Eliminate Price Gaps
When the market opens after a break (for example after a weekend or holiday), there is usually a gap between the previous closing price and the new opening price.
This indicator "fixes" the gap by adjusting the open price of the new candle to be equal to the close price of the previous candle.
Input Parameters
"Valid only on open days" (default: false)
If enabled, modifications are only applied on market opening days.
If disabled, all candles will be modified
"Hourly threshold for detecting open days" (default: 6 hours)
Determine the time threshold for detecting gaps.
If the time interval between candles is > 6 hours, it is considered as the opening of a new day.
"Show Price" (default: true)
Displays a horizontal price line at the last price level
Ways of working
Gap Detection : Calculating the time difference between candles
Modification Conditions :
If applyToDayOpenOnly= false, OR
If the time gap > the specified threshold
Price Adjustment :
Open price = Close price of the previous candle
Close, High, Low still use original values
Coloring :
Teal green for bullish candles (close ≥ open)
Red for bearish candle (close < open)
Utility
For Traders:
Provides a smoother chart visualization without gaps
Helps with more continuous technical analysis
Useful for timeframes that often experience gaps (such as daily, weekly)
For Analysis:
Reduces noise from opening gap
Helps identify clearer trends
Suitable for strategies that focus on continuous price movements
版本注释
perubahan sensitifitas warna merah maroon.仅限邀请脚本
只有经作者批准的用户才能访问此脚本。您需要申请并获得使用权限。该权限通常在付款后授予。如需了解更多详情,请按照以下作者的说明操作,或直接联系SamSalamun。
除非您完全信任其作者并了解脚本的工作原理,否則TradingView不建议您付费或使用脚本。您还可以在我们的社区脚本中找到免费的开源替代方案。
作者的说明
Perfect Candles for your trade.
tidak ada lagi candle yang menghambatmu untuk melakukan analisa yang super akurat.
提醒:在请求访问权限之前,请阅读仅限邀请脚本指南。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
仅限邀请脚本
只有经作者批准的用户才能访问此脚本。您需要申请并获得使用权限。该权限通常在付款后授予。如需了解更多详情,请按照以下作者的说明操作,或直接联系SamSalamun。
除非您完全信任其作者并了解脚本的工作原理,否則TradingView不建议您付费或使用脚本。您还可以在我们的社区脚本中找到免费的开源替代方案。
作者的说明
Perfect Candles for your trade.
tidak ada lagi candle yang menghambatmu untuk melakukan analisa yang super akurat.
提醒:在请求访问权限之前,请阅读仅限邀请脚本指南。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。