Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy causing ninja 8 to crash?

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

    Strategy causing ninja 8 to crash?

    Hi

    First post and I cannot see anything that deals with my particular issues.

    I am new to NJ8, about 4 weeks, and have started to create indicators and strategies within ninja 8 script.
    (I have created these in other platforms such as TradeStation so I am not a complete newbie to creating strats and inds.)

    I have created a few of these already and there have been nothing unusual happening apart from my lack of programming knowledge within the scripting environment. However, I have one strategy I am just developing that is causing immense frustration as it keeps crashing ninja completely.

    I have windows 10 and have tried this code on a windows 7 system without any of the same issues. Even when I code out 90% of my code it may run for a few minutes and then crash. I have also created an exception within my antivirus software in case that is causing a conflict.

    I have tried using VS as a debugger but again it crashes without actually showing me where the crash occurred.

    I am wondering if there are any potential software conflicts that may be happening and was looking for any help or advice that could point me in a direction.

    Any help or ideas will be greatly appreciated.

    Thanks in advance

    #2
    Hello fishbed,

    Thanks for posting,

    From what has been explained I couldn't say that any software may be affecting the platform. Do you happen to have a sample I could try on my end to see if I get the same result? As you noted that this does not occur on windows 7 but does on windows 10, I also use windows 10 so in theory, I should be able to see this as well if it is something with the windows version.

    Outside of testing this myself, I could suggest to further comment the code out mainly any logic you have in OnBarUpdate or OnRender. Just make a shell that does nothing basically. Then run this test, if it is able to run longer then you could uncomment the next piece of code and continue etc.

    Another approach would be to check that the existing samples all work the period of time needed to crash. if so, create a new empty strategy and gradually move your logic to the new file.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      still crashing

      Hi Jesse

      Thanks for coming back with this.

      I had a strategy sent to me by one of your colleagues an NT doing exactly as you said. It only printed the current bar.

      I ran it in the strategy analyser as requested and everything was fine.

      When I attached it to a chart and ran it then it caused NT to crash completely.

      It is really starting to get on my nerves, but there must be a logical reason.

      I am in communication with your support people at the moment and will continue in that direction.

      Thanks for your help and if you can think of anything else please let me know.

      Regards

      Comment


        #4
        NinjaTrader crashing

        Hi Jesse

        Everything appears to be working normal at the moment.

        I think there may have been a conflict with my Avast Pro Antivirus software.

        When I disabled the antivirus everything ran with no problems and is still doing so after 20 minutes. Before I was crashing immediately.

        I have restarted my antivirus and everything is still OK I believe the exception I put in the antivirus for NT is now working and the conflict no longer occurs.

        Keeping my fingers crossed that this is all there was to it....

        Comment


          #5
          Hello,

          Thank you for replying.

          I am glad you were able to work out what may be the root cause. If you are still having difficulties after testing please ensure to let us know.

          I look forward to being of further assistance.
          JesseNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by space_trader, Today, 12:52 AM
          0 responses
          5 views
          0 likes
          Last Post space_trader  
          Started by soon123, Today, 12:18 AM
          0 responses
          3 views
          0 likes
          Last Post soon123
          by soon123
           
          Started by AxelrodWins, Yesterday, 07:07 PM
          1 response
          3 views
          0 likes
          Last Post NinjaTrader_Marco  
          Started by StockJock, Yesterday, 11:05 PM
          0 responses
          12 views
          0 likes
          Last Post StockJock  
          Started by jc.am, Yesterday, 07:59 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_EricB  
          Working...
          X