Good point Johan..the moving average
function probably doesn't like empty arrays.
Thanks for pointing this out.
Bernard - I experience the same effect with
DebugView. The only thing I know is Amibroker
runs through the routine twice, so that why
we get 2 traces. If I remember correctly AB
goes through the AFL and arrays 1) once to
calculate the buys and sells and 2) then
runs through a second time to account for
the trades,
Best regards
JOE