PureBytes Links
Trading Reference Links
|
Rick,
COND1=YOUR 1ST CONDITION;
COND2=YOUR NEXT CONDITION;
POINTS=5*(COND1+COND2);
It will be
5*(0+0) or 5*(1+0) or 5*(0+1) or 5*(1+1) when both conditions are
true.
No iif statement needed.
DT
--- In amibroker@xxxx, "Rick Parsons" <RickParsons@xxxx> wrote:
> Sometimes the way we have always done something is not so simple in
AFL.
>
> How do I accumulate "Points"?
>
> If condition 1 is true then Points = 5.
> If Condition 2 is true then I want to add another 5 to "Points".
> The statement: Points = 5 + 5; will work fine.
>
> The Statement: Points = Points + 5; will not work giving me an
Unknown identifier message.
>
> It should be this simple !!
>
> Thanks,
> Rick
|