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

[amibroker] Re: EMA/breakout signals composite indicator



PureBytes Links

Trading Reference Links

Many thanks.

jose '-)


> > So, any thoughts on why this doesn't work:
> > 
> > IIf(display=2,
> >  Plot(signals,"EMA signals",colorRed,styleLine),
> >  Plot(EMA1,"EMA",colorRed,styleLine));
> > 
> > // If parameter display choisen = 2, plot EMA crossover signals, 
> > otherwise plot EMA
> > 
> > Why is AB plotting both outputs?

> 
> Okay I will take a stab at this. One you probably want ==
> instead of = but both plotted anyways.
> 
> One solution is to break it up like: 
> if (display==2) {
> 	Plot(0,"",colorBlue,styleLine);
> 	Plot(signals,"EMA signals",colorRed,styleLine);
> } else {
> 	Plot(Close,"",1,128);
> 	Plot(EMA1,"EMA",colorRed,styleLine);



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/