RoundTick

Top  Previous  Next

Rounds the specified price to the nearest tick using the instrument's tick value. Behaves the same as roundTickDown( price + minimumTick/2 ).

 

Syntax

 

roundedValue = RoundTick( price )

 

Parameters

price

 

the price to be rounded

 

Example

' Round the price to the nearest tick.

entryPrice = instrument.RoundTick( entryPrice )