Login Page - Create Account

Support Board


Date/Time: Sat, 20 Apr 2024 12:57:59 +0000



[ User Discussion ] - ACSIL, Getting the VPOC of a CUSTOM Volume Profile

View Count: 2011

[2014-03-15 20:17:46]
Zosimus - Posts: 345
I want to find a way to programmatically(ACSIL) get the Price of the VPOC of a Volume profile that was drawn manually using the Tools >> Draw Volume Profile.

The VPOC data is held in the sc.Subgraph[1].Data array of the volume by price study, so my idea is to use sc.GetStudyArrayUsingID in order to get the Data of the first subgraph of the Volume by Price study.

What I still don't understand is - Once I pulled the VPOC Subgraph data into a SCFloatArray I need to specify an Index for the SCFloatArray item that I wish to get.

for an example:

SCFloatArray VPOC;
sc.GetStudyArrayUsingID(VP_ID.GetStudyID(),POC_SG.GetSubgraphIndex(),VPOC);
float POCatIndex = VPOC[Some Index];

(VP_ID, VPOC_SG are the inputs that specify the ID of the Volume Profile study and the SubGraph of the VPOC)

The VPOC is spanning through many bars so which Index should I use?
Date Time Of Last Edit: 2014-03-16 08:17:09

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account