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

[amibroker] Re: within x number of days



PureBytes Links

Trading Reference Links

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




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12hjkggps/M=362131.6882500.7825259.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124727301/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org
">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</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/