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 pechtri, 06-22-2023, 02:31 AM
          10 responses
          124 views
          0 likes
          Last Post Leeroy_Jenkins  
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Yesterday, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Yesterday, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Yesterday, 03:01 PM
          2 responses
          22 views
          0 likes
          Last Post helpwanted  
          Working...
          X