Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing buttons on chart hides plots

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

    Drawing buttons on chart hides plots

    I am creating a strategy. When I am drawing buttons on the chart, it is hiding all the plots. If I comment out all the codes related to buttons, the plots become visible again. How do I draw buttons and plots at the same time? Please let me know if any additional information is needed.

    #2
    Hello fawzanalim,

    Thank you for the post.

    In general drawing buttons should not relate to plotting, do you have a sample of the code you had used?

    You can find a sample of adding some simple buttons to a chart here:



    I look forward to being of further assistance.

    Comment


      #3
      Thanks. But I found the source of the problem, and fixed it.

      It's the OnRender method. It hides all the plots unless you call base.OnRender() inside of OnRender method.

      Source:
      If you are using standard Plots along with custom rendering from an indicator or strategy, you will need to ensure to call the base.OnRender() method for those plots to display.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      23 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      120 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      63 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      41 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X