Thanks a lot man, worked perfectly! I was almost these.
I had to swap condition1 and condition2.





--- In [email protected], "dbwyatt_1999" <dbw...@...> wrote:
>
> Hmmm, I tried Yahoo's beta Rich-Text Editor...
>
> Assuming your default timeframe is 1 minute bars, something like this
should work:
>
> Condition1 = Cross( EMA( Close, 5 ), EMA( Close, 12 ) ); // default is
1 minute bars
>
> TimeFrameSet(inDaily);
> Cond2 = Cross( EMA( Close, 15 ), EMA( Close, 25 ) ); // cross of daily
bars
> TimeFrameRestore();
>
> Condition2 = TimeFrameExpand(Cond2, inDaily); // expand daily bars
condition to 1 minute bars
> Buy = Condition1 AND Condition2;
>
> Regards,
>
> David
>
>
>
> --- In [email protected], "markedme9" markedme9@ wrote:
> >
> > blank ?!?!
> >
> >
> >
> >
> > --- In [email protected], "dbwyatt_1999" <dbw451@> wrote:
> > >
> > >
> > > --- In [email protected], "markedme9" <markedme9@> wrote:
> > > >
> > > >
> > > > Hello,
> > > >
> > > > What would be the right approach to get indiactor from multiple
time
> > > > frames?
> > > >
> > > > Example –
> > > >
> > > > Condition of
> > > >
> > > > Condition1 = Cross( EMA( Close, 5 ), EMA( Close, 12 ) );
> > > >
> > > > should meet on daily chart. This is the first condition.
> > > >
> > > > Then later on in intraday, 1 minute chart condition of
> > > >
> > > > Condition2 = Cross( EMA( Close, 15 ), EMA( Close, 25 ) );
> > > >
> > > > should meet.
> > > >
> > > >
> > > >
> > > > If both the first condition on the basis of daily chart and
second
> > > > condition on the basis of intraday 1 minute chart meet, then
only I
> > > > would receive a buy signal.
> > > >
> > > >
> > > >
> > > > I have been playing around with timeframeset () timeframemode
(),
> > > > timeframecompress () but it doesn't seem to work.
> > > >
> > > >
> > > >
> > > > TimeFrameSet (in1Minute);
> > > >
> > > >
> > > >
> > > > Condition1 = Cross( EMA( Close, 5 ), EMA( Close, 12 ) );
> > > >
> > > >
> > > >
> > > > TimeFrameCompress (C, inDaily);
> > > >
> > > > TimeFrameSet (inDaily);
> > > >
> > > > Condition2 = Cross( EMA( Close, 15 ), EMA( Close, 25 ) );
> > > >
> > > >
> > > >
> > > > TimeFrameRestore ();
> > > >
> > > >
> > > >
> > > > Buy = condition1 AND condition2;
> > > >
> > > >
> > > >
> > > > This code didn't work.
> > > >
> > > >
> > > >
> > > > http://www.amibroker.com/docs/MTFIndicators.html
> > > > <http://www.amibroker.com/docs/MTFIndicators.html>
> > > >
> > > > I am not very comfortable with this article using AddToComposite
> > > > function. Can anyone guide me please?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > >
> >
>



Reply via email to