Login Page - Create Account

Support Board


Date/Time: Thu, 16 May 2024 07:52:42 +0000



Post From: Know what Arrays contain data

[2020-07-14 07:29:25]
User907968 - Posts: 802
Why doesn't the first variable MACD start with Arrays[0]

Bacause MACD is stored in the main data array( sc.Subgraph[].Data[] ) not in the extra arrays ( sc.Subgraph[].Arrays[][] ) -
ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].Data[] / sc.Subgraph[][]
ACSIL Interface Members - sc.Subgraph Array: sc.Subgraph[].Arrays[][]

- Why does the second variable MACD MovingAverage use .Arrays[2] and not .Arrays[1]

with these functions that output multiple arrays... how do i know what array holds what??

In this example you can infer from the code example and explanation that .Arrays[0] and .Arrays[1] contain internal calculation data, as it is shown that .Arrays[2] and .Arrays[3] contain the MACDMovingAverage and the MACDDifference

There are often examples of how to use these functions in the \sierrachart\acs_source folder