Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strange situation with strategy names

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

    strange situation with strategy names

    Dear friends.
    I have create strategy which called "stohastic" and I try to run it at chart but I see the message in control center Failed to call method 'Initialize' for strategy 'rx300/086dab1f0aef4b91baca95fcce02ba55': 'CurrentBarArray' property can't be accessed from within 'Initialize' method

    Rx300 - is another strategy but I remove all active code from it. And error message appear only when I run strategy "stohastic".
    What is the reason of it?

    #2
    Hi daglas,

    Initialize() is called for all scripts, so errors in coding in one script can affect functionality for other scripts. You need to correct the error in RX300 before other scripts will work properly.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by daglas View Post
      Dear friends.
      I have create strategy which called "stohastic" and I try to run it at chart but I see the message in control center Failed to call method 'Initialize' for strategy 'rx300/086dab1f0aef4b91baca95fcce02ba55': 'CurrentBarArray' property can't be accessed from within 'Initialize' method

      Rx300 - is another strategy but I remove all active code from it. And error message appear only when I run strategy "stohastic".
      What is the reason of it?
      The error means what it says. You have tried to do something with a bar object in the Initialize() method. At that time, no bar objects exist yet that are accessible.

      Comment


        #4
        Originally posted by koganam View Post
        The error means what it says. You have tried to do something with a bar object in the Initialize() method. At that time, no bar objects exist yet that are accessible.
        ok, thx. I have fix the problem.

        Comment

        Latest Posts

        Collapse

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