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

Re: [amibroker] Re: Using #include but not wanting those indicator's PLOT


  • To: "gmorlosky" <gmorlosky@xxxxxxxxx>
  • Subject: Re: [amibroker] Re: Using #include but not wanting those indicator's PLOT
  • From: Herman <psytek@xxxxxxxx>
  • Date: Mon, 24 Mar 2008 19:03:06 -0400

PureBytes Links

Trading Reference Links

you have to initialize the variable before calling the include file.


PLOTALL = paramtoggle("Plot All","NO|YES",0);


#include your include file

// Inside your include file

if( PlotALL )

       {

       All your plot statements here 

       }


best regards,

herman

For tips on developing Real-Time Auto-Trading systems visit:

http://www.amibroker.org/userkb/


Monday, March 24, 2008, 6:55:18 PM, you wrote:


> No luck.

> if( IFP == 1 )  error - variable is not intialized.

> I changed to 1 instead of "1" based on Herman's comment, but same 

> error). The Include file needs somehow to accept an uninitialized 

> value or increment an intialized value passed to it from the Main 

> file. Any thoughts ?




> --- In amibroker@xxxxxxxxxxxxxxx, "gmorlosky" <gmorlosky@xxx> wrote:


>> I'll try that. I was attempting something, but kept getting hung up 

>> as if I were to use, in the single indicator:


>> > if( IFP == "1" ) 

>> > {

>> > Plot(....)

>> > Plot(....)

>> > } 


>> then that single indicator would error saying IFP was not 

>> initialized. I'll try your method and let you know.


>> P.S. I need to keep the single indicators intact as that way they 

>> plot their own and the composite plots the same singles formulas 

> and 

>> everything stays in synch (i.e. change a single indicator formula 

> and 

>> the composite changes - both graphed separately). 




>> --- In amibroker@xxxxxxxxxxxxxxx, "marketmonk777" <RedEyes777@> 

>> wrote:

>> >

>> > There may be another way but I am not sure it will work.

>> > 

>> > In your main file (the one that the include files are called 

> from) 

>> put

>> > this in the parameters list:

>> > IFP = ParamToggle("Plot Include File Indicators?", "No|Yes");

>> > // IFP ~ Include File Plot?

>> > 

>> > This will be used as a switch so to speak.

>> > 

>> > Then modify your include files by changing the plot statements to:

>> > if( IFP == "1" ) 

>> > {

>> > Plot(....)

>> > Plot(....)

>> > } 

>> > 

>> > Let us know if you get it working.

>> > 

>> > 

>> > >

>> > > How about making a copy of the #Include file, renaming it to

>> > > #filename_woPlot and removing all Plot statements?

>> > > 

>> > > --- In amibroker@xxxxxxxxxxxxxxx, "gmorlosky" <gmorlosky@> 

> wrote:

>> > > >

>> > > > I want to include my indicators using #include in a composite

>> > indicator 

>> > > > that takes their values and plots something, but I don't want 

>> their 

>> > > > plots as I will have my own plot in this composite indicator. 

>> How

>> > do I 

>> > > > stop those #includes from plotting ?

>> > > >

>> > >

>> >





> ------------------------------------


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


__._,_.___

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




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

__,_._,___