i would like to add custom calculation to each price level inside a given bar.
For example, i use a 4 range NQ bar, with the high of 19875 and the low of 19874. I want to add custom calculated values for this bar at price level 19875, 19874.75, 19874.5, 19874.25, 19874.
I convert the price value to integer, so i can have an integer index :
pr = Convert.ToInt32(GetLastAsk(0)*100);
My idea was to create a 2 dimensional array like
calc[0][pr] = x;
My problem is in defining the array. If i define it as a Series<double> it would search for secondary data series and i don't use secondary data series.
private Series<double> calc if ( State == State.DataLoaded) { calc = new Series<double>(this, MaximumBarsLookBack.Infinite); } ;
Thanks for your help
Comment