Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    BertrandNinjaTrader Customer Service

    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 FrazMann, Today, 11:21 AM
      0 responses
      3 views
      0 likes
      Last Post FrazMann  
      Started by geddyisodin, Yesterday, 05:20 AM
      8 responses
      52 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      10 responses
      36 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by DayTradingDEMON, Today, 09:28 AM
      4 responses
      24 views
      0 likes
      Last Post DayTradingDEMON  
      Started by George21, Today, 10:07 AM
      1 response
      19 views
      0 likes
      Last Post NinjaTrader_ChristopherJ  
      Working...
      X