Enrique

MQL4 Indicators Experts

Specification

NECESITO QUE ME PASEN UN ALGORITMO DE PROREALTIME A METATRADER

 

// Definición de los parámetros del código
DEFPARAM CumulateOrders = False // Acumulación de posiciones desactivada

// Condiciones para entrada de posiciones largas
indicator1 = Average[4](RSI[14](close))
indicator2 = Average[4](RSI[14](close))
c1 = (indicator1 CROSSES OVER indicator2)

IF c1 THEN
BUY 1 CONTRACT AT MARKET
ENDIF

// Condiciones de salida de posiciones largas
indicator3 = Average[4](RSI[14](close))
indicator4 = Average[4](RSI[14](close))
c2 = (indicator3 CROSSES UNDER indicator4)

IF c2 THEN
SELL  AT MARKET
ENDIF

// Condiciones de entrada de posiciones cortas
indicator5 = Average[4](RSI[14](close))
indicator6 = RSI[14](close)
c3 = (indicator5 >= indicator6)

IF c3 THEN
SELLSHORT 1 CONTRACT AT MARKET
ENDIF

// Condiciones de salida de posiciones cortas
indicator7 = Average[4](RSI[14](close))
indicator8 = Average[4](RSI[14](close))
c4 = (indicator7 CROSSES UNDER indicator8)

IF c4 THEN
EXITSHORT  AT MARKET
ENDIF

// Stops y objetivos
SET STOP pTRAILING 10       

Responded

1
Developer 1
Rating
(106)
Projects
314
49%
Arbitration
42
52% / 19%
Overdue
22
7%
Free
2
Developer 2
Rating
(560)
Projects
855
61%
Arbitration
33
27% / 45%
Overdue
24
3%
Working
Published: 1 code

Project information

Budget
20 - 50 USD
Deadline
from 1 to 3 day(s)