PureBytes Links
Trading Reference Links
|
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@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx > - - - - - - - - - - - - - - - - - - - - > > ________________________________
> > 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. > > ________________________________
> >
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
YAHOO! GROUPS LINKS
|