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

Enter at the Open of Next Bar

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

    Enter at the Open of Next Bar

    Hello. Can you please tell me how to Enter at the Open of the Next Bar, once the Moving Averages Cross.

    I am using a Moving Average Cross strategy.
    • Once the Moving Averages Crosses, I would like to enter at the Open of the next bar (or current bar).

    I am using the Strategy Builder, and have attached what I have so far.

    Please see attached pics.

    Thank You!


    #2
    Hello geotrades,

    Thank you for your post.

    If you want to enter on the open of the next bar, you would need to use Calculate.OnEachTick and the IsFirstTickOfBar property.

    IsFirstTickOfBar returns true if the incoming tick is the first tick of a new bar.



    Please let us know if you have any further questions.
    Gaby V.NinjaTrader Customer Service

    Comment


      #3
      Thank you Gaby!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by anton_tymoshchuk, Yesterday, 01:14 AM
      4 responses
      24 views
      0 likes
      Last Post anton_tymoshchuk  
      Started by percy3687, Today, 12:28 AM
      0 responses
      7 views
      0 likes
      Last Post percy3687  
      Started by sofortune, Yesterday, 11:45 PM
      1 response
      8 views
      0 likes
      Last Post sofortune  
      Started by zzeric, Yesterday, 11:23 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by Pep de lou, Yesterday, 08:14 PM
      2 responses
      25 views
      0 likes
      Last Post bltdavid  
      Working...
      X