Форум Бингуру

Форум трейдеров: Бинарные опционы & Форекс & CFD & Крипта

Вы не вошли.

Объявление

Это старый форум. Он законсервирован. Добро пожаловать на Форум Бингуру 2.0, абсолютно безумный и ненормальный. Не ходите туда, молю

#1 21.11.2016 16:30:01

MaxTradeGM
Участник
Зарегистрирован: 18.11.2016
Сообщений: 10

Помогите переделать индикаторы.

Всем привет, может кто-нибудь помочь и переделать несколько индикаторов на ТВ:
1) Стохастик. Сделать так чтобы он мог показывать другой тф, а не тот который выбран. Т.е. например я нахожусь на тф5, а в индикаторе был тф15 и что бы можно было выбрать какой тф там отображался, для работы на разных графиках.
2) Indicator: WaveTrend Oscillator [WT] - это индикатор с ТВ, с ним сделать тоже самое что и со стохастиком.
3) MACD , тут возможно самое сложное. Сделать так, чтобы отмечались цифрами пересечения линий, до смены тренда (сам маленько не представляю какой должен быть алгоритм, что бы правильно отображалось )  =)3DC9AAHZeR4.jpg
Заранее спасибо тем кто смоет мне помочь или хотя бы попробует))))

Offline

#2 22.11.2016 00:33:24

AlexF
Статистический параноик
Из Хабаровск.. Ну почти...
Зарегистрирован: 13.01.2015
Сообщений: 3,826

Re: Помогите переделать индикаторы.

Стохастик с 15 минутки:

study(title="Stochastic", shorttitle="Stoch")

tf15_close = security(tickerid, "15", close)
tf15_high = security(tickerid, "15", high)
tf15_low = security(tickerid, "15", low)

length = input(14, minval=1)
smoothK = input(1, minval=1)
smoothD = input(3, minval=1)

k = sma(stoch(tf15_close, tf15_high, tf15_low, length), smoothK)
d = sma(k, smoothD)
plot(k, color=blue)
plot(d, color=orange)
h0 = hline(80)
h1 = hline(20)
fill(h0, h1, color=purple, transp=75)

WaveTrend

study(title="WaveTrend [LazyBear]", shorttitle="WaveTrend")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")

ap = security(tickerid, "15", hlc3)
esa = security(tickerid, "15",ema(ap, n1))
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)

wt1 = tci
wt2 = sma(wt1,4)

plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red, style=3)
plot(osLevel2, color=green, style=3)

plot(wt1, color=green)
plot(wt2, color=red, style=3)
plot(wt1-wt2, color=blue, style=area, transp=80)

С MACD в TV такого сделать нельзя.

Offline

Понравилось:

#3 22.11.2016 08:06:08

MaxTradeGM
Участник
Зарегистрирован: 18.11.2016
Сообщений: 10

Re: Помогите переделать индикаторы.

Фирсов Алексей пишет:

Стохастик с 15 минутки:

study(title="Stochastic", shorttitle="Stoch")

tf15_close = security(tickerid, "15", close)
tf15_high = security(tickerid, "15", high)
tf15_low = security(tickerid, "15", low)

length = input(14, minval=1)
smoothK = input(1, minval=1)
smoothD = input(3, minval=1)

k = sma(stoch(tf15_close, tf15_high, tf15_low, length), smoothK)
d = sma(k, smoothD)
plot(k, color=blue)
plot(d, color=orange)
h0 = hline(80)
h1 = hline(20)
fill(h0, h1, color=purple, transp=75)

WaveTrend

study(title="WaveTrend [LazyBear]", shorttitle="WaveTrend")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")

ap = security(tickerid, "15", hlc3)
esa = security(tickerid, "15",ema(ap, n1))
d = ema(abs(ap - esa), n1)
ci = (ap - esa) / (0.015 * d)
tci = ema(ci, n2)

wt1 = tci
wt2 = sma(wt1,4)

plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red, style=3)
plot(osLevel2, color=green, style=3)

plot(wt1, color=green)
plot(wt2, color=red, style=3)
plot(wt1-wt2, color=blue, style=area, transp=80)

С MACD в TV такого сделать нельзя.

Спасибо, а чтобы там выбор был можно так сделать? м5.м15.м30

Редактировался MaxTradeGM (22.11.2016 08:10:25)

Offline

Подвал доски

Форум BINGURU.NET