Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 09:32:06 +0000



Post From: GET VOLUME BY PRICE STUDY VALUES (POC, VAH, VAL)

[2023-12-22 16:04:59]
User103688 - Posts: 9
Hi everyone,
I'm trying to get the value of POC, VAH, VAL from VbP study to my custom study.

SCFloatArray otherStudyData;
sc.GetStudyArray(1, 1, otherStudyData);

The subgraph of POC is the first one. but if I try to print it on Message Log, result like 0.


float subgraphValue = otherStudyData[sc.Index];

// Prepare the log message
SCString logMessage;
logMessage.Format("Subgraph value at current bar: %f", subgraphValue);

// Add the message to the log
sc.AddMessageToLog(logMessage, 0);

Can you help me, please?