Use for ending instruction of an IF conditionnal statement.
Syntax:
1 |
ENDIF |
Example:
1 2 3 4 5 6 7 8 9 10 |
a = average[10](close) b = exponentialaverage[20](close) IF (a>b) THEN result = 1 ELSE result = -1 ENDIF //close the conditionnal statement here RETURN result as "direction" |