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

NQ DAILY BAR issue in STRATEGY ANALYZER

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

    NQ DAILY BAR issue in STRATEGY ANALYZER

    hi guys.

    as you see in the pics, the position of opening, stoploss or take profit have shift (delayed) one bar earlier in the chart. i only encounter this when testing NQ daily strategy. Please Help! thanks!

    #2
    Hello kahei626,

    I'm seeing two different charts. The data on these charts are not the same.
    Different data would cause different results.

    One appears to be august the other appears to be january.

    Also, the Trading hours template is not set to <Use instrument settings> to use the trading hours set for the exchange of the selected instrument. Are you attempting to use custom Trading hours templates?

    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi,

      the above pics are the same strategies but just different time period. I have try <Use instrument settings> In trading hour . But it is still the same

      Comment


        #4
        The issue is you can see the line is not on the bars but in the “empty space”

        Comment


          #5
          Hello kahei626,

          I had misunderstood your inquiry.

          When you mention " the position of opening, stoploss or take profit have shift (delayed) one bar earlier in the chart", you are not talking about the orders showing on bar than you expect, instead you are asking about the orders filling outside of the bar, is this correct?

          Is there a secondary series added to this script?

          Are you using 8.0.21.0?
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            Yes , you got me. The take profit/stop loss is appear in the empty space. Yes,I m using the 8.0.21. All my indicators in the strategy is using daily

            Comment


              #7
              Hello kahei626,

              Is there a secondary series added to this script?
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                Yes in the script, but not in use by indicators . Do I need a delete it ?

                Comment


                  #9
                  Hello kahei626,

                  The orders may be filling on the secondary series.

                  Are you specifying the barsInProgress in the order methods?
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    I have removed all secondary series. But still the same issue

                    Comment


                      #11
                      Hello kahei626,

                      Without a secondary series, and when using 8.0.21.0, I would not be expecting order fills outside of the bar on a new test.

                      May I test the script on my end?

                      To export a NinjaTrader 8 NinjaScript so this can be shared and imported by the recipient do the following:
                      1. Click Tools -> Export -> NinjaScript...
                      2. Click the 'add' link -> check the box(es) for the script(s) and reference(s) you want to include
                      3. Click the 'Export' button
                      4. Enter a unique name for the file in the value for 'File name:'
                      5. Choose a save location -> click Save
                      6. Click OK to clear the export location message
                      By default your exported file will be in the following location:
                      • (My) Documents/NinjaTrader 8/bin/Custom/ExportNinjaScript/<export_file_name.zip>
                      Below is a link to the help guide on Exporting NinjaScripts.


                      Once exported, please attach the file as an attachment to your reply.
                      Chelsea B.NinjaTrader Customer Service

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by gentlebenthebear, Today, 01:30 AM
                      2 responses
                      13 views
                      0 likes
                      Last Post gentlebenthebear  
                      Started by Kaledus, Today, 01:29 PM
                      2 responses
                      8 views
                      0 likes
                      Last Post Kaledus
                      by Kaledus
                       
                      Started by frankthearm, Yesterday, 09:08 AM
                      13 responses
                      46 views
                      0 likes
                      Last Post frankthearm  
                      Started by PaulMohn, Today, 12:36 PM
                      2 responses
                      16 views
                      0 likes
                      Last Post PaulMohn  
                      Started by Conceptzx, 10-11-2022, 06:38 AM
                      2 responses
                      56 views
                      0 likes
                      Last Post PhillT
                      by PhillT
                       
                      Working...
                      X