I know I get baffled easily, but this one is very annoying ...
I am setting up doubles in a MTF strategy, and this is the only error that I cant get resolved:
if(BarsInProgress == 2)
{ // Save prior bars
for(int i = 0 ; i < 3 ; i++)
b2_WRC[i] = b2_WRC[i+1];
//
b2_FT[i] = b2_FT[i+1];
}
b2_WRC[0] = jhlWilliamsPercentR(BarsArray[2], iWRperiod).PercentR[0];
//
b2_FT[0] = FisherTransform(BarsArray[2], iFTperiod).FisherTransform[0];
the silly on me error is:
Cannot apply indexing with [] to an expression of type 'method group'
with it referring to the b2_FT[0] column 15
The other line isnt causing any error (ie: I comment out the b2_FT[0] line && all compiles cleanly) and structually the two sets of doubles are declared the same style/place in the code. Also removing the [0] from the b2_FT[0] still gives the same error.
Using b23NT7 and the default FisherTransform ..
Thanks for the help,
Jon
Comment