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

Holiday Problem - ES

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

    Holiday Problem - ES

    Hey guys I'm having an issue with my strategies (only forward testing on SIM101 right now). My strategies have suddenly frozen I think because yesterday was a Holiday. The same thing happened on December 26th because Christmas was a holiday and I think its because the previous day contains no data. When I view the chart for ES, all the data seems to be coming in just fine this morning on the Tick BetterRenko chart. I have the program set to do a "Print 4am, ES pice xx.xx" and "Print 8am, ES pice xx.xx", etc just to make sure that its active but this morning those did not occurr. Any idea how to wake it up? My session for ES starts at 3:58 AM.

    Thanks,
    EliteTraderNYC

    #2
    Hello EliteTraderNYC,

    Can you try this on a normal Renko chart to see if the same thing happens?
    JCNinjaTrader Customer Service

    Comment


      #3
      Hi sir, the renko chart works just fine - so does the betterrenko, but its the strategy print statements that have seemed to have frozen which makes me think strategy itself might not be executing but I'm not sure.

      Comment


        #4
        Hello EliteTraderNYC,

        If you set to Strategy to use the "Renko" bar type are you able to see Print statements inside of the Output Window?
        JCNinjaTrader Customer Service

        Comment


          #5
          Hi, i activated two strategies with Renko type bars and no print statements occurred.

          Comment


            #6
            To give you an example of the print statement, its simply something like:

            if((ToTime(Time[0])>080200)&& a4flag == 0)
            {
            Print("8am check strategy long side working + Time[0]);
            a4flag = 1;
            }

            Comment


              #7
              Hey guys I also tried reloading the data and reactivating the strategies, but that did not help the situation. Any other ideas?

              Comment


                #8
                Hello EliteTraderNYC,

                Are you checking your "a4flag" to see if it is 0 as you would expect?

                Alternatively you may want to separate out your conditions as I able to get a strategy to Print using "if(ToTime(Time[0])>080200)" for a check. For example:

                Code:
                if(ToTime(Time[0])>080200)
                {
                       Print("Its past 8am and a4flag equals "+a4flag);
                       if(a4flag == 0)
                       {
                               Print("8am check strategy long side working + Time[0]);
                               a4flag = 1;
                        }
                }
                So this way you can see if your strategy is being processed or if the "a4flag" is not returning what you would expect.
                JCNinjaTrader Customer Service

                Comment


                  #9
                  Ha! Thanks thats it, the markets opened at 6am today, not 4AM as usual. Got it.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by The_Sec, Yesterday, 03:53 PM
                  1 response
                  12 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by mmenigma, Yesterday, 03:25 PM
                  1 response
                  11 views
                  0 likes
                  Last Post NinjaTrader_Gaby  
                  Started by kujista, Today, 05:44 AM
                  0 responses
                  7 views
                  0 likes
                  Last Post kujista
                  by kujista
                   
                  Started by ZenCortexCLICK, Today, 04:58 AM
                  0 responses
                  9 views
                  0 likes
                  Last Post ZenCortexCLICK  
                  Started by sidlercom80, 10-28-2023, 08:49 AM
                  172 responses
                  2,282 views
                  0 likes
                  Last Post sidlercom80  
                  Working...
                  X