Login Page - Create Account

Support Board


Date/Time: Wed, 25 Jun 2025 08:48:59 +0000



building formula problem

View Count: 526

[2022-01-04 11:27:59]
User278398 - Posts: 296
hello,
i'm trying to get the value height of specific bar, by only formula!
i success to get the current bar height =h[0]-l[0]
i success to get the before current bar height =(h[1]-l[1])-(h[0]-l[0])

but i don't success to get further bars... nothing works
=(h[2]-l[2])-(h[1]-l[1])
=(h[2]-l[2])-(h[0]-l[0])
=(h[2]-l[2])-(h[1]-l[1])-(h[0]-l[0])

///
some one have solution to get the before before current bar?

regards
[2022-01-04 11:43:56]
User907968 - Posts: 840
To get height of second last bar, formula below works fine for me.

=H[2]-L[2]

[2022-01-04 13:26:50]
User278398 - Posts: 296
I CHECK IT AGAIN...
WHAT IS GIVING ME THE RIGHT ANSWER IS THIS EQUATION
=H[-2]-L[-2]

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

Login

Login Page - Create Account