Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

error: onstate change method object reference not set to an instance of an object

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

    error: onstate change method object reference not set to an instance of an object

    i get this error when executing the simple strategy i built from ninjatrade. Please refer to the pics i attached, my strategy is just enter bullish limit order at close price of the candle. I did that with a “if” current candle close is greater than current candle open, which means a bullish candle, enter a buy limit, and a stop loss that is at the low of the current candle
    Attached Files

    #2
    Hello traderqz,

    Thank you for your post.

    Is this happening specifically when you use this Strategy Builder strategy?

    Have you unlocked this script from the Strategy Builder to edit the code in the NinjaScript Editor?

    If you test on a new workspace with a blank chart with no templates or indicators, are you still seeing this error?

    I look forward to you response.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X