• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

add text on the chart..

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

    add text on the chart..

    Hi,
    Can please someone help me change the following indicator to just plot 3 values on the chart at show in the pic.

    Thanks in advance
    Bill
    Attached Files

    #2
    Hello,
    You could plot the High, Low, and Close in the upper left hand corner of the chart by creating a draw text object using DrawTextFixed(). I have provide an example of how you could do this below:

    Code:
    protected override void OnBarUpdate()
    {
    	DrawTextFixed("Drawing", "Close: " + Close[0] + "\r\n" + "Low: " + Low[0] + "\r\n" + "High: " + High[0] , TextPosition.TopLeft);
    			
    }
    If we can be of any other assistance please let us know.
    Cody B.NinjaTrader Customer Service

    Comment


      #3
      Does not print anything

      Hi Cody,
      Thanks for send the code. But indicator still does not print anything. Here is indie and output. Can you please help me fix it.

      Regards
      Bill
      Attached Files

      Comment


        #4
        Hello,
        In the code I see that you have DrawOnPricePanel set to false. For the DrawObject to appear in the price panel you will need to set this to true. After changing this in your code I was able to get the indicator to plot the DrawTextFixed() object correctly.
        For more information on the DrawOnPricePanel property please see the following link: http://ninjatrader.com/support/helpG...pricepanel.htm

        Please let us know if we can be of any other assistance.
        Cody B.NinjaTrader Customer Service

        Comment


          #5
          Thanks Cody...really appreciate your help. I will try when I get home today.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Krossaren96, Today, 02:36 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_JoshG  
          Started by Rafmed, 01-28-2019, 11:01 PM
          8 responses
          87 views
          0 likes
          Last Post aligator  
          Started by priceisking, Today, 01:15 PM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by 2sureshk, Today, 07:29 AM
          1 response
          18 views
          0 likes
          Last Post NinjaTrader_Kate  
          Started by frayrengytrader, Today, 10:58 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_SergeyS  
          Working...
          X