PDA

View Full Version : how to detect pipsize for currencies programmatically


MicroTrends
06-30-2010, 05:20 PM
I am wondering if it is possible to detect if a forex currency is using 10th Pips, half Pips, Whole Pips etc

I am using some logice which calculates the cahs value of a stop based on the amount of ticks...

stop*Instrument.MasterInstrument.PointValue*Instru ment.MasterInstrument.TickSize)

if the currency is quoted in 10th pips the stop is 100 instead of 10

so if i am going down the correct route with this i will need to check and adjust the return


I guess another way of looking at it is:
I wish to find the value of 1tick
I need to factor in if fractional pips are used

this is all to do with money management via stop loss size and risk

NinjaTrader_Bertrand
07-01-2010, 04:55 AM
MicroTrends, unfortunately there's no programmatic way to check the Pip setting for FX Spot products - for example I'm just using an input in my strategies which I check off to be able to run on different providers while adjusting my exit brackets accordingly.

MicroTrends
07-01-2010, 07:15 AM
no problem - a public property TickValue is just one way i have found to address this