Doctrading

Basic Momentum Strategy MA100

Category: Strategies By: Doctrading Created: March 27, 2016, 6:26 PM
March 27, 2016, 6:26 PM
Strategies
6 Comments
Basic Momentum Strategy MA100

A very simple and nice code , I got the idea spontaneously.

This is a long-term strategy, where we take positon with the momentum.

This momentum is defined here by the 100 moving average. If it goes above the moving average 20 days (1 month) before, we go to buy.

We also take short positions with opposite condition.

Therefore, we are constantly in position, buy or sell.

The backtest is very profitable on some indices, with a profit factor greater than 2 : including the DAX, CAC40. It also works on forex on many pairs. But the results are mixed for others.

Test and improve it !

DEFPARAM cumulateorders = false

MM100 = Average[100](close)


IF MM100 > MM100[20] THEN
BUY 1 SHARES AT MARKET
ENDIF

IF MM100 < MM100[20] THEN
SELLSHORT 1 SHARES AT MARKET
ENDIF

Download
Filename: Basic-Momentum-strategy.itf
Downloads: 344
Doctrading
Doctrading Master
Hello, I'm Marc. Nice to meet you.
Author’s Profile

Comments

phili711
10 years ago
#

Bonjour

Si la moyenne 100 est au dessus de la moyenne 20 le trend est baissier zlors pourquoi on achete?

Je nai pas compris ?

Bravo pour ce site

Philippe

Nicolas
10 years ago
#

La comparaison se fait entre la valeur de la moyenne actuelle et telle qu'elle était il y a 20 périodes de cela. Il n'y a pas de moyenne mobile 20 périodes dans la stratégie.

Doctrading
11 years ago
#

Ok, I will try it.

I have some nice daily strategies, I'm looking to create a code for intraday trading... such as the "Breakout ProOrder" for the CAC40.

But later I will backtest some of those "Dual momentum" strategies, which I did use myself manually.

Thomas007
9 years ago
#

we should definitely open a new thread for intraday trading - can we post the link once it's done? Thanks

Nicolas
11 years ago
#

Ok Doc, beware of intraday, it's a battlefield full of random noises :) Maybe we can work together on something, let's open a new thread on forum for intraday trading research!

Nicolas
11 years ago
#

Hello Doc, you should combine 2 momentum for better entries and exit. Look for "dual momentum" strategies on internet. Cheers.

ProRealCode ProRealCode
Loading...