what ?Borshchov A.N. wrote: Fri Jul 22, 2022 8:16 pm ridiculous character, why is this picture on your nickname?
cute human, half-woman, half machine from the year 3144...how is it ridiculous ?

what ?Borshchov A.N. wrote: Fri Jul 22, 2022 8:16 pm ridiculous character, why is this picture on your nickname?
Code: Select all
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © danielfdsof
//@version=4
study("Comando Cripto Oficial Comprar/Vender", overlay=true)
RSI_Period = input(14, title='RSI Length')
SF = input(5, title='RSI Smoothing')
QQE = input(4.238, title='Fast QQE Factor')
ThreshHold = input(10, title="Thresh-hold")
src = close
Wilders_Period = RSI_Period * 2 - 1
Rsi = rsi(src, RSI_Period)
RsiMa = ema(Rsi, SF)
AtrRsi = abs(RsiMa[1] - RsiMa)
MaAtrRsi = ema(AtrRsi, Wilders_Period)
dar = ema(MaAtrRsi, Wilders_Period) * QQE
comprarband = 0.0
venderband = 0.0
trend = 0
DeltaFastAtrRsi = dar
RSIndex = RsiMa
newvenderband = RSIndex + DeltaFastAtrRsi
newcomprarband = RSIndex - DeltaFastAtrRsi
comprarband := RSIndex[1] > comprarband[1] and RSIndex > comprarband[1] ? max(comprarband[1], newcomprarband) : newcomprarband
venderband := RSIndex[1] < venderband[1] and RSIndex < venderband[1] ? min(venderband[1], newvenderband) : newvenderband
cross_1 = cross(comprarband[1], RSIndex)
trend := cross(RSIndex, venderband[1]) ? 1 : cross_1 ? -1 : nz(trend[1], 1)
FastAtrRsiTL = trend == 1 ? comprarband : venderband
// cruzamento das linhas do "rsi qqe"
QQExcomprar = 0
QQExcomprar := nz(QQExcomprar[1])
QQExvender = 0
QQExvender := nz(QQExvender[1])
QQExcomprar := FastAtrRsiTL < RSIndex ? QQExcomprar + 1 : 0
QQExvender := FastAtrRsiTL > RSIndex ? QQExvender + 1 : 0
//Condições
qqeComprar = QQExcomprar == 1 ? FastAtrRsiTL[1] - 50 : na
qqeVender = QQExvender == 1 ? FastAtrRsiTL[1] - 50 : na
// exibir
plotshape(qqeComprar, title="QQE comprar", text="Comprar", textcolor=color.white, style=shape.labelup, location=location.belowbar, color=color.green, transp=0, size=size.tiny)
plotshape(qqeVender, title="QQE vender", text="Vender", textcolor=color.white, style=shape.labeldown, location=location.abovebar, color=color.red, transp=0, size=size.tiny)
// Alertas
alertcondition(qqeComprar, title="Comprar", message="Comprar")
alertcondition(qqeVender, title="Vender", message="Vender")
Looks like a qqe crossing the fast trend line main chart arrows. Think we have some sub-window versions that draw on-chart arrows when crossing the qqe crossing the fast trend line. For Wilder's period don't think you need it as an external parameter since it is alreadyionone wrote: Tue Aug 23, 2022 10:20 pm Hi
I found this interesting indicator on TradingView but I don't get the exact same results than in TradingView. It is close, but some settings are a bit off.
I set Wilder's period as a different parameter. if you want same settings, you will need to compute wilder's period = 2*RSIPeriod -1
https://www.tradingview.com/script/lYqCrCZY/
I someone can help me in checking my code that would be greatly appreciated
(the TV code is embedded in the MQ4)
thanks a lot
Jeff
Code: Select all
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © danielfdsof //@version=4 study("Comando Cripto Oficial Comprar/Vender", overlay=true) RSI_Period = input(14, title='RSI Length') SF = input(5, title='RSI Smoothing') QQE = input(4.238, title='Fast QQE Factor') ThreshHold = input(10, title="Thresh-hold") src = close Wilders_Period = RSI_Period * 2 - 1 Rsi = rsi(src, RSI_Period) RsiMa = ema(Rsi, SF) AtrRsi = abs(RsiMa[1] - RsiMa) MaAtrRsi = ema(AtrRsi, Wilders_Period) dar = ema(MaAtrRsi, Wilders_Period) * QQE comprarband = 0.0 venderband = 0.0 trend = 0 DeltaFastAtrRsi = dar RSIndex = RsiMa newvenderband = RSIndex + DeltaFastAtrRsi newcomprarband = RSIndex - DeltaFastAtrRsi comprarband := RSIndex[1] > comprarband[1] and RSIndex > comprarband[1] ? max(comprarband[1], newcomprarband) : newcomprarband venderband := RSIndex[1] < venderband[1] and RSIndex < venderband[1] ? min(venderband[1], newvenderband) : newvenderband cross_1 = cross(comprarband[1], RSIndex) trend := cross(RSIndex, venderband[1]) ? 1 : cross_1 ? -1 : nz(trend[1], 1) FastAtrRsiTL = trend == 1 ? comprarband : venderband // cruzamento das linhas do "rsi qqe" QQExcomprar = 0 QQExcomprar := nz(QQExcomprar[1]) QQExvender = 0 QQExvender := nz(QQExvender[1]) QQExcomprar := FastAtrRsiTL < RSIndex ? QQExcomprar + 1 : 0 QQExvender := FastAtrRsiTL > RSIndex ? QQExvender + 1 : 0 //Condições qqeComprar = QQExcomprar == 1 ? FastAtrRsiTL[1] - 50 : na qqeVender = QQExvender == 1 ? FastAtrRsiTL[1] - 50 : na // exibir plotshape(qqeComprar, title="QQE comprar", text="Comprar", textcolor=color.white, style=shape.labelup, location=location.belowbar, color=color.green, transp=0, size=size.tiny) plotshape(qqeVender, title="QQE vender", text="Vender", textcolor=color.white, style=shape.labeldown, location=location.abovebar, color=color.red, transp=0, size=size.tiny) // Alertas alertcondition(qqeComprar, title="Comprar", message="Comprar") alertcondition(qqeVender, title="Vender", message="Vender")
Code: Select all
RsiPeriod*2-1
Code: Select all
double Wilders_Period = RsiPeriod*2-1
I separated wilder's period intentionally, to have more controlsmrtools wrote: Wed Aug 24, 2022 4:19 am Looks like a qqe crossing the fast trend line main chart arrows. Think we have some sub-window versions that draw on-chart arrows when crossing the qqe crossing the fast trend line. For Wilder's period don't think you need it as an external parameter since it is alreadyso maybe doCode: Select all
RsiPeriod*2-1
then use Wilders_Period where required, except for externally. Would make it more automatic that way.Code: Select all
double Wilders_Period = RsiPeriod*2-1
Posted a version here you can check outionone wrote: Wed Aug 24, 2022 6:02 pm I separated wilder's period intentionally, to have more controls
did you look at the code ? does it feel right to you ?
how did a m8 get these settings and arrows please?RplusT wrote: Fri Jul 22, 2022 9:41 pm My algo......I spent hundreds of hours to code that.....Thus you understand, can't just give it away.......![]()
Thanks to mrtools and kvak
! Hama averages (mtf + alerts).ex4
2x alma + ribbon mtf BT.ex4
Phuhhh...that was quite a while ago. Did not save that Template, thus I have no clue where the arrows come from.