“AND” is the logical operator used to add different functions in the same expression.
Example:
1 2 3 4 5 6 7 8 9 10 |
myRSIvalue = RSI[14](Close) myValueCondition = 50 if(myRSIvalue > myValueCondition AND myRSIvalue[1] < myValueCondition) THEN SIGNAL = 1 ELSE SIGNAL = 0 ENDIF RETURN SIGNAL |