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

Re: [amibroker] Re: within x number of days



PureBytes Links

Trading Reference Links

alternative, isn't there always more than one way

CrossBelow = Sum( myRSI < 30 AND myEMA < 35, 5) >0 ;

CrossBelow = Barssince( myRSI < 30 AND myEMA < 35) <=5 ;

On 8/22/05, Ian <ian@xxxxxxxxxxxxxxxxxx> wrote:
> Thanks Thomas,
> I'll try that.
> much appreciated
> cheers
> Ian
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Thomas Z" <tzg@xxxx> wrote:
> > Hello Ian,
> >
> > You can do this through the barssince function:
> >
> > Lookback = 5;
> > CrossBelow = barssince(Ref((myRSI < 30 AND myEMA < 35), -5)) <=
> lookback ;
> >
> >
> > Regards
> >
> > Thomas
> > www.tradingbasis.com
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
> Im Auftrag
> > von Ian
> > Gesendet: Montag, 22. August 2005 14:42
> > An: amibroker@xxxxxxxxxxxxxxx
> > Betreff: [amibroker] within x number of days
> >
> > hey all,
> >
> > I'm using the following code:
> > CrossBelow = Ref((myRSI < 30 AND myEMA < 35), -5) ;
> >
> > what I want is for the scan to look for these conditions WITHIN
> the
> > past 5 days, NOT 5 days AGO. But the Ref() code seems only to
> return x
> > days AGO.
> >
> > How do I look for certain conditions happening WITHIN the past x
> days?
> >
> > I've looked thru the help but no success.
> >
> > ALSO, just recently I opened AB only to find that a lot of the
> data
> > had been corrupted and data from midway thru "S" codes was
> completely
> > gone. Has anyone else had this happen?
> >
> > cheers
> > Ian
> >
> >
> >
> >
> >
> > 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
> 
> 
> 
> 
> 
> 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
> 
> 
> 
> 
> 
> 
> 
> 


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm


------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hdra4in/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124757010/A=2894350/R=0/SIG=10tj5mr8v/*http://www.globalgiving.com";>Make a difference. Find and fund world-changing projects at GlobalGiving</a>.</font>
--------------------------------------------------------------------~-> 

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/