JohnScher

Monday in Dax40 with 1%

Category: Strategies By: JohnScher Created: November 26, 2024, 10:50 AM
November 26, 2024, 10:50 AM
Strategies
6 Comments
Monday in Dax40 with 1%

For the porponents of simple trading strategies, I would like to share one of these strategies that I found myself as part of my time-based-strategy-series.

It is a long-only strategy. Long-only strategies would have always led to gains in the major indices depending on the holding period and transaction costs, take a look at their recent all-time highs.

It is quite simple. We buy the Dax in the 4H on Monday between 09.00 and 21.00 when the close is below the EMA50 and the EMA1 crosses the EMA2 upwards.
We want a TP of 1%. We do not use an SL, which is the difficulty of the strategy, we need money in our pockets – we should be able to withstand a corona dip. Here, 10.000 euros were sufficient.

The strategy is probably not suitable for Zack and Rich, but you can think about it as an addition to your portfolio.

//-------------------------------------------------------
// timebased serie
// timezone europe, berlin
// timeframe 4H
// created and coded by JohnScher
//-------------------------------------------------------

defparam cumulateorders = true

once ordersize = 1

td = opendayofweek =  1
tt = time  >= 090000 and time <= 210000

c1 = exponentialaverage [1] (close) crosses over exponentialaverage [2] (close)
c2 = exponentialaverage [1] (close) < exponentialaverage [50] (close)


if td and tt and c1 and c2  then
buy ordersize contracts at market
endif


set target %profit 1

Download
Filename: Monday-in-Dax40-with-1.itf
Downloads: 194
JohnScher
JohnScher Veteran
Operating in the shadows, I hack problems one by one. My bio is currently encrypted by a complex algorithm. Decryption underway...
Author’s Profile

Comments

JR1976
4 months ago
#

great Good work

to reduce the risk you could set the stop loss as a profit 1%

works

ysgurjar
10 months ago
#

Hi @DibuOL, did you use 10 min timeframe for 50 and 200 EMAs ?

ysgurjar
10 months ago
#

Great! For 1 micro dax contract , the overnight charges are close to 10,000 euro . Pluse need to consider extra slipplage caused by opening / closing during illiquid hrs.

DiBuOL
11 months ago
#

Dear John Scher, thank you very much for your code. I have adapted it slightly to suit my purposes and modified the trend filter a bit to help reduce the drawdown. Now, trades are only taken when the smaller EMAs are above the 50- and 200-period EMAs. In other words, only upward phases in the DAX are used. The results on the 10-minute chart are astonishing: 94 % winning positions, a ratio of 23.29. In the backtest, the capital has increased sixfold in less than a year!

superfalcio
2 years ago
#

Very simple and proficient!!! I add the information that with my account I can reduce the size to 0.5 therefore even a smaller capital than you mention in the description could be required to run safetly the strategy.

romanelli4
2 years ago
#

buongiorno Jhon grazie della condivisione ma come faccio a capire con quanti contratti sono in posizione? dal report riesco a vederlo? dato che ho questa funzione true defparam cumulateorders = true un saluto max

ProRealCode ProRealCode
Loading...