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 SalmaTrader, 07-07-2026, 10:26 PM
          0 responses
          47 views
          0 likes
          Last Post SalmaTrader  
          Started by CarlTrading, 07-05-2026, 01:16 PM
          0 responses
          22 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 06-17-2026, 10:32 AM
          0 responses
          15 views
          0 likes
          Last Post CaptainJack  
          Started by kinfxhk, 06-17-2026, 04:15 AM
          0 responses
          21 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 06-17-2026, 04:06 AM
          0 responses
          23 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X