Login Page - Create Account

Support Board


Date/Time: Wed, 08 May 2024 13:40:48 +0000



issue with VbP setter

View Count: 829

[2019-01-26 00:41:52]
dtl-saw - Posts: 79
I've found an issue with the setting of the VbP input variable #37[index=36] "start date" when using the sc.SetChartStudyInputFloat setter function the input value is set to zero and not the value used in the function.

When using the function to set the VbP input variable #39[index=38] "start time" there is no problem and the input is set correctly.

example: for this case the VbP ID=4
sc.SetChartStudyInputFloat(sc.ChartNumber, 4, 36, 43490);
this should set the VbP input variable #37 "start date" to today 1/25/2019, however the "start date" is being set to 0 (reads as 1900-01-04) from the properties window

when using this same function to set the VbP "start time" it correctly sets the time to 11:54:48 AM
sc.SetChartStudyInputFloat(sc.ChartNumber, 4, 38, 0.4943);


Please take a look at the VbP input variable setter code and see if you can resolve this issue.

thanks
[2019-01-28 00:47:53]
Sierra Chart Engineering - Posts: 104368
We do not observe any problem with this. Make sure you are running the current version of Sierra Chart. This was resolved earlier. You must be running an older version.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2019-02-27 11:05:47]
AlexPereira - Posts: 197
this seems to work for me, example code:


time = std::modf(sc.GetEndingDateTimeForBarIndex(IndexBegin), &date);
sc.SetChartStudyInputFloat(sc.ChartNumber, study, 36, date);
sc.SetChartStudyInputFloat(sc.ChartNumber, study, 38, time);

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

Login

Login Page - Create Account