Like the error msg says, you can't use an array in your IF statement. BARSSINCE
SYNTAX BarsSince( ARRAY ) RETURNS ARRAY -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] Behalf Of lifes_student_1 Sent: Saturday, August 25, 2007 11:28 AM To: [email protected] Subject: [amibroker] getting an error in my if statement condition1 = cross(close, ma(close,20)); barsback = BarsSince(condition1 == true); if(barsback < 6) {... I'm getting error 6 on barsback in if statement. condition1 is set and works as I've tested it elsewhere. What am I doing wrong? (Condition in IF, WHILE, FOR statements has to be Numeric or Boolean type. You cannot use an array here....) 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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links
