OPEN-SOURCE SCRIPT
Support Line [by rukich]

🟠 OVERVIEW
The indicator displays a floating line that acts as a support level. It's important to remember that any support level can be broken.
🟠 COMPONENTS
The indicator is based on the percentage difference between the closes of the n-th bar back and the current bar. The resulting percentage is smoothed to remove noise.
The indicator is displayed as a green-red line (the colors don’t carry meaning — they are used just for visual variety). When the price touches the support level, the bar background turns green.
For convenience, there is a label on the right side of the indicator showing the current value of the line.
🟠 HOW TO USE
The indicator includes several settings that can be adjusted, though optimal defaults are provided.
Settings:
The indicator should be used according to general support-zone logic. Since no support zone guarantees a price bounce, the optimal approach is to confirm the reaction after the price touches the line.
Example of use:
In the current example, the Timeframe in the indicator settings is set to 1 hour, and the currently open chart is 5 minutes. This means that on the 5-minute chart we see a 1-hour line. After the price touches the support line, you need to see a confirmation of the reaction to understand whether the support zone is holding the price.
In the examples, reaction confirmation is shown through: the formation of an M5 shift and the invalidation of an FVG M5- (the latter is more risky than the M5 shift):


🟠 CONCLUSION
The indicator shows a floating support zone, and when tested, you should confirm the reaction on a lower timeframe.
The indicator displays a floating line that acts as a support level. It's important to remember that any support level can be broken.
🟠 COMPONENTS
The indicator is based on the percentage difference between the closes of the n-th bar back and the current bar. The resulting percentage is smoothed to remove noise.
The indicator is displayed as a green-red line (the colors don’t carry meaning — they are used just for visual variety). When the price touches the support level, the bar background turns green.
For convenience, there is a label on the right side of the indicator showing the current value of the line.
🟠 HOW TO USE
The indicator includes several settings that can be adjusted, though optimal defaults are provided.
Settings:
- Timeframe — specifies which timeframe’s data is used to calculate the line.
- Candles back — specifies how many bars back from the current one are used.
The indicator should be used according to general support-zone logic. Since no support zone guarantees a price bounce, the optimal approach is to confirm the reaction after the price touches the line.
Example of use:
In the current example, the Timeframe in the indicator settings is set to 1 hour, and the currently open chart is 5 minutes. This means that on the 5-minute chart we see a 1-hour line. After the price touches the support line, you need to see a confirmation of the reaction to understand whether the support zone is holding the price.
In the examples, reaction confirmation is shown through: the formation of an M5 shift and the invalidation of an FVG M5- (the latter is more risky than the M5 shift):
🟠 CONCLUSION
The indicator shows a floating support zone, and when tested, you should confirm the reaction on a lower timeframe.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。