Anyone have any hints for optimizing C# code? (Page 12) - NinjaTrader Programming | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming

Anyone have any hints for optimizing C# code?
Started:April 19th, 2010 (11:55 AM) by ZTR Views / Replies:21,842 / 111
Last Reply:December 24th, 2015 (03:13 PM) Attachments:14

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • 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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Anyone have any hints for optimizing C# code?

Old October 31st, 2015, 03:39 PM   #111 (permalink)
Elite Member
Portland Oregon, United States
Futures Experience: Beginner
Platform: Ninjatrader®
Broker/Data: CQG, Kinetick
Favorite Futures: Gameplay Klownbine® Trading of Globex
Zondor's Avatar
Posts: 1,276 since Jul 2009
Thanks: 1,227 given, 2,442 received

C# tutorials

Good information here, especially regarding object oriented coding:

Probably being used by those coming here on H1B visas, where the guys that they are going to replace are forced to train them to take over their own jobs.

"If we don't loosen up some money, this sucker is going down." -GW Bush, 2008
“Lack of proof that something is true does not prove that it is not true - when you want to believe.” -Humpty Dumpty, 2014
“The greatest shortcoming of the human race is our inability to understand the exponential function.”
Prof. Albert Bartlett
Reply With Quote

Old December 24th, 2015, 03:13 PM   #112 (permalink)
Elite Member
Austin TX
Futures Experience: Intermediate
Platform: SaintGobain Crystal Ball
Favorite Futures: 6E
Posts: 74 since Oct 2010
Thanks: 101 given, 121 received

Microsoft Patterns and Practices - Improving Managed Code Performance

Here's the link to the Microsoft Patterns and Practices page containing information on how to improve C# code performance. It is not related to NinjaTrader-specific programming, however it has proven to be a very valuable resource in my day-to-day activities as a dev.

Microsoft Patterns and Practices - Improving Managed Code Performance

Another suggestion I would make is to use multi-threading such as Task Parallel Library. Although TPL has been originally released in .NET4 and NT7 runs on .NET 3.5, recently TPL has been released for 3.5 as part of Reactive Extensions. All the NT plugins I see posted here use blocking, synchronous code and definitely could use multithreading to speed things up.

Reply With Quote
The following 4 users say Thank You to Jaba for this post:

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > NinjaTrader > NinjaTrader Programming > Anyone have any hints for optimizing C# code?

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hints, Tips & Gocthas NW27 MultiCharts 2 August 7th, 2011 03:11 PM
Can someone code this ? skyfly NinjaTrader Programming 8 April 25th, 2011 12:40 PM
Japan's Intervention Hints Fail to Stall Yen's Strength Quick Summary News and Current Events 0 September 8th, 2010 02:20 AM
Optimizing Range Bar Settings? daedalus Traders Hideout 3 February 1st, 2010 12:00 AM
Does anyone esle find Ninja problematic for optimizing strategies? rsi77 NinjaTrader 3 June 17th, 2009 08:32 PM

All times are GMT -4. The time now is 01:55 PM.

Copyright © 2016 by 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 2016-10-22 in 0.09 seconds with 24 queries on phoenix via your IP