Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

New Bar Open

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

    New Bar Open

    Is there a good way to call on the opening tick of a bar? I want to say

    if (newbar)
    //do something

    So far, the best way I came up with is high=low, however that remains for all ticks that trade at that level.

    #2
    Hello wallabee13,

    Thank you for your post.

    Using FirstTickOfBar you can determine if the incoming tick is the first tick of a new bar.
    For information on the FirstTickOfBar property please visit the following link: http://www.ninjatrader.com/support/h...ttickofbar.htm

    Please let me know if I may be of further assistance.

    Comment


      #3
      Well thanks, I probably spent 10 hours mulling over how to call the "firsttickofbar." Thanks Patrick.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Vietanhnguyen2hotmailcom, Yesterday, 10:29 AM
      4 responses
      23 views
      0 likes
      Last Post Vietanhnguyen2hotmailcom  
      Started by PhillT, 04-19-2024, 02:16 PM
      4 responses
      35 views
      0 likes
      Last Post PhillT
      by PhillT
       
      Started by ageeholdings, 05-01-2024, 05:22 AM
      5 responses
      37 views
      0 likes
      Last Post ageeholdings  
      Started by reynoldsn, Today, 02:34 PM
      0 responses
      13 views
      0 likes
      Last Post reynoldsn  
      Started by nightstalker, Today, 02:05 PM
      0 responses
      21 views
      0 likes
      Last Post nightstalker  
      Working...
      X