Login Page - Create Account

Support Board


Date/Time: Tue, 01 Jul 2025 18:07:24 +0000



slow k one bar ago

View Count: 924

[2016-04-07 16:17:17]
User170575 - Posts: 221
=and(id3.sg1[-1]<id3.sg2[-1],C>=h[-1], id3.sg1<100[-1])


Hi---id3.sg1 references the slow k of a slow stochastic study---works just fine until I reference one bar ago [-1].

What am I missing?

Many thanks,

Cy
[2016-04-07 17:47:38]
Sierra Chart Engineering - Posts: 104368
All we can say is that using [-1] is valid.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-04-08 13:39:12]
User170575 - Posts: 221
Sorry, I am stuck---

Here is a link to the chart:
http://www.sierrachart.com/image.php?Image=1460122302484.png

ID2.SG1 references the Slow %k

This works:
=and(id2.sg1>0)

This does not:
=and(id2.sg1>0[-1])

Thanks---and have a nice weekend.

Cy
[2016-04-08 18:49:20]
Sierra Chart Engineering - Posts: 104368
What exactly are you trying to do?

The underlined part of the formula does not make sense:

=and(id2.sg1 > 0[-1])
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2016-04-09 00:49:15]
User170575 - Posts: 221
I am just trying to test the formula...id2.sg1 is the slow k of the slow sto study... if referencing the current bar
The formula works fine.... all bars turn chartreuse ... so I tested it one bar ago using -1....it does not work....

In other words the range on a stochastic is 0 - 100 ...so it should alert nearly every bar which it does if referencing the current bar... but no cigar if looking at the previous bar.

Am I not referencing one bar ago correctly?
[2016-04-09 11:36:24]
User170575 - Posts: 221
I see my problem.... thank you

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

Login

Login Page - Create Account