Hello,
Please read the manual :
http://www.amibroker.com/guide/a_mistakes.html
Best regards,
Tomasz Janeczko
amibroker.com
On 2010-05-09 10:20, gariki wrote:
I am trying to put in this line of code
if( LongEntryPrice > 0 AND (BarsSince(Buy) >= 300 ) )
and its giving me a compile time error saying:
Error .
Condition in IF, WHILE, FOR statements has to be a Numeric or Boolean
type.. for the BarsSince function.
BarsSince(Buy) should return a numeric value and comparing it with a
number should return a boolean value.
Does anyone know why it is showing up as error?
Thanks
-gariki