Simple 1H strategy on DAX (1EUR)
The aim of this strategy is to take a position after a succession of 3 consecutive candles of the same color. Strict hourly conditions allow the strategy to enter into position only at predetermined fixed times:
Trades are automatically closed at the end of the day.
// DAX (1E) - IG MARKETS
// TIME FRAME 1H
// SPREAD 2.0 PIPS
DEFPARAM CumulateOrders = False
DEFPARAM FLATBEFORE = 100000
DEFPARAM FLATAFTER = 210000
// LONG
IF (time = 120000 and close > open and close[1] > open[1] and close[2] > open[2]) THEN
BUY 1 CONTRACTS AT MARKET
SET STOP pLoss 30
SET TARGET pPROFIT 45
ENDIF
// SHORT
IF (time = 160000 and close < open and close[1] < open[1] and close[2] < open[2]) THEN
SELLSHORT 1 CONTRACTS AT MARKET
SET STOP pLoss 30
SET TARGET pPROFIT 45
ENDIF