Login Page - Create Account

Support Board


Date/Time: Mon, 30 Jun 2025 21:50:02 +0000



[Programming Help] - indicator with forward looking condition?

View Count: 380

[2023-06-13 14:23:31]
BenjFlame - Posts: 338
Hello,
is it possible, in ACSIL or Formula language to have an indicator looking for bars forward in time for a condition?

Example :

Have a Boolean returntrue if next 2 bars close are higher than current close?
[2023-06-13 17:50:10]
ondafringe - Posts: 325
Think about that for a bit longer...
[2023-06-13 21:20:47]
Sawtooth - Posts: 4231
Have a Boolean returntrue if next 2 bars close are higher than current close?
You could have a boolean return true if the current and previous closes are higher than the close of the 3rd bar ago.
The alert would necessarily always be 3 bars late.
[2023-06-14 13:21:37]
cmet - Posts: 707
AND(C > C[-1], C > C[-2])

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

Login

Login Page - Create Account