![MQL5 - Linguaggio delle strategie di trading integrato nel client terminal MetaTrader 5](https://c.mql5.com/i/registerlandings/logo-2.png)
Ti stai perdendo delle opportunità di trading:
- App di trading gratuite
- Oltre 8.000 segnali per il copy trading
- Notizie economiche per esplorare i mercati finanziari
Registrazione
Accedi
Accetti la politica del sito e le condizioni d’uso
Se non hai un account, registrati
Здравствуйте,уважаемые программисты ! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)
Здравствуйте,уважаемые программисты ! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)
Prova questo: 1000pipsmini_v2b.mq4
Impostare il parametro suffisso su "ecn" nel vostro caso
Попробуйте это: [ATTACH] 222354 [/ ATTACH]
Установите параметр суфикс "ECN" в вашем случае [/ QUOTE]
Большое спасибо,Mladen !!!!!
Ciao mladen!
Potresti tradurre la sezione SETUP per me? Non capisco tutte le condizioni lì dentro... Non è MQL4 e quindi ho difficoltà a capirlo nel suo complesso.
Grazie!
// 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)
Ciao mladen!
Potresti tradurre la sezione SETUP per me? Non capisco tutte le condizioni lì dentro... Non è MQL4 e quindi ho difficoltà a capirlo nel suo insieme.
Grazie!
// 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)
Quella è una semplice banda di Bollinger con un'aggiunta di canale di Donchian (ma non vedo che Donchian è tracciato sul grafico in quel codice)
Per quanto riguarda queste linee :
call_=(cl?body:n) e close < open e timeinrange e (avoidtime1?na:n) e (avoidtime2?na:n) e (bb?close < bbBot:n) e (tk?t!=k:n)
put_ = (cl?body:n) e close > open e timeinrange e (avoidtime1?na:n) e (avoidtime2?na:n) e (bb?close > bbTop:n) e (tk?t!=k:n)
non ho idea di cosa significhino cl, body e n. In generale, questo
call_=(cl?body:n)
è uguale a
se (cl==vero) allora call_=corpo; altrimenti call_==n;
e così via per qualsiasi espressione suc (la condizione ? valore se la condizione è vera : valore se la condizione è falsa)
Qualcuno sarebbe così gentile da correggere due errori in questo Expert Advisor
mio-st-ea.mq4
Qualcuno sarebbe così gentile da correggere due errori in questo Expert Advisormy-st-ea.mq4
morenokosta
Ecco a voi: my-st-ea_1.mq4
morenokosta Ecco a voi: my-st-ea_1.mq4
Mladen grazie mille per essere sempre disponibile a fare il mago
Grazie e buona notte![](https://c.mql5.com/forextsd/smiles/party.png)
Ciao mladen!
Potresti tradurre la sezione SETUP per me? Non capisco tutte le condizioni lì dentro... Non è MQL4 e quindi ho difficoltà a capirlo nel suo insieme.
Grazie!
// 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)
Che linguaggio di codifica è?
L'ho preso da TradingView credo