![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2007
Location: , ,
Posts: 180
Thanks: 0
Thanked 1 time in 1 post
|
Do you have any sample code examples of the long version of this indicator? I'm looking for the syntax for font. Thx.
|
|
|
|
|
|
#2 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,164
Thanks: 6
Thanked 46 times in 32 posts
|
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2007
Location: Fairfax, VA
Posts: 216
Thanks: 0
Thanked 0 times in 0 posts
|
This is what I use:
Font f = new Font("Arial", 14, GraphicsUnit.Point); |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Jan 2007
Location: , ,
Posts: 180
Thanks: 0
Thanked 1 time in 1 post
|
That gave me what I needed. Thanks for making the effort Pete.
|
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Mar 2008
Posts: 731
Thanks: 0
Thanked 1 time in 1 post
|
For anyone else looking for an example:
Code:
DrawTextFixed("Description",Instrument.MasterInstrument.Description , TextPosition.TopRight, Color.Black, textFont, Color.Transparent, Color.Transparent, 100);
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |