Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 14:48:27 +0000



Post From: ACSIL - round() function

[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