Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enum Problem

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

    Enum Problem

    The attached code will be imported as strategy "EnumProblem". When you access it or apply it, the INITIALIZATION code does not complete. This is pretty simple stuff and it is going off into the forest. Help!!

    Thanks,

    RVR
    Attached Files

    #2
    Sorry, due to bandwidth reasons we are unable to provide support down to the level of actually coding strategies/indicators.

    Hint: I suggest trying to apply try/catch blocks in order to trap potential exceptions. Please consult the MS docs for details.
    DierkNinjaTrader Customer Service

    Comment


      #3
      Deirk:

      My strategy compiled successvely, executed without error and terminated prematurely with no error message. This is a problem for the NinjaTrader deveolpment folks. I can't solve my problem by reading more documentation -- I already have.

      Thanks,

      RVR

      Comment


        #4
        If your strategy does not make it down to the last statement in the Initialize() method then there is a problem with your code in which event you would need to debug as per below.

        Not sure why you think this would be a problem "for the NinjaTrader deveolpment folk". At frist glance this code
        BigStuff[0] = BigParameter;
        certainly will fail since there is no array allocated yet.

        Also: Please check the logs in case your strategy does not work as expected.
        DierkNinjaTrader Customer Service

        Comment


          #5
          Deirck

          Please click on the "+" sign in the Variables Region and you will see that BigStuff is defined. If you click on the "+" sign in the Properties Region you will see that BigParameter is defined. If these, or any other things, were not defined I would have received error messages.

          Everything is defined. The compiler found no errors. When I (or you) select or Apply the strategy there is no error indicator -- but the strategy does not completely execute. This is a problem for the NinjaTrader development folks.

          Thanks,

          RVR

          Comment


            #6
            Incorrect. Even as the compiler does not find any error, your code still might have logic flaws which is the case in this event (please see my prior post on the bug in "BigStuff[0] = BigParameter").
            DierkNinjaTrader Customer Service

            Comment


              #7
              Dierk,

              Sorry, I didn't see the message in the Log. I'm new to NinjaTrader but not new to programming.

              Thanks for the quick help and your patience.

              RVR

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by vantojo, Today, 06:46 AM
              0 responses
              3 views
              0 likes
              Last Post vantojo
              by vantojo
               
              Started by sidlercom80, Today, 02:40 AM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_PaulH  
              Started by b16_aln, Today, 01:52 AM
              0 responses
              14 views
              0 likes
              Last Post b16_aln
              by b16_aln
               
              Started by junkone, Yesterday, 08:55 PM
              2 responses
              13 views
              0 likes
              Last Post junkone
              by junkone
               
              Started by adaeiqendqw, 01-16-2021, 02:56 AM
              1 response
              17 views
              0 likes
              Last Post NinjaTrader_Jason  
              Working...
              X