Support Board
Date/Time: Thu, 16 Jan 2025 12:53:54 +0000
p_VolumeAtPrice->PriceInTicks with ES futures
View Count: 1166
[2017-10-28 10:03:18] |
User210074 - Posts: 63 |
Hello, I have a problem that I do not understand. Using the "p_VolumeAtPrice->PriceInTicks" function, I retrieved the price in INT. example : 16206 for 162.02 (bund futures) it worked perfectly for all futures. Now I have a problem with ES futures. it does not work anymore. Example ES futures, now i have : 10312 for 2577.5 Normally I will have to have that 257750 for 2577.50 What happened so that it does not work anymore. Is this a conversion problem or an update (1630)? Currently the conversion to INT works correctly for the bund and other futures. But for the ES Futures, I do not know what's going on. |
[2017-10-28 13:56:11] |
User210074 - Posts: 63 |
Now I just understood, this is your update that has change the standart conversion of the function "p_VolumeAtPrice->PriceInTicks". Now by default the function is an number which must be converted with the function "p_VolumeAtPrice->PriceInTicks * sc.TickSize" to have a float number Exemple : ES : 2557.0000. it's OK Now, before doing the modification of all programs. I just have a question : The answer is yes or no. Does the "p_VolumeAtPrice->PriceInTicks * sc.TickSize" function no longer suffer from the float precision problem of c++? If yes I do not have a fix function to do, congratulation of your work to simplify the ASCIL code. Date Time Of Last Edit: 2017-10-28 13:57:58
|
[2017-10-28 20:23:19] |
Sierra Chart Engineering - Posts: 104368 |
p_VolumeAtPrice->PriceInTicks has never changed. It is not a new version which has caused any change. That is completely impossible. The value in that variable is dependent on the chart Tick Size setting. This would mean that the tick size for the chart was set incorrectly and was .01: Normally I will have to have that
257750 for 2577.50 Does the "p_VolumeAtPrice->PriceInTicks * sc.TickSize" function no longer suffer from the float precision problem of c++? 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 Date Time Of Last Edit: 2017-10-28 20:23:34
|
To post a message in this thread, you need to log in with your Sierra Chart account: