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 SalmaTrader, 07-07-2026, 10:26 PM
            0 responses
            47 views
            0 likes
            Last Post SalmaTrader  
            Started by CarlTrading, 07-05-2026, 01:16 PM
            0 responses
            22 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 06-17-2026, 10:32 AM
            0 responses
            15 views
            0 likes
            Last Post CaptainJack  
            Started by kinfxhk, 06-17-2026, 04:15 AM
            0 responses
            21 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Started by kinfxhk, 06-17-2026, 04:06 AM
            0 responses
            23 views
            0 likes
            Last Post kinfxhk
            by kinfxhk
             
            Working...
            X