OPEN-SOURCE SCRIPT

Chart Custom Period Scanner

123
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.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.