Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

something to replace drawtext

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

    something to replace drawtext

    I have made an indicator where the drawtext function is used. I noticed the text drawn by the indicator is movable with the mouse. Also, during a trading session, there will be a lot text drawn on the chart, it will slow the pc down significantly. I added a piece of code to erase text drawn in a certain bars ago, it did help to run this indicator more smoothly.

    However, I would like to know whether it's possible to use another function to replace the drawtext, so that the text is not movable by mouse and it run faster thand drawtext.


    Thank you.


    Edit: Is there something like graphics.DrawString or graphics.Drawtext? If I use that to replace drawtext, will the study be less demanding on computer resource? How do I implement graphics.drawtext or graphics drawstring, is there coding example I can look into.
    Last edited by gamevoodoo; 04-26-2010, 09:12 PM.

    #2
    gamevoodoo, this can be done by overriding the default Plot() method - you can take a look into the CustomPlotSample we install per default.

    Comment


      #3
      The easiest way I know is using DrawTextFixed("your text here" ,TextPosition.TopRight );
      pmaglio
      NinjaTrader Ecosystem Vendor - The Indicator Store

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      605 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      351 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      560 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      561 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X