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

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


  • To: ozzyapeman <amibroker@xxxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Re: Optimizing with Include and fputs shifts loop mysteriously
  • From: Herman <psytek@xxxxxxxx>
  • Date: Sun, 14 Dec 2008 17:49:48 -0500

PureBytes Links

Trading Reference Links

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

Great and thanks. Everyone should know how this works because you would also get multiple entries in your Log. This is very easy to forget (happened to me) and could send you an a time-consuming debugging spree for no reason. 


Happy Season Greetings,

herman



Sunday, December 14, 2008, 4:03:40 PM, you wrote:


>

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


a = Optimize"a"1151 ); 


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.00 ),fh); 

fclose( fh ); 


#pragma nocache 

#include "c:\TestAFL.afl"


SlowMALength = 20


FastMA = MAC, FastMALength ); 

SlowMA = MAC, 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

__,_._,___