Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

ChartBars not valid when started from control center

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

    ChartBars not valid when started from control center

    I have a strategy that is running on a chart.
    I disable it by un-checking the Enable button in strategy tab of control center.
    Later I try to re-enable it by clicking on the 'Enable' button again of control center.

    However, this time the strategy does not start up the same way because there are Chart related objects that are not initialized in the same way or at the same time as they were when strategy first loaded.
    For example, my code references the ChartBars object. I understand that this object is not valid when the strategy is run from a non-gui environment. However, the strategy is attached to a chart, a gui environment. I also found that the ChartControl.Parent object is likewise not initialized as it was when the strategy was first loaded.

    Since the strategy is clearly running in a GUI environment, the GUI related objects should be valid.
    Seems like a bug.

    Gary

    #2
    Hello,

    Thank you for the post.

    Do you have a sample you can provide that demonstrates the problems you are having?

    If you can export a simple sample that just shows the object in question and where you are using it, along with steps to show the problem I can likely work out if it is a bug or expected. This would be an item I would likely need to be able to test and see the logic used to know what may be expected.

    Please let me know if I may be of further assistance
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Belfortbucks, Today, 09:29 PM
    0 responses
    3 views
    0 likes
    Last Post Belfortbucks  
    Started by zstheorist, Today, 07:52 PM
    0 responses
    7 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    150 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    6 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Working...
    X