NinjaTrader Support Forum  

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

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 04-02-2008, 07:50 AM   #1
BradB
Senior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 180
Thanks: 0
Thanked 1 time in 1 post
Default DrawTextFixed

Do you have any sample code examples of the long version of this indicator? I'm looking for the syntax for font. Thx.
BradB is offline  
Reply With Quote
Old 04-02-2008, 08:35 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
Default

Unfortunately not -

Try this - http://www.c-sharpcorner.com/UploadF...sandFonts.aspx
NinjaTrader_Ray is offline  
Reply With Quote
Old 04-02-2008, 10:01 AM   #3
Pete S
Senior Member
 
Join Date: Jul 2007
Location: Fairfax, VA
Posts: 216
Thanks: 0
Thanked 0 times in 0 posts
Default

This is what I use:

Font f = new Font("Arial", 14, GraphicsUnit.Point);
Pete S is offline  
Reply With Quote
Old 04-02-2008, 12:09 PM   #4
BradB
Senior Member
 
Join Date: Jan 2007
Location: , ,
Posts: 180
Thanks: 0
Thanked 1 time in 1 post
Default

That gave me what I needed. Thanks for making the effort Pete.
BradB is offline  
Reply With Quote
Old 04-18-2008, 08:12 PM   #5
Elliott Wave
Senior Member
 
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
Default

For anyone else looking for an example:

Code:
DrawTextFixed("Description",Instrument.MasterInstrument.Description , TextPosition.TopRight, Color.Black, textFont, Color.Transparent, Color.Transparent, 100);
Elliott Wave 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
DrawTextFixed not update as expected goover General Programming 2 03-04-2008 08:19 PM
DrawTextFixed rt-trader General Programming 5 01-21-2008 10:46 PM
DrawTextFixed Lost Trader General Programming 6 01-20-2008 12:32 AM
Bugs with DrawTextFixed and saving templates with configurable fonts Wizard Historical NinjaTrader 6.5 Beta Threads 4 12-12-2007 07:57 AM


All times are GMT -6. The time now is 08:21 PM.