Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Tick Worth

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

    Tick Worth

    Is there an Instrument property that returns the worth of a tick? For example, if your current instrument is ES, then that variable or function would return 12.50. I hate to hardcode these things...

    #2
    I think you can use PointValue together with TickSize to calculate a tick's value.

    Comment


      #3
      Hello EarlyTrader,

      Thanks for your post and welcome to the NinjaTrader forums!

      As member gurko advised you can retrieve the instruments point value and multiply times the instruments ticksize to determine the dollars per tick. For example:

      if (CurrentBar == 0)
      {
      Print ("Dollars per tick: "+(Bars.Instrument.MasterInstrument.PointValue * TickSize).ToString());
      }


      References:

      Comment


        #4
        Thank you very much

        double tickWorth = Instrument.MasterInstrument.PointValue * TickSize;

        did the trick.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        86 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        44 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        23 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        31 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        31 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X