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

Re: [amibroker] Simply Add



PureBytes Links

Trading Reference Links


Hello,
 
Think that way: you want to acCUMulate then you should 
use CUM function.
 
Points = CUM(   Condition * 5  );
 
If you have separate Cond1 and cond2
 
Points = Cum( IIF( Cond1, 5, IIF( Cond2, 7 ), 0 ) ) 
);
Best 
regards,Tomasz Janeczkoamibroker.com
<BLOCKQUOTE 
>
----- Original Message ----- 
<DIV 
>From: 
<A title=RickParsons@xxxx 
href="">Rick Parsons 
To: <A title=amibroker@xxxxxxxxxx 
href="">amibroker@xxxxxxxxxxxxxxx 
Sent: Tuesday, October 15, 2002 8:18 
PM
Subject: [amibroker] Simply Add

Sometimes the 
way we have always done something is not so simple in AFL.
<FONT color=#000080 
size=2> 

How do I 
accumulate "Points"?
<FONT color=#000080 
size=2> 
If condition 1 
is true then Points = 5.
If Condition 2 
is true then I want to add another 5 to 
"Points".<SPAN 
class=790371118-15102002>
The 
statement:  Points = 5 + 5; will work 
fine.
<FONT color=#000080 
size=2> 
The 
Statement:  Points = Points + 5; will not work giving me 
an Unknown identifier message.
<FONT color=#000080 
size=2> 
It should be 
this simple !!
<FONT color=#000080 
size=2> 
<FONT color=#000080 
size=2>Thanks,
<FONT face="Vladimir Script" color=#000080 
size=5>Rick
 Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service.