Login Page - Create Account

Support Board


Date/Time: Sun, 29 Dec 2024 17:23:46 +0000



Post From: How to use a use a study function within a study without outputting/plotting its value

[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.