У вас не стоит Flash Player
Page 40 of 40 < 1 2 ... 38 39 40
Настройки
#86844 - Thu Feb 18 2021 10:16 PM Re: Заказ индикаторов в TSLab [Re: Rezident]
k050785 Offline
stranger

Registered: Sat Nov 07 2020
Записи: 5
Добрый день. Интересует перенос из tradingview скрипта - показатель Херста за вознаграждение.
кому интересно - пишите в личку.
Возможно на форуме уже кто-то делал его?

Наверх
#86976 - Wed Jun 02 2021 03:34 PM Re: Заказ индикаторов в TSLab [Re: leon_mn]
MS_quantum Offline
stranger

Registered: Wed Mar 13 2019
Записи: 12
Здравствуйте.
spreadk" не работает в 2.1, выдает ошибку System.TypeLoadException: Не удалось загрузить тип "TSLab.Script.Bar" из сборки "TSLab.Script, Version=2.1.12.57, Culture=neutral, PublicKeyToken=null".

Помогите исправить.


Attachments
spreadk.cs.rar (62 downloads)



Отредактировано MS_quantum (Wed Jun 02 2021 03:53 PM)

Наверх
#87384 - Sun Sep 03 2023 09:03 PM Re: Заказ индикаторов в TSLab [Re: andy]
yurys Offline
stranger

Registered: Fri Oct 10 2014
Записи: 13
Коллеги, добрый день, кто возьмется за создание блока Сжать, который бы отображал равные по размеру свечи для любых сжатых интервалов? Базовый интервал 1 минута, можно только под него. Привязка должна быть только к номеру бара(i) базового тайм-фрейма. Если это возможно и вы готовы, добро пожаловать в ЛС с ценой, сроком и если нужно что то уточнить по ТЗ.

Наверх
#87385 - Mon Sep 04 2023 09:28 AM Re: Заказ индикаторов в TSLab [Re: yurys]
ViL Offline
TSLab
Carpal Tunnel

Registered: Sun Oct 17 2010
Записи: 8133
https://t.me/tslabprorugroup/145151
Вот здесь лучше написать.

Наверх
#87401 - Wed Nov 22 2023 03:53 AM Re: Заказ индикаторов в TSLab [Re: ViL]
Sol Offline
stranger

Registered: Mon Nov 20 2023
Записи: 4
Извините пришлось удалить просьбу, индикатор начал себя странно вести. Надеюсь создатель исправит и можно будет повторить посьбу.


Отредактировано Sol (Wed Nov 22 2023 05:33 AM)

Наверх
#87402 - Wed Nov 22 2023 12:57 PM Re: Заказ индикаторов в TSLab [Re: Sol]
Sol Offline
stranger

Registered: Mon Nov 20 2023
Записи: 4
Здравствуйте! Можно ли создать индикатор
ALMA Smoothed Gaussian Moving Average
_https://www.tradingview.com/script/9kZxqmzH-ALMA-Smoothed-Gaussian-Moving-Average/
Есть ли возможность сделать параметр offset так же настраиваемым?

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © profitprotrading

//@version=5
indicator("ALMA Smoothed Gaussian Moving Average", shorttitle = "ASGMA", overlay=true)

//ALMA Smoothing
src = input(close, title='Source', group = "ALMA Smoothing")
smooth = input.int(1, title='Smoothing', minval=1, group = "ALMA Smoothing")
length1 = input.int(25, title='Lookback', minval=1, group = "ALMA Smoothing")
offset = 0.85
sigma1 = 7
pchange = ta.change(src, smooth) / src * 100
avpchange = ta.alma(pchange, length1, offset, sigma1)

//RSI
rsi = ta.rsi(close, 14)
rsiL = rsi > rsi[1]
rsiS = rsi < rsi[1]

//Chande Momentum
length11 = 9
src1 = close
momm = ta.change(src1)
f1(m) => m >= 0.0 ? m : 0.0
f2(m) => m >= 0.0 ? 0.0 : -m
m1 = f1(momm)
m2 = f2(momm)
sm1 = math.sum(m1, length11)
sm2 = math.sum(m2, length11)
percent(nom, div) => 100 * nom / div
chandeMO = percent(sm1-sm2, sm1+sm2)
cL = chandeMO > chandeMO[1]
cS = chandeMO < chandeMO[1]

//GAMA credit to author: © LeafAlgo https://www.tradingview.com/v/th7NZUPM/
length = input.int(14, minval=1, title="Length", group = "Gaussian Adaptive Moving Average")
adaptive = input.bool(true, title="Adaptive Parameters", group = "Gaussian Adaptive Moving Average")
volatilityPeriod = input.int(20, minval=1, title="Volatility Period", group = "Gaussian Adaptive Moving Average")

// Calculate Gaussian Moving Average
gma = 0.0
sumOfWeights = 0.0
sigma = adaptive ? ta.stdev(close, volatilityPeriod) : input.float(1.0, minval=0.1, title="Standard Deviation", group = "Gaussian Adaptive Moving Average")

for i = 0 to length - 1
weight = math.exp(-math.pow(((i - (length - 1)) / (2 * sigma)), 2) / 2)
value = ta.highest(avpchange, i + 1) + ta.lowest(avpchange, i + 1)
gma := gma + (value * weight)
sumOfWeights := sumOfWeights + weight

gma := (gma / sumOfWeights) / 2
gma:= ta.ema(gma, 7)
gmaColor = avpchange >= gma ? color.rgb(0, 161, 5) : color.rgb(215, 0, 0)

// Color bars based on signals until the next signal occurs
var int currentSignal = 0
currentSignal := avpchange >= gma ? 1 : -1//le_final ? -1 : currentSignal

var color barColor = na
if currentSignal == 1
barColor := color.rgb(0, 186, 6)
else if currentSignal == -1
barColor := color.rgb(176, 0, 0)

barcolor(barColor)
plotcandle(open, high, low, close, "Bar Color", barColor, barColor, bordercolor = barColor)

//Plotting
ema = ta.ema(close, 7)
plot(ema, color=gmaColor, linewidth=3, title="Gaussian Moving Average")


plotshape(ta.crossover(avpchange,gma) and barstate.isconfirmed, "Buy Signal", text = "B", textcolor = color.white, style = shape.labelup, location = location.belowbar, color = color.rgb(0, 161, 5), offset = -1)
plotshape(ta.crossunder(avpchange,gma) and barstate.isconfirmed, "Sell Signal", text = "S", textcolor = color.white, style = shape.labeldown, location = location.abovebar, color = color.rgb(215, 0, 0), offset = -1)

bgcolor(ta.crossover(avpchange,gma) and barstate.isconfirmed and rsiL and cL ? color.rgb(0, 162, 5, 85): na, offset = -1)
bgcolor(ta.crossunder(avpchange,gma) and barstate.isconfirmed and rsiS and cS ? color.rgb(207, 0, 0, 85): na, offset = -1)
barcolor(gmaColor)

alertcondition(ta.crossover(avpchange,gma) and barstate.isconfirmed, title="Buy Signal", message="Go Long! {{exchange}}:{{ticker}}")
alertcondition(ta.crossunder(avpchange,gma) and barstate.isconfirmed, title="Sell Signal", message="Go Short! {{exchange}}:{{ticker}}")

Наверх
Page 40 of 40 < 1 2 ... 38 39 40


Moderator:  ViL, sar