Experimental and probably can be improved further.
Method of deriving support/resistence is as follows:
Calculate Zigzags and start pushing them to SR array as and when they form
If any of the existing item is within the small distance - merge them. ATR is used to find if the prices are close by.
Whenever we merge two pivots, strength of support keeps increasing. This means, price has bounced off this point more time. Hence, keep track of number of pivots merged together.
Keep removing old pivots which are far away based on Loopback input
And that's all we got the full list of support and resistence points.
Now, to filter insignificant pivots, chose only those points which has been merged by more than Min Pivots input. Width of the support/resistence lines also will be thicker for the pivots which has more count. Hence thicker line imply strong support and resistence whereas the thinner ones are minor ones.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.