<Скрипты для TradingView>

  • Автор темы Автор темы FxMen
  • Дата начала Дата начала
Всю жизнь мечтал спросить
Как сделать три одинаковых индикатора в одном с разных тайм фреймов?

А вот и тот самый индикатор о котором говорил


//
// LazyBear
// List of all my indicators: Master Index: List of all my indicators for BTCE:BTCUSD by LazyBear
//
study("RSI Bands [LazyBear]", shorttitle="RSIBANDS_LB", overlay=true)
obLevel = input(70, title="RSI Overbought")
osLevel = input(30, title="RSI Oversold")
length = input(14, title="RSI Length")
src=close
ep = 2 * length - 1
auc = ema( max( src - src[1], 0 ), ep )
adc = ema( max( src[1] - src, 0 ), ep )
x1 = (length - 1) * ( adc * obLevel / (100-obLevel) - auc)
ub = iff( x1 >= 0, src + x1, src + x1 * (100-obLevel)/obLevel )
x2 = (length - 1) * ( adc * osLevel / (100-osLevel) - auc)
lb = iff( x2 >= 0, src + x2, src + x2 * (100-osLevel)/osLevel )
plot( ub, title="Resistance", color=red, linewidth=2)
plot( lb, title="Support", color=green, linewidth=2)
plot( avg(ub, lb), title="RSI Midline", color=gray, linewidth=1)
 
Всю жизнь мечтал спросить
Как сделать три одинаковых индикатора в одном с разных тайм фреймов?

А вот и тот самый индикатор о котором говорил


//
// LazyBear
// List of all my indicators: Master Index: List of all my indicators for BTCE:BTCUSD by LazyBear
//
study("RSI Bands [LazyBear]", shorttitle="RSIBANDS_LB", overlay=true)
obLevel = input(70, title="RSI Overbought")
osLevel = input(30, title="RSI Oversold")
length = input(14, title="RSI Length")
src=close
ep = 2 * length - 1
auc = ema( max( src - src[1], 0 ), ep )
adc = ema( max( src[1] - src, 0 ), ep )
x1 = (length - 1) * ( adc * obLevel / (100-obLevel) - auc)
ub = iff( x1 >= 0, src + x1, src + x1 * (100-obLevel)/obLevel )
x2 = (length - 1) * ( adc * osLevel / (100-osLevel) - auc)
lb = iff( x2 >= 0, src + x2, src + x2 * (100-osLevel)/osLevel )
plot( ub, title="Resistance", color=red, linewidth=2)
plot( lb, title="Support", color=green, linewidth=2)
plot( avg(ub, lb), title="RSI Midline", color=gray, linewidth=1)
Газпром мечты сбываются )))

MRBM.jpg
 

Вложения

Добрейшего вечера. А есть возможность воссоздать копию индикаторов Pifagor ?
Alts, Global, Trader 01 и прочее. Или что-то одно
Думаю многие были бы безмерно благодарны
 
Нельзя ли сделать скрипт для МТ4 чтобы график стал логарифмический?

Screenshot_295.png
 
Допустим у меня есть формула расчета индикатора
Что делать дальше чтобы его получить?
 
Допустим у меня есть формула расчета индикатора
Что делать дальше чтобы его получить?
Сюда выкладывайте свою формулу.
Может кто напишет
 
Нашел индикатор АТР
Хотелось бы понять где в нем что считается
Вставить свою формулу расчета из двух переменных

//@version=4
study("Average True Range Bands","ATR-Bands",true)
len = input(14,"ATR Period")
mult = input(1.5, "ATR Mult")
upper_band = atr(len)*mult + open
lower_band = open - atr(len)*mult
u = plot(upper_band,"+",color.orange,1)
l = plot(lower_band,"-",color.orange,1)
fill(u,l,color.orange,98)
 
Последнее редактирование:
Нашел индикатор АТР
Хотелось бы понять где в нем что считается
Вставить свою формулу расчета из двух переменных

//@version=4
study("Average True Range Bands","ATR-Bands",true)
len = input(14,"ATR Period")
mult = input(1.5, "ATR Mult")
upper_band = atr(len)*mult + open
lower_band = open - atr(len)*mult
u = plot(upper_band,"+",color.orange,1)
l = plot(lower_band,"-",color.orange,1)
fill(u,l,color.orange,98)

len = input(14,"ATR Period") - период расчета ATR (по умолчанию 14)

mult = input(1.5, "ATR Mult") - множитель для ATR (по умолчанию 1.5)

upper_band = atr(len)*mult + open - верхняя полоса: ATR × множитель + цена открытия

lower_band = open - atr(len)*mult - нижняя полоса: цена открытия - ATR × множитель
 
Нашел индикатор АТР
Хотелось бы понять где в нем что считается
Вставить свою формулу расчета из двух переменных

//@version=4
study("Average True Range Bands","ATR-Bands",true)
len = input(14,"ATR Period")
mult = input(1.5, "ATR Mult")
upper_band = atr(len)*mult + open
lower_band = open - atr(len)*mult
u = plot(upper_band,"+",color.orange,1)
l = plot(lower_band,"-",color.orange,1)
fill(u,l,color.orange,98)
 

Вложения

  • bands.jpg
    bands.jpg
    132,6 КБ · Просмотры: 54

Посмотрели (940) Посмотреть

Назад
Верх