Support Board
Date/Time: Sat, 22 Feb 2025 17:59:24 +0000
[Programming Help] - ASCIL how to obtain the Price Display Format?
View Count: 888
[2021-02-01 12:52:28] |
User92573 - Posts: 547 |
Dear Support I'm currently using sc.TickSize but what I'd like to do is use the Price Display Format for the current chart (for an offset calculation). sc.GetValueFormat() is an integer and so is sc.BaseGraphValueFormat. I assume the int() value is referencing a related table but I cant seem to find the information so any help with the ASCIL method needed to obtain the Price Display Format information would be gratefully received. Many thanks |
[2021-02-01 16:02:15] |
John - SC Support - Posts: 38116 |
Refer to the information here: ACSIL Interface Members - Variables and Arrays: sc.ValueFormat For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2021-02-01 16:52:13] |
User92573 - Posts: 547 |
Thank you. I can't believe I missed it while searching.
|
[2021-02-02 13:19:54] |
User92573 - Posts: 547 |
Hmmm.... I can set the sc.ValueFormat but I'm still struggling to get the actual value though? // Find the Price Display Formatting using the sc.ValueFormat if(sc.ValueFormat == 0) { FormatOffset = 1 * Input_Multiplier.GetFloat(); } else if(sc.ValueFormat == 1) { FormatOffset = 0.1 * Input_Multiplier.GetFloat(); } else if(sc.ValueFormat == 2) { FormatOffset = 0.01 * Input_Multiplier.GetFloat(); } .... and on What I end up with up with seems to be the sc.ValueFormat integer value as opposed to the value it's associated with? Any direction would be very helpful Many thanks |
[2021-02-02 13:33:29] |
User92573 - Posts: 547 |
On checking the header file I can see that the actual Price Display Format might be sc.BasedOnGraphValueFormat But confirmation of how to obtain the actual Price Display Format as opposed to the sc.ValueFormat reference would be really appreciated. Many thanks Date Time Of Last Edit: 2021-02-02 13:41:33
|
To post a message in this thread, you need to log in with your Sierra Chart account: