PROTECTED SOURCE SCRIPT

Bars Counter Separator

От egghen
Обновлено
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
egghen

Скрипт с защищённым кодом

Этот скрипт опубликован с закрытым исходным кодом, вы можете свободно им пользоваться. Можно добавить его в избранное и использовать на графике. Вы не можете просматривать или менять его исходный код.

Хотите использовать этот скрипт на графике?

Отказ от ответственности