PureBytes Links
Trading Reference Links
|
Rakesh,
I ran into a similar problem and have decided to use INCLUDES to
minimize the extra work that will go into maintaining separate
exploration AFLs. So, I will have separate explorations for each
timeframe (in my case, EOD and Weekly) and both explorations will
share many of the same includes. If you find an even easier way, let
me know.
Thanks,
Brian
brian (at) brianrichard (dot) com
> Hi Thomas,
>
>
> Thanks for your suggestion. However if I am running the scan in a
daily
> databse why would I need to set the timeframe as daily and
similarly for
> intraday?
>
> This condition does work if used individually i.e. if I say
> BC= IIf(int_CHK==inDaily,Cross(MACD(),SIGNAL()),0);(with
periodicity in
> settings set to daily)
> or
> BC= IIf(int_CHK==3600,Cross(MACD(),0),0);(with periodicity in
settings set
> to hourly)
>
> Both conditions work exactly as intended when not combined.
However when
> combined something goes amiss and conditions do not work according
to plan
> i.e. crossing zero signals are also detected in daily timeframe
and and
> crossing sigal line signals are detected in hourly timeframe.
>
> Only solution that I can think of is to keep two separate
explorations/scans
> for both hourly and daily periodicity which is cumbersome and does
not take
> advantage of the interval() function to design appropriate
conditions for
> the scan relevant to the database being scanned.
>
>
> Regards
>
>
> Rakesh
>
>
>
> On 3/16/06, Thomas Z. <tzg@xxx> wrote:
> >
> >
> >
> >
> > Hi,
> >
> >
> >
> > Time frame support doesn't work this way you would like it.
> >
> > Checkt out settimeframe in the help.
> >
> >
> >
> >
> > Regards
> >
> > - - - - - - - - - - - - - - - - - - - -
> > Thomas
> > www.tradingbasis.com
> > support@xxx
> > - - - - - - - - - - - - - - - - - - - -
> >
> > ________________________________
>
> >
> > From: amibroker@xxxxxxxxxxxxxxx
[mailto:amibroker@xxxxxxxxxxxxxxx] On
> Behalf Of Rakesh Sahgal
> > Sent: Thursday, March 16, 2006 4:11 PM
> > To: Amibroker Yahoogroup
> > Subject: [amibroker] Code help requested
> >
> >
> >
> >
> > Hi All,
> >
> > Cant get the following code to generate the correct signals
i.e. macd
> crossing 0 if it is an hourly chart and crossing signal line if it
is a
> daily chart - should ONLY test for these two conditions in the
respective
> time frames. To the best of my limited capabilities it seems error
free. Can
> anyone spot an error in it?
> >
> >
> > TIA for any help.
> >
> > Regards
> >
> >
> >
> > R
> > ======================================
> > INT_CHK=INTERVAL();
> >
> >
> > BC=
> > IIf(int_CHK==inDaily,Cross(MACD(),SIGNAL()),
> > IIf(int_CHK==3600,Cross(MACD(),0),
> > 0));
> >
> > buy=bc;
> >
> > filter=buy;
> > =======================================
> >
> >
> >
> >
> >
> >
> > Please note that this group is for discussion between users
only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> >
> >
> >
> >
> >
> > SPONSORED LINKS
> > Investment management
> software Real estate
investment
> software Investment property
> software
> > Software
> support Real estate
investment
> analysis software Investment
> software
> >
> > ________________________________
> YAHOO! GROUPS LINKS
> >
> >
> > Visit your group "amibroker" on the web.
> >
> > To unsubscribe from this group, send an email to:
> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
> >
> > ________________________________
>
> >
> >
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.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/
|