SuperTrend

3 respostas

Graham Ferguson

Assinante, bbp_participante, cliente, comunidade, sq-ultimate, 8 respostas.

Perfil da visita

1 ano atrás #288840

Hi,

Estou tentando (e não conseguindo) criar um modelo no AlgoWizard para imitar as posições de abertura e fechamento de acordo com esse indicador.

O indicador usa um período e um multiplicador ATR simples e uma fonte de hl2.

 

Alguém pode me ajudar a criar um modelo para conseguir isso?

Anexos:
Você deve ser logado para ver os arquivos anexos.

0

Graham Ferguson

Assinante, bbp_participante, cliente, comunidade, sq-ultimate, 8 respostas.

Perfil da visita

1 ano atrás #288841

Arquivo de indicador MT5 anexado

0

Graham Ferguson

Assinante, bbp_participante, cliente, comunidade, sq-ultimate, 8 respostas.

Perfil da visita

1 ano atrás #288842

Por algum motivo, não consigo carregar o arquivo do indicador aqui, mas este é um link para ele no Google Drive: https://drive.google.com/file/d/19MxBxvAt3K5B21Ix3fNVpxDKZ97eQY6D/view?usp=sharing

0

Adam Cox

Assinante, bbp_participante, 1 resposta.

Perfil da visita

1 ano atrás #289900

Descobri a Supertrend Strategy que estou usando em meu tradingview e automatizo as negociações.

Você pode verificar este código:

//@version=5
estratégia('Supertrend Strategy - PineConnector', overlay=true)

LicenseID = 601234567890 // 1. Altere para seu ID de licença do PineConnector (obrigatório)
riskvalue = input.int(1, 'Risk Value') // 2. alterar o valor do risco (opcional)

atrPeriod = input(10, 'ATR Length')
factor = input(3, 'Factor')

[supertrend, direction] = ta.supertrend(factor, atrPeriod)

bodyMiddle = plot((open + close) / 2, display=display.none)
upTrend = plot(direction < 0 ? supertrend : na, 'Up Trend', color=color.new(color.green, 0), style=plot.style_linebr)
downTrend = plot(direction < 0 ? na : supertrend, 'Down Trend', color=color.new(color.red, 0), style=plot.style_linebr)

fill(bodyMiddle, upTrend, color.new(color.green, 90), fillgaps=false)
fill(bodyMiddle, downTrend, color.new(color.red, 90), fillgaps=false)

se ta.change(direction) < 0
strategy.entry('Long', strategy.long)
alert(str.tostring(LicenseID)+',buy,' + syminfo.ticker + ',risk=' + str.tostring(riskvalue), alert.freq_once_per_bar_close)

se ta.change(direction) > 0
strategy.entry('Short', strategy.short)
alert(str.tostring(LicenseID)+',sell,' + syminfo.ticker + ',risk=' + str.tostring(riskvalue), alert.freq_once_per_bar_close)

plotshape(ta.change(direction) < 0, style=shape.labelup, location=location.belowbar, color=color.new(#046ff9, 0), size=size.large, text='PineConnector \n Buy', textcolor=color.new(color.white, 0))
plotshape(ta.change(direction) > 0, style=shape.labeldown, location=location.abovebar, color=color.new(#046ff9, 0), size=size.large, text='PineConnector \n Sell', textcolor=color.new(color.white, 0))

Encontrei o código a partir do seguinte site.

0

Visualizando 3 respostas - 1 até 3 (de um total de 3)