OPEN-SOURCE SCRIPT
Formation Defined Moving Support and Resistance

The script was originally coded in 2018 with Pine Script version 3, and it was in protected code status. It has been updated and optimised for Pine Script v5 and made completely open source.
The Formation Defined Moving Support and Resistance indicator is a sophisticated tool for identifying dynamic support and resistance levels based on specific price formations and level interactions. This indicator goes beyond traditional static support and resistance by updating levels based on predefined formation patterns and market behaviour, providing traders with a more responsive view of potential support and resistance zones.
Features:
The indicator detects essential price levels:
- Lower Low (LL)
- Higher Low (HL)
- Higher High (HH)
- Lower High (LH)
- Equal Lower Low (ELL)
- Equal Higher Low (EHL)
- Equal Higher High (EHH)
- Equal Lower High (ELH)
By identifying these key points, the script builds a foundation for tracking and responding to changes in price structure.
Pre-defined Formations and Comparisons:
- The indicator calculates and recognises nine different pre-defined formations, such as bullish and bearish formations, based on the sequence of price levels.
- These formations are compared against previous levels and formations, allowing for a sophisticated understanding of recent market movements and momentum shifts.
- This formation-based approach provides insights into whether the price is likely to maintain, break, or reverse key levels.
Dynamic Support and Resistance Levels:
- The indicator offers an option to toggle Moving Support and Resistance Levels.
- When enabled, the support and resistance levels dynamically adjust:
- Upon a change in the detected formation.
- When the bar’s closing price breaks the last defined support or resistance level.
- This feature ensures that the support and resistance levels adapt quickly to market changes, giving a more accurate and responsive perspective.
Customisable Price Source:
- Users can choose the price source for level detection, selecting between close or high/low prices.
- This flexibility allows the indicator to adapt to different trading styles, whether the focus is on closing prices for more conservative levels or on highs and lows for more sensitive level tracking.
This indicator can benefit traders relying on dynamic support and resistance rather than fixed, historical levels. It adapts to recent price actions and market formations, making it useful for identifying entry and exit points, trend continuation or reversal, and setting trailing stops based on updated support and resistance levels.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.