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

[amibroker] Re: Indicators from multiple time frames, Daily and Intraday 1 min chart.



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "markedme9" <markedme9@xxx> wrote:
>
> blank ?!?!
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "dbwyatt_1999" <dbw451@> wrote:
> >
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "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
> > >
> >
>




------------------------------------

**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to 
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

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