Support Board
Date/Time: Sun, 29 Dec 2024 00:14:16 +0000
How to use a use a study function within a study without outputting/plotting its value
View Count: 907
[2016-01-31 08:26:40] |
User972044 - Posts: 154 |
Hi there, I need to use a study function e.g. ATR to calculate a value that will be outputted onto the chart but I really don't need the actual ATR value to be outputted. For example, this is what I would like to do: sc.Subgraph[0].Data[sc.index] = ATR * 10; It says that if you don't want the ATR value to be plotted, you have to use Subgraph.Array[0] so do I use Subgraph.Array[0] as the output parameter? Is that correct? Also, my second question: how do I actually call the function? Do I use sc.Subgraph[0].Data[sc.index] = sc.ATR(...) * 10; ? Thank you for your help in advance. This is very new to me and I am very confused. |
[2016-02-02 10:13:16] |
Sierra Chart Engineering - Posts: 104368 |
Here is the relevant updated and added documentation: http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#WorkingWithIntermediateStudyCalculationFunctions http://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#ArrayNotes Even when using sc.Subgraph if you do not want it to be visible simply set the DrawStyle of it to Ignore. The documentation explains this with a code sample. It says that if you don't want the ATR value to be plotted, you have to use Subgraph.Array[0] so do I use Subgraph.Array[0] as the output parameter?
Here is the updated documentation for sc.ATR: https://www.sierrachart.com/index.php?page=doc/doc_ACSIL_Members_Functions.html#scATR You can use either a sc.Subgraph or sc.Subgraph[].Arrays[]. There are two implementations of the function. 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: