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

Re: [amibroker] Re: Anyone who knows multiple time frame functions well please help



PureBytes Links

Trading Reference Links

Assuming you have 3 minute period set in AA window, or chart setting
try this

A4=timeframeexpand(timeframecompress(CCI(A),in15minute),in15minute);
A5=timeframeexpand(timeframecompress(CCI(A1),in15minute),in15minute);


On Mon, 08 Nov 2004 01:39:51 -0000, mleonsprint <mleonsprint@xxxxxxxxx> wrote:
> 
> 
> The problem is I trade from a 3 minute price chart and I need to
> reference an indicator that is on a 15 minute chart.
> 
> So your saying this is not possible?
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Ara Kaloustian" <ara1@xxxx> wrote:
> > You need to use ONLY predefined values as your base chart time.
> >
> > Predefined value are 1,5 and I beleive 15 min. in the low range of
> intraday
> > .... 3 min that you are using is not defined as a base ... so you
> can not
> > derive 15 min time from from 3 min base.
> >
> > Look in help files for rest of defined base times...
> >
> > ----- Original Message -----
> > From: "mleonsprint" <mleonsprint@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Sunday, November 07, 2004 12:28 PM
> > Subject: [amibroker] Anyone who knows multiple time frame
> functions well
> > please help
> >
> >
> > >
> > >
> > > I have looked in the reference etc. and am struggling with using
> the
> > > multiple time frame coding.  I have been trying all afternoon to
> get
> > > this code into a 15 minute time frame (when I have a 3 minute
> time
> > > frame price chart up)
> > >
> > > Here is what I did,
> > >
> > > TimeFrameSet(in15Minute);
> > > A4=CCI(A);
> > > A5=CCI(A1);
> > > TimeFrameRestore();
> > >
> > > Then where any a4 and a5 were listed I typed "Timeframeexpand
> > > (a4,in15minute)" or "Timeframeexpand(a4,in15minute)"
> > >
> > > But the coding came out wrong because it doesn't look right on my
> > > chart, comparing it to an actual 15 min chart with the indicator
> > > plotted....
> > >
> > > Thanks for your help
> > > Mark
> > >
> > >
> > > Title = "Woodies CCI " + " " + FullName() + " " + Date( ) ;
> > >
> > > A=Param("CCI TURBO",6,3,14,1);
> > > A1=Param("CCI 14",14,7,20,1);
> > > A2=ParamColor("CCI TURBO",colorGreen);
> > > A3=ParamColor("CCI 14",colorRed);
> > > A4=CCI(A);
> > > A5=CCI(A1);
> > > A6=IIf(A5<0,colorBrightGreen,colorRed);
> > > A7=IIf(Ref(A5,-5) <0 AND Ref(A5,-4) <0 AND Ref(A5,-3) <0 AND Ref
> (A5,-
> > > 2) <0 AND Ref(A5,-1) <0,colorRed,A6);
> > > A8=IIf(Ref(A5,-5) >0 AND Ref(A5,-4) >0 AND Ref(A5,-3) >0 AND Ref
> (A5,-
> > > 2) >0 AND Ref(A5,-1) >0,colorBrightGreen,A7);
> > > Plot(A5,"CCI TURBO HISTOGRAM",A8,styleHistogram);
> > > Plot(A4,"CCI TURBO",A2,styleThick);
> > > Plot(A5,"CCI 14",A3,styleThick);
> > > Plot(0,"ZERO LINE",colorBlack,styleThick);
> > > Plot(-100,"-90",colorBlack,styleLine);
> > > Plot(100,"90",colorBlack,styleLine);
> > >
> > >
> > >
> > >
> > >
> > >
> > > 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
> 
> 
> 
> 
> 


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


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