Could you translate the SETUP section for me? I don't understand all the conditions in there... It's not MQL4 and so I do have trouble understanding it in a whole.
Thanks!
// 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)
Could you translate the SETUP section for me? I don't understand all the conditions in there... It's not MQL4 and so I do have trouble understanding it in a whole.
Thanks!
// 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)
Could you translate the SETUP section for me? I don't understand all the conditions in there... It's not MQL4 and so I do have trouble understanding it in a whole.
Thanks!
// 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)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Здравствуйте,уважаемые программисты ! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)
Здравствуйте,уважаемые программисты ! Поправьте пожалуйста индикатор,не хочет работать у брокеров,где есть перфикс (EUR/USDecn,и т.д. ...)
Try out this one : 1000pipsmini_v2b.mq4
Set the suffix parameter to "ecn" in your case
Попробуйте это: [ATTACH] 222354 [/ ATTACH]
Установите параметр суффикс "ECN" в вашем случае [/ QUOTE]
Большое спасибо,Mladen !!!!!
Hi mladen!
Could you translate the SETUP section for me? I don't understand all the conditions in there... It's not MQL4 and so I do have trouble understanding it in a whole.
Thanks!
// 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)
Hi mladen!
Could you translate the SETUP section for me? I don't understand all the conditions in there... It's not MQL4 and so I do have trouble understanding it in a whole.
Thanks!
// 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)
That is a simple Bollinger bands with an addition of Donchian channel (but I do not see that Donchian is plotted on the chart in that code)
As for this lines :
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)
no idea what cl, body and n mean. In general, this
call_=(cl?body:n)
is equal to
if (cl==true) then call_=body; else call_==n;
and so on for any suc expression (the condition ? value if condition is true : value if condition is false)
Someone would be kind enough to fix two errors in this Expert Advisor
my-st-ea.mq4
Someone would be kind enough to fix two errors in this Expert Advisor my-st-ea.mq4
morenokosta
Here you go : my-st-ea_1.mq4
morenokosta Here you go : my-st-ea_1.mq4
Mladen thank you so much for always being available to be a magician
Thank you and good night
Hi mladen!
Could you translate the SETUP section for me? I don't understand all the conditions in there... It's not MQL4 and so I do have trouble understanding it in a whole.
Thanks!
// 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)
What coding language is that?
I got it from TradingView I think