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 aussugardefender, Today, 01:07 AM
          0 responses
          3 views
          0 likes
          Last Post aussugardefender  
          Started by pvincent, 06-23-2022, 12:53 PM
          14 responses
          238 views
          0 likes
          Last Post Nyman
          by Nyman
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          9 responses
          384 views
          1 like
          Last Post Gavini
          by Gavini
           
          Started by oviejo, Today, 12:28 AM
          0 responses
          4 views
          0 likes
          Last Post oviejo
          by oviejo
           
          Started by pechtri, 06-22-2023, 02:31 AM
          10 responses
          125 views
          0 likes
          Last Post Leeroy_Jenkins  
          Working...
          X