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

[amibroker] Re: How can I get more than two Param to display on chart?



PureBytes Links

Trading Reference Links

Also, if you want separate colors for each EMA you need to specify 
it.  See RanaColor below.

Gernot

sp = Param( "EMA Period 1", 12, 2, 100 );
r = EMA(C, sp );
Plot( r, "EMA("+WriteVal(sp,1.0)+")", ParamColor("EMA 1 Color", 
colorGreen ) ); 

s = Param( "EMA Period 2", 10, 2, 100 );
m = EMA(C, s );
Plot( m, "EMA("+WriteVal(s,1.0)+")", ParamColor("EMA 2 Color", 
colorRed ) ); 

x= Param( "cond1", .05, .001,.2,.001 ); 
cond1= EMA(C,13)+EMA(C,13)*x;
Cond2= EMA(C,13)-EMA(C,13)*x;

Plot(C, "Price",colorYellow, styleBar );
Plot(cond1,"upper band",ParamColor("BB Color",colorBlue),1);
Plot(cond2,"Lower band",ParamColor("BB Color",colorBlue),1);

--- In amibroker@xxxxxxxxxxxxxxx, "theoldchartreader" 
<theoldchartreader@xxxx> wrote:
> 
> Jason,
> 
> All I  can say 
> 
> is Thank you,Thank you,Thank you,Thank you.
> 
> Dennis
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> > Dennis,
> > you have named the Param for SP "EMA Period" and also named the 
> Param for S
> > "Ema Period"
> > 
> > try naming sp Something like "PDS1" and s something 
like "PDS2"...
> > 
> > Regards,
> > Jayson
> > -----Original Message-----
> > From: theoldchartreader [mailto:theoldchartreader@x...]
> > Sent: Thursday, July 17, 2003 11:51 AM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] How can I get more than two Param to 
display 
> on chart?
> > 
> > 
> > HI,
> > This is the formula that I am using, it will only display one 
EMA 
> and
> > the Bands. I would really like to get ti to display all three .
> > 
> > Does any one have any ideas on how this can be done.
> > Thank you,
> > Dennis
> > 
> > 
> > 
> > sp = Param( "EMA Period", 12, 2, 100 );
> > r = EMA(C, sp );
> > Plot( r, "EMA("+WriteVal(sp,1.0)+")", ParamColor("", 
colorGreen ) );
> > 
> > s = Param( "EMA Period", 10, 2, 100 );
> > m = EMA(C, s );
> > Plot( m, "EMA("+WriteVal(s,1.0)+")", ParamColor("", colorRed ) );
> > 
> > x= Param( "cond1", .05, .001,.2,.001 );
> > cond1= EMA(C,13)+EMA(C,13)*x;
> > Cond2= EMA(C,13)-EMA(C,13)*x;
> > 
> > Plot(C, "Price",colorYellow, styleBar );
> > Plot(cond1,"upper band",ParamColor("",colorBlue),1);
> > Plot(cond2,"Lower band",ParamColor("",colorBlue),1);
> > 
> > 
> >       Yahoo! Groups Sponsor
> >             ADVERTISEMENT
> > 
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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 the Yahoo! Terms of 
Service.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sOykFB/k9VGAA/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/