[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Optimizing with Include and fputs shifts loop mysteriously



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "ozzyapeman" <zoopfree@xxx> wrote:
>
> Thanks, Herman. Had totally forgotten about ActionEx. That could help.
>
__._,_.___

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html

*********************************




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___