Aide au codage - page 493

 

Il n'y a aucune raison de ne pas le faire ! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)

Dossiers :
 
vitas34:
Il n'y a aucune raison de ne pas le faire ! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)

Essayez celui-ci : 1000pipsmini_v2b.mq4

Réglez le paramètre suffixe à "ecn" dans votre cas.

Dossiers :
 

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

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

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

 

Salut mladen !

Pourrais-tu traduire la section SETUP pour moi ? Je ne comprends pas toutes les conditions qui s'y trouvent... Ce n'est pas MQL4 et j'ai donc du mal à le comprendre dans son ensemble.

Merci !

// 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:
Salut mladen !

Pourriez-vous traduire la section SETUP pour moi ? Je ne comprends pas toutes les conditions qui s'y trouvent... Ce n'est pas MQL4 et j'ai donc du mal à le comprendre dans son ensemble.

Merci !

// 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)

C'est une simple bande de Bollinger avec un ajout de canal de Donchian (mais je ne vois pas que Donchian est tracé sur le graphique dans ce code).

Quant à ces lignes :

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)

aucune idée de la signification de cl, body et n. En général, ceci

appel_=(cl?body:n)

est égal à

si (cl==vrai) alors call_=corps ; sinon call_==n ;

et ainsi de suite pour toute expression suc (la condition ? valeur si la condition est vraie : valeur si la condition est fausse)

 

Quelqu'un aurait l'amabilité de corriger deux erreurs dans cet Expert Advisor

mon-st-ea.mq4

Dossiers :
my-st-ea.mq4  9 kb
 
morenokosta:
Quelqu'un aurait l'amabilité de corriger deux erreurs dans cet Expert Advisormy-st-ea.mq4

morenokosta

Et voilà : my-st-ea_1.mq4

Dossiers :
 
mladen:
morenokosta Voici : mon-st-ea_1.mq4

Mladen, merci beaucoup d'être toujours disponible pour être un magicien.

Merci et bonne nuit

 
BinaryVic:
Salut mladen !

Pourriez-vous traduire la section SETUP pour moi ? Je ne comprends pas toutes les conditions qui s'y trouvent... Ce n'est pas MQL4 et j'ai donc du mal à le comprendre dans son ensemble.

Merci !

// 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)

Quel est ce langage de codage ?

 

Je l'ai obtenu de TradingView je pense