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

[amibroker] Re: 2 day bars? 5 day bars???



PureBytes Links

Trading Reference Links




This is something I did for a rolling 2 
day bar, is this something like you were wanting, just in 5 day?
//Direction coloured candles - 2 bars
//Load into IB window
RH = HHV<FONT 
size=2>(H<FONT 
size=2>,2);
RL = LLV<FONT 
size=2>(L<FONT 
size=2>,2);
R3 = RL + 0.75 * 
( RH - RL );
R2 = RL + 0.50 * 
( RH - RL );
R1 = RL + 0.25 * 
( RH - RL );
Color = IIf( 
C >= R3, 
colorRed, 
IIf( 
C >= R2 
AND <FONT 
color=#ff0000 size=2>C < R3, <FONT 
color=#ff0000 size=2>colorOrange, <FONT 
color=#0000ff size=2>IIf( <FONT color=#ff0000 
size=2>C >= R1 <FONT color=#ff0000 
size=2>AND <FONT color=#ff0000 
size=2>C < R2, <FONT color=#ff0000 
size=2>colorYellow, <FONT color=#ff0000 
size=2>colorBlue ) ) );<FONT color=#ff0000 
size=2>
O = <FONT color=#ff0000 
size=2>L;
C = <FONT color=#ff0000 
size=2>H;
L = <FONT color=#ff0000 
size=2>L;
H = <FONT color=#ff0000 
size=2>H;
Plot( 
C, <FONT 
color=#8b0000 size=2>"", Color, <FONT 
color=#ff0000 size=2>styleCandle );
GraphXSpace = 
5<FONT 
size=2>;
Cheers,Graham<A 
href="">http://e-wire.net.au/~eb_kavan/-----Original 
Message-----From: mleonsprint [<A 
href="">mailto:mleonsprint@xxxxxxxxx]Sent: 
Friday, 13 February 2004 8:22 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: 
[amibroker] 2 day bars? 5 day bars???I tried to use the plotohlc() 
afl to plot 5 day bars but it came outlooking instead like a donchian 
channel with candles.... Is thereanyway to plot a 5 day bar?  TC2000 
uses a weekly bar as the last 5bars and most other packages use weekly's as 
MON thru FRI... I amjust not sure how to code this up or if it is something 
that willneed to be requested from Tomasz.....Thanks for your 
helpMarkSend BUG REPORTS to bugs@xxxxxxxxxxxxxSend 
SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx(Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.htmlYahoo! 
Groups Links<*> To visit your group on the web, go 
to:     <A 
href="">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:     <A 
href="">http://docs.yahoo.com/info/terms/


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 the Yahoo! Terms of Service.