robertrader1973

DAX40 H1 Long Trend System

Category: Strategies By: robertrader1973 Created: March 30, 2026, 10:20 AM
March 30, 2026, 10:20 AM
Strategies
3 Comments
DAX40 H1 Long Trend System

This intraday strategy runs on the DAX40 CFD at the H1 timeframe and focuses exclusively on long trades. The logic is built around trend following, with two moving averages doing the heavy lifting: a slow MA(185) to define the broader directional bias, and a faster MA(16) to confirm short-term momentum. A trade is only considered when the price sits above both, and above the 1000 level as a basic sanity filter.

To keep things clean, the system includes time-based restrictions. Entries are blocked after 17:30, and all positions are flattened outside the window between roughly 16:59 and 22:30. Weekends are excluded entirely.

Risk management is fixed and straightforward: a stop loss of 67 points and a take profit of 185 points, giving a risk/reward ratio of approximately 1:2.75. Only one position can be open at a time.

Since it only goes long, the strategy performs best in trending bullish conditions on the DAX. In choppy or bearish periods, it will simply stay out of the market.

// DAX40
// ALCISTA
// timeframe H1
// Creador ROBERTRADER36
DEFPARAM CumulateOrders = False
DEFPARAM PreLoadBars = 1000
DEFPARAM FLATBEFORE = 165900
DEFPARAM FLATAFTER = 223000

noEntryAfterTime = 173000
timeEnterAllowed = (Time < noEntryAfterTime)
daysForbidden = (OpenDayOfWeek = 6 OR OpenDayOfWeek = 0)
daysAllowed = NOT daysForbidden

ma185 = Average[185](Close)
ma16 = Average[16](Close)

c1 = (Close > 1000)
c2 = (Close > ma185)
cTrend = (Close > ma16)

IF c1 AND c2 AND cTrend AND timeEnterAllowed AND daysAllowed AND NOT LongOnMarket THEN
BUY 1 CONTRACT AT MARKET

SET STOP PLOSS 67
SET TARGET PPROFIT 185
ENDIF

Download
Filename: DAX-H1-4-DW9-418-1.itf
Downloads: 141
robertrader1973
robertrader1973 Junior
As an architect of digital worlds, my own description remains a mystery. Think of me as an undeclared variable, existing somewhere in the code.
Author’s Profile

Comments

JR1976
4 months ago
#

Thanks Roberta

should be a robust strategy

Could be interest to try the strategy also for Gold, during Friday Gold has been done robust breakout

pdrh
4 months ago
#

The market does not always trend up. Could you not add to your code to allow for short entries?

Anjuna Marine
5 months ago
#

@robertrader1973 THanks for sharing this, it looks interesting. Over what period were the variables (ma16, ma185, SL, TP) optimized? Did you optimize across all data to March 2026?

ProRealCode ProRealCode
Loading...