×

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.

First 2 Hour Channel - MultiCharts
Open main menu

First 2 Hour Channel

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

Article/Author: Omega research Inc., 1997

Description: This simple trading system trades depending on market price of first 2 hours of previous day.

Inputs: BEGINCH - The beginning of 2 hour channel ENDCH - The finishing of 2 hours channel

INPUT:
BEGINCH(SESS1STARTTIME),
ENDCH(1300); 
{ 1300 IS AN EXAMPLE }

VARS:
CH(H),
CL(L);

IF TIME = BEGINCH + BARINTERVAL THEN BEGIN

     CH = H;

     CL = L;

END;

IF TIME >= BEGINCH AND TIME <= ENDCH THEN BEGIN

     IF H > CH THEN CH = H;

     IF L < CL THEN CL = L;

END;

IF TIME > ENDCH AND DATE = DATE TOMORROW THEN BUY NEXT BAR AT CH STOP;

IF TIME > ENDCH AND DATE = DATE TOMORROW THEN SELL NEXT BAR AT CL STOP;