Can you tell me, is it possible for NinjaScript code to know how many decimal places are in the price of an instrument?
And what the tick value is?
Example: If I have a general strategy or indicator and I want to input a parm value that indicates a tick offset to the price. The offset is an integer.
But, in order to apply the offset to an instruments price, I need to know the tick precision (decimal places) and the value of each tick.
So, to add 5 ticks to the FDAX, for example, the price would move 2.5 cents, because each tick is worth .5 cents.
Look at 6J...with all those decimal places.
Perhaps another way to ask this...is how to add a certain number of ticks to a price to come up with the new price? Is there an easy way?
New Price = Old Price + (tick-offset * value per tick)?? thinking out loud.
Or, am I missing something? (newbie)
Thanks
Comment