×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Atlant IfThenElse - MultiCharts
Open main menu

Atlant IfThenElse

Revision as of 17:50, 16 October 2013 by Roman MultiCharts (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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;