0% found this document useful (0 votes)
65 views3 pages

2 - Ceu Azul 2023

The document defines an indicator called "2- Ceu Azul 2023" that generates buy and sell signals. It takes various user-defined inputs like moving average periods and signal period. It calculates a fast and slow moving average, takes their difference, and generates buy signals when the fast MA crosses above the slow MA and sell signals when it crosses below. Arrows are plotted on the chart to visualize the signals.

Uploaded by

Indigo Graficos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views3 pages

2 - Ceu Azul 2023

The document defines an indicator called "2- Ceu Azul 2023" that generates buy and sell signals. It takes various user-defined inputs like moving average periods and signal period. It calculates a fast and slow moving average, takes their difference, and generates buy signals when the fast MA crosses above the slow MA and sell signals when it crosses below. Arrows are plotted on the chart to visualize the signals.

Uploaded by

Indigo Graficos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

instrument {

name = '2- Ceu Azul 2023',


icon = 'https://cdn-icons-png.flaticon.com/512/5931/5931549.png',
short_name = 'super',

overlay =true
}
method_id = input (1, "Contato Telegram:", input.string_selection, { "@LEOMATHH" })
method_id = input (1, "Versao:", input.string_selection, { "Gratuita" })

method_id = input (1, "Contact Telegram:", input.string_selection, { "@LEOMATHH" })


method_id = input (1, "Version:", input.string_selection, { "FREE" })

---(VERSAO GRATUITA, muito assertivo 2023 by: @Leomathh)---


---(VERSION GRATUITA, muy asertivo 2023 por: @Leomathh)---
---(FREE VERSION, very assertive 2023 by: @Leomathh)---

MaFast_period = input(1,"Ma Fast


period",input.integer,1,1000,1)------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
MaValue = input(5,"Ma Value",
input.string_selection,inputs.titles)------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
MaSlow_period = input(34,"Ma Slow
period",input.integer,1,1000,1)------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
Signal_period = input(4,"Signal
period",input.integer,1,1000,1)------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
input_group {------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"Compra",------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
colorBuy = input { default = "", type = input.color }, ------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
visibleBuy = input { default = true, type =
input.plot_visibility }------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
}------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
input_group {------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"Venda",------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
colorSell = input { default = "", type = input.color },------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
visibleSell = input { default = true, type =
input.plot_visibility }------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
}------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
local titleValue = inputs[MaValue]------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
-- mdia mvel linear rpida------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
smaFast = sma(titleValue, MaFast_period)------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
-- mdia mvel linear devagar------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
smaSlow = sma(titleValue, MaSlow_period)------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
-- calculo diferencial - serie------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
buffer1 = smaFast - smaSlow ------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
-- clculo da mdia mvel ponderada - serie------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
buffer2 = wma(buffer1, Signal_period)------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
buyCondition = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1] and not
(buffer1 < buffer2 and buffer1[1] > buffer2[1]))------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
buyCondition = conditional(buffer1 > buffer2 and buffer1[1] <
buffer2[1])------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] and not
(buffer1 > buffer2 and buffer1[1] < buffer2[1]))------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] >
buffer2[1] )------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
plot_shape(------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
(buyCondition),------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"30",------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
shape_style.arrowup,------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
shape_size.auto,------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
colorBuy,------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
shape_location.belowbar,------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
0,------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"...O",------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"#bf00ff"------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
) ------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
plot_shape(------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
(sellCondition),------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"30",------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
shape_style.arrowdown,------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
shape_size.auto,------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
colorSell,------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
shape_location.abovebar,------------------------
@LEOMATHH------------------@LEOMATHH------------------------------
0,------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"...O",------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
"#bf00ff"------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
)------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------
------------------------@LEOMATHH------------------
@LEOMATHH------------------------------

You might also like