![]() |
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2011
Location: Ukraine
Posts: 146
Thanks: 19
Thanked 2 times in 2 posts
|
Dear friends.
I use DrawTextFixed, and I want to change font style. I want to change font size and change color. I have read manual, but when I try to use some font data I have troubles. Could you provide to me some sample? |
|
|
|
|
|
#2 | |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello daglas,
Thanks for writing in and I am happy to assist you. Please use the below overload to change the font size while drawing a DrawTextField Quote:
Please refer to this sample code which demonstrates how to change the font in the NinjaScript code. http://ninjatrader.com/support/forum...ad.php?t=19170
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2011
Location: Ukraine
Posts: 146
Thanks: 19
Thanked 2 times in 2 posts
|
Thanks for help.
I have try such construction DrawTextFixed("prob1","probability for range",x,TextPosition.TopLeft,Color.Green,largeFon t); And I have error message - DrawTextFixed can get 5 arguments. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
|
Hello daglas,
You have missed to define the outline color, area color and the opacity. Please modify your code to Code:
DrawTextFixed("prob1","probability for range",x,TextPosition.TopLeft,Color.Green,largeFont, Color.Blue, Color.Blue, 3);
Joydeep M.
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Joydeep for this post: |
|
|
|
#5 | |
|
Senior Member
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,179
Thanks: 178
Thanked 299 times in 257 posts
|
I count 9 parameters.
this x parameter makes no sense here, or in the original statements. Quote:
|
|
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Mar 2011
Location: Ukraine
Posts: 146
Thanks: 19
Thanked 2 times in 2 posts
|
Quote:
|
|
|
|
|
|
The following user says thank you to daglas for this post: |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to change font | bubblegum | Indicator Development | 2 | 04-16-2011 12:30 PM |
| Change Font Size | ghunt | Strategy Development | 2 | 08-04-2010 10:22 AM |
| DrawTextFixed | BigMike | Indicator Development | 7 | 04-01-2010 10:01 AM |
| DrawTextFixed | rt-trader | General Programming | 5 | 01-21-2008 10:46 PM |
| DrawText...Font...how do you use the font param? Can't find any examples | funk101 | General Programming | 8 | 05-29-2007 07:10 AM |