×

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.

Changes - MultiCharts
Open main menu

Changes

First 2 Hour Channel

745 bytes added, 13:41, 14 October 2013
Created page with "Article/Author: Omega research Inc., 1997 '''Description''': This simple trading system trades depending on market price of first 2 hours of previous day. '''Inputs''': ..."
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

<SYNTAXHIGHLIGHT>
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;
</SYNTAXHIGHLIGHT>
[[Category: Signals]]