RoundToTickSize()
<< Click to Display Table of Contents >> RoundToTickSize() |
Returns a value that is rounded up to the nearest valid value evenly divisible by the instrument's tick size.
A double value.
Instrument.MasterInstrument.RoundToTickSize(double price)
price |
A double value representing a price |
//Takes the last 3 closes, divides them by 3, and rounds the value up to the nearest valid tick size Value[0] = Instrument.MasterInstrument.RoundToTickSize((Close[0] + Close[1] + Close[2]) / 3); |