gurple

Humble Student Trifecta Bottom Spotting indicator

276 0 30
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")
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