Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 23:36:00 +0000



[Programming Help] - Drawing on other studies

View Count: 267

[2023-03-30 00:41:02]
tietzmann - Posts: 11
I am developing an ACSIL custom study and inside my logic I use the Cumulative delta study that I get from my chart. I am able to read the array and values from it just fine.
Now I want to draw lines directly on the cumulative delta study that I have, but I have no idea on how to do this.

Any code sample is welcome or other study that does this, because I was unable to find it.

Here is how I am reading data from the cumulative delta study:

SCGraphData StudyDataCumulativeDelta;

// get the data from Delta Up/Down Study
sc.GetStudyArraysFromChartUsingID(sc.ChartNumber, Input_CumulativeDeltaStudyID.GetStudyID(), StudyDataCumulativeDelta);

// get arrays for Delta Highs and Lows
SCFloatArrayRef ArrayDeltaHighs = StudyDataCumulativeDelta[1];
SCFloatArrayRef ArrayDeltaLows = StudyDataCumulativeDelta[2];

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

Login

Login Page - Create Account