Dark
Theme
Light
Theme
Register
Username or Email
Username or Email
Password
Password
Forgot
Signup
Forgot
Browse
Register
Downloads / Indicators
Articles
Upgrade to Elite
Unanswered Posts
My Posts
Return to Homepage
Today's Posts
Trading Reviews and Vendors
Futures Brokers Reviews
Traders Hideout (general)
Platforms and Indicators
Trading Journals
Elite Trading Journals
Psychology and Money Management
Off-Topic
The Elite Circle
Webinars
Trading Articles
Main Trading Articles Index
Article Categories
Help, Tutorials, How-To's
Traders and Trading Methods
Platforms, Tools and Indicators
Terms (Glossary)
Article Tools
List New Articles
List Recent Article Changes
Random Article
Most Popular Articles
Category Groupings
Wanted Articles
Most Linked to from Forum
Go to Page...
Quotes
by TradingView
>
Search Forums
>
Showing results 1 to 20 of 20
Filter subforums listed
Search:
Posts Made By:
Zondor
Forum:
NinjaTrader
October 31st, 2015, 03:39 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
C# tutorials
Good information here, especially regarding object oriented coding:
https://www.youtube.com/watch?v=Rlw_njQhkxw&ab_channel=.NETInterviewPreparationvideos
Probably being used by those coming...
Forum:
NinjaTrader
April 30th, 2014, 12:18 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Array Containing Ninjascript Data Series objects
An Array can store any type, including DataSeries objects. As an example, let's create an array to hold more than one DataSeries. The rank (number of elements) of the array does not need to be hard...
Forum:
NinjaTrader
January 9th, 2013, 08:32 AM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Move The Markets Moved On
Richard closed it down to pursue other interests, but hopefully is still around on futures.io (formerly BMT).
Too bad, there was some great stuff posted there.
Forum:
NinjaTrader
December 11th, 2012, 03:59 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
using floats instead of doubles
Thanks artemiso, I was wondering about that. The float downcasting is a sledgehammer approach.
I was brought up in the days of slide rules, so am very aware that doing arithmetic with excessive...
Forum:
NinjaTrader
December 11th, 2012, 02:27 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Example of Aggressive Optimization
The LinReg indicator does not have much of a performance impact but this example shows how it can be made more efficient.
Calls to the external SUM class eliminated. SUM algorithm moved into...
Forum:
NinjaTrader
November 29th, 2012, 03:20 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
answering previous question
Yes, as long as the value of CCIPeriod does not change within the indicator.
Once in a while, as in "Adaptive" indicators, the parameters of external classes vary under programmatic control.
Forum:
NinjaTrader
November 11th, 2012, 02:56 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Improving Ninjatrader Performance: The Big Picture
There are now two complementary approaches that, together, will give a big performance boost to Ninjatrader. And there is only one place on the web where you will find this information... Big...
Forum:
NinjaTrader
April 2nd, 2012, 09:43 AM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Blau TSI continued
During the lifetime of any bar, the output values of any DataSeries that have an index value other than zero do not change. Therefore the calculation of any algebraic expressions involving terms such...
Forum:
NinjaTrader
April 1st, 2012, 03:01 AM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
The Blau TSI - Horrible Coding!
Post #70 in this thread is a perfect example of what not to do. The writer, xxxx72, talks about his programming background, his expert observations regarding NT7, and his scheme to reduce CPU load by...
Forum:
NinjaTrader
June 23rd, 2010, 08:02 AM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Optimization of Double Stochastic
In Double Stochastics Optimized (DSCO), I did two things to reduce the number of times that the MIN and MAX functions would be called in the first place. Reason: these functions do loop processing,...
Forum:
NinjaTrader
June 22nd, 2010, 06:05 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Example of Ninjatrader indicator with optimized code
Here is an indicator that uses optimization techniques including predefined instances of external indicators and minimization of the number of calls to the MIN and MAX indicators.
As a result,...
Forum:
NinjaTrader
May 27th, 2010, 11:22 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
protected override void OnBarUpdate() { int...
protected override void OnBarUpdate()
{
int barsAgo = Math.Min(CurrentBar, Period);
Value.Set(((Input[0] - Input) / Input) * 100);
}
The above will execute every time a BarUpate is...
Forum:
NinjaTrader
May 27th, 2010, 02:03 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Everything including the kitchen sink
This version of the Double Stochastics has every coding trick I can think of.
All calls to external indicators are pre-instantiated.
It uses Richard's FastMAX and FastMin indicators instead of...
Forum:
NinjaTrader
May 27th, 2010, 09:08 AM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Thanks everyone
Great participation and help from everyone who has been visiting here lately!
I attempted to incorporate Richard's latest suggestions into the DoubleStochasticOptimized. I posted it briefly until...
Forum:
NinjaTrader
May 26th, 2010, 11:18 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Minimizing the use of MIN and MAX
Based on the suggestion by Richard in Post 38, I changed the DoubleStochasticsOptimized to check within the indicator, when a new bar starts, whether the [Period +1] value is equal to the minimum...
Forum:
NinjaTrader
May 25th, 2010, 09:14 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Wild Proliferation of Indicator Instances
"Yeah, I can't see the code you are posting, but just be aware that when you change the inputs you are actually creating an additional indicator that runs in parallel with the original one. So,...
Forum:
NinjaTrader
May 25th, 2010, 04:43 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Sample Code: SMA of an MACD
If you want a dataseries to capture the SMA of the MACD: (Note... MACD12 should have been MyNewMACD)
in Variables:
private DataSeries myMacdAvg;
private bool init = false;
private MACD...
Forum:
NinjaTrader
May 25th, 2010, 10:25 AM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Article on Move The Markets re External Indicators
Richard, this is great! I optimized several custom indicators using this approach and the performance improvement is tremendous. Posted in the Elite Section is the optimized version of the Big Mike...
Forum:
NinjaTrader
May 24th, 2010, 11:58 AM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Calling Indicators Efficiently - This is VERY IMPORTANT
Anyone writing Ninjascript code should look at that post at MoveTheMarkets, and implement that idea in their code.
A good test case is the BigMike CollectiveMA. It makes six calls to external...
Forum:
NinjaTrader
May 23rd, 2010, 07:14 PM
Replies:
111
Anyone have any hints for optimizing C# code?
Views:
47,840
Posted By
Zondor
Calling Ninjascript Indicators Efficiently
RWT-004 :: Move the Markets (http://www.movethemarkets.com/downloads/rwt/rwt004/)
Very interesting post at MoveTheMarkets. The way we usually do things is terribly inefficient and there is a...
Showing results 1 to 20 of 20
What unexpected challenges have you encountered while trading on a "Funded Trader" platform?
Limited trading instruments
High platform usage fees
Lack of support or mentorship
Unrealistic rules and requirements
No significant challenges
Something else (discuss in thread)
View Results
Discuss Poll
futures io is now NexusFi
Trading Webinars How-to's
Trading Reviews & Products
Futures Broker Reviews
NinjaTrader Brokerage (Broker)
Kinetick (Data Feed Provider)
Apex Trader Funding (Prop Trading)
Tradovate (Trading Platform)
NinjaTrader (Trading Platform)
SharkIndicators (Trading Software)
© 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.