Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw objects are not shown when indicator added from strategy.

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

    Draw objects are not shown when indicator added from strategy.

    Literally, I am experiencing the same problem as this user.
    I've spent quite a while to read through docs and understand the issue, but still can't make it work.
    Is that bug or what we need to do?

    #2
    Hello ttodua,

    The post you linked is from 2016 and we would need to see what code you used to know if thats related. Could you make a sample that demonstrates what code you used and then post that with any steps needed to see that happen? We can research the problem but we would need the specific details on whats happening as this relates to code.

    One note from the other post is that the user did not call the indicator from OnBarUpdate, if the indicator requires State to work that will prevent it from working historically. This is noted in the AddChartIndicator page:

    Tip: If you are adding an indicator which is dependent on the correct State of the indicator, you will need to ensure that you are also calling the indicator from the strategy in OnBarUpdate(), otherwise your indicator will only process in State.RealTime for performance optimizations.
    Please let me know if I may be of additional assistance.

    Comment


      #3
      Thanks Jesse.
      calling "xyz.Update()" in OBU fixed the problem and make the indicator to appear.
      The only thing i wanted and couldnt, was unable to make it work with MBox indicator named MwaveChart. I don't know why it doesnt work with that indi, surely something logic inside that indicator, but how to override - i couldnt find that out.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X