|10-21-2008, 08:05 PM||#1|
Join Date: Feb 2008
Thanked 0 times in 0 posts
using variables form a prior bar's calulations
I am building a Fourier transform indicator which calculates 50 values for a certain parameter, let's say the parameter is named "Real".
So there is a Real through Real for the current bar (i.e. bar).
The calculation needs to reference the prior bar's 50 values for Real (i.e. Bar) as well as the 50 values of Real for the bar before that (bar).
What NinjaTrader data type would I use to declare Real so that the prior bar's calculation values are available?
The NinjaTrader DataSeries type
only stores one value for each bar, not 50.
Real is not a straight 2 dimensional array, since that would reset every thing to 0 each time the indicator executes.
I really need sonething like this
(conceptual example only, might not be correct C#)
Real = new DataSeries (this);
to be referenced in code possibly like this
N = Real + Real + Real;
and possibly loaded something like this
I do not need to keep any more than 3 bars back worth of 50 values for each bar.
If this is the wrong forum for this question, please direct me to the proper forum.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Using windows Form instead of file io||Folls||Strategy Development||49||11-08-2011 08:38 AM|
|Fix the contact us form on the website?||raz0rback||Suggestions And Feedback||1||10-08-2008 09:23 PM|
|Play sound to alert order confirmation form||AJNIN||Suggestions And Feedback||1||06-24-2008 09:21 AM|
|Data form Gain||cattus||Connecting||6||03-07-2008 05:15 AM|
|String form of Period Type||zoltran||General Programming||4||12-05-2007 10:40 PM|