Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 18:05:30 +0000



Post From: ASCII code to get a value from the study Trading: Position Quantity

[2020-04-13 04:56:04]
User807787 - Posts: 41
I am making a custom study and want to pull the value from the study "Trading: Position Quantity"

I am kind of clueless at this point:

SCFloatArray SubgraphArray;
sc.GetStudyArrayUsingID(11, 1, SubgraphArray); //11 is the study ID, 1 is the subgraph index
float StudyValue = SubgraphArray[SubgraphArray.GetArraySize() - 1];

StudyValue should be the current position size? NOT SURE!!! It is returning 1, regardless of my current position size.

THANKS FOR ANY HELP!!!!!