BTCUSD бесплатный индикатор уровнейНаписал скрипт индикатора на основе идеи вычисления средних значений цены.
Копируйте и вставляйте в свой скрипт индикатора:
//@version=4
study("MIN MAX and Average", overlay=true)
biggest(series) =>
max = 0.0
max := nz(max , series)
if series > max
max := series
max
max
smallest(series) =>
min = 0.0
min := nz(min , series)
if series < min
min := series
min
min
//Average sell prices
averageAT = (biggest(close)+smallest(close))/2
average_sell_1 = (averageAT+biggest(close))/2
average_sell_2_1 = (average_sell_1+biggest(close))/2
average_sell_2_2 = (average_sell_1+averageAT)/2
//Average buy prices
average_buy_1 = (averageAT+smallest(close))/2
average_buy_2_1 = (averageAT+average_buy_1)/2
average_buy_2_2 = (average_buy_1+smallest(close))/2
plot(biggest(close), color=color.red, title="All time max", transp=0, linewidth=2, trackprice=true)
plot(smallest(close), color=color.green, title="All time low", transp=0, linewidth=2, trackprice=true)
plot(averageAT, color=color.orange, title="All time average", transp=0, linewidth=2, trackprice=true)
plot(average_sell_1, color=color.purple, title="avg sell 1", transp=0, linewidth=2, trackprice=true)
plot(average_sell_2_1, color=color.fuchsia, title="avg sell 2_1", transp=0, linewidth=2, trackprice=true)
plot(average_sell_2_2, color=color.fuchsia, title="avg sell 2_2", transp=0, linewidth=2, trackprice=true)
plot(average_buy_1, color=color.lime, title="avg buy 1", transp=0, linewidth=2, trackprice=true)
plot(average_buy_2_1, color=color.lime, title="avg buy 2_1", transp=0, linewidth=2, trackprice=true)
plot(average_buy_2_2, color=color.lime, title="avg buy 2_2", transp=0, linewidth=2, trackprice=true)