when trading CFD's which potentially have a minimum increment/tick size of 0.25 in the case of the S&P500, I need to find a way of rounding a number such as a moving average or ATR to the nearest of the smallest increment.
NormalizeDouble(78.2123,0.25) will truncate the 0.25 to the nearest number in this case 0 then round to 78
as will:
MathRound(78.2123)
anyone have any ideas?
cheers
M
NormalizeDouble(78.2123,0.25) will truncate the 0.25 to the nearest number in this case 0 then round to 78
as will:
MathRound(78.2123)
anyone have any ideas?
cheers
M