I am having the following error message:
private double [][] Val1 = new double[2][];
if(CurrentBar < 500) return; double mov = EMA(Close, 14)[0]; double myEMA = CostFunc(mov, 15, 0,618);
#region Helpers
double CostFunc(double myPrice, int period, double y)
{
Val1[1]]0] = y*2
Val1[2]]0] = 7y*5
return(Val1[1][0] + Val1{[2]]0]);
}
Why is the function of the region Helpers creating problem in "OnBarUpdate"?
I would apprecaite any help.
Thanks in advance.

Comment