Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas

Configuração de Indicadores para Detectar Reversões de Tendência em Ações, Teses (TCC) de Teoria do Investimento

Como configurar diferentes indicadores técnicos, incluindo 'indicador mikhail' (sma-eng), 'período' e 'média móvel rápida' (ma fast), 'média móvel lenta' (ma slow), 'tendência média' (ma trend), 'área acima e abaixo', 'linha rápida ma fast', 'linha lenta ma slow' e 'linha tendência ma trend'. Além disso, ele define as cores e visibilidades de cada linha e área. O script também inclui critérios de compra e venda baseados em engulfing e barras fora, que são detectados quando as condições específicas são atendidas.

Tipologia: Teses (TCC)

2021

Compartilhado em 19/11/2022

gonssalo-henrique-4
gonssalo-henrique-4 🇧🇷

3 documentos

1 / 6

Toggle sidebar

Documentos relacionados


Pré-visualização parcial do texto

Baixe Configuração de Indicadores para Detectar Reversões de Tendência em Ações e outras Teses (TCC) em PDF para Teoria do Investimento, somente na Docsity! instrument { name = 'Indicador Mikhail', short_name = 'SMA-ENG', icon = "https://robomikhail.com/logo", overlay = true } MaFast_period = input(12,"Ma Fast period",input.integer,1,1000,1) MaFast_average = input(2,"Ma Fast average", input.string_selection,averages.titles) MaFast_title = input(1,"Ma Fast title", input.string_selection,inputs.titles) MaSlow_period = input(26,"Ma Slow period",input.integer,1,1000,1) MaSlow_average = input(2,"Ma Slow average", input.string_selection,averages.titles) MaSlow_title = input(1,"Ma Slow title", input.string_selection,inputs.titles) MaTrend_period = input(100,"Ma Trend period",input.integer,1,1000,5) MaTrend_average = input(2,"Ma Trend average", input.string_selection,averages.titles) MaTrend_title = input(1,"Ma Trend title", input.string_selection,inputs.titles) input_group { "Area Up and Down", colorAreaUp = input { default = "rgba(34, 139, 34, 0.3)", type = input.color }, colorAreaDown = input { default = "rgba(220, 20, 60, 0.3)", type = input.color }, visibleArea = input { default = true, type = input.plot_visibility } } input_group { "Ma Fast Line", colorFast = input { default = "#FF1616", type = input.color }, widthFast = input { default = 1, type = input.line_width}, visibleFast = input { default = false, type = input.plot_visibility } } input_group { "Ma Slow Line", colorSlow = input { default = "#4AF800", type = input.color }, widthSlow = input { default = 2, type = input.line_width}, visibleSlow = input { default = false, type = input.plot_visibility } } input_group { "Ma Trend Line", colorTrend = input { default = "#f74200", type = input.color }, widthTrend = input { default = 3, type = input.line_width}, visibleTrend = input { default = false, type = input.plot_visibility } } input_group { "Buy Engulfing", colorBuy = input { default = "green", type = input.color }, visibleBuy = input { default = false, type = input.plot_visibility } } input_group { "Sell Engulfing", colorSell = input { default = "red", type = input.color }, visibleSell = input { default = false, type = input.plot_visibility } } input_group { "Buy Double Engulfing", colorBuy1 = input { default = "rgba(34, 139, 34, 0.8)", type = input.color }, visibleBuy1 = input { default = false, type = input.plot_visibility } } input_group { "Sell Double Engulfing", colorSell1 = input { default = "rgba(220, 20, 60, 0.8)", type = input.color }, visibleSell1 = input { default = false, type = input.plot_visibility } } input_group { "Buy Outside Bar", colorBuy2 = input { default = "rgba(9, 227, 8, 0.8)", type = input.color }, visibleBuy2 = input { default = true, type = input.plot_visibility } } input_group { "Sell Outside Bar", colorSell2 = input { default = "rgba(255, 0, 0, 0.8)", type = input.color }, visibleSell2 = input { default = true, type = input.plot_visibility } } local avgFast = averages[MaFast_average] local titleFast = inputs[MaFast_title] local avgSlow = averages[MaSlow_average] local titleSlow = inputs[MaSlow_title] if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2] and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then plot_shape((close < open and close[1] > open[1] and close < open[1] and open >= close[1] and abs(close-open) > abs(close[1]-open[1])), "Put1", shape_style.arrowdown, shape_size.huge, colorSell1, shape_location.abovebar, 0, "DouEng", colorSell1 ) end end if(visibleBuy2 == true) then --if(filter_pa.close[1] > filter_pa.open[1] and filter_pa.close[2] < filter_pa.open[2] and filter_pa.close[1] > filter_pa.open[2] and filter_pa.open[1] <= filter_pa.close[2] and abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then plot_shape((open[3] < close[3] and open[2] < close[2] and open[1] > close[1] and close[1] > open[2] and open[1] > open[2] and open < close), "Call2", shape_style.arrowup, shape_size.huge, colorBuy2, shape_location.belowbar, 0, "COMPRE NESSA VELA", colorBuy2 ) --end end if (visibleSell2 == true) then --if(filter_pa.close[1] < filter_pa.open[1] and filter_pa.close[2] > filter_pa.open[2] and filter_pa.close[1] < filter_pa.open[2] and filter_pa.open[1] >= filter_pa.close[2] and abs(filter_pa.close[1]-filter_pa.open[1]) > abs(filter_pa.close[2]-filter_pa.open[2]) ) then plot_shape((open[3] > close[3] and open[2] > close[2] and open[1] < close[1] and close[1] < open[2] and open[1] < open[2] and open > close), "Put2", shape_style.arrowdown, shape_size.huge, colorSell2, shape_location.abovebar, 0, "VENDA NESSA VELA", colorSell2 ) --end end if (visibleArea == true) then fill(MaFast0,MaSlow0,"Area", MaFast0 > MaSlow0 and colorAreaUp or MaFast0 < MaSlow0 and colorAreaDown ) end end
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved