Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

calculate dollar per tick on added instruments

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

    calculate dollar per tick on added instruments

    Hello,
    I understand that we can use a line something like:

    double cost = TickSize * Instrument.MasterInstrument.PointValue;

    to calculate the $ per tick. But how exactly would we go about calculating that same number for a futures contracts we Add() to our strategy. So the strategy wouldn't be running on the instrument we are interested in calculating, instead it would need to be referenced from the BarArray, but what would be the syntax for referencing this?

    Thanks!

    #2
    Hello slocumtrader,

    You can use Instruments[barsarray index].MasterInstrument to get the instrument settings of additional data series.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi ChelseaB,
      How about for the TickSize , how would I reference the barsArray?

      Thanks!

      Comment


        #4
        Hi slocumtrader,

        Instruments[barsarray index].MasterInstrument.TickSize
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          great, thanks !

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          650 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          370 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          109 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          574 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          577 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X