Ayuda a la codificación - página 493

 

¡Здравствуйте,уважаемые программисты! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)

Archivos adjuntos:
 
vitas34:
¡Здравствуйте,уважаемые программисты ! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)

Prueba este : 1000pipsmini_v2b.mq4

Poner el parámetro sufijo a "ecn" en su caso

Archivos adjuntos:
 

Попробуйте это: [ATTACH] 222354 [/ ATTACH]

Установите параметр суффикс "ECN" вашем случае [/ ATTACH]

¡¡¡¡¡Большое спасибо,Mladen !!!!!

 

¡Hola mladen!

¿Podrías traducirme la sección de SETUP? No entiendo todas las condiciones que hay ahí... No es MQL4 y por eso me cuesta entenderlo en su totalidad.

¡Gracias!

// Setups

call_ = (cl?body:n) and close<open and timeinrange and (avoidtime1?na:n) and (avoidtime2?na:n) and (bb?close<bbBot:n) and (tk?t!=k:n)

put_ = (cl?body:n) and close>open and timeinrange and (avoidtime1?na:n) and (avoidtime2?na:n) and (bb?close>bbTop:n) and (tk?t!=k:n)

// Body length

len = abs(close-open)

// Candle length

cl = input(true, title="Candle length")

b = input(0.53, step=0.01, title="Body")

body = len>(high-low)*b

// Time in range

timeinrange = time(period, sess)>0

avoidtime1 = time(period, sess1)>0

avoidtime2 = time(period, sess2)>0

// Bollinger Bands

bb = input(true, title="Bollinger Bands")

src = input(close, title="Source")

length = input(20, minval=1)

mult = input(2.2, minval=0.001, maxval=50, step=0.1)

basis = sma(src, length)

dev = mult * stdev(src, length)

bbTop = basis + dev

bbBot = basis - dev

plot(basis, color=black, style=circles, title="BB: Basis")

p1 = plot(bbTop, color=black, style=line, title="BB: Upper")

p2 = plot(bbBot, color=black, style=line, title="BB: Lower")

// Tenkan and Kijun

tk = input(true, title="Tenkan & Kijun")

t_len = input(6, minval=1, title="Tenkan-sen period")

k_len = input(28, minval=1, title="Kijun-sen period")

donchian(len) => avg(lowest(len), highest(len))

t = donchian(t_len)

k = donchian(k_len)

 
BinaryVic:
¡Hola mladen!

¿Podrías traducirme la sección de SETUP? No entiendo todas las condiciones allí... No es MQL4 y por eso me cuesta entenderlo en su totalidad.

Gracias.

// Setups

call_ = (cl?body:n) and close < open and timeinrange and (avoidtime1?na:n) and (avoidtime2?na:n) and (bb?close<bbBot:n) and (tk?t!=k:n)

put_ = (cl?body:n) and close > open and timeinrange and (avoidtime1?na:n) and (avoidtime2?na:n) and (bb?close>bbTop:n) and (tk?t!=k:n)

// Body length

len = abs(close-open)

// Candle length

cl = input(true, title="Candle length")

b = input(0.53, step=0.01, title="Body")

body = len>(high-low)*b

// Time in range

timeinrange = time(period, sess)>0

avoidtime1 = time(period, sess1)>0

avoidtime2 = time(period, sess2)>0

// Bollinger Bands

bb = input(true, title="Bollinger Bands")

src = input(close, title="Source")

length = input(20, minval=1)

mult = input(2.2, minval=0.001, maxval=50, step=0.1)

basis = sma(src, length)

dev = mult * stdev(src, length)

bbTop = basis + dev

bbBot = basis - dev

plot(basis, color=black, style=circles, title="BB: Basis")

p1 = plot(bbTop, color=black, style=line, title="BB: Upper")

p2 = plot(bbBot, color=black, style=line, title="BB: Lower")

// Tenkan and Kijun

tk = input(true, title="Tenkan & Kijun")

t_len = input(6, minval=1, title="Tenkan-sen period")

k_len = input(28, minval=1, title="Kijun-sen period")

donchian(len) => avg(lowest(len), highest(len))

t = donchian(t_len)

k = donchian(k_len)

Eso es un simple bandas de Bollinger con una adición de canal de Donchian (pero no veo que Donchian se traza en el gráfico en ese código)

En cuanto a estas líneas :

call_=(cl?body:n) and close < open and timeinrange and (avoidtime1?na:n) and (avoidtime2?na:n) and (bb?close < bbBot:n) and (tk?t!=k:n)

put_ = (cl?body:n) y close > open y timeinrange y (avoidtime1?na:n) y (avoidtime2?na:n) y (bb?close > bbTop:n) y (tk?t!=k:n)

ni idea de lo que significan cl, body y n. En general, esta

call_=(cl?body:n)

es igual a

si (cl==true) entonces call_=body; si no call_==n;

y así sucesivamente para cualquier expresión suc (la condición ? valor si la condición es verdadera : valor si la condición es falsa)

 

Alguien sería tan amable de arreglar dos errores en este Asesor Experto

mi-est-ea.mq4

Archivos adjuntos:
my-st-ea.mq4  9 kb
 
morenokosta:
Alguien sería tan amable de arreglar dos errores en este Asesor Expertomy-st-ea.mq4

morenokosta

Aquí tienes : my-st-ea_1.m q4

Archivos adjuntos:
 
mladen:
morenokosta Aquí tienes : my-st-ea_1.mq4

Mladen muchas gracias por estar siempre disponible para ser mago

Gracias y buenas noches

 
BinaryVic:
¡Hola mladen!

¿Podrías traducirme la sección de SETUP? No entiendo todas las condiciones allí... No es MQL4 y por eso me cuesta entenderlo en su totalidad.

Gracias.

// Setups

call_ = (cl?body:n) and close<open and timeinrange and (avoidtime1?na:n) and (avoidtime2?na:n) and (bb?close<bbBot:n) and (tk?t!=k:n)

put_ = (cl?body:n) and close>open and timeinrange and (avoidtime1?na:n) and (avoidtime2?na:n) and (bb?close>bbTop:n) and (tk?t!=k:n)

// Body length

len = abs(close-open)

// Candle length

cl = input(true, title="Candle length")

b = input(0.53, step=0.01, title="Body")

body = len>(high-low)*b

// Time in range

timeinrange = time(period, sess)>0

avoidtime1 = time(period, sess1)>0

avoidtime2 = time(period, sess2)>0

// Bollinger Bands

bb = input(true, title="Bollinger Bands")

src = input(close, title="Source")

length = input(20, minval=1)

mult = input(2.2, minval=0.001, maxval=50, step=0.1)

basis = sma(src, length)

dev = mult * stdev(src, length)

bbTop = basis + dev

bbBot = basis - dev

plot(basis, color=black, style=circles, title="BB: Basis")

p1 = plot(bbTop, color=black, style=line, title="BB: Upper")

p2 = plot(bbBot, color=black, style=line, title="BB: Lower")

// Tenkan and Kijun

tk = input(true, title="Tenkan & Kijun")

t_len = input(6, minval=1, title="Tenkan-sen period")

k_len = input(28, minval=1, title="Kijun-sen period")

donchian(len) => avg(lowest(len), highest(len))

t = donchian(t_len)

k = donchian(k_len)

¿Qué lenguaje de codificación es ese?

 

Lo obtuve de TradingView, creo.

Razón de la queja: