Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi time frame use

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

    Multi time frame use

    Hello
    I have programed a strategy on an 50 sec basis but I would like to add a specific filter based on a daily basis.
    But each time I add the daily time frame to my current 50 sec strat, it does not work on the graph as it does not enable a backtest
    Is there anything specific to know about this?
    Thank you

    #2
    Hello Kamala,

    Are you ensuring that your actions are happening on the correct BarsInProgress?
    https://ninjatrader.com/support/help...inprogress.htm

    Are you checking there is at a least one bar of each series?
    https://ninjatrader.com/support/help...urrentbars.htm

    What is the full error message you are getting?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi

      I have no specific error message it is simply that the strategy is not enabled on my chart...
      I have read your links but the problem is that I am only using the wizard and I am not familliar with the code.
      Is there anything I should do with the wizard to enable multi time frame strategy so that it works?
      Thank you

      Comment


        #4
        Hello Kamala,

        Are you adding the strategy to a chart?

        Is Enabled set to true?

        Below is a publicly available link to a forum post with helpful information about getting started with NinjaScript.

        The link to the Strategy Builder 301 course demonstrates how to enable a strategy.
        http://ninjatrader.com/support/forum...609#post503609
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello

          Yes it is set to true...

          Comment


            #6
            Hello Kamala,

            Is the strategy showing with the Enabled box checked on the Strategies tab of the Control Center?

            If so, then the strategy is enabled.
            I would recommend using prints to find why the strategy is not placing orders.

            Below is a link to forum thread about using prints to understand behavior.
            http://ninjatrader.com/support/forum...979#post510979

            If not, then likely the strategy is not being enabled and you should check for errors in the Log tab of the Control Center.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Please look at the attached print screen, because my program is working properly untill I ad another time frame and it suddenely stop working by automatically disabling my strategy
              Thank you for your help
              Attached Files

              Comment


                #8
                Hello Kamala,

                You are confirming that there is an error that is causing the strategy to be disabled, correct?

                What is the full error message on the Log tab of the Control Center?

                What version of NinjaTrader are you using? (Help -> About.. e.g. 8.0.X.X)
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  I have no error message, but when I check the box to enable the strategy, it remains enabled approximately 5 sec and then automatically disabled.
                  This happens only when I ad another timeframe to the one I am using otherwise tere is no problem
                  I a using ninja 8.0.5.2 64-bit (Multi-Broker)

                  Comment


                    #10
                    Hello Kamala,

                    Currently NinjaTrader 8 is on 8.0.12.0.

                    In the older versions of NinjaTrader 8, the Strategy Builder did not check that CurrentBars[0] is greater than 1. This was corrected in later versions.

                    Are you using the Strategy Builder with an older version of NinjaTrader 8 to add secondary series?

                    If so, you will need to unlock the script and add a check that all series have enough bars or the strategy will cause an indexing error to appear in the Log tab of the Control Center and the script will become disabled.

                    If no current bar check is done for the secondary series an indexing error will occur.

                    Below is a publicly available link to the help guide on CurrentBars.
                    https://ninjatrader.com/support/help...urrentbars.htm

                    Likely, there is an error in the Log tab of the Control Center that you are not seeing. Are you able to see in the Log tab of the Control Center the line where the strategy has become disabled?
                    Chelsea B.NinjaTrader Customer Service

                    Comment


                      #11
                      I have no idea how to find where the error is coming from
                      I have updated my plateform to the last version and this is still not working at all

                      Comment


                        #12
                        Hello Kamala,

                        If you have updated to 8.0.12.0, you would need to create a new strategy.

                        Errors can be found on the Log tab of the Control Center.

                        The error is likely an indexing error. An index is being used before the secondary series has any bars.

                        For example:
                        if CurrentBars is 1 and Print(Close[2]); is called, there will not be a bar 2 bars ago and an index error will occur and the script will become disabled.

                        To prevent the error, the script must prevent any indexes from being used until CurrentBars[0] is greater than the index used and CurrentBars[1] is greater than the index used.

                        Below is a publicly available link to the help guide on CurrentBars that includes a code example.
                        https://ninjatrader.com/support/help...urrentbars.htm
                        Chelsea B.NinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by MaybellMcKee, Today, 10:18 PM
                        0 responses
                        3 views
                        0 likes
                        Last Post MaybellMcKee  
                        Started by Lance El Camino, Today, 04:14 PM
                        1 response
                        12 views
                        0 likes
                        Last Post s.kinra
                        by s.kinra
                         
                        Started by jtrading82, Today, 04:56 PM
                        1 response
                        6 views
                        0 likes
                        Last Post NinjaTrader_ShawnB  
                        Started by dmking, Today, 06:00 PM
                        1 response
                        6 views
                        0 likes
                        Last Post NinjaTrader_EricB  
                        Started by WHICKED, Today, 03:23 PM
                        1 response
                        12 views
                        0 likes
                        Last Post NinjaTrader_ChelseaB  
                        Working...
                        X