Atlant IfThenElse
From MultiCharts
Article/Author: Omega research Inc., 1997
Signal Code:
IF AVERAGE(CLOSE,9) CROSSES ABOVE AVERAGE(CLOSE,19) THEN BEGIN
BUY("LE#1") NEXT BAR CLOSE STOP;
END ELSE BEGIN
BUY("LE#2") NEXT BAR AT HIGHEST(HIGH,10) STOP;
END;
IF AVERAGE(CLOSE,9) CROSSES BELOW AVERAGE(CLOSE,19) THEN BEGIN
SELL ("EL#1") NEXT BAR CLOSE STOP;
END ELSE BEGIN
SELL ("EL#2") NEXT BAR AT LOWEST(LOW,10) STOP;
END;