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

Re: [amibroker] Help : Plot only last 10 bars



PureBytes Links

Trading Reference Links

LastBar =LastValue(BarIndex());

Colorbar=IIf(BarIndex()>Lastbar-10,colorRed,colorGreen);

Plot(10,"Plot last 10 bars in green",colorbar,styleDots);


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "dstricek12" <dstricek12@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Tuesday, July 29, 2003 9:02 PM
Subject: [amibroker] Help : Plot only last 10 bars


> Hi
> Im trying to plot 10 last bars of an line  in different color. Here 
> is my try :
> 
> LastBar =Lastvalue(barindex());
> barRef=Ref(Lastbar,-10);
> Colorbar=iif(barindex()<barRef,colorred,colorgreen);
> Plot(10,"Plot last 10 bars in green",colorbar,styledots);
> 
> Could anyone correct the formula ? 
> 
> Thnx 
> 
> dstricek12
> 
> 
> 
> 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/ 
> 
> 
> 

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/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/