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

[amibroker] need help with basic trend formula



PureBytes Links

Trading Reference Links

I'm trying to create a short positive trend formula to see that the 
closing value has risen consistently over the past 5 days:

//Uptrend Buy

Buy = C > Ref (C-1 ) //5 Day Buy Signal
AND Ref( C, -1 ) > Ref( C, -2 ) 
AND Ref( C, -2 ) > Ref( C, -3 )  
AND Ref( C, -3 ) > Ref( C, -4 )  
AND Ref( C, -4 ) > Ref( C, -5 )
AND C>10 AND C<50 AND V>500000; 

I keep getting an error message 12 for "missing arguement".  I based 
this code on one that I found on this site for buying based on a 
rising OBV and subsituted the closing price for OBV.  Everything was 
kept the same.  Any help would be appreciated.
ron


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/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/