Login Page - Create Account

Support Board


Date/Time: Tue, 04 Mar 2025 21:29:26 +0000



building formula problem

View Count: 480

[2022-01-04 11:27:59]
User278398 - Posts: 291
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: 833
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: 291
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