NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 01-18-2007, 08:46 AM   #1
SuzyG
 
Join Date: Nov 2006
Location: , ,
Posts: 66
Thanks: 0
Thanked 0 times in 0 posts
Post imported post

Can I get the location, color,time, typeinformation of an object, such as a diamon, drawn on the chart by an indicator that uses a Draw Method?
SuzyG is offline  
Reply With Quote
Old 01-18-2007, 09:00 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
Post imported post

This is not possible.

Ray
NinjaTrader_Ray is offline  
Reply With Quote
Old 05-22-2008, 01:28 PM   #3
martyn21358
Junior Member
 
Join Date: Apr 2008
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Question Formating test

Is there an example of how to set font,bg color .bold etc. in ninja script
martyn21358 is offline  
Reply With Quote
Old 05-22-2008, 01:37 PM   #4
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Not sure what exactly you are looking for. The methods to draw objects usually have parameters to set color etc. See e.g. DrawText: http://www.ninjatrader-support.com/H.../DrawText.html
NinjaTrader_Dierk is offline  
Reply With Quote
Old 06-12-2013, 08:45 PM   #5
Jacka777
Junior Member
 
Join Date: Mar 2010
Posts: 12
Thanks: 0
Thanked 0 times in 0 posts
Question how to drawtext bigger?

Hi all,

Im doing a drawtext on the indicator but the text is very very small on the chartl. how do I make the text bigger?

if (Rising(SMASlow))

{

DrawText("text" +0, " 1 Min 50ma".ToString() , 0 ,SMASlow[0] , Color.Black);


}

Thanks
Jack
Jacka777 is offline  
Reply With Quote
Old 06-13-2013, 02:03 AM   #6
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,555
Thanks: 261
Thanked 1,013 times in 994 posts
Default

Jack, please use one of the more advanced overloads for DrawText available that would let you specifiy a font input of your choosing, this would include font type and size -

DrawText(string tag, bool autoScale, string text, int barsAgo, double y, int yPixelOffset, Color textColor, Font font, StringAlignment alignment, Color outlineColor, Color areaColor, int areaOpacity)
NinjaTrader_Bertrand 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


All times are GMT -6. The time now is 10:29 PM.