Logo Passei Direto
Buscar

Algoritmos

Humanas / Sociais
--DESENVOLVIDO POR EQUIPE HUNTER-- instrument { name = 'HUNTER 2.5', short_name = 'hunter', overlay = true }A MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1) MaValue = input(5,"Ma Value", input.string_selection,inputs.titles) MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1) Signal_period = input(5,"Signal period",input.integer,1,1000,1) input_group { "Hunter", colorBuy = input { default = "green", type = input.color }, visibleBuy = input { default = true, type = input.plot_visibility } } input_group { "Hunter", colorSell = input { default = "red", type = input.color }, visibleSell = input { default = true, type = input.plot_visibility } } local titleValue = inputs[MaValue] -- mdia mvel linear rpida smaFast = sma(titleValue, MaFast_period) -- mdia mvel linear devagar smaSlow = sma(titleValue, MaSlow_period) -- calculo diferencial - serie buffer1 = smaFast - smaSlow -- clculo da mdia mvel ponderada - serie buffer2 = wma(buffer1, Signal_period) buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1] and not (buffer1 < buffer2 and buffer1[1] > buffer2[1])) buyCondition =
User badge image
Evely

há 2 meses

Respostas

User badge image

Ed Verified user icon

há 2 meses

Você precisa criar uma nova pergunta.

Essa resposta te ajudou?

0
Dislike0

Experimente
o Premium! 🤩

Libere respostas sem pagar

Ainda com dúvidas?

Envie uma pergunta e tenha sua dúvida de estudo respondida!

Mais conteúdos dessa disciplina