Killrb13

TrendProphet

780 0 78
Predicts trend. When the centerline is blue confidence in future trend prediction is high. when red or green matching current prediction trend is medium to low confidence.
Remove from Favorite Scripts Add to Favorite Scripts
study(title="TrendProphet", shorttitle="TrendProphet", overlay=false)
// Script created by Killrb13
ma10 = sma(close,10)
ma20 = sma(close,20)
ma50 = sma(close,50)
smoothedMA = avg(ma10,ma20,ma50)
cl10 = close[10]
signal = (cl10-smoothedMA)
signalBar = (signal-smoothedMA+close)
E = signalBar[10]
lineColor = iff (signalBar >= 0,green,red)
plot(signalBar, color=lineColor, style=histogram, linewidth=2)
Z = (E* (-1))
X = (Z+abs(E))
confidenceColor = iff (X <=signalBar,blue,lineColor)
plot(0, color=confidenceColor, style=line, linewidth=5)
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 Billing Sign Out