Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 00:26:02 +0000



[Programming Help] - Moving Volume Profile End-Time and End-Date with ASCIL

View Count: 416

[2021-07-26 13:50:02]
P3rri - Posts: 16
Greetings,
I am trying to use ASCIL to move Volume By Price(DVP) that I drew manually by manipulating the End Time and End Date. Using the sc.SetChartStudyInputInt(). I managed to get the time of the candle for the anchors of the Volume Profile with sc.GetChartStudyInputInt(). as integers.
But when I am trying to Set the End Time it is bugging and it goes to End time 00:00:00 and out of the chart.

Here is an example of what I am trying to do:
sc.GetChartStudyInputInt(sc.ChartNumber,sc.Input[1].GetStudyID(), 40, ending_time);
This returns an integers that indicates the end of the Volume Profile.
sc.SetChartStudyInputInt(sc.ChartNumber,sc.Input[1].GetStudyID(), 40, ending_time+1000);
Trying to move it for 1000 seconds to the right.

I can't figure out hours now if I am doing something wrong or it is a bug, the GetChartsStudyInputInt returns an integer that I just increase and pushing back to the study with SetChartStudyInputInt.
Thank you for your time.
[2021-07-26 14:11:20]
User907968 - Posts: 802
Take a look at 'scsf_VolumeByPriceResetButton', which can be found in /ACSSource/studies2.cpp

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

Login

Login Page - Create Account