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

Possible error when removing tab with strategy

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

    Possible error when removing tab with strategy

    Not sure if this is a bug or we are doing something wrong, so please let me know either way?

    I am using NT8 8.0.4.0

    I have a strategy that uses the ChartControl to plot on the chart

    I open a chart with 2 tabs, add the strategy onto one of the tabs
    When I close that tab, the ChartControl object is null.

    Attaching a file that demonstrates what I am doing.
    To reproduce

    1. Open new chart
    2. Add tab so now you have two tabs open
    3. Add strategy to both tabs
    4. Remove tab

    You should see message in Output window that says ""!!! Error - ChartControl == null !!!"
    Attached Files

    #2
    Hello onnb1,

    Thanks for opening the thread.

    I have tested your script and I am encountering the same message that you are reporting.

    At this point, yes we are observing that ChartContol is getting set to null before State.Terminated is called after the close of a tab. The definitive answer is this is not documented and cannot be noted as expected or unexpected. It may change later down the line by the development team.

    None the less, thanks for bring this up.

    Documented and expected behaviors will be documented in the help guide. If you find something is behaving contrary to how it is described in the help guide, please let me know.

    ChartControl - http://ninjatrader.com/support/helpG...artcontrol.htm

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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    2 views
    0 likes
    Last Post Javierw.ok  
    Started by timmbbo, Today, 08:59 AM
    2 responses
    10 views
    0 likes
    Last Post bltdavid  
    Started by alifarahani, Today, 09:40 AM
    6 responses
    40 views
    0 likes
    Last Post alifarahani  
    Started by Waxavi, Today, 02:10 AM
    1 response
    18 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Kaledus, Today, 01:29 PM
    5 responses
    15 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X