TradingView
Steadylit
11 de Jan de 2022 03:19

Litt Internals Pro 

SPDR S&P 500 ETF TRUSTArca

Descrição

The Litt Internal Pro is based on the four major U.S. Equity Indexes. This is to not be used for any other markets. If you need more information on any of the indexes, you can google or watch YouTube videos on what they are. Typically if we are looking for to be long we want to see all four of the indexes green and have buy ratings. If we are looking to be short we want to see all four of the indexes red and have sell ratings. If you see Overbought or Oversold ratings it may be best to wait for a pullback to get long or not take the trade at all.

For the stocks that you trade, you should know what index they are in. The reason for this is that you can still take trades if not all four indexes are aligned the same color. For example, maybe small caps (IWM) are on a hot streak and seeing buying momentum from institutions meanwhile tech (QQQ), is being sold. If you held a long in a company that is in IWM then you could be more comfortable holding your long position. Meanwhile, if you held a long position in a stock that is in QQQ then you might want to cut your loss or take profit. There are multiple different use cases for this indicator so it is best to look for outside resources on more information on the indexes and what stocks are in each index. This can be a very powerful tool to see sector rotation by hedge funds and institutions.
Comentários
mikeyvest
Hi, Is there a way to just have the dashboard without the charting. Also IWM is not showing up. Just black where it should be.
Affu-Rida
@mikeyvest,

// This source code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org/MPL/2.0/

//@version=5
indicator("Litt Internals Pro")

instructions = input.bool(title='Instructions', defval=true, inline='1', tooltip = "The Litt Internal Pro is based on the four major U.S. Equity Indexes. This is to not be used for any other markets. If you need more information on any of the indexes, you can google
or watch YouTube videos on what they are. Typically if we are looking for to be long we want to see all four of the indexes green and have buy ratings. If we are looking to be short we want to see all four of the indexes red and have sell ratings. If you see Overbought
or Oversold ratings it may be best to wait for a pullback to get long or not take the trade at all. \n\nFor the stocks that you trade, you should know what index they are in. The reason for this is that you can still take trades if not all four indexes are aligned the
same color. For example, maybe small caps (IWM) are on a hot streak and seeing buying momentum from insitutions meanwhile tech (QQQ), is being sold. If you held a long in a company that is in IWM then you could be more comfortable holding your long position. Meanwhile,
if you held a long position in a stock that is in QQQ then you might want to cut your loss or take profit. There are multiple different use cases for this indicator so it is best to look for outside resources on more information on the indexes and what stocks are
in each index. This can be a very powerful tool to see sector rotation by hedge funds and institutions.")

color_up = input.color(color.new(#27a69b,0), title='Bull Color', inline='3', group='Internal Settings')
color_down = input.color(color.new(#b63632,0), title='Bear Color', inline='3', group='Internal Settings')

spy = request.security("SPY", "", ta.rsi(close,50), lookahead = barmerge.lookahead_on)
ym = request.security("DIA", "", ta.rsi(close,50), lookahead = barmerge.lookahead_on)
qqq = request.security("QQQ", "", ta.rsi(close,50), lookahead = barmerge.lookahead_on)
iwm = request.security("IWM", "", ta.rsi(close,50), lookahead = barmerge.lookahead_on)

avg = math.avg(spy,ym,qqq,iwm)

f_bb(src, length, mult, mult2) =>
float basis = ta.sma(src, length)
float dev = ta.stdev(src, length)
[basis, basis + dev * mult, basis - dev * mult, basis + dev * mult2, basis - dev * mult2]

[middle, upper, lower, upper2, lower2] = f_bb(avg, 200, 2.5 ,3)

pct_chg(symbol) =>
chg = request.security(symbol, "D", math.round((close - close[1]) / close[1] * 100,2), lookahead = barmerge.lookahead_on)
chg_color = chg >= 0 ? color.new(color_up,40) : color.new(color_down,40)
[chg, chg_color]

[spy_chg, spy_chg_color] = pct_chg("SPY")
[dia_chg, dia_chg_color] = pct_chg("DIA")
[qqq_chg, qqq_chg_color] = pct_chg("QQQ")
[iwm_chg, iwm_chg_color] = pct_chg("IWM")

rating(number) =>
return_rating = number > 70 ? "Overbough
progex
Great work, been looking for something like this!
RedKTrader
nice work!
Mais