I have been experiencing a problem with AFL exploration.
Let's suppose I use this simple AFL to get the moving average of the recent 5 bars, on a 5-min chart.
_SECTION_BEGIN("Test");
ee=MA(C,5);
Plot(ee,"MA",colorRed,styleLine);
Filter=1;
AddColumn(ee,"MA(5)",1.2);
_SECTION_END();
Today, the closing prices of ABIRLANUVO for the last five 5-min candles were
884.30, 882.55, 877.00, 876.20 and 880.00. The average comes to 880.01
and yes - the chart in Amibroker also shows the moving average value as 880.01.
However, when I run the exploration for the program mentioned above, the exploration
window gives the Moving Average value for ABIRLANUVO as 887.24, which is obviously wrong.
I think I have not fully understood how Amibroker is interpreting the above AFL in particular
and various other AFLs in general, because I keep getting such different values for most of the AFLs,
specially when computed values are explored.
Can someone please guide me on this?
Thank you.
Let's suppose I use this simple AFL to get the moving average of the recent 5 bars, on a 5-min chart.
_SECTION_BEGIN("Test");
ee=MA(C,5);
Plot(ee,"MA",colorRed,styleLine);
Filter=1;
AddColumn(ee,"MA(5)",1.2);
_SECTION_END();
Today, the closing prices of ABIRLANUVO for the last five 5-min candles were
884.30, 882.55, 877.00, 876.20 and 880.00. The average comes to 880.01
and yes - the chart in Amibroker also shows the moving average value as 880.01.
However, when I run the exploration for the program mentioned above, the exploration
window gives the Moving Average value for ABIRLANUVO as 887.24, which is obviously wrong.
I think I have not fully understood how Amibroker is interpreting the above AFL in particular
and various other AFLs in general, because I keep getting such different values for most of the AFLs,
specially when computed values are explored.
Can someone please guide me on this?
Thank you.
Last edited: