Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Reload ninjascript and reset variable

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

    Reload ninjascript and reset variable

    hi, i do a code complex...
    i note that when i reload ninjascript.....the result sometimes change..
    is possibile?
    when i reload ninjascript the variable, class.....it will reset? or not?


    thanks

    #2
    Hello turbofib, and thank you for your question.

    Reloading NinjaScript will in fact reset your strategy or indicator, running through the code in OnStateChange again. Since Ninja must simulate the actions of the trade desk for your historical data, it is possible for inconsistencies between reloads to occur.

    Please let us know if there are any other ways we may help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      hi, i execute some test...

      i reset all variable in OnStateChange(), but sometimes when i reload script...it change over the previous..

      It could be a problem to erase the previous rendering?

      Comment


        #4
        So that we may narrow down what is occurring, could you send before and after screenshots?

        To send a screenshot with Windows 7 or newer I would recommend using Window's Snipping Tool.
        Click here for instructions
        Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
        Click here for detailed instruction
        Jessica P.NinjaTrader Customer Service

        Comment


          #5
          when i apply indicator......i do a pics (after 30 second)...this is nt8_1

          after i reload script......this is nt8_2...

          See Lowest bar..
          Attached Files

          Comment


            #6
            Thank you for this additional information. Would it also be possible to provide a simplified version of your strategy which produces similar behavior?
            Jessica P.NinjaTrader Customer Service

            Comment


              #7
              no, i don't have a simplified version (it's indicator.....not strategy)

              Comment


                #8
                We can work without this information. Could you attempt to use your indicator with the playback connection, rewinding and replaying over the same section of data, and let us know if you get inconsistent results?

                This help guide page has instructions regarding the playback connection.



                If this works with the playback connection, this means that your indicator is working reliably and as expected. If it is not consistent with the playback connection, please let us know so we may investigate further.
                Jessica P.NinjaTrader Customer Service

                Comment


                  #9
                  i think the problem is this error :



                  how i resolve it?..

                  I read this thread : http://ninjatrader.com/support/forum...ad.php?t=89338 ..but i don't understand what i doing to solve it

                  Comment


                    #10
                    Please send me your log and trace files so that I may look into what occurred.
                    You can do this by going to the Control Center-> Help-> Mail to Platform Support.
                    Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
                    Please reference the following ticket number in the body of the email: 1601120
                    Jessica P.NinjaTrader Customer Service

                    Comment


                      #11
                      i must to send you 5 file...
                      i can't use email ninjatrader support...

                      Can you give me an other address? i send it by email

                      Comment


                        #12
                        Definitely. We can be reached at platformsupport[at]ninjatrader[dot]com , referencing Attn:NinjaTrader_JessicaP and 1601120 in the subject line of your e-mail.
                        Jessica P.NinjaTrader Customer Service

                        Comment


                          #13
                          Hello turbofib,

                          After carefully reviewing your log and trace files and trying some experiments on my end, what is occurring is that you are modifying a Direct2D element that should be static. This is often caused, for example, by re-using a Direct2D element that should be frozen. You will need to review your code near where you use elements such as Brushes and RenderTargets. This section of the help guide should help you get started debugging.



                          Please let us know if there are any other ways we can help.
                          Jessica P.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by ursavent, Today, 12:54 PM
                          0 responses
                          2 views
                          0 likes
                          Last Post ursavent  
                          Started by Mizzouman1, Today, 07:35 AM
                          3 responses
                          17 views
                          0 likes
                          Last Post NinjaTrader_Gaby  
                          Started by RubenCazorla, Today, 09:07 AM
                          2 responses
                          13 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          Started by i019945nj, 12-14-2023, 06:41 AM
                          7 responses
                          82 views
                          0 likes
                          Last Post NinjaTrader_ChelseaB  
                          Started by timmbbo, 07-05-2023, 10:21 PM
                          4 responses
                          158 views
                          0 likes
                          Last Post NinjaTrader_Gaby  
                          Working...
                          X