PureBytes Links
Trading Reference Links
|
Graham,
Thanks for the sample code. Your code illustrates some finer points
like using {interval} that I missed.
It does not do though what I was attempting.
TimeFrameSet(inDaily);
#include "your support/resistance function";
Title = EncodeColor(colorBlack) + "Daily: " + EncodeColor(colorBlack) +
Name() + "-" + FullName() + "\n" +
EncodeColor(colorBlack) + "Open :" + (SelectedValue(Open)) + "\n" +
EncodeColor(colorBlack) + "High :" + (SelectedValue(High)) + "\n" +
EncodeColor(colorBlack) + "Low :" + (SelectedValue(Low)) + "\n"
+
EncodeColor(colorBlack) + "Close:" + (SelectedValue(Close)) +
"\n" +
EncodeColor(colorRed) + "Resistance:" + (SelectedValue(resistance))
+ "\n" +
EncodeColor(colorGreen) + "Support: " + (SelectedValue(support)) ;
PlotOHLC(Open,High,Low,Close,FullName(),colorBlack,styleCandle);
Plot(Support,"Support",colorGreen,styleLine + styleThick);
Plot(Resistance,"Resistance",colorRed,styleLine + styleThick);
TimeFrameRestore();
TimeFrameSet(inHourly);
#include "your support/resistance function";
Title = EncodeColor(colorBlack) + "Daily: " + EncodeColor(colorBlack) +
Name() + "-" + FullName() + "\n" +
EncodeColor(colorBlack) + "Open :" + (SelectedValue(Open)) + "\n" +
EncodeColor(colorBlack) + "High :" + (SelectedValue(High)) + "\n" +
EncodeColor(colorBlack) + "Low :" + (SelectedValue(Low)) + "\n"
+
EncodeColor(colorBlack) + "Close:" + (SelectedValue(Close)) +
"\n" +
EncodeColor(colorRed) + "Resistance:" + (SelectedValue(resistance))
+ "\n" +
EncodeColor(colorGreen) + "Support: " + (SelectedValue(support)) ;
PlotOHLC(Open,High,Low,Close,FullName(),colorBlack,styleCandle);
Plot(Support,"Support",colorGreen,styleLine + styleThick);
Plot(Resistance,"Resistance",colorRed,styleLine + styleThick);
TimeFrameRestore();
These functions are setup as two different indicators to be plotted. I do
not want
to use the TimeFrameExpand() function to have the dates "aligned". I
checked the
Date Scale in the attribute box for each script. I guess this is not
currently supported.
Thanks again for your reply.
Ron
-----Original Message-----
From: Graham [mailto:gkavanagh@xxxxxxxxxxxxx]
Sent: Tuesday, August 17, 2004 12:43 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Multiple Timeframe Support
Have you set up the time frames correctly?
Here is one I use for weekly macd on a daily chart
GraphXSpace=5;
TimeFrameSet( inWeekly );
x = 13;
y=21;
z=5;
A = MACD( x, y );
B = Signal( x, y, z );
D = A-B;
TimeFrameRestore();
Plot( TimeFrameExpand( A, inWeekly), "MACD", colorGreen );
Plot( TimeFrameExpand( B, inWeekly), "Signal", colorRed );
Plot( TimeFrameExpand( D*2, inWeekly), "Histogram", colorBlack,
styleHistogram);
PlotShapes( Cross( TimeFrameExpand( A, inWeekly), TimeFrameExpand( B,
inWeekly) )*shapeUpArrow, colorGreen, 0, TimeFrameExpand( A, inWeekly),
-20);
PlotShapes( Cross( TimeFrameExpand( B, inWeekly), TimeFrameExpand( A,
inWeekly) )*shapeDownArrow, colorRed, 0, TimeFrameExpand( A, inWeekly),
-20);
Title = "{{NAME}} - {{INTERVAL}} {{DATE}} - MyChart : {{VALUES}} ";
Cheers,
Graham
http://e-wire.net.au/~eb_kavan/
-----Original Message-----
From: RR [mailto:stocks@xxxxxxxxxxxxx]
Sent: Tuesday, August 17, 2004 11:52 AM
To: Amibroker
Subject: [amibroker] Multiple Timeframe Support
Goal: Display Multiple Timeframes on one sheet
We can control interval for multiple timeframes using TimeFrameSet()
function.
However, it appears that the interval selector function toolbar interferes
with the
TimeFrameSet() function so that you can not display multiple OHLC graphs
using
daily, hourly and ten minute graphs on one chart sheet. Even when using
multiple
sheets, one per timeframe, the interval selector seems to corrupt the OHLC
data display.
Is this correct or is there a workaround?
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
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/
|