Support Board
Date/Time: Mon, 25 Nov 2024 14:56:27 +0000
ACSIL - round() function
View Count: 2064
[2014-02-07 16:21:15] |
ejtrader - Posts: 688 |
SC Team - In order to generate an integer from Price to use it as an unique Linenumber for tool using the below function. Tool.LineNumber=round(sc.Close[sc.Index]/sc.TickSize);
This round function works with gcc but not with MS compiler. Wondering if you are aware of an equivalent round function in MS or if there is any better alternative to achieve the above result - which can be used for any type of instrument. Basically want to derive the line number from the price itself. Any suggestions? Thanks Date Time Of Last Edit: 2014-02-07 20:47:01
|
[2014-02-07 20:45:20] |
Sierra Chart Engineering - Posts: 104368 |
int sc.Round(float Number)
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 |
To post a message in this thread, you need to log in with your Sierra Chart account: