NexusFi: Find Your Edge


Home Menu

 





Change Font on the control panel in Ninja Trader


Discussion in NinjaTrader

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




 
Search this Thread
  #1 (permalink)
 
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,088 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: https://nexusfi.com/download/vip_elite_circle/1197-download.html?view


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 Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Hungary Called for Magyar at 97pct, Ending 16-Year Orban …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
Prediction Markets Expiry Day: Trump Eyes War Exit, $230 …
Prediction Markets & Event Contracts
Weekend Update: First Qatari LNG Transit Attempted -- IR …
Traders Hideout
Bookmap Global Plus Lifetime + Lifetime Addons For Sale
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Lady Vols Primer: Trading Volatility Journal
7 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #3 (permalink)
 
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,088 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 Reply With Quote




Last Updated on June 3, 2012


© 2026 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 - Downloads - Top
no new posts