Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 00:42:07 +0000



[Programming Help] - indicator with forward looking condition?

View Count: 321

[2023-06-13 14:23:31]
BenjFlame - Posts: 324
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: 286
Think about that for a bit longer...
[2023-06-13 21:20:47]
Sawtooth - Posts: 4120
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: 552
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