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

Re: [amibroker] Error message with ParamOptimize - why?



PureBytes Links

Trading Reference Links

Thomas:
 
The code runs OK for me producing a plot of Hull with the default period.
 
Bill
 
----- Original Message -----
From: "Thomas Ludwig" <Thomas.Ludwig@xxxxxx>
Sent: Sunday, March 11, 2007 9:48 AM
Subject: Re: [amibroker] Error message with ParamOptimize - why?

>> You have this line included before you define periods and delay variables
>> HullMA = HullMaFunction( P, Periods, Delay );
>> But because you re-define the HullMa variable later in the code anyway you
>> can remove this line altogether
>
> Graham, thanks a lot. You are right, of course, and I was blind. Now it works.
> But - I'm still having problems with this function. If I apply it to the
> following formula:
>
> #include <ParamOptimize.afl>
>
> P = ParamField("Price field",-1);
>
> Periods = popt("Periods", 15, 2, 200, 1 );
>
> Hull=DEMA( 2*DEMA(p,int(periods/2))- DEMA(p,periods),int(sqrt(periods)));
>
> Plot( Hull, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
> ParamStyle("Style") );
>
>
> space = Param("Graph Space", 10, 0, 25, 1);
> GraphXSpace = space;
>
>
> ... I get the error message mentioned - even if I replace popt with Param! The
> #include line alone is enough to cause that error. Isn't that strange?
>
> Greetings, Thomas
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor --------------------~-->
> Transfer from your equities account. 
> Receive up to $1,000 from GFT. Click here to learn more.
>
http://us.click.yahoo.com/aZttyC/X_xQAA/cosFAA/GHeqlB/TM
> --------------------------------------------------------------------~->
>
> Please note that this group is for discussion between users only.
>
> To get 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

> Yahoo! Groups Links
>
> <*> To visit your group on the web, go to:
>   
http://groups.yahoo.com/group/amibroker/
>
> <*> Your email settings:
>    Individual Email | Traditional
>
> <*> To change settings online go to:
>   
http://groups.yahoo.com/group/amibroker/join
>    (Yahoo! ID required)
>
> <*> To change settings via email:
>   
mailto:amibroker-digest@xxxxxxxxxxxxxxx
>   
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
>
> <*> To unsubscribe from this group, send an email to:
>   
amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> <*> Your use of Yahoo! Groups is subject to:
>   
http://docs.yahoo.com/info/terms/

>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.446 / Virus Database: 268.18.7/711 - Release Date: 3/5/2007 9:41 AM
>
>
__._,_.___

Please note that this group is for discussion between users only.

To get 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





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

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

__,_._,___