CapnOscar

Arnaud Legoux Moving Average Bands MTF V3

1196 0 84
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
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out