My script works by finding lows that are surrounded by bars that have higher lows and highs that are surrounded by lower highs. I use this logic to find short term lows or highs and I use the same concept to find mid-term lows or highs but a mid-term high is a short term high surrounded by lower short term highs and a mid-term low is a short term low surrounded by higher short term lows. And of course this means that long term highs or lows use the same logic to find highs or lows that are surrounded by mid-term highs or lows. I would recommend to buy at the long term low points or sell at the long term high points.
Keep in mind of course that short term highs and lows are very common and reversal points will get rarer as you look for longer term reversal points. I would recommend to experiment and see which reversal points work best for you and of course, know that there is no magical formula to use for all stocks.
Also there are a few scenarios where you want to enable or disable the inside bar setting. You would want to ignore inside bars if the market is currently very volatile or if you are using this indicator on a crypto chart. This is not an exact science but more of a recommendation, so feel free to experiment with it.
Reversal points are crucial for traders as they signal a potential change in the market trend, providing opportunities for entry or exit.
In summary, this code snippet is a powerful tool for traders to detect and visualize reversal points on a trading chart, providing valuable insights into potential trend changes and facilitating more informed trading decisions.
Let me know if you would like me to publish other scripts or if you want me to do something custom for you!
Custom Indicator Requests:
Tips are appreciated:
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.