Login Page - Create Account

Support Board


Date/Time: Sun, 25 May 2025 04:11:49 +0000



[Programming Help] - indicator with forward looking condition?

View Count: 371

[2023-06-13 14:23:31]
BenjFlame - Posts: 337
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: 322
Think about that for a bit longer...
[2023-06-13 21:20:47]
Sawtooth - Posts: 4220
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: 697
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