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:

      Paul H.NinjaTrader Customer Service

      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 sightcareclickhere, Today, 01:55 PM
        0 responses
        1 view
        0 likes
        Last Post sightcareclickhere  
        Started by Mindset, 05-06-2023, 09:03 PM
        9 responses
        258 views
        0 likes
        Last Post ender_wiggum  
        Started by Mizzouman1, Today, 07:35 AM
        4 responses
        18 views
        0 likes
        Last Post Mizzouman1  
        Started by philmg, Today, 01:17 PM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChristopherJ  
        Started by cre8able, Today, 01:01 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Working...
        X