NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-26-2011, 01:12 PM   #1
dkelly
Member
 
Join Date: Jan 2008
Posts: 48
Thanks: 0
Thanked 0 times in 0 posts
Default DrawText low price of bar

The following line of code draws the word "low" under a bar low. Is there
any way to have it draw the price of the low under the bar, instead of the word
"low"?

DrawText("tag1" + CurrentBar, "low", 0, Low[0]- TickSize, Color.Black);
dkelly is offline  
Reply With Quote
Old 04-26-2011, 01:28 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello dkelly,

Yes, you can do this with:
DrawText("tag1" + CurrentBar, Low[0].ToString(), 0, Low[0]- TickSize, Color.Black);
NinjaTrader_RyanM is offline  
Reply With Quote
Old 04-26-2011, 01:42 PM   #3
dkelly
Member
 
Join Date: Jan 2008
Posts: 48
Thanks: 0
Thanked 0 times in 0 posts
Default

Thankyou for the quick response. That does exactly what I want. Thanks again.
dkelly is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Plot text above bar high and below bar low TrendTracker Indicator Development 3 01-24-2011 07:05 PM
Show the price marker in a different color when the price is a new low or a new high. vanguard_xie Charting 1 06-13-2010 07:35 AM
High and Low of previous bar and actual bar Fernando Miscellaneous Support 1 03-18-2009 10:54 AM
Drawtext Right of newest bar monpere General Programming 8 10-27-2008 05:47 AM
Stop Loss @ Low/High of Entry Bar minus one Bar SamIam Strategy Development 5 08-29-2007 03:55 AM


All times are GMT -6. The time now is 09:00 PM.