I hope you can help me out here. Maybe I've been coding too long today and I just don't see it.... I'm trying to play with the CSS code and create a new indicator from it. ANyway that's besides my question. The thing is:
I have a double array:
double arrTEST[];
this is just copied from the top of the CSS indi:
// indicator buffers
So this is the same as the other arrays.double arrUSD[];
double arrEUR[];
double arrGBP[];
double arrCHF[];
double arrJPY[];
double arrAUD[];
double arrCAD[];
double arrNZD[];
double arrTEST[];
further in the start() code:
arrTEST = currencyValues[1];
Alert("i is " + i + " arrTest is: " + arrTEST + " currval1: " + currencyValues[1] );
The only thing I'm doing is putting a double value, from currencyValues[1] into arrTEST array. For some reason when I'm displaying the value it says 0 as shown in the screenshot below.
This is turning me completely mental. As far as I can see I"m doing the same thing as in the lines above, the original CSS code, yet when I retreive arrTEST it gives a 0.000000000
and I'm working on the EURGBP chart here so all the EUR & GBP values have been calculated...
It's just that.. I have a double that I can display in an alert. I have a double array, I put the double in the array.. and it's gone.