Login Page - Create Account

Support Board


Date/Time: Thu, 23 Jan 2025 09:36:05 +0000



study that outputs difference between values of another study

View Count: 983

[2018-11-12 20:59:02]
User525733 - Posts: 126
Hi,

is there a SC study that can calculate the difference (or percent diff) between the current value of a study (say moving average) and the value of that same study at a prior bar (maybe the one immediately before)?

thanks
[2018-11-12 21:16:19]
Sierra Chart Engineering - Posts: 104368
There are different ways of doing this. It can be done with this particular study:
Study Subgraphs Subtract/Difference
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-11-12 21:42:08]
User525733 - Posts: 126
thanks,

is there away to do the same but output a percent difference between the bars?
[2018-11-13 10:54:53]
Sierra Chart Engineering - Posts: 104368
Of course, just modify that study to meet your requirements:
How to Build an Advanced Custom Study from Source Code
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

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

Login

Login Page - Create Account