I have a custom function in my helper's section.
The code is as followed:
#region Helpers double myCustom(double price, double period, int i) { myFunction here } #endregion
if(CurrentBars[0] < 500) return; mySMA = _SMA[i]; double myCust = myCustom(mySMA, period, i);
private SMA _SMA;
_SMA = SMA(aPeriod);
When I replace myCust just by EMA(Close, 21)[i] for example, I have no error message. So I conclude that the problem should be on myCust.
Could you help by pointing out what is wrong here?
Many thanks!
Comment