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.

    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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      80 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      46 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      29 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      66 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X