TradingView
Noldo
28 jan 2020 13:43

Minkowski Distance Period Linear Regression Bands 

EUR/USDOANDA

Beskrivning

Hello, this script was created by using Linear Regression Bands Function with variable Function Minkowski Distance Adaptive Period.

Function Linear Regression Bands : tradingview.com/script/q0oKweUI-Function-Linear-Regression-Bands/

Minkowski Distance Function Original Script by RicardoSantos :

tradingview.com/script/Hmj4l4sR-RS-Function-Minkowski-distance/


Functions saved from overloads . And suitable for mutable variable periods.

Regards.
Kommentarer
canpp
@Noldo selamlar, mukemmel bir script gercekten!

Bir sorum olacakti: MTF ve screener ozellikleri eklemek icin reg'i security function icerisinde kullanmayi denedim ancak soyle bir hata verdi: "cannot use mutable variable as an argument for security function"

ekledigim script asagidaki sekilde:

res = input(title="Resolution", type=input.resolution, defval="240")
s1 = security(syminfo.tickerid, res, reg, gaps=true)
plot(s1, title="upper line",color=color.purple, transp=50)

Yardimci olabiliren cok sevinirim.
AltJams
Looks interesting buddy, thanks!
Noldo
@wroclai, Thanks buddy tried to create adaptive bands.
kesste
I wonder if there is a bias built into this indicator -- When prices are rising, the midline stays right with the price bars, but when prices are falling, the midline strays way off to the right of the bars. This seems to be true on all time frames, both daily and intraday, whenever price is trending. Is this difference intentional?
I really like this indicator, but fear this different treatment of rising vs falling markets shows some mistake in coding it.
Thanks
Marmaidchannel
WOW BRO
Noldo
Mer