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 Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,789 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,293 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          13 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          63 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X