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

Re: [amibroker] Sigma Bands



PureBytes Links

Trading Reference Links

I was trying for a chart using the the last 5 daily bars compressing 
to one bar.... Just does not seem to look right....

I tried this

O1=TimeFrameCompress(O,inDaily*5);
H1=TimeFrameCompress(H,inDaily*5);
L1=TimeFrameCompress(L,inDaily*5);
C1=TimeFrameCompress(C,inDaily*5);

PlotOHLC(O1,H1,L1,C1,"5 Day",colorBlack,styleBar);




Then This

O1=TimeFrameGetPrice("o",inDaily,-5);
C1=TimeFrameGetPrice("c",inDaily,0);
L1=LLV(L,5);
H1=HHV(H,5);


PlotOHLC(O1,h1,l1,C1,"",colorBlack,styleBar);

--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> You can do it with the timeframes, just use inDaily*3 .
> 
> Cheers,
> Graham
> http://e-wire.net.au/~eb_kavan/
> 
> -----Original Message-----
> From: mleonsprint [mailto:mleonsprint@x...] 
> Sent: Friday, 13 February 2004 10:24 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: 2 day bars? 5 day bars???
> 
> 
> I realize that weekly is a built in function however is there a 
way 
> to plot a 3 day chart? (3 daily bars in one bar?) I am trying with 
> the link....
> 
> 
> Thanks for your help
> Mark
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" 
<amibroker@xxxx> 
> wrote:
> > Mark,
> > 
> > Weekly charts are built-in.
> > 
> > If you mean using time frame functions, there is a sample here: 
> > http://www.amibroker.com/guide/h_timeframe.html
> > 
> > EXAMPLE 2: weekly candlestick chart overlaid on line daily price
> chart
> > 
> > wo = TimeFrameGetPrice( "O", inWeekly, 0, expandPoint );
> > wh = TimeFrameGetPrice( "H", inWeekly, 0, expandPoint ); 
> > wl = TimeFrameGetPrice( "L", inWeekly, 0, expandPoint ); 
> > wc = TimeFrameGetPrice( "C", inWeekly, 0, expandPoint ); 
> > 
> > PlotOHLC( wo, wh, wl, wc, "Weekly Close", colorWhite,
> styleCandle ); 
> > Plot( Close, "Daily Close", colorBlue );
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message -----
> > From: "mleonsprint" <mleonsprint@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Friday, February 13, 2004 1:22 AM
> > Subject: [amibroker] 2 day bars? 5 day bars???
> > 
> > 
> > > I tried to use the plotohlc() afl to plot 5 day bars but it 
came
> out 
> > > looking instead like a donchian channel with candles.... Is
> there 
> > > anyway to plot a 5 day bar?  TC2000 uses a weekly bar as the
> last 5 
> > > bars and most other packages use weekly's as MON thru FRI... I
> am 
> > > just not sure how to code this up or if it is something that
> will 
> > > need to be requested from Tomasz.....
> > > 
> > > Thanks for your help
> > > Mark
> > > 
> > > 
> > > 
> > > 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 
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > >  
> > > 
> > >
> 
> 
> 
> 
> 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 
> Yahoo! Groups Links



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Send the freshest Valentine's flowers with a FREE vase from only $29.99!
Shipped direct from the grower with a 7 day freshness guarantee and prices so low you save 30-55% off retail!
http://us.click.yahoo.com/_iAw9B/xdlHAA/3jkFAA/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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

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