julianrbach / Publications
Forum
Incorrect return result while calling function in loop, versus, correct return result when calling function outside loop - Calculating hull moving average function - EXPERT ADVISOR
Hi there. I hope someone can help me figure out what is happening here. I have a function, inside a expert advisor, called "calculateHMA". It calculates the Hull Moving Average value for any specified candle on the current chart. It returns the Hull Moving Average double value for the specified