Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to detect pipsize for currencies programmatically

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    how to detect pipsize for currencies programmatically

    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
    Last edited by MicroTrends; 06-30-2010, 05:26 PM.
    MicroTrends
    NinjaTrader Ecosystem Vendor - micro-trends.co.uk

    #2
    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.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      no problem - a public property TickValue is just one way i have found to address this
      MicroTrends
      NinjaTrader Ecosystem Vendor - micro-trends.co.uk

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by alifarahani, Today, 09:40 AM
      6 responses
      31 views
      0 likes
      Last Post alifarahani  
      Started by Waxavi, Today, 02:10 AM
      1 response
      17 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by Kaledus, Today, 01:29 PM
      5 responses
      13 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by Waxavi, Today, 02:00 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_LuisH  
      Started by gentlebenthebear, Today, 01:30 AM
      3 responses
      17 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Working...
      X