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

Trading Indicator Script for Highs/Lows

The document contains a script for a trading indicator named 'RETRACAOST' that visualizes high and low price levels over various time frames. It includes functions to determine and plot these levels, with customizable color and line width options. The script is intended for use in trading analysis but prohibits selling and commercialization.

Uploaded by

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

Trading Indicator Script for Highs/Lows

The document contains a script for a trading indicator named 'RETRACAOST' that visualizes high and low price levels over various time frames. It includes functions to determine and plot these levels, with customizable color and line width options. The script is intended for use in trading analysis but prohibits selling and commercialization.

Uploaded by

infoprocessoskit
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Proibida a venda e comercialização @suzanatrader_

instrument{

name="RETRACAOST",

icon='indicators:ADX',

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="lime",type=[Link]},width=input{default=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)

@suzanatrader_

You might also like