Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Inconsistent script behaviour

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

    Inconsistent script behaviour

    I have a script that loads and then renders a bitmap.

    The issue with the script is that sometimes it runs properly, and sometimes there is an exception in this call:

    Bitmap.FromWicBitmap(this.RenderTarget, formatConverter);

    Both RenderTarget & formatConverter are valid objects.

    The script is not modified, however, next recompilation + refresh on Chart leads either to exception (~75%) or to normal work (~25%).

    This could be related to my code but may be you still would be interested to have a look?

    Also, on a side note - could you please add a minor visual signal indicating that script compilation is over? Something like a small build image in status bar, like VS has.
    Custom Trading System
    NinjaTrader Ecosystem Vendor - CustomTradingSystem

    #2
    Hello,

    We would definitely like to have a look, to make sure this isn't a bug occurring with the current beta build. Feel free to attach your script to this post, send it to me via private message, or email it to platform support and reference ticket # 1334263.

    Can you also tell me the full text of any error messages that are being thrown?

    I'll be happy to forward your suggestion to our team for consideration in the meantime.
    Dave I.NinjaTrader Product Management

    Comment


      #3
      Hi Dave,

      Will send the package shortly.

      The exception message was: Object reference not set to an instance of an object.

      Once I have seen "External component has thrown an exception." That crashed the chart (and then the whole application).
      Custom Trading System
      NinjaTrader Ecosystem Vendor - CustomTradingSystem

      Comment


        #4
        When I try to export the indicator I get this (see attachment)

        Would you mind to get a plain cs file instead?
        Attached Files
        Custom Trading System
        NinjaTrader Ecosystem Vendor - CustomTradingSystem

        Comment


          #5
          Script has been sent to support
          Custom Trading System
          NinjaTrader Ecosystem Vendor - CustomTradingSystem

          Comment


            #6
            Thank you -- I've got it. I will test it out on my end and see what I can discover. You should hear back from me soon.
            Dave I.NinjaTrader Product Management

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by manitshah915, Today, 12:59 PM
            0 responses
            2 views
            0 likes
            Last Post manitshah915  
            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  
            Working...
            X