the syntax of the if condition in amibroker afl is
if, else Statement
if(expression ) statement1
[else statement2]
The if keyword executes statement1 if expression is true (nonzero); if else is present and expression is false (zero), it executes statement2. After executing statement1 or statement2, control passes to the next statement.
Example 1
if ( i > 0 )
y = x / i;
else
{
x = i;
y = abs( x );
}
Thats right sir.
But i am not able to put my condition in this if else code.
Can u please spare some time and code for me with the condition that i have mentioned in my question