Login Page - Create Account

Support Board


Date/Time: Sat, 27 Apr 2024 08:51:51 +0000



[Programming Help] - Referencing prior bars in Studies

View Count: 1618

[2018-06-29 14:48:57]
User360283 - Posts: 440
I want to reference prior data [-N] in studies such as Study Subgraph Add, Subtract, Multiply, etc.
Using a negative displacement on the resulting plot only visually displays the plot as desired, but the correct data cannot be used to generate a signal without having the ability to reference prior data in the studies.
Help please
Thanks
[2018-07-11 11:17:21]
User360283 - Posts: 440
Waiting for an answer
[2018-07-11 22:44:57]
Sierra Chart Engineering - Posts: 104368
This is possible and is explained here:
Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart
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
[2018-07-16 10:23:36]
User360283 - Posts: 440
I want to reference prior data [-N] in studies such as Study Subgraph Add, Subtract, Multiply, etc.
Please see enclosed snip.
In the Study Subgraph Multiple I was trying to code the Input Data to be S5-Avg1[-1]
This data is then used in additional formulas and is different from negative displacements.
Thanks
imagesierra snip.PNG / V - Attached On 2018-07-16 10:23:28 UTC - Size: 200.42 KB - 522 views

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

Login

Login Page - Create Account