CapnOscar

Arnaud Legoux Moving Average Bands MTF V3

855 0 50
Ok I got it.. This is final with ALMA Bands.. You can ignore last 2 because this one covers all if you are interested.. If you like to know why I prefer ALMA for Bands this website may give you some insight. http://www.arnaudlegoux.com/
Remove from Favorite Scripts Add to Favorite Scripts
study(title = "Arnaud Legoux Moving Average Bands MTF V3", shorttitle="ALMAB MTF V3", overlay=true)
// Default TF is 4 Hrs
source = close

windowsize = input(title="Window Size", type=integer, defval=100)
offset = input(title="Offset", type=float, defval=0.85)
sigma = input(title="Sigma", type=float, defval=6)
picktf = input(title="Pick TimeFrame", type=resolution, defval="240")

ATRlength = input(100, minval=1)
ATRMult = input(2, minval=1)
ATRMult2 = input(4, minval=1)
ATRMult3 = input(6, minval=1)
ATR = rma(tr(true), ATRlength)

almamed = alma(source, windowsize, offset, sigma)


emaup = almamed+(ATR*ATRMult)
emadw = almamed-(ATR*ATRMult)
emahigh = almamed+(ATR*ATRMult2)
emalow = almamed-(ATR*ATRMult2)
emahighx = almamed+(ATR*ATRMult3)
emalowx = almamed-(ATR*ATRMult3)
almatfpv = security(tickerid,picktf ,almamed)
almatfup = security(tickerid,picktf ,emaup)
almatfdw = security(tickerid,picktf ,emadw)
almatfhigh = security(tickerid,picktf ,emahigh)
almatflow = security(tickerid,picktf ,emalow)
almatfhighx = security(tickerid,picktf ,emahighx)
almatflowx = security(tickerid,picktf ,emalowx)


plot(emaup, title="EMAUP", color=red)
plot(emadw, title="EMADW", color=green)
plot(emahigh, title="EMAHigh", color=red)
plot(emalow, title="EMALow", color=green)
plot(emahighx, title="StopLossShort", color=silver)
plot(emalowx, title="StopLossLong", color=silver)

plot(almamed,linewidth=2,color=purple)
plot(almatfup,linewidth=2,color=blue)
plot(almatfdw,linewidth=2,color=blue)
plot(almatfpv,linewidth=2,color=blue)
plot(almatfhigh,linewidth=2,color=red)
plot(almatflow,linewidth=2,color=red)
plot(almatfhighx,linewidth=2,color=silver)
plot(almatflowx,linewidth=2,color=silver)
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Account and Billing Sign Out