Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //@version=3
- study("Investor Sentiment")
- x_3_5 = ema(close,3) + ema(close,5)
- x_8_10 = ema(close,8) + ema(close,10)
- x_12_15 = ema(close,12) + ema(close,15)
- x_3_10 = x_3_5 + x_8_10
- x_3_15 = x_3_10 + x_12_15
- x_30_35 = ema(close,30) + ema(close,35)
- x_40_45 = ema(close,40) + ema(close,45)
- x_50_60 = ema(close,50) + ema(close,60)
- x_30_45 = x_30_35 + x_40_45
- x_30_60 = x_30_45 + x_50_60
- x_3_60 = x_3_15 - x_30_60
- osc = x_3_60 * 10
- hline(0)
- x_color = osc >= 0 ? green:red
- plot(osc,color=x_color,linewidth=2,style=histogram,transp=5)
- alertcondition(osc > 0, title='Sentiment Has Turned Positive', message='Sentiment Has Turned Positive!')
- alertcondition(osc < 0, title='Sentiment Has Turned Negative', message='Sentiment Has Turned Negative!')
Add Comment
Please, Sign In to add comment