OPEN-SOURCE SCRIPT
Chart Custom Period Scanner

How it Works
1. The Scanner (Inputs): The script defaults to a 20-bar lookback. This means it scans the last 20 candles. You can change this to 50, 200, or any number you like in the settings menu.
2. The Logic:
* It calculates the Highest Price reached in that past period.
* It calculates the Lowest Price reached in that past period.
3. The Suggestion:
* BUY: If the current price breaks above the highest price of your past period, it suggests the trend is turning bullish.
* SELL: If the current price breaks below the lowest price of your past period, it suggests the trend is turning bearish.
1. The Scanner (Inputs): The script defaults to a 20-bar lookback. This means it scans the last 20 candles. You can change this to 50, 200, or any number you like in the settings menu.
2. The Logic:
* It calculates the Highest Price reached in that past period.
* It calculates the Lowest Price reached in that past period.
3. The Suggestion:
* BUY: If the current price breaks above the highest price of your past period, it suggests the trend is turning bullish.
* SELL: If the current price breaks below the lowest price of your past period, it suggests the trend is turning bearish.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。