Moving average crossover trading strategy EURUSD

Category: Strategies By: Canale di Fill By Filippo Created: June 13, 2016, 8:30 AM
June 13, 2016, 8:30 AM
Strategies
6 Comments

GB I satisfy the request of a member of the website (Miguel33) with this simple code with excellent position …. good income but not very good outputs, if you have improvement ideas do not hesitate to ask, try this code on other tools and share the results thank you

IT Soddisfo la richiesta di Miguel33 di un codice semplice ma con ottime potenzialità…. buone le entrate ma non molto buone le uscite, se avete idee migliorative non esitate a chiedere, provate questo codice anche su altri strumenti e condividete i risultati…grazie

 

// Definizione dei parametri del codice
DEFPARAM CumulateOrders = False // Posizioni cumulate disattivate

ONCE Cond1=0
ONCE Cond2=0
ONCE Cond11=0
ONCE Cond12=0

maxperdita=-500 // nella valuta delle strumento

SL=150 // Stop Loss

MediaX = Average[15](close)
MediaY = Average[100](close)

// Condizioni per entrare su posizioni long
c1 = (MediaX CROSSES OVER MediaY)
IF c1 THEN
 Cond1=1
ENDIF

c2 = (Close<MediaX)
IF c2 THEN
 Cond2=1
ENDIF

c3 = (Close>MediaX)
c4 = (Close<MediaY)

IF c4 THEN
 Cond1=0
 Cond2=0
ENDIF

IF cond1=1 AND cond2=1 and c3 THEN
 BUY 1 CONTRACT AT MARKET
 cond1=0
 cond2=0
ENDIF

// Condizioni per entrare su posizioni short
c11 = (MediaY CROSSES OVER MediaX)
IF c11 THEN
 Cond11=1
ENDIF

c12 = (Close>MediaX)
IF c12 THEN
 Cond12=1
ENDIF

c13 = (Close<MediaX)
c14 = (Close>MediaY)

IF c14 THEN
 Cond11=0
 Cond12=0
ENDIF

IF cond11=1 AND cond12=1 and c13 THEN
 Sellshort 1 CONTRACT AT MARKET
 cond11=0
 cond12=0
ENDIF

// Stop e target
IF STRATEGYPROFIT < maxperdita THEN
 QUIT
ENDIF

SET STOP pLOSS SL

 

Canale di Fill

www.tradingsistem.com

Download
Filename: 70.1-Medie-EuUs-LS-1-ora.itf
Downloads: 461
Canale di Fill By Filippo Senior
www.canaledifill.com
Author’s Profile

Comments

Logo Logo
Loading...