Announcement

Collapse
No announcement yet.

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    50 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    126 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    69 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    42 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    46 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X