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 SalmaTrader, 07-07-2026, 10:26 PM
      0 responses
      29 views
      0 likes
      Last Post SalmaTrader  
      Started by CarlTrading, 07-05-2026, 01:16 PM
      0 responses
      17 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 06-17-2026, 10:32 AM
      0 responses
      9 views
      0 likes
      Last Post CaptainJack  
      Started by kinfxhk, 06-17-2026, 04:15 AM
      0 responses
      16 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 06-17-2026, 04:06 AM
      0 responses
      19 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X