Login Page - Create Account

Support Board


Date/Time: Sat, 21 Dec 2024 13:12:41 +0000



Post From: Using extra array from another study

[2014-11-14 23:55:47]
User43906 - Posts: 4
Hello, i need to call another study and extract an extra array (four position)

The call is:
sc.GetStudyExtraArrayFromChartUsingID(sc.Input[2].GetChartNumber(), sc.Input[0].GetInt(), 0, 4, StudyReference1);
In the other study I set muy values in ZigZagPeakValue array

  SCFloatArrayRef ZigZagPeakType = ZigZagLine.Arrays[0]; // ZigZagPeakType : +1=high peak, -1=low peak, 0=not peak
  SCFloatArrayRef ZigZagPeakIndex = ZigZagLine.Arrays[1]; // ZigZagPeakIndex: index of current peak, -1=no peak yet
  SCFloatArrayRef ZigZagReset = ZigZagLine.Arrays[2]; // ZigZagReset: 0=no reset, 1=reset
  SCFloatArrayRef ZigZagTrend = ZigZagLine.Arrays[3]; // ZigZagTrend: 0=none, 1=confirmed up, -1=confirmed down
  SCFloatArrayRef  ZigZagPeakValue = ZigZagLine.Arrays[4];
I set values in this form:

ZigZagPeakValue[ZigZagIndex] = 4;
When I read

float ValorStudy1 = StudyReference1[sc.Index];
The value is allways cero

Thanks!
Date Time Of Last Edit: 2014-11-14 23:59:07