Support Board
Date/Time: Mon, 15 Sep 2025 20:48:34 +0000
[Programming Help] - rounding my target calculation to the next valid tick price
View Count: 546
[2021-12-17 12:38:52] |
User61576 - Posts: 453 |
i am calculating my target price using this line: target1Price = mktPrice + (tPriceInput.GetInt() * ATR_calc);
tPriceInput.GetInt() = getting a user input for multiplierATR_calc = getting the ATR in that bar the results is that sometimes i will submit a price like "15765.050003" (trading NQ) so correct price should be 15765.00 is there any function to round to the next valid tick size so this will work for both ES or NQ etc.? thanks |
[2021-12-17 13:35:32] |
User907968 - Posts: 844 |
ACSIL Interface Members - Functions: sc.RoundToTickSize() / sc.RoundToIncrement()
|
To post a message in this thread, you need to log in with your Sierra Chart account: