Change Font on the control panel in Ninja Trader - NinjaTrader Programming | futures io social day trading
futures io futures trading


Change Font on the control panel in Ninja Trader
Updated: Views / Replies:1,948 / 2
Created: by Silver Dragon Attachments:6

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Change Font on the control panel in Ninja Trader

  #1 (permalink)
Elite Member
Cincinnati Ohio
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Futures Broker
Favorite Futures: AUD
 
Silver Dragon's Avatar
 
Posts: 1,597 since Feb 2011
Thanks: 3,860 given, 3,318 received

Change Font on the control panel in Ninja Trader

Posted code to change the default font in NT which can be found here: https://futures.io/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.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


it should now look like this:

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


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:

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


Compile the code using the compile button.

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


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

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


The control panel should now look like this:

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


And thats it!! Enjoy

SD

nosce te ipsum

You make your own opportunities in life.
Reply With Quote
The following 4 users say Thank You to Silver Dragon for this post:
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
Cincinnati Ohio
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Futures Broker
Favorite Futures: AUD
 
Silver Dragon's Avatar
 
Posts: 1,597 since Feb 2011
Thanks: 3,860 given, 3,318 received

Changing font to Bold and height


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.
Reply With Quote
The following 3 users say Thank You to Silver Dragon for this post:

Reply



futures io > > > > > Change Font on the control panel in Ninja Trader

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed with Ninja Script - Price Panel indicator issue snp500analyst The Elite Circle 4 March 5th, 2012 02:50 PM
Ninja Trader chart trader toggle? GaryD NinjaTrader 5 December 17th, 2011 12:40 AM
How to overlay bollinger and RSI on the same panel in Ninja 7? bingo17 NinjaTrader 10 October 6th, 2011 05:27 PM
change ninja military time? madLyfe NinjaTrader 14 September 29th, 2011 01:54 PM
New Version Ninja Trader 7 / code breaking change Mauro_60 The Elite Circle 6 September 15th, 2010 09:13 AM


All times are GMT -4. The time now is 07:32 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.08 seconds with 20 queries on phoenix via your IP 54.196.182.102