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

[amibroker] Re: simple stuff I still can't code easily



PureBytes Links

Trading Reference Links

Yuki
I hope I've understood your question, you want to check 
that "mycond" is false for the previous 10 bars:  try
 sum(mycond,10)==0  or
true today and false prior 10 bars:
sum(mycond,11)==1 AND mycond

hope this helps
Andrew


--- In amibroker@xxxxxxxxxxxxxxx, Yuki Taga <yukitaga@xxxx> wrote:
> If I have a condition that needs to be true for B or S, but I want
> that condition to NOT be true for at least any of the 10 previous
> bars, is there an easier way to write it than by writing
> ref(mycond,-1) AND ref(mycond,-2) etc?
> 
> Yuki


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/Tq9otC/XP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/