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 CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      176 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      93 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      130 views
      0 likes
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      210 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      186 views
      0 likes
      Last Post CarlTrading  
      Working...
      X