Okay. The following code finally works, for anyone struggling with the
same issue. Thanks again for all the help guys.:

a = Optimize( "a", 1, 1, 5, 1 );

FastMALength = Null;

if(Status("actionEx") == actionExOptimizeSetup)
b = 1;
else
b = a +1;

fh = fopen( "c:\\TestAFL.afl", "w");
fputs("FastMALength = ", fh);
fputs(NumToStr(b, 1.0, 0 ),fh);
fclose( fh );

#pragma nocache
#include "c:\TestAFL.afl";

SlowMALength = 20;

FastMA = MA( C, FastMALength );
SlowMA = MA( C, SlowMALength );
Buy = Cross( FastMA, SlowMA );
Sell = Cross( SlowMA, FastMA );





--- In [email protected], "ozzyapeman" <zoopf...@...> wrote:
>
> Thanks, Herman. Had totally forgotten about ActionEx. That could help.
>

Reply via email to