0% found this document useful (0 votes)
19 views5 pages

Volume Win Indicator Script

The document outlines a trading indicator script with multiple instruments including 'VOLUME WIN' and 'Bullex Rei', featuring customizable parameters for moving averages, bands, and colors. It includes calculations for simple moving averages (SMA), exponential moving averages (EMA), and conditions for buy/sell signals based on the relationship between fast and slow moving averages. The script allows for visual customization of plots and fills based on trading conditions.
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)
19 views5 pages

Volume Win Indicator Script

The document outlines a trading indicator script with multiple instruments including 'VOLUME WIN' and 'Bullex Rei', featuring customizable parameters for moving averages, bands, and colors. It includes calculations for simple moving averages (SMA), exponential moving averages (EMA), and conditions for buy/sell signals based on the relationship between fast and slow moving averages. The script allows for visual customization of plots and fills based on trading conditions.
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

instrument { name = "VOLUME WIN" }

period = input (2, "[Link]", [Link], 1)


hh_period = input (10, "HH/LL Loockback", [Link], 1)
source = input (1, "[Link]", input.string_selection, [Link])
input_group {
"[Link]",
up_color = input { default = "#2CAC40", type = [Link] },
down_color = input { default = "#DB4931", type = [Link] }
}
input_group {
"[Link]",
line_up_color = input { default = "#25E154", type = [Link] },
line_down_color = input { default = "#FF6C58", type = [Link] },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"[Link]",
fill_up_color = input { default = rgba(37,225,84,0.2), type = [Link] },
fill_down_color = input { default = rgba(255,108,88,0.2), type = [Link] }
}
input_group {
"[Link]",
zero_color = input { default = rgba(255,255,255,0.15), type = [Link] },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7, max
(ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 + ma9 +
ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}
instrument{name="Instagram @fredson_trader",
short_name="BULL_EX",
icon = 'indicators:BB',
overlay=true}

Exibir_tracamento= input(1, "Deseja exibir o tracamento na Bullex?",


input.string_selection, {"SIM", "NAO"})

input_group {"BANDA SUPERIOR", bbsup_color= input{ default= "White", type=


[Link]}}
input_group {"BANDA INFERIOR", bbinf_color= input{ default= "White", type=
[Link]}}

smaa= sma(close, '25')


upper_band= smaa + (stdev(close,25) * 3.0)
lower_band= smaa - (stdev(close,25) * 3.0)
emaa= ema(close, '100')

if Exibir_tracamento == 1 then
plot(emaa, "SMA", ema_color)
plot(upper_band, "UPPER_BAND", bbsup_color)
plot(lower_band, "LOWER_BAND", bbinf_color)
end

instrument {
name = 'Bullex Rei',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}

MaFast_period = input(1,"Ma Fast period",[Link],1,1000,1)


MaValue = input(5,"Ma Value", input.string_selection,[Link])

MaSlow_period = input(34,"Ma Slow period",[Link],1,1000,1)

Signal_period = input(5,"Signal period",[Link],1,1000,1)

input_group {
"Compra",
colorBuy = input { default = "green", type = [Link] },
visibleBuy = input { default = true, type = input.plot_visibility }
}

input_group {
"Venda",
colorSell = input { default = "red", type = [Link] },
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 = conditional(buffer1 > buffer2 and buffer1[1] < buffer2[1])

sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] and not
(buffer1 > buffer2 and buffer1[1] < buffer2[1]))
sellCondition = conditional(buffer1 < buffer2 and buffer1[1] > buffer2[1] )

plot_shape(
(buyCondition),
"COMPRA",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"COMPRA",
"White"
)

plot_shape(
(sellCondition),
"VENDA",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"VENDA",
"White"
)

instrument { name = "VOLUME WIN" }


period = input (2, "[Link]", [Link], 1)
hh_period = input (10, "HH/LL Loockback", [Link], 1)
source = input (1, "[Link]", input.string_selection, [Link])
input_group {
"[Link]",
up_color = input { default = "#2CAC40", type = [Link] },
down_color = input { default = "#DB4931", type = [Link] }
}
input_group {
"[Link]",
line_up_color = input { default = "#25E154", type = [Link] },
line_down_color = input { default = "#FF6C58", type = [Link] },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"[Link]",
fill_up_color = input { default = rgba(37,225,84,0.2), type = [Link] },
fill_down_color = input { default = rgba(255,108,88,0.2), type = [Link] }
}
input_group {
"[Link]",
zero_color = input { default = rgba(255,255,255,0.15), type = [Link] },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7, max
(ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 + ma9 +
ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}

instrument { name = "VOLUME WIN" }


period = input (2, "[Link]", [Link], 1)
hh_period = input (10, "HH/LL Loockback", [Link], 1)
source = input (1, "[Link]", input.string_selection, [Link])
input_group {
"[Link]",
up_color = input { default = "#2CAC40", type = [Link] },
down_color = input { default = "#DB4931", type = [Link] }
}
input_group {
"[Link]",
line_up_color = input { default = "#25E154", type = [Link] },
line_down_color = input { default = "#FF6C58", type = [Link] },
line_width = input { default = 1, type = input.line_width }
}
input_group {
"[Link]",
fill_up_color = input { default = rgba(37,225,84,0.2), type = [Link] },
fill_down_color = input { default = rgba(255,108,88,0.2), type = [Link] }
}
input_group {
"[Link]",
zero_color = input { default = rgba(255,255,255,0.15), type = [Link] },
zero_width = input { default = 1, type = input.line_width },
zero_visible = input { default = true, type = input.plot_visibility }
}
local source_series = inputs [source]
ma1 = sma (source_series, period)
ma2 = sma (ma1, period)
ma3 = sma (ma2, period)
ma4 = sma (ma3, period)
ma5 = sma (ma4, period)
ma6 = sma (ma5, period)
ma7 = sma (ma6, period)
ma8 = sma (ma7, period)
ma9 = sma (ma8, period)
ma10 = sma (ma9, period)
hh = highest (source_series, hh_period)
ll = lowest (source_series, hh_period)
hhma = max (ma1, max (ma2, max (ma3, max (ma4, max (ma5, max (ma6, max (ma7, max
(ma8, max (ma9, ma10)))))))))
llma = min (ma1, min (ma2, min (ma3, min (ma4, min (ma5, min (ma6, min (ma7, min
(ma8, min (ma9, ma10)))))))))
rb = 100 * (hhma - llma) / (hh - ll)
rbo = 100 * (source_series - (ma1 + ma2 + ma3 + ma4 + ma5 + ma6 + ma7 + ma8 + ma9 +
ma10) / 10) / (hh - ll)
fill (-rb, 0, "", fill_down_color)
fill (0, rb, "", fill_up_color)
plot ( rb, "", line_up_color, line_width)
plot (-rb, "", line_down_color, line_width)
if zero_visible then
hline (0, "", zero_color, zero_width)
end
rect {
first = 0,
second = rbo,
color = rbo >= 0 and up_color or down_color,
width = 0.7
}

You might also like