Topic: Calling standard indicator in mqh fails
I just copy-pasted ATR call, and I get ton of errors. After thorough check it does not seem my error, it must be FSB's bug.
// ----------------------------------------------------
AverageTrueRange *atr=new AverageTrueRange(SlotType);
atr.ListParam[1].Index= ListParam[1].Index;
atr.NumParam[0].Value = NumParam[0].Value;
atr.CheckParam[0].Checked=CheckParam[0].Checked;
atr.Calculate(dataSet);
double indicator1[];
ArrayResize(indicator1,Data.Bars);
ArrayCopy(indicator1,atr.Component[0].Value);
delete atr;
double indicator2[];
MovingAverage(period2,0,maSignalMaMethod,indicator1,indicator2);
// -----------------------------------------------------