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

RE: [amibroker] #Include question



PureBytes Links

Trading Reference Links

Chuck,

 

As Joe pointed out, a very effective way around this issue it place code in “Procedure” and “Function” calls in your include file.  Then, in your chart or scan, simply use an “if(…)” statement and call appropriate function or procedure.   For example, assuming that you have the function “Foo” in your include file, your chart/scan code would like this:

 

If(CriteriaVal)

            {

            ReturnVal = Foo(parameter)

            }

 

If CriteriaVal is “true”, Foo() will execute, perform some action or calculation, and return a result to ReturnVal.

 

Regards,

 

Dan

 

           

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Chuck
Sent: Monday, October 31, 2005 4:38 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] #Include question

 

Thanks Joe...very helpful.

 

----- Original Message -----

From: Joe Landry

Sent: Monday, October 31, 2005 7:31 AM

Subject: Re: [amibroker] #Include question

 

Chuck

If you're concerned about processing impact, I don't think there's much of an impact if you load more code then you use, but then that depends on how much code you're talking about.  

 

For example I've seen a utility with 800 lines of code that has 10 function calls with each function being about 80 lines of code.   All of this AFL is loaded with one include statement, and with the AFL logic you can "call"/use any one of the functions you'd like.

 

Hope this helps, I'm making assumptions of where you want to go with this

JOE

 

 

----- Original Message -----

From: Chuck

Sent: Monday, October 31, 2005 6:21 AM

Subject: Re: [amibroker] #Include question

 

Thanks Joe.  Is there any other way to use a parameter to choose blocks of
code?  That would be SO useful.

chuck
----- Original Message -----
From: "Chuck" <cstangor232@xxxxxxxxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, October 31, 2005 7:03 AM
Subject: [amibroker] #Include question


> Does anyone know what's the best way to use a parameter to specify which
> file to #include?  I thought I could use Paramlist, but it appears that
> #include doesn't accept a string variable.  Thanks
>
>
>
> 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 other support material please check also:
> http://www.amibroker.com/support.html
>
>
> Yahoo! Groups Links
>
>
>
>
>
>




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 other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment analysis software


YAHOO! GROUPS LINKS