Enrique

MQL4 Experts

Job finished

Execution time 7 days

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
(7)
Projects
25
44%
Arbitration
4
25% / 50%
Overdue
18
72%
Free
Published: 2 articles

Project information

Budget
20 - 30 USD
Deadline
from 1 to 2 day(s)