Pablo Carmona del Moral

3 moving average trading strategy EURUSD

Category: Strategies By: Pablo Carmona del Moral Created: May 16, 2016, 1:59 PM
May 16, 2016, 1:59 PM
Strategies
11 Comments
3 moving average trading strategy EURUSD

EN/ A small strategy that seems to be working. It is based on three moving average. in 5 minutes it is ok. I encourage you modify and test in other timeframes and pairs. It is made for Eur-Usd. Thank you.

ES/ Una pequeña estrategia que parece que puede funcionar. Se basa en tres medias mobiles. en 5 minutos va ok. Animo a que modifiqueis y proveis en otros tiempos y pares. A Eur-Usd. gracias.

// Condiciones para entrada de posiciones largas
DEFPARAM CumulateOrders = false
mm3= average[297]
mm2= average[99]
mm1= average[50]

if mm1<mm2 and mm2<mm3 then
 sellshort 1 contract at market
endif

if mm1>mm2 and mm2>mm3 then
 buy 1 contract at market
endif

 

Download
Filename: 3movingaverage-strategy-EURUSD.itf
Downloads: 469
Pablo Carmona del Moral
Pablo Carmona del Moral Average
Developer by day, aspiring writer by night. Still compiling my bio... Error 404: presentation not found.
Author’s Profile

Comments

Gaby333
7 years ago
#

Hello every one hope everyone ok)) I was just traying to maximize the strategy by closing with the stochastic. Any idea how the code my sound))

demoz
10 years ago
#

Did anyone test this live?

#

I made a simple risk management twice varying breakdown i max up or down in this program the number of lots according to the strategyprofit entered. Bring us and try it, thanks.

// Condiciones para entrada de posiciones largas
DEFPARAM CumulateOrders = false
once n=2
q= strategyprofit[0]
mm3= average[297]
mm2= average[99]
mm1= average[50]
n=(q/1000)+5
if mm1<mm2 and mm2<mm3 then
sellshort n contract at market
endif

if mm1>mm2 and mm2>mm3 then
buy n contract at market
endif


#

// Condiciones para entrada de posiciones largas
DEFPARAM CumulateOrders = false
once n=2
q= strategyprofit[0]
mm3= average[297]
mm2= average[99]
mm1= average[50]
n=(q/1000)+5
if mm1<mm2 and mm2<mm3 then
sellshort n contract at market
endif

if mm1>mm2 and mm2>mm3 then
buy n contract at market
endif

Nicolas
10 years ago
#

Cumulative orders can be very powerful with a good risk control. There's an interesting thread about a nice risk/reward management system here: http://www.prorealcode.com/topic/grid-orders-with-one-combined-stop-loss-and-limit-can-it-be-done/

#

Doctor how do you make to made a good riskmananagement?

#

Sorry for my english. I never cumulating orders. Always I made programs with defparam = False

Doctrading
10 years ago
#

Hello,

Cumulating orders isn't VERY risky ?

Best Regards,

#

tonight will schedule more fun moneymanagement, programming strategy through profit the number of lots. seguros.Lo good results more important is the security of your account, that being able to spend what people do not like that happens, we lose never will be 0

#

Hello MikeGC
when you put "defparameters = true" in each candle you put an order, it is important when you put so many orders know if you put the corresponding spread the pair in which these testing strategy. I'm glad you like my little work. the spread in Gbp / Jpy is 2.5 pips. and Eur / Usd 1.5 which is the typical spread, not the minimum spread. If ahun with the strategy that works I would give as valid. It is important to play with the money management not as a monkey with a revolver. if not everyone knows how you can finish the game.

MikeGC
10 years ago
#

Hi Pablo,

I have optimised this beautifully simple strategy for the GBPJPY and changed the CumulateOrders to "true".  This has produced a rather spectacular result over the course of 12 months on the - too good to be true?

With the same optimised settings, it produces 68% gain on the EURUSD over 12 months.

Many thanks.

Best regards,

Mike

// Condiciones para entrada de posiciones largas
DEFPARAM CumulateOrders = true
mm3= average[100]
mm2= average[80]
mm1= average[90]

if mm1<mm2 and mm2<mm3 then
sellshort 1 contract at market
endif

if mm1>mm2 and mm2>mm3 then
buy 1 contract at market

 

ProRealCode ProRealCode
Loading...