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

Multi Time Frame Strat

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

    Multi Time Frame Strat

    Working with volume chart as my primary and 4hr(240min) as secondary, I can not seem to access the 4hr(240min) CURRENT open using Opens[1][0] Am I missing something? Its always accessing the bar thats completed ie prior to CURRENT bar thats being built/processed. I have CalculateOnBarClose to false as well.

    #2
    Hello midoriek4,

    Thanks for your note.

    Which instrument (including expiry if a future) are you using?

    I have tested this using the CL 06-13 instrument using the following print statement.
    Print(BarsInProgress + " - " + Opens[0][0] + " | " + Opens[1][0]);

    I am finding that it is showing the open of the current 240 minute bar as 90.97 and the open of the volume based bars (100 volume) as 90.61.


    I look forward to your reply.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Using ES ##-## I am wondering if this could be an issue. Also does it matter on session template being used?

      Comment


        #4
        Hello midoriek4,

        Thank you for that information.

        I have retested this using the ES ##-##.

        I am receiving the current open of the volume bar as 1583.25 and the open of the 240 minute bar as 1594.

        The session template will only have an impact here if the session templates for each data series does not match.

        Using Add(PeriodType.Minute, 240); will cause the secondary data series to use the session template of the primary data series. So I do not believe this would be an issue.

        Moving forward, I would need to see your code to understand what the issue may be.

        If you would like me to take a look at your code, please paste it in your reply. If you would like me to view this privately let me know and I will make arrangements for that.


        Let me know how you would like to proceed.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          My code is the same. Current open of the bar we are in now for 240min is 86.75 when using Opens[1][0] it prints to the output 92.75 which is the previous bar

          Comment


            #6
            Hello midoriek4,

            Without seeing the code you have written I can only tell you that I have opened a 240 minute chart. I am printing the value of the open of the second data series in the indicator, and it is matching the open of the current bar of the chart.

            As this is working correctly, I would imagine that there is something in your code that may be suspect.


            Please let me know how you would like to proceed.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Will send you a PM, please check.

              Comment


                #8
                Hello midoriek4,

                Thank you for sending the code.

                I have copied your code into an indicator and tested.

                I have two panels on my chart while testing this. In the first panel I have the ES ##-## 100 Volume. In the second panel I have ES ##-## 240 Minute. I also have a data box open so that I may look at the open of the bars.

                The print from your code is showing as "4hr Open 5/1/2013 3:15:00 PM1581.25". In the data box I am showing the forming bar to have an open of 1581.25.


                How are you doing your testing?

                May I have a screenshot of the chart and the output window together so that I may compare the values?

                To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.

                For detailed instructions please visit the following link
                http://take-a-screenshot.org/


                I look forward to your reply.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  check it out
                  Attached Files

                  Comment


                    #10
                    Hello midoriek4,

                    Thanks for the screenshot.

                    I would like to do a remote support session with you to investigate what is happening here.

                    Please send an email to suppor[at]ninjatrader[dot]com. In the body of the email please write Attn: Chelsea # 837306.

                    I look forward to receiving your email.
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      Also wanted to make you aware that I have issues with Daily bars, meaning if I use a session template say CME Index ETH, the bars do not reflect this template as well, I have had to use 1440min bars which is equal to a daily bar to respect the session template.

                      Comment


                        #12
                        Hi midoriek4,

                        Thank your for that information.

                        I have re-tested using the default 24/7 template, however, I am still using 100 vol on the primary and 240 minutes on the secondary.

                        I am still getting the proper open of the 240 minute bars.

                        I will address the issues of your session template during our session. Have you had a chance to send in an email to support with a reference to # 837306?
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          yes check the mail i sent it, waiting on you

                          Comment


                            #14
                            opps forgot the "t" in support, check now

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by cls71, Today, 04:45 AM
                            0 responses
                            1 view
                            0 likes
                            Last Post cls71
                            by cls71
                             
                            Started by mjairg, 07-20-2023, 11:57 PM
                            3 responses
                            213 views
                            1 like
                            Last Post PaulMohn  
                            Started by TheWhiteDragon, 01-21-2019, 12:44 PM
                            4 responses
                            544 views
                            0 likes
                            Last Post PaulMohn  
                            Started by GLFX005, Today, 03:23 AM
                            0 responses
                            3 views
                            0 likes
                            Last Post GLFX005
                            by GLFX005
                             
                            Started by XXtrader, Yesterday, 11:30 PM
                            2 responses
                            12 views
                            0 likes
                            Last Post XXtrader  
                            Working...
                            X