0% found this document useful (0 votes)
139 views2 pages

Trading Indicator: START MILLION 3.0

The document defines several inputs and parameters for a trading strategy. It calculates short and long term simple moving averages (SMA) on close and open prices. It also calculates an exponential moving average (EMA). Based on conditions comparing the SMAs, EMA and a moving average deviation (MAD) indicator, up or down triangles are plotted to signal potential buy or sell opportunities.
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)
139 views2 pages

Trading Indicator: START MILLION 3.0

The document defines several inputs and parameters for a trading strategy. It calculates short and long term simple moving averages (SMA) on close and open prices. It also calculates an exponential moving average (EMA). Based on conditions comparing the SMAs, EMA and a moving average deviation (MAD) indicator, up or down triangles are plotted to signal potential buy or sell opportunities.
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
  • START Million Script
  • Graphical Output

instrument {name ="START MILLION 3.

0 ", short_name ="START", overlay=true}

exibir_tracamento = input ( 1, "Deseja exibir?", input.string_selection,


{"SIM","NÃO"})

input_group { "SMAA", smaa_color = input{ default = "yellow", type = [Link] }}


input_group { "SMAB", smab_color = input{ default = "blue", type = [Link] }}

input_group { "Up", up_color = input{ default = "green", type = [Link] }}


input_group { "Down", Down_color = input{ default = "red", type = [Link] }}

sec = security(current_ticker_id, "1m")

sec = security(current_ticker_id, "5m")

smaa = sma(close, '3')


smab = sma(close, '50')
smaao = sma(open, '3')
smabo = sma(open, '50')

plot(smaa, "SMA", smaa_color)


plot(smab, "SMA", smab_color)

emaa = ema(close, '100')

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

source = input (1, "[Link]", input.string_selection, [Link])


fn = input (1, "[Link]", input.string_selection, [Link])

period = input (14, "[Link]", [Link], 5)

source = input (5, "[Link]", input.string_selection, [Link])


fn = input (5, "[Link]", input.string_selection, [Link])

input_group {
"[Link]",
up_color = input { default = "#2CAC40", type = [Link] },
down_color = input { default = "#DB4931", type = [Link] }
}

local sourceSeries = inputs [source]


local averageFunction = averages [fn]

mean = averageFunction (sourceSeries, period)


mad = sourceSeries - mean

rect {
first = 0,
second = mad,
color = mad >= mad [1] and up_color or down_color,
width = 0.4
}
rect {
first = 0,
second = mad,
color = mad >= mad [5] and up_color or down_color,
width = 0.4}
if
( mad <= 0 and ( mad[1] > mad) and (smaa < smab) and (smaao > smabo) and close <=
emaa ) then
plot_shape (1,
"Down",
shape_style.triangledown,
shape_size.auto,
down_color,
shape_location.abovebar,
0,
" Down ",
1)
end

if
( mad >= 0 and (mad > mad[1]) and (smaa > smab) and close >= emaa and smaao <
smabo)
then
plot_shape (1,
"Up",
shape_style.triangleup,
shape_size.auto,
up_color,
shape_location.belowbar,
0,
"Up",
1)

end

instrument {name ="START MILLION 3.0 ", short_name ="START", overlay=true}
exibir_tracamento = input ( 1, "Deseja exibir?", i
width = 0.4
}
rect {
 first = 0,
    second = mad,
    color = mad >= mad [5] and up_color or down_color,
    width = 0.4

You might also like