+1 888 340 6572

Mon. or Tues. Buy

Article/Author: Omega research Inc., 1997

Download: montues.ela

File Includes: Signal - Mon. or Tues. Buy

Category: Strategy > Mon. or Tues. Buy

Description: This is an example of how to use Easy Language to buy on either
Monday or Tuesday depending on other Conditions.

EasyLanguage Code:
INPUT:CP(C);

VARS:OTODAY(O);
IF (DAYOFWEEK(DATE) = 1 OR DAYOFWEEK(DATE) = 2) {AND DATE DATA1 <> DATE DATA2}
THEN BEGIN
IF DATE > DATE[1] THEN BEGIN
VALUE1 = O;
IF VALUE1 < L DATA2 THEN VALUE2 = 1;
END;

IF VALUE2 = 1 AND CP CROSSES OVER VALUE1 THEN BEGIN
BUY ON C;
VALUE2 = 0;
VALUE3 = C;
END;

IF MARKETPOSITION = 1 THEN EXITLONG AT VALUE3 LIMIT;
END;