Questions like this are not easily answered without the code, or with only code snippets. Ricam is answering the question, but with out demonstarting it by refactoring the code in question.. which was never posted... it's hard to get the point across.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Index was outside the bounds of the array
Collapse
X
-
Maybe we should have a Refactor My Code Sub Forum
Questions like this are not easily answered without the code, or with only code snippets. Ricam is answering the question, but with out demonstarting it by refactoring the code in question.. which was never posted... it's hard to get the point across.
-
Originally posted by ch9090 View PostIs it the equivalent (in a more sophisticated way) of the minimum bars required (backtest)?
Ryan M.NinjaTrader Customer Service
Comment
-
Thank you Crassius, I didn't want to bother the board members with my code but you're right. Next time I'll post it so it is clearer and thus easier to solve.
I need to do some furhter testing with the DMIndex as it seems to easily generate memory exception errors contrary to the RSI that works fine. Strange because the DMIndex is an upgraded RSI.
More in the next episode :-)
All the best, Chris
Comment
-
Refactoring, and optimization for memory usage.
Originally posted by Crassius View PostMaybe we should have a 'refactor my code' forum
I've recently developed a set of techniques to benchmark / query memory usage over time or iterations, and export the data to a spreadsheet for analysis and reporting. I find this extremely useful in optimizing my code and in isolating problematic sections, and I believe the importance of this is widely neglected when attempting to perform parametric cross-optimization.
I need to tidy up the code a little, but once I'm done I would be happy to post it here, and write a short article on this topic. Perhaps we could get a dedicated sticky?
I'm fairly busy right at the moment, so will likely be at some point next week.
J
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by knighty6508, 05-10-2024, 01:20 AM
|
4 responses
25 views
0 likes
|
Last Post
by knighty6508
Today, 05:29 AM
|
||
Started by OllieFeraher, 05-09-2024, 11:14 AM
|
6 responses
19 views
0 likes
|
Last Post
by OllieFeraher
Today, 04:00 AM
|
||
Started by PaulMohn, 05-02-2024, 06:59 PM
|
2 responses
44 views
0 likes
|
Last Post
by PaulMohn
Today, 03:51 AM
|
||
Started by ETFVoyageur, Today, 02:10 AM
|
0 responses
14 views
0 likes
|
Last Post
by ETFVoyageur
Today, 02:10 AM
|
||
Started by rayyyu12, Today, 12:47 AM
|
0 responses
9 views
0 likes
|
Last Post
by rayyyu12
Today, 12:47 AM
|
Comment