Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Wizard causing error

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

    Strategy Wizard causing error

    Hello

    I just started to create a skeleton of a strategy using the strategy wizard. When I clicked "Finish" to go to the code, it said there was an error in creating the code. I was not able to do anything to work around that until I restarted NinjaTrader completely. Then it finally did unlock it. But when I attempted to compile it, I got another error. (I did not write any of my own code in it yet - it is currently only Wizard code).

    Attached is a screenshot of the errors showing and the lines that they refer to.

    I have never had this problem before. The only thing that I am doing differently now than other times is that I am using my laptop to create this on a free version of NT rather than my desktop using the multi broker lifetime license. Otherwise, everything else that I am doing is exactly the same.

    Thank you very much for any help that you are able to provide.

    #2
    Hello jg123,

    Thank you for your post.

    Can you re-attach the screenshot to your response?

    Comment


      #3
      oh, that is odd. It disappeared. haha

      or I just didn't actually attach it....

      no idea

      but anyway, here it is (again)
      Attached Files

      Comment


        #4
        Hello jg123,

        Thank you for your response.

        Line 56 has (); which is not valid. Try deleting this and creating a new strategy and advise if there are any errors.

        Comment


          #5
          That worked. Thanks!

          Would you have any idea why the Wizard would have automatically put that there if it wasn't valid?

          Comment


            #6
            Hello jg123,

            I do not know why that would occur. Do you see the same item when creating a new strategy through the wizard?

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            81 views
            1 like
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            42 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            64 views
            2 likes
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            68 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            55 views
            0 likes
            Last Post CarlTrading  
            Working...
            X