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

Re: [amibroker] Re: Multiple timeframe question



PureBytes Links

Trading Reference Links

Here is a simple test, and this owrks fine on my computer
CHART 1

Plot( RSI(14), "RSI-1 minute", colorBlack, styleLine );

Title = "{{NAME}} - {{INTERVAL}} {{DATE}} : {{VALUES}} ";
GraphXSpace=5;

CHART 2
Plot( TimeFrameCompress( RSI(14), in5Minute ), "RSI-5 Minute
compressed", colorBlue, styleLine|styleDots );

Plot( TimeFrameExpand( TimeFrameCompress( RSI(14), in5Minute )
,in5Minute ), "RSI-5 minute expanded", colorRed, styleLine );


Title = "{{NAME}} - {{INTERVAL}} {{DATE}} : {{VALUES}} ";
GraphXSpace=5;

Just alter the timeframe for the charts between 5 minute and 1 minute
to see if they correlate

On Tue, 25 Jan 2005 11:23:20 -0000, gunovanengel <gunovanengel@xxxxxx> wrote:
> 
> 
> Hi Graham,
> 
> What I want is when the base timeframe is 1 min to show in the upper
> pane a 5 min chart and in the lower pane a 1 min chart. the chart in
> the lower pane is drawn by Amibroker internally.
> The 5 min chart in the upper pane  is drawn by the AFL code I wrote.
> 
> The problem I encounter is that when I compare my afl drawn 5 min
> chart with a 5 min chart drawn internally by Amibroker. the charts
> do not look the same.
> 
> Regards
> Guno
> 
> --- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxxx> wrote:
> > Have you set the base timeframe level for the chart to less than 5
> minute?
> > You cannot get 5 minute details on a 1 hour chart.
> >
> > On Tue, 25 Jan 2005 08:53:28 -0000, gunovanengel
> <gunovanengel@xxxx> wrote:
> > >
> > >
> > > Hi,
> > >
> > > I have also tried that, it still differs
> > >
> > > Regards
> > > GUno
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "Christoper" <turkey@xxxx>
> wrote:
> > > >
> > > > I think you may need to switch:
> > > > =>Plot( MRSI, "RSI 5 Min", colorSkyblue  + styleLine |
> > > styleThick ,1);
> > > >
> > > > To:
> > > > =>Plot( TimeFrameExpand(MRSI, in5Minute), "RSI 5 Min",
> > > colorSkyblue
> > > > + styleLine | styleThick ,1);
> > > >
> > > >
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx, "gunovanengel"
> > > <gunovanengel@xxxx>
> > > > wrote:
> > > > >
> > > > > HI,
> > > > >
> > > > > I would like to put in the top pane of a window a five minute
> > > chart
> > > > > in the lower pane I would like to have a one min chart
> > > > >
> > > > > I have tried the code below in the top window. When I cross
> > > check
> > > > > this however, the peaks and valleys are not the same as a
> > > regular 5
> > > > > min chart drawn by amibroker.
> > > > >
> > > > > ////////////////////=== Start code
> > > > > if( Interval() == 60 ) //1 min
> > > > > {
> > > > > TimeFrameSet( in5Minute ); // switch to 5 minute frame
> > > > > MRSI= RSI(14);
> > > > > TimeFrameRestore(); // restore time frame to original
> > > > > //Plot(TimeFrameExpand(MRSI,in5Minute), "RSI 5 Min",
> > > colorSkyblue
> > > > +
> > > > > styleLine | styleThick ,1);
> > > > > Plot( MRSI, "RSI 5 Min", colorSkyblue  + styleLine |
> > > styleThick ,1);
> > > > >
> > > > > }
> > > > >
> > > > > ///////////////////////////////==== end Code
> > > > >
> > > > > What am I doing wrong
> > > > >
> > > > > Your help is greately appreciated.
> > > > >
> > > > >
> > > > > Kindest regards
> > > > > Guno
> > >
> > >
> > > 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
> > >
> > >
> > >
> > >
> > >
> >
> >
> > --
> > Cheers
> > Graham
> > http://e-wire.net.au/~eb_kavan/
> 
> 
> 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
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/