Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referencing ChartControl.Charstyle cause Error

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

    Referencing ChartControl.Charstyle cause Error

    Hello Support,

    I have an Indicator which is working. I get my strategy to use this indicator and on calling OnBarUpdate NT reports error due to reference not set to instance object. After troubleshooting I found offending statement is a test (ChartControl.ChartStyleType == ChartStyleType.CandleStick).

    Your beta release note 16 reported the issue (#3717) but for call in OnTermination(), which has been fixed. I tried to work-around testing it at initialize. But NT reports the same error, saying failed to call method 'Initialize'. So for now I comment out the statement, and strategy is running with no issue.

    Kindly advise if this is a known issue. Is it going to be fixed? Is there any work-around?

    Thanks.
    Best regards,
    Edward K.

    #2
    Hello Edward,
    To assist you further can you please send a toy NinjaScript code* replicating the behavior to support[AT]ninjatrader[DOT]com

    Please append Attn:Joydeep in the subject line of the email and give a reference of this thread in the body of the email.

    I look forward to assisting you further.

    *The "toy" just means something that is a stripped down version that isn't necessarily the whole logic. It makes things easier to rout out.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Hello Joydeep.

      I modified SMA indicator adding the offending statement, and a sample strategy using the SampleSMA. The issue appears. You can try the offending statement at Initialize() too.

      Has sent over to support address. Kindly look into it.

      Thanks.

      Best regards.
      Edward K.

      Comment


        #4
        Hello Edward,
        This is to confirm I have received your email and have replied back to it.
        JoydeepNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sjsj2732, Yesterday, 04:31 AM
        0 responses
        33 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        286 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        285 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        133 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        91 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X