Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Simulation Fill on 15 minute bar

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

    Simulation Fill on 15 minute bar

    Let's say Bar[1] triggers a signal for a EnterLong

    On Bar[0] which is a 15 minute bar (a lot of gyrations can happen in 15 minutes...how does the simulator fill my EnterLong order?

    At the OPEN, HIGH, LOW, CLOSE?
    does it fill it at the 1st Tick or 1st Minute of the 15 min Bar time series?

    #2
    Hello Oil_Trader,

    It depends on what setting is used for 'Calculate on bar close'. If set to False, your strategy conditions will be calculated on each incoming tick. If set to True, conditions are calculated at the close of a bar. The order would be sent at the open of the next bar. More information can be found at the link below.
    JasonNinjaTrader Customer Service

    Comment


      #3
      But for calculation of indicators? will it use the 15 minute bars? and not the tick bars?

      What if there are no ticks, it is just 1 minute bars?

      So only the orders that will apply to?

      Comment


        #4
        It will use the bars on which you apply the indicator. If you apply the indicator in a 1 minute chart, the indicator will use 1 minute bars for calculations. If applied on a 150 tick chart, it will use 150 tick bars for its calculations.
        JasonNinjaTrader Customer Service

        Comment


          #5
          I made CalculateOnBarClose = false;

          and it still calculates enter/exit position at the close of 15 minute bar.

          I need it to CalculateOnBarOpen for the Entry/Exit.

          is this possible?

          Comment


            #6
            Can you please tell me how you tested your strategy. Did you test it on real-time data or did you test it on historical data only (Strategy Analyzer)?
            JasonNinjaTrader Customer Service

            Comment


              #7
              NT7 Simulator Mode for testing

              The database has 1 minute data but the bars im using are 15 minute bars.

              Comment


                #8
                Can you please check if 'Calculate on bar close' is set to False in the Strategy parameter window (the window that appears when you initiate a strategy) as well.

                In addition, what happens if you test the SampleMACrossOver strategy with 'Calculate on bar close = False' in the same chart? Does it trigger orders only at the end of bars or intra-bar?
                JasonNinjaTrader Customer Service

                Comment


                  #9
                  Calculate on bar close' is set to False in the Strategy parameter window (the window that appears when you initiate a strategy) as well.

                  I dont see this on the parameter window?

                  Comment


                    #10
                    Do you see the option listed if you select the SampleMACrossOver strategy?

                    Does your custom strategy compile successful?
                    JasonNinjaTrader Customer Service

                    Comment


                      #11
                      Ok I see it but that's when you activate in on chart or control panel....not in the strategy analyzer...

                      where is it if i use the strategy analyzer?

                      yes my custom strategy is fine with the regular calculatebaronclose.
                      Last edited by Oil_Trader; 09-01-2010, 06:06 AM.

                      Comment


                        #12
                        I see - the Strategy Analyzer will only use historical data. I assumed you ran the strategy on real-time data.

                        The 'Calculate on bar close' setting is disregarded - your conditions will be calculated at the close of each bar in the Strategy Analyzer. Unfortunately there is no way to change this.
                        JasonNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by DanielTynera, Today, 01:14 AM
                        0 responses
                        2 views
                        0 likes
                        Last Post DanielTynera  
                        Started by yertle, 04-18-2024, 08:38 AM
                        9 responses
                        41 views
                        0 likes
                        Last Post yertle
                        by yertle
                         
                        Started by techgetgame, Yesterday, 11:42 PM
                        0 responses
                        12 views
                        0 likes
                        Last Post techgetgame  
                        Started by sephichapdson, Yesterday, 11:36 PM
                        0 responses
                        2 views
                        0 likes
                        Last Post sephichapdson  
                        Started by bortz, 11-06-2023, 08:04 AM
                        47 responses
                        1,615 views
                        0 likes
                        Last Post aligator  
                        Working...
                        X