CapnOscar

Arnaud Legoux Moving Average Bands MTF V3

1108 0 72
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)
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
中国
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out