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

SNRNB S

The document contains code for a trading indicator that plots moving average crossover signals. It defines inputs for fast and slow moving average periods, a signal period, and color settings for buy and sell signals. The indicator calculates a fast and slow moving average, their difference and a weighted moving average of the difference as the signal. It generates buy signals when the fast MA crosses above the slow MA and sell signals when it crosses below.

Uploaded by

Black Sea
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)
249 views2 pages

SNRNB S

The document contains code for a trading indicator that plots moving average crossover signals. It defines inputs for fast and slow moving average periods, a signal period, and color settings for buy and sell signals. The indicator calculates a fast and slow moving average, their difference and a weighted moving average of the difference as the signal. It generates buy signals when the fast MA crosses above the slow MA and sell signals when it crosses below.

Uploaded by

Black Sea
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/ 2

instrument{name="Sup/Res

@DigitalZone",icon='https://lh3.googleusercontent.com/ogw/ADea4I65OapvF7ZOUMZc_3J4Y
x__qVmvJD_jgzr4p8MZNks=s32-c-mo',overlay=true}

local function a()local


b=make_series()local c=high[2]

if not get_value(c)then
return b end;
local d=high<=c and high[1]<=c and high[3]<=c and high[4]<=c;
b:set(iff(d,c,b[1]))return b end;
local function e()local b=make_series()local c=low[2]if not get_value(c)then return
b end;
local d=low>=c and low[1]>=c and low[3]>=c and low[4]>=c;
b:set(iff(d,c,b[1]))return b end;
input_group{"Color",color=input{default="white",type=input.color},width=input{defau
lt=1,type=input.line_width}}h=a()l=e()hline(h,"High",color,high_width)hline(l,"Low"
,color,width)hline(highest(10)[1],"HH10",color,1)hline(lowest(10)
[1],"LL10",color,1)hline(highest(30)[1],"HH30",color,1)hline(lowest(30)
[1],"LL30",color,1)hline(highest(60)[1],"HH60",color,1)hline(lowest(60)
[1],"LL60",color,1)hline(highest(100)[1],"HH100",color,1)hline(lowest(100)
[1],"LL100",color,1)hline(highest(150)[1],"HH150",color,1)hline(lowest(150)
[1],"LL150",color,1)hline(highest(200)[1],"HH200",color,1)hline(lowest(200)
[1],"LL200",color,1)

instrument { name = "TELEGRAM @sufiyan2022", icon="indicators:ADX", overlay =


true }
method_id = input (1, "Type", input.string_selection, { "TELEGRAM @sufiyan2022" })

instrument {
name = 'TELEGRAM @sufiyan2022',
short_name = 'super',
icon = 'indicators:BB',
overlay = true
}

MaFast_period = input(1,"Ma Fast period",input.integer,1,1000,1)


MaValue = input(5,"Ma Value", input.string_selection,inputs.titles)

MaSlow_period = input(34,"Ma Slow period",input.integer,1,1000,1)

Signal_period = input(5,"Signal period",input.integer,1,1000,1)

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

input_group {
"Venda",
colorSell = input { default = "red", type = input.color },
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),
"BUY!",
shape_style.triangleup,
shape_size.huge,
colorBuy,
shape_location.belowbar,
-1,
"BUY!",
"white"
)

plot_shape(
(sellCondition),
"SELL!",
shape_style.triangledown,
shape_size.huge,
colorSell,
shape_location.abovebar,
-1,
"SELL!",
"white"
)

--IQ OPTION SCRIPT HAOAN,SD 9870DFS DS87SDF BDSJBJSDF8 DFNS--


--IQ OPTION SCRIPT HAOAN,

You might also like