Login Page - Create Account

Support Board


Date/Time: Wed, 19 Mar 2025 07:07:20 +0000



[Programming Help] - Color Bar Alert fire and hold on only first occurrence inside a bar?

View Count: 421

[2022-10-13 17:46:50]
User656492 - Posts: 146
Hi all.

I'm trying to create an alert where it fires only on the first occurrence of the condition inside a bar.

Example:

Let's say I'm looking at bars that complete at +/-5000 deltas. I want to see the price the moment the delta > +500 or < -500 and I want that price displayed through completion of the bar, UNLESS the delta flips the other way (goes from +500 in this bar to -500 in this bar).

I can not figure out how to get it to fire ONLY when deltas go over that +500 the first time. 490...495...499...500 (DING DING, show price, say at ES at 3600 )... 495 (DING STILL TRUE BECAUSE IT ALREADY FIRED INSIDE THIS BAR, 3600 still shown) ... 520 ((DING STILL TRUE, 3600 still shown)

The moment my condition is true, I want to display the price at which it occurred using Custom Value at Y.

That value should remain displayed through completion of the delta bar. At the end of the day, every bar should have a price displayed using this alert, as each bar completes only when it gets to +/-5000 deltas and I'm printing at the first occurrence of 500. (yes, i would be doing the same for -500 deltas and bars that close at -5000)

Alert only once per bar does not seem to alert only once per bar.

Can someone help me out here?

Thanks!
[2022-10-14 01:04:52]
Sawtooth - Posts: 4186
It's not possible to make persistent an intrabar value, using Simple Alerts, nor in a spreadsheet study.

What you want to do would require a custom ACSIL study.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account