Login Page - Create Account

Support Board


Date/Time: Sat, 30 Nov 2024 02:40:38 +0000



Post From: How to simply get a value from the VZO once in a while for my one-chart study

[2022-12-29 03:04:49]
ForgivingComputers.com - Posts: 960
I suggest the use of sc.GetStudyArrayUsingID().

Assuming Autoloop = true, Vol Zone Oscillator study is ID1, and the VZO SG = 8:

int ID = 1;
int SG = 7; //This is zero-based so this is SG8 on the chart

SCFloatArray VZOStudy;
sc.GetStudyArrayUsingID(ID, SG, VZOStudy);

float x = VZOStudy[sc.Index];