NexusFi: Find Your Edge


Home Menu

 





Change Font on the control panel in Ninja Trader


Discussion in NinjaTrader

Updated
    1. trending_up 6,705 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?
CFTC Approves First US Bitcoin Perpetual Futures -- Kals …
Traders Hideout
Khamenei Vetoes Uranium Transfer as Peace Odds Surge to …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
Memorandum Watch: How the 60-Day MOU Framework Makes May …
Prediction Markets & Event Contracts
Penalties in Budapest, Peace Deadline in Tehran: Arsenal …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
10 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 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