CapnOscar

Bouncer Moving Average V2

535 1 76
There you go lol
Remove from Favorite Scripts Add to Favorite Scripts
study(title="Bouncer Moving Average", shorttitle="BMA", overlay=true)

outh = sma(high, 200)
outl = sma(low, 200)
outc = sma(close, 200)


limadx = input(18, minval=1, title="ADX MA Active")
len = input(34, minval=1, title="Period")

up = change(high)
down = -change(low)
trur = rma(tr, 14)
plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, 14) / trur)
minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, 14) / trur)
sum = plus + minus 
adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), 14)

macol = adx > limadx and plus > minus ? green : adx > limadx and plus < minus ? red :black
smma34 = na(smma34[1]) ? sma(close, len) : (smma34[1] * (len - 1) + close) / len
smma12 = na(smma12[1]) ? sma(close, 12) : (smma12[1] * (12 - 1) + close) / 12

plot(smma34, color=macol, transp=0)
plot(smma12, color=silver, transp=0)

ccol = smma12 > smma34 and rising(smma12,1) ? green : smma12 < smma34 and falling(smma12,1) ? red : black
plot(outh, color=ccol, transp=0)
plot(outl, color=ccol, transp=0)
plot(outc, color=ccol, transp=0, linewidth=2)
Made of 200 SMA high, low, close ~ 34 SMMA close and 12 SMMA - Trend following indicator. Use with stochastic for better results. ADX Coloring added to 34 SMMA
Reply
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
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 Contact Support Ideas Published Followers Following Private Messages Chat Sign Out