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

First Bar of Session

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

    #16
    What I notice is in back testing it does not enter as soon as the session hi or lo is broken but after a close above the hi or below the lo. Can it be made to enter as soon as price crosses the hi or lo? Even though I have used the current price in the builder code.
    Thanks.

    Comment


      #17
      Hello Trader17,

      In historical data, Calculate is always set to OnBarClose.

      To trigger actions before a bar closes, it is necessary to trigger actions intra-bar which requires intra-bar granularity or TickReplay.

      Below is a link to a forum post that details.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #18
        So I need to make sure that Tick Replay is checked before I add the Strategy on a live chart to be able to take trades intra bar?
        Thanks.

        Comment


          #19
          Hello Trader17,

          Yes, you would need Tick Replay enabled in the Data Series window before enabling the strategy and you would need to set Calculate to either 'On each tick' or 'On price change'.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cre8able, Today, 03:20 PM
          0 responses
          5 views
          0 likes
          Last Post cre8able  
          Started by Fran888, 02-16-2024, 10:48 AM
          3 responses
          47 views
          0 likes
          Last Post Sam2515
          by Sam2515
           
          Started by martin70, 03-24-2023, 04:58 AM
          15 responses
          114 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by The_Sec, Today, 02:29 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by jeronymite, 04-12-2024, 04:26 PM
          2 responses
          31 views
          0 likes
          Last Post NinjaTrader_BrandonH  
          Working...
          X