I have a custom function in the region Helpers.
I have:
protected override void OnBarUpdate()
{
myCust1[pos] = myCustom(EMA(Close, 21), pos);
Print("myCust1" + " Size " + ": " + myCust1);
}
#region Helpers
private double myCustom(double price, int pos)
{
double val = Math.Exp(-0.7*3.14159)
double CD = val*price + myCust1[pos+1] + myCust1[pos+2];
return(CD);
}
#endregion
A Print() function in OnBarUpdate() pups out the following error:
Could someone please points out where I am mistaking?
Thanks in advance.

Comment