Login Page - Create Account

Support Board


Date/Time: Sat, 08 Feb 2025 18:04:00 +0000



Post From: Know what Arrays contain data

[2020-07-14 17:52:09]
User907968 - Posts: 826
so the first variable listed as a float (MACD) is not the MACD signal line? so there are only 2 subgraphs in your sc.MACD and no signal?
No, all I am saying is MACD is stored in sc.Subgraph[].Data[] (or if you prefer shorthand sc.Subgraph[][] ) as opposed to being in the extra arrays ( sc.Subgraph[].Arrays[][] )

do you even need this line in the example? if sc.MACD already outputs to sc.Subgraph[0] cant you leave out the float MACD = sc.Subgraph[0][sc.Index]; from the code?

If you don't need to access that particular data in your code, then no, you would not need that line, as the subgaph is already populated by sc.MACD function. It is only an example of how to access the data.