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

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 FrancisMorro, Today, 03:24 AM
          0 responses
          1 view
          0 likes
          Last Post FrancisMorro  
          Started by Segwin, 05-07-2018, 02:15 PM
          10 responses
          1,770 views
          0 likes
          Last Post Leafcutter  
          Started by Rapine Heihei, 04-23-2024, 07:51 PM
          2 responses
          31 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by Shansen, 08-30-2019, 10:18 PM
          24 responses
          944 views
          0 likes
          Last Post spwizard  
          Started by Max238, Today, 01:28 AM
          0 responses
          11 views
          0 likes
          Last Post Max238
          by Max238
           
          Working...
          X