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

[amibroker] Re: turning off INCLUDE or PLOTS from INCLUDES



PureBytes Links

Trading Reference Links


A slight twist on Walt's suggestion follows. Eliminates putting 
things in functions (which may or may not be a good thing -- I just 
haven't used functions much).

//Following goes before files to be included:
Control = Param("Control"  , 1,  1, N, 1) ; 

//Then something like this goes in each #included file:

if (Control = xx)
{
// include code
{
else
{
// do nothing
}

I play these types of games with static variables so I can control 
everything from the AA window.

Dan

--- In amibroker@xxxxxxxxxxxxxxx, "hairy_mug" <WSCHWARZ@xxxx> wrote:
> 
> 
> Define "switch" variables before your "include" which would then be 
> used to switch off/on your include plots...
> 
> The method I prefer is defining plots in functions with a switch 
> argument to turn off/on the plot.
> Then in your code you call the function...
> 
> Walt
> 
> --- In amibroker@xxxxxxxxxxxxxxx, das300@xxxx wrote:
> > 
> > YES walt thanx :-) I am currently doing that but i wanted to know 
> if I
> > could use something in parameters to turn it off .
> > 
> > 
> > See what im doing is writing code with plots, i also write plots 
> that
> > plot variables to test my code is doing the right thing .What im 
> doing
> > is using a param function to turn on off which plots i want 
> appearing
> > The only plots i cannot control come from an INCLUDE which i use
> > variables from .
> > So I was hoping to be able to turn off the PLOTS from INCLUDES .
> > 
> > regards
> > moz
> > 
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "hairy_mug" <WSCHWARZ@xxxx> 
wrote:
> > > 
> > > put a space after # and use comment;
> > > 
> > > //# Include <>
> > > 
> > > walt
> > > 
> > > --- In amibroker@xxxxxxxxxxxxxxx, das300@xxxx wrote:
> > > > 
> > > > IS there a way to turn off #<INCLUDES >
> > > > OR the plots that come from them ?





------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> 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/