Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Diff in ticks

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

    Diff in ticks

    How do I subtract twp price points and get the difference in ticks for a given instrument? Thanks!

    #2
    Hello pman777,
    Thanks for your post.

    I think that would be Difference/Ticksize

    Something like the following snippet:

    protected override void OnBarUpdate()
    {
    Print((High[0]-Low[0])/Instrument.MasterInstrument.TickSize);
    }
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      thanks Josh

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NeverDownMoney, Today, 02:42 PM
      3 responses
      11 views
      0 likes
      Last Post NinjaTrader_ChrisL  
      Started by localappleseed, Today, 02:20 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by asmmbillah, Today, 02:48 PM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by KacemRhaz, Today, 01:31 PM
      3 responses
      15 views
      0 likes
      Last Post NinjaTrader_ChristopherD  
      Started by ronaldgreene828, Today, 12:08 PM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Kate  
      Working...
      X