JDT Support & Resistance Levels
This Pine Script indicator identifies and dynamically plots pivot-based support and resistance levels on your chart. Unlike traditional pivot point calculations, this script uses a user-defined lookback period to identify swing highs and lows, providing a more adaptable approach to identifying potential price reversal zones.
Originality
This script stands out due to its flexible approach to pivot identification. Instead of relying on fixed periods like daily, weekly, or monthly pivots, it allows users to customize the lookback period. This is particularly useful for traders who analyze different timeframes or markets, as the optimal lookback period may vary.
How it works
* Pivot Calculation: The script utilizes the ta.pivothigh and ta.pivotlow functions to identify swing highs and lows within the specified lookback period.
* Line Plotting: Horizontal lines are plotted at these pivot levels, extending to the right edge of the chart.
* Dynamic Updates: As new swing highs and lows form, the lines automatically update, ensuring the levels remain relevant to the current price action.
How to use it
* Add the script to your chart.
* Adjust the "Lookback Period" input parameter. A higher value will result in fewer but more significant levels, while a lower value will produce more frequent but potentially less reliable levels.
* Use the levels to identify potential support and resistance zones. Observe how price interacts with these levels. A break above a resistance level could signal a bullish move, while a break below a support level could indicate a bearish move.
Additional Considerations
* This script is most effective when used in conjunction with other technical analysis tools and indicators.
* The accuracy of the levels depends on the chosen lookback period and the specific market conditions.
* Always backtest your strategies before implementing them in live trading.
Let me know if you'd like any further clarification or have additional questions.