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

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



PureBytes Links

Trading Reference Links

Tomasz ..thnx that was fast reply !!

DS


--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> 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@xxxx>
> 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@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 
http://docs.yahoo.com/info/terms/ 
> > 
> > 
> >


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