NexusFi: Find Your Edge


Home Menu

 





Change Font on the control panel in Ninja Trader


Discussion in NinjaTrader

Updated
    1. trending_up 5,479 views
    2. thumb_up 7 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 6 attachments




 
 

Change Font on the control panel in Ninja Trader

 
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,107 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238

Posted code to change the default font in NT which can be found here:


Below are the instructions on how to add a new font type.

From the NT menu: Tools --> Edit NinjaScript --> Strategy.

Find the strategy named: ChangeFontNinjaTrader
Click OK

in the strategy edit window find the section called Font Types and expand it by clicking on the plus sign.



it should now look like this:



Now lets add Segoe Script to the list. To keep it in alphabetical order we will add it after Microsoft_Sans_Serif.
Make sure a underscore is used to replace the space. It should look like this: Segoe_Script
Finally add a comma to the end: Segoe_Script,

The code should now look like this:



Compile the code using the compile button.



Finally add the strategy to the Strategy tab in the control panel and choose the new font.



The control panel should now look like this:



And thats it!! Enjoy

SD

nosce te ipsum

You make your own opportunities in life.
Visit my NexusFi Trade Journal Started this thread

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
NexusFi Journal Challenge - April 2024
Feedback and Announcements
Better Renko Gaps
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
38 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
19 thanks
The Program
18 thanks
 
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,107 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238


If you so desire you can change the font size and set it to bold by changing the below code in line 45 slightly.



System.Windows.Forms.Form.ActiveForm.Font = new System.Drawing.Font(myFontType, 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));




If you wanted to make the font height 12 and set it to bold then change the code to this:



System.Windows.Forms.Form.ActiveForm.Font = new System.Drawing.Font(myFontType, 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));



In the above code the 9F has been changed to a 12F; This changes the how big the font is. Changing FontStyle.Regular to FontStyle.Bold will set the font to Bold.

SD

nosce te ipsum

You make your own opportunities in life.
Visit my NexusFi Trade Journal Started this thread

 



Last Updated on June 3, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts