Auto dispersion bands

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Auto dispersion bands

Postby iberhack » Sun Jul 04, 2021 8:21 am

//@version=3
study("Auto-Dispersion Bands",overlay=true)
length = input(90),smooth = input(140)
//----
band(src,mode)=>
x = change(src,length)
sq = sqrt(sma(x*x,length))
a = src + sq
b = src - sq
A = wma(wma(highest(a,length),length),smooth)
B = wma(wma(lowest(b,length),length),smooth)
band = mode == "Upper" ? A : mode == "Lower" ? B : na
//----
a = band(close,"Upper")
b = band(close,"Lower")
c = avg(a,b)
//----
plot(a,linewidth=2,transp=0),plot(c,color=orange,linewidth=2,transp=0),plot(b,linewidth=2,transp=0)

Could you convert this indicator into mt4? Thanks!
iberhack
 
Posts: 70
Joined: Fri Apr 09, 2021 5:04 pm

Re: Auto dispersion bands

Postby Apprentice » Mon Jul 05, 2021 2:48 am

Your request is added to the development list.
Development reference 614.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto dispersion bands

Postby Apprentice » Mon Jul 05, 2021 3:50 am

What Trading station you are using?
What programming language is it?
TS2/Lua version.
https://fxcodebase.com/code/viewtopic.php?f=17&t=71320
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto dispersion bands

Postby iberhack » Mon Jul 05, 2021 4:36 am

The code is from tradingview (pinescript), and i would like it for MT4.
iberhack
 
Posts: 70
Joined: Fri Apr 09, 2021 5:04 pm


Re: Auto dispersion bands

Postby iberhack » Wed Jul 14, 2021 5:45 am



Hi, this version dont match with the Tradingview one. Would it be possible to get the same results as on Tradingview?
Attachments
Captura.PNG
Opera Instantánea_2021-07-14_124121_www.tradingview.com.png
iberhack
 
Posts: 70
Joined: Fri Apr 09, 2021 5:04 pm

Re: Auto dispersion bands

Postby Apprentice » Thu Jul 15, 2021 1:24 pm

Your request is added to the development list.
Development reference 647.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Auto dispersion bands

Postby Apprentice » Wed Jul 21, 2021 12:06 am

As I can see, MT4 FXCM prices do not match TradingView prices.
There is where the difference could came from
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36476
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: No registered users and 33 guests

cron