Overall Logic: The script is designed to help traders visualize and analyze price movements on the chart, where each 1% movement is highlighted with a corresponding symbol. Additionally, the table helps track and analyze the number and length of consecutive price movements in one direction, which can be useful for identifying trends and understanding market dynamics.
This script can be particularly useful for traders looking for recurring patterns in price movements and wanting to quickly identify significant changes on the chart.
Main elements of the script: Price Percentage Change:
The script tracks the price movement by 1% from the last significant value (the value at which the last 1% change was recorded). If the price rises by 1% or more, a green circle is displayed above the bar. If the price drops by 1% or more, a red circle is displayed below the bar. Sequence Counting:
The script counts the number of consecutive 1% moves upwards (green circles) and downwards (red circles). Separate counters are maintained for upward and downward movements, increasing each time the respective movement occurs. If an opposite movement interrupts the sequence, the counter for the opposite direction is reset. Sequence Table:
A table displayed on the chart shows the number of sequences of 1% movements in one direction for lengths from 1 to 15 bars. The table is updated in real-time and shows how many times sequences of a certain length occurred on the chart, where the price moved by 1% in one direction.
진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.