PROTECTED SOURCE SCRIPT

Bars Counter Separator

업데이트됨
In the world of market whispers and silent charts, there exists a subtle guardian known as the Bars Counter Separator. With each tick and tock of the trading clock, it watches, counts, and marks the passage of time with delicate precision.

Three sentinels stand watch over the market's flow, each with a different heartbeat, a different rhythm. The first, known as T1, beats with the fervor of 64 bars, marking its presence in bold strokes of crimson red. The second, T2, dances to the tune of 85 bars, its vibrant green lines cutting through the market's chaos. The third, T3, strides with the majestic grace of 112 bars, leaving a trail of serene blue in its wake.

As the market ebbs and flows, these three guardians tirelessly count each bar, each fleeting moment of the trading day. And when the count reaches its destined number, they step forth from the shadows. With a gentle yet decisive hand, they draw a line across the chart—a line that whispers, "Here is a moment of significance."

Above these lines, labels bloom like flowers, each carrying the message of its respective sentinel. "T1 Counter," reads the red blossom, standing tall above the fray. "T2 Counter," declares the green, a beacon of order amidst the chaos. "T3 Counter," sings the blue, a note of calm in the market's symphony.

And so, with every new bar, the guardians reset, their task eternal, their watch unending. They mark the passage of time not with loud proclamations but with the quiet, steadfast duty of recording the market's heartbeat. They remind us that even in the frenetic dance of trades and transactions, there is a rhythm, a pattern, a story unfolding bar by bar.

Input Parameters
T1 (maxBars1): Maximum value for the first counter, default is 64.
T2 (maxBars2): Maximum value for the second counter, default is 85.
T3 (maxBars3): Maximum value for the third counter, default is 112.
Variables and Counters
Counters 1, 2, 3: Initialized to zero, these counters increment with each new bar.
Counters 4, 5, 6: Also initialized to zero, but these are designed to decrement with each new bar (though the condition bar_index < 0 makes them effectively unused since bar_index is never negative).
Increment Logic
Counters 1, 2, and 3 increment by 1 on each new bar if bar_index > 0.
Plotting Function
plot_vertical_line(counter, maxBars, line_color, label_text):

Plots a vertical dotted line and a label at the current bar when the counter reaches its maximum value (maxBars).
Plotting and Alerts
Vertical Lines and Labels: When counters 1, 2, or 3 reach their respective maximum values (maxBars1, maxBars2, maxBars3), a vertical dotted line is drawn with a corresponding label.
Counter 1 uses red lines and labels "T1 Counter".
Counter 2 uses green lines and labels "T2 Counter".
Counter 3 uses blue lines and labels "T3 Counter".

Alerts: An alert is triggered when each counter reaches its maximum value.
릴리즈 노트
Added start date function.
cicliCycleseducation

보호된 스크립트입니다

이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.

차트에 이 스크립트를 사용하시겠습니까?


또한 다음에서도:

면책사항