Pesquisar

Programação ProfitChart - Indicador

25/05/2022 às 17:03

Descrição do Projeto:

Descrição do Projeto:
Boa tarde
Gostaria de transformar o código abaixo, de linguagem Pine Script (TradingView) em NTSL (ProfitChart)

study(title = "Ozymandias", shorttitle = "Ozymandias", overlay = true)

input_Length = input(defval = 2, title = "Length", type = input.integer, minval = 1)
input_Type = input(defval = "SMA", title = "Type", type = input.string, options = ['SMA', 'EMA', 'WMA', 'VWMA'])
ATR_Length = 100

Get_MA(MA_Type, MA_Source, MA_Length) =>
MA_Type == 'EMA' ? ema(MA_Source, MA_Length) : MA_Type == 'SMA' ? sma(MA_Source, MA_Length) : MA_Type == 'WMA' ? wma(MA_Source, MA_Length) : MA_Type == 'VWMA' ? sma(MA_Source, MA_Length) : na

Lowest_Low = lowest(low, input_Length)
MA_Low = Get_MA(input_Type, low, input_Length)

Highest_High = highest(high, input_Length)
MA_High = Get_MA(input_Type, high, input_Length)

ATR_Half = atr(ATR_Length) / 2

Next_Trend = 0
Next_Trend := nz(Next_Trend[1], Next_Trend)

Trend = 0
Trend := nz(Trend[1], Trend)

Low_Max = low[1]
Low_Max := nz(Low_Max[1], Low_Max)

High_Min = high[1]
High_Min := nz(High_Min[1], High_Min)

if Next_Trend == 1
Low_Max := max(Low_Max, Lowest_Low)
if MA_High < Low_Max and close < low[1]
Trend := 1
Next_Trend := 0
High_Min := Highest_High

if Next_Trend == 0
High_Min := min(High_Min, Highest_High)
if MA_Low > High_Min and close > high[1]
Trend := 0
Next_Trend := 1
Low_Max := Lowest_Low

Arrow_Shift = 0.0
Line_Color = color.gray

Line_HT = close
Line_HT := nz(Line_HT[1], Line_HT)

if Trend == 0
Line_Color := color.blue
if Trend[1] == 0
Line_HT := max(Low_Max, Line_HT[1])
if Trend[1] == 1
Arrow_Shift := -atr(10)

if Trend == 1
Line_Color := #FF1493
if Trend[1] == 1
Line_HT := min(High_Min, Line_HT[1])
if Trend[1] == 0
Arrow_Shift := atr(10)

plot(Line_HT, color = Line_Color, linewidth = 2, title = "Ozymandias", transp = 0)
plot(Line_HT - ATR_Half, color = color.gray, linewidth = 1, title = "Ozymandias Low", transp = 0)
plot(Line_HT + ATR_Half, color = color.gray, linewidth = 1, title = "Ozymandias High", transp = 0)

Atividades do cliente nesse projeto:

Última visualização: 25/05/2022 às 17:35

Informações adicionais

Categoria: Web, Mobile & Software
Subcategoria: Desenvolvimento Web
Orçamento: Aberto
Nível de experiência: Iniciante
Visibilidade: Público
Propostas: 1
Propostas excluídas: 1
Interessados: 4
Tempo restante:
Valor Mínimo: R$ 50,00

Cliente

Propostas (0)

Nenhuma proposta foi encontrada.

Carregando...
Projetos semelhantes no 99Freelas

Integração do gateway PayPal em site PHP - Preciso que coloquem a forma de pagamento como PayPal e desabilitem as outras. O site está em PHP na linguagem espanhol panamenho (do Panamá). Obrigado.

Integração de API Pix ao fluxo de Typebot - Necessito da integração da API Pix (Pushinpay) em um fluxo de Typebot, onde o usuário escolhe um produto e, após o pagamento, recebe automaticamente o produto. • I...

Desenvolver front-end responsivo - Desenvolvimento de front-end de um sistema web para criar as seguintes telas responsivas, necessariamente compatíveis com desktop e mobile: Telas obrigatórias: • Login • C...

Melhorar performance da página única do site - O site está lento e eu preciso de alguém que melhore o tempo de carregamento das fotos e do site como um todo. Preciso que seja fácil de abrir em smartphones e aparelhos com i...

Desenvolver sistema web para monitoria de qualidade - Preciso de um sistema web completo para monitoria de qualidade de atendimentos, com as seguintes funcionalidades: • Login corporativo com e-mail • Painel de dashboard com indicadores &bul...

Carregando...

Carregando...

Pesquisar

FREELANCERS
PROJETOS
Ocorreu um erro inesperado. Caso o erro persista, entre em contato conosco através do e-mail suporte@99freelas.com.br.