//1ºFUNCIONA
highestPrice = highest[10](close)
highBar = 0
for i = 1 to 10
if close[i] = highestPrice then
highBar = i
endif
next
PriceRange = range[highBar]
return highBar as "highbar10C"
// 2º INDICADOR NO FUNCIONA
highestPrice = highest[10](volume)
highBar = 0
for i = 1 to 10
if close[i] = highestPrice then
highBar = i
endif
next
PriceRange = range[highBar]
return highBar as "highbar10volume"
// 3º INDICADOR NO FUNCIONA
highestPrice = highest[10](range)
highBar = 0
for i = 1 to 10
if close[i] = highestPrice then
highBar = i
endif
next
PriceRange = range[highBar]
return highBar as "highbar10RANGE"
// 4º INDICADOR NO FUNCIONA
highestPrice = highest[10](ROC[1](close))
highBar = 0
for i = 1 to 10
if close[i] = highestPrice then
highBar = i
endif
next
return highBar as "highba10ROC1"