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

AW: [amibroker] within x number of days



PureBytes Links

Trading Reference Links

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=12hbaro0t/M=362343.6886682.7839641.1493532/D=groups/S=1705632198:TM/Y=YAHOO/EXP=1124723977/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/