gurple

Humble Student Trifecta Bottom Spotting indicator

205 0 16
This is an improved version of the original script better matching Cam Hui's model.
Remove from Favorite Scripts Add to Favorite Scripts
// Humble Student Trifecta Bottom Spotting indicator.
// http://humblestudentofthemarkets.blogspot.com/2015/06/time-for-market-bounce.html
// Version 2 - Better tuning on relevant data (highs, lows, close, etc.)
// Great appreciation to RicardoSantos for assistance in getting my symbols syntax in proper shape.
study(title="Humble Student Trifecta Bottom Spotting indicator", shorttitle="H. S.Trifecta", overlay=false)
TRIFECTA = security("INDEX:S5FI"+"/"+"INDEX:S5OF", period, low)
VIXVXV = security("INDEX:VIX"+"/"+"VXV", period, high)
TRIN = security("INDEX:TRIN", period, high)
len = input(200, minval=1, title="Length")
out = ema(TRIFECTA, len)

//
lltssrc = TRIFECTA
lltslen=input(90, minval=1, title="Length")
lltsout = ema(lltssrc, lltslen)
data = lltssrc/lltsout

buy = data > 1
sell = data < 1

lltscolor = buy ? olive : sell ? orange : blue
//

// START VIXVXV Colors
vixtrigger = input(1, defval=1, title="VIX Term Structure Inversion Threshold")
vixzone = VIXVXV >= (vixtrigger)
vixcolor = vixzone ? maroon : #C7C7C7
// END VIXVXV Colors
// START TRIN Colors
trintrigger = input(2, defval=2, title="TRIN Threshold")
trinzone = TRIN >= (trintrigger)
trincolor = trinzone ? red : #C7C7C7
// END TRIN Colors
// START TRIFECTA Colors
tritrigger = input(0.6, defval=0.6, title="TRIFECTA Threshold")
trizone = TRIFECTA < (tritrigger)
tricolor = trizone ? red : #C7C7C7
// END TRIFECTA Colors

plot((VIXVXV), style=circles, transp=50, color=vixcolor, linewidth=2, trackprice = false, title="VIXVXV")
plot((TRIN), style=cross, transp=50, color=trincolor, linewidth=1, trackprice = false, title="TRIN")
plot((TRIFECTA), color=tricolor, linewidth=1, trackprice = false, title="Trifecta")
//plot(out, transp=50, color=lltscolor, title="EMA")
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
日本
한국
Home Stock Screener Forex Signal Finder 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 Account and Billing Sign Out