SPXL Futures Strategy- Buy/sell signals for SPXL using futures momentum.
- For real-time signals at close, use ES1! on 2 minute chart and sign up for real-time cboe mini futures data feed in tradingview.
- All buys and sells are at near close of US RTH market at 4pm.
- Best to use the script with other breadth signals to decide on trading strategy.
- Script is compatible with SPY, SPXL, RSP, QQQ, TQQQ and many other SPX correlated tickers, however it’s primarily developed for SPX.
Breadth Indicators
Market Risk ON/OFFMarket Risk ON/OFF is a indicator designed to show you when it may be a good time to add hedges and/or reduce long exposure to the US stock market. It can be used to make forecasts on the overall market, when a crash or bear market may be about to occur and when a bull market is still strong. When the indicator is applied to a chart, entire time periods will be shaded either Green (Risk-ON Mode) or shaded Red (Risk-OFF Mode). It can be applied to any chart, however it's best applied to a chart of the S&P 500 Index or the ETF $SPY on the daily timeframe.
It's calculation is based on 3 things; price action of the S&P 500 Index ETF $SPY, overall market breadth (that is advancing stocks versus declining stocks) and CBOE Volatility (VIX) Futures term structure. By default 2 out of these 3 signals must be in confluence for a regime change from Risk-On to Risk-Off mode, however this setting can be changed to either 1, 2 or 3 signals required for a regime change.
You can see in the chart above an example of how this indicator would have alerted users on the 25th February 2020 of a change to Risk-Off mode and allowed you to prepare for a possible market crash which happened (the Covid bear market) and when things settled down it switched back to Risk-On mode on the 24th of April 2020 letting you know it was safer to position your portfolio for a bull market again.
Here's another example from the 2008 Global Financial Crisis (GFC) market crash of the Market Risk ON/OFF indicator alerting you to a possible crash.
To get access PM or email me to my address shown below.
Enjoy :)
Disclaimer: All my scripts and content are for educational purposes only. I'm not a financial advisor and do not give personal finance advice. Past performance is no guarantee of future performance. Please trade at your own risk.
Multiple Ticker TraderThis indicator can be used as an alternative to the built in Strategy Tester for those who want to (back) test a strategy on multiple tickers simultaneously and see it's performance.
Just change the buy and sell conditions in the code to fit your needs.
The strategy I've used here is scaling into up to 10 tickers a maximum of 5 times per ticker every time they retrace (another) 10% from their all time high.
You can set the maximum number of total trades and disable scale ins by setting them to an impossible number (such as, 99% away from the all time high).
Credit to QuantNomad for the monthly/yearly returns table bottom left.
The bottom right table shows the current number of shares the algo is long and also the total all-time returns from each individual ticker, and other data.
The blue line is the number of positions the script is currently long. Each scale into the same ticker represents one position.
The yellow line is the closed P&L.
The green/red line is the live P&L.
I've used leverage for the example image just to showcase the liquidation display.
These particular buy/sell conditions cannot close positions at a loss, so be careful if you're wild enough to use this setup live without understanding the script yourself. I haven't used it live myself yet and you should assume there are serious bugs before thinking about using it live, though I'm using a similar thing on cryptos and it's going fine.
You can edit the leverage, maximum trades and back test range in the settings. The number following the ticker on each label represents which scale in was bought/sold.
Enjoy :) let me know if you find any good results
Anchored OBV RSI: "V-RSI" About the Indicator:
V-RSI uses values from the traditional "Relative Strength Index(RSI)" oscillator and the "On Balance Volume(OBV)" indicator and anchors them into an oscillator format. In doing so, we are given a more concrete overview of volume/sentiment data relative to the RSI for analysis of trend strength and decision making.
EXTRAS: BTC MODE => for BTC only.
In BTC MODE, the indicator uses BTC volume data from the following 5 major exchanges: BINANCE, COINBASE, FTX, BITMEX, BITFINEX.
The sum of this data is taken to depict anchored OBV values. This allows for a more accurate representation of Global Volume.
How to use it
The indicator can be used like the normal RSI with the OBV (area in the middle) showing volume sentiment.
<50 is seen as bearish
>50 is seen as bullish
Using this data, it becomes easier to identify unsustainable trends, reversals, divergences
An example of an unsustainable trend and reversal would be if RSI values are overbought ( RSI > 70) yet OBV oscillator remains below 50.
== chances of unsustainable trend reversal are more likely.
For more questions, send me a message here on Tradingview.
Happy trading,
MM :)
[GB]Commodity Futures MapPuts numerous commodity futures on the same scale. The main function is RSI (without evoking "oversold/bought" concepts).
Reading the chart: Much like any oscillator, the important elements are:
Position relative to the middle
Slope
Momentum
Volatility
Settings:
RSI length
EMA smoothing
Time Frame (of the indicator, not the chart(
May add value when asking questions like:
Is lumber trending?
Is silver trending faster than gold?
Is the entire asset class trending up down or not at all?
Adding additional symbols is easy since the code for each symbol is identical.
S&P 500 Bull/Bear Regime (REUPLOAD)Red down triangle signals:
VVIX 7d CC > 0
VIX 7d CC > 0
GLD 50d CC > .6
Green up triangle signals:
Dow % of stocks above 20d MA 3dma crossabove 25
Background color>
NYSE Cumulative AD + NAS Cumulative AD < 90d MA
Hold negative beta when BG color is red. Use red down triangles as early warning signals.
@PINECODERS GFYS!!!!
On Balance Volume with candlesWhen it comes with On balance volume we have only line Indicator
It's difficult to identify what happening
So this indicator will help to identify what happening in On Balance Volume with Candle stick pattern
You can add SMA as well as EMA in code accourding to your strategy
Thank you
BarRange vs VolumeThis is a volume spread analysis/ breadth type indicator.
Compares average bar size to the average volume. Looks for small bar and high volume.
SPY Sub-Sector Daily Money Flow TableThis calculates the dollar volume per candlestick (2nd row) and cumulative (3rd row) of the entire trading day for each subsector of the SPY.
The 'Total' column is the total of all the subsectors combined. It is calculated separately from SPY volume.
The money flow is calculated with (open+close)/2 which means different timeframes yield different results and won't be especially accurate day-by-day. This is useful to quickly see rotation and possible divergences.
Enjoy!
Cash Gaps on a Future/CFD-ChartThe script is based on the great work of @NgUTech which very nicely prints the gaps on any given chart.
The purpose of this script is to show the gaps to futures or cfd of the underlying cash chart, because very often gap closing provides an opportunity to fade the move.
The script works in the way that the user provides the underlying chart symbol and the current spread of the instruments (cash-future/cfd) and it draws boxes where the cash-gaps are.
If you know a way to automatically calculate the spread of the two instruments, please let me know, thanks.
Michael
Dollar Weighted Cumulative SPY Sectors VolumeThis plots the combined volume of the subsectors of the SPY using (open+close)/2, both per bar (narrow candles) and cumulative (wide faded candles).
This aims to use dollar volume and weights each sector individually in dollar amounts. NOT with the weighting used in the SPY index. This indicator is NOT equally weighted., it is weighted according to each subsector's own dollar volume.
Green lines means there is more money flowing into the subsectors combined than out. This is a breadth indicator.
Green and red crosses indicate divergence.
Green crosses are shown when the SPY is outperforming this indicator.
Red crosses are shown when this indicator is outperforming the SPY.
Perhaps the best use of this indicator is to stop you from being aggressive when the whole market isn't moving with you.
Enjoy! Feel free to ask any questions.
ROC vs BTCThis is a modification of my Rate of Change Percentile script, used to compare the current ticker (e.g. Altcoins) to BTC.
Essentially we are looking at (Current Ticker ROC percentile) vs (Bitcoin ROC percentile).
In other words, we are using the ROC value of both the current ticker and BTC, and ranking each based on their previous ROC.
We compare the rankings to gauge the relative overperformance or underperformance of the current ticker vs BTC.
The blue line is BTC, the columns are the current ticker.
Green columns above the blue line indicate positive ROC and current ticker has higher ROC ranking than BTC.
Red columns below the blue line indicate negative ROC and current ticker has a higher ROC ranking than BTC.
*** PLEASE LEAVE A LIKE AND FOLLOW IF YOU ENJOY THE SCRIPT ***
Any questions, comments or feedback I'd love to hear from you below!
ADR - Average Daily Range With ForecastI always liked the MT4 ADR indicator that was going around but never found a decent port of it in tradingview. I also noticed that the way most people were doing the ADR calculation using SMA was not always accurate and that bothered me so I decided to write one from scratch which gave a very specific ADR calculation.
On the MT4 version it would project ADR targets on the high and low side. While I liked that I thought it could be improved upon by determining orderflow and anchoring to the perceived low of day to give you a more realistic target.
I also included a percentage of current ADR as well as changed the color to red once ADR was hit.
Configuring is very simple:
Max Timeframe To Display: you can set what timeframes to show adr (I know tradeingview lets you set this now but I still like it here)
Display Average Range As FOREX pips: Some Instruments use whole numbers so you can toggle if you need too
ADR Length Parameter: Sets Number of Days Lookback to Calculate ADR
I hope you enjoy it.
High - Low Difference (Forex)This script is created to read and label the difference between High and Low of a candle in points term & in percentage term.
This is basically made for Forex Trading.
Do explore the settings of the scrip.
Yield CurvesIllustrating US treasury yield curves (x-axis for the term, y-axis for the yield) and yield matrix based on customized yield, which makes this script very unique in comparison with traditional timeframe-based yield curve indicator.
Inverted yield are highlighted with the heat map.
Can be used to analyze macro market through the shape and value of each yield curve.
US Sector CorrelationsA new and interesting way to look at Breadth. As for the usefulness of it, one would have to do some proper backtesting to get a full grasp of the capabilities. This is just a concept currently. But in general, SPX holding near ATHs with very low sector correlations can be a topping indicator. SPX selling off with Correlations all very positive across each sector...can be a sign of an impending bottom. But, needs the "full bake" of proper testing and analysis versus just guessing. I like the concept and want to explore it further, and I will. This is just the start.
Double top/bottomHello!
This alerts is based on the double bottom pattern - for entering a long position / double top-short
A double bottom pattern is formed when two price bottoms are relatively at the same level and the top acts as resistance. This pattern appears at the end of a downtrend and signals a reversal.
A double top is a bearish reversal pattern that signals the end of an uptrend. It is formed by two price highs forming at the same level and a notch line that acts as local support.
As history and practice show, the double bottom pattern works better. Moreover, in a bull market.
// LOGIC ENTRY:
Period for short and long positions-to search for double bottom as well as double top . the more, the less false.
Change liong and short-channel width for pattern search separately for long and short.
General shift-the overall width of the channel, which changes equally at once for long and short
By default, quiet settings for 1 hour
You can choose the settings you like.
//FILTER SETTING
-RSI
If the checkbox is checked, the filter will be enabled.
The higher the upper bound, the less frequent short entries.
The lower the indicators of the lower border, the less frequent entries to the long
Litt Tick InternalsThe Litt Tick Internals uses the NYSE Cumulative Tick to show traders the number of stocks that are rising vs the number of stocks that are falling on the New York Stock Exchange. The Litt Tick Indicator allows traders to more easily read the TICK Index chart. It does this by showing traders colored tick candles and overbought / oversold areas. Green candles mean that the current TICK trend is UP and Red candles mean that the
current TICK trend is DOWN. Readings that occur in the overbought or oversold areas mean that the market is showing great strength or great weakness. Typically when we get into these zones we can see potential reversals; however, sometimes the strong readings are indicating that a very strong trend is taking place and the trend could continue. That is why it is best to pair this indicator with other tools to enhance its usefulness.
The Litt Tick Interals are meant to be used ONLY small intraday timeframes (1min - 5min) and ONLY on U.S. equities or U.S. equity options. The NYSE TICK index only runs during U.S. Market Hours; therefore, the Litt TICK Internals will only work from 0930-1600 EST.
Pivots High-Low Screener & AlertsHi fellow traders ,
Pleased to share a Pivot High - Low Screener.
The script uses the TV inbuilt Pivot function.
It Screens 25 tickers default set, these can be modified in the input dialog box.
All you need to do is attach to any chart and set the periodicity or the resolution of the chart to your desired alert() frequency requirement.
Now go to the input settings icon of the script and set your Pivot right and left parameters!
Set the alert from the menu as usual click - Any alert() function call and bingo you are done!!
Similarily change the chart periodicity to the next timeframe and set the next alert.
No more opening multiple charts and setting individual time consuming alerts().
You will get concatenated alerts or summary alerts for your tickers.
Track 25tickers with a single alert for each timeframe(Supports 40 tickers).
Happy trading with TV..
Gann FanHello All,
For long time I have been getting many requests about Gann Fan indicator. now we have linefill() function in Pine Language and I think it's right time to make Gann Fan Indicator. Many Thanks to Pine Team for adding many new features to the Pine Language!
How this indicator works:
- It calculates midline (1/1)
- By using midline it calculates other lines (1/2, 1/3, 1/4...etc)
- It calculates highest/lowest Pivot Points in last 280 bars.( by default it's 280 bars, you can change it and pivot period )
- It checks the location of highest/lowest Pivot Points
- After the calculation of the Gann Fan lines, it draws lines, puts Labels and paints the zones between the lines according to the colors set by the user
Long time ago I created a special algorithm for calculating the line with 45 degree and I used it for "1/1" line. Anybody who needs it can use this algorithm freely ;)
Options:
You can change following items;
- The colors
- Transparency. Possible values for transparency are from 0 (not transparent) to 100 (invisible)
- Line styles
- Loopback Period (by default it's 280)
- Pivot Period (by default it's 5)
- Enable/disable Labels
- Label location (by default it's 50
Tradingview Gann Fan page : The Gann Fan is a technical analysis tool created by WD Gann. The tool is comprised of 9 diagonal lines (extending indefinitely) designed to show different support and resistance levels on a chart. These angles -drawn from main tops and bottoms- divide time and price into proportionate parts and are often used to predict areas of support and resistance, key tops and bottoms and future price moves. Please note that the chart needs to be scaled properly to ensure the market has a square relationship....
Enjoy!
LUNA - Hold The Line Or DieThis indicator is trying to predict potential LUNA token bottom.
How does this work?
There is UST baked by LUNA and in case LUNA drops so hard that MC of LUNA is lower than MC of UST we are at risk of repeg and kinda "breaking" of Terra Blockchain.
This indicator doesn't take into account other stable assets but UST but they don't take a big portion of total stable tokens capitalization so it can be omitted.
Heavy buy pressure is expected at indicated levels.
The indicator is based on a simple formula:
LUNAfloor = USTmc/LUNAmc * LUNAprice
Мarket Breadth LabelsHistory and credits
The idea about this indicator, came from a friend teodorgun. www.tradingview.com
Special thanks to QuantNomad, whose courses got me started on programming on PineScript. www.tradingview.com
What it does
The indicator plots various values from market breadth indicators.
It shows the % stocks above certain moving averages for different indexes.
The first 3 cells, display the Advance Decline Ratios:
1. Total Advance Decline Ratio
2. NYSE Advance Decline Ratio
3. Nasdaq Advance Decline Ratio
- coloring for these is simple (value > threshold = color is green, value < threshold = color is red)
The rest of the columns display % stocks above the moving averages.
For example a value of 20 in column 4 ("Stocks above 5D MA), means that only 20% of the stocks are above their 5D moving average.
Line 1 shows current value of the indexes.
Line 2 shows value 5days ago (assuming that 5 trading days = 1 trading week).
- Line 1 Coloring: coloring here is divided between 2 tresholds ( value < lower treshold = color is red, value > lower treshold AND value < higher treshold = color is yellow, value > higher treshold = color is green)
- Line 2 Coloring: no coloring logic is applied here.
How to use it
There are several techniques for breadth indicators, many can be read online, but generally these indicators are considered contrarian. This means that high values indicate overbought conditions and low values indicate oversold conditions.
Currency Strength DashboardDrawing Currency Strength (consists of: USD, EUR, JPY, GBP, AUD, CHF, CAD, NZD) historical plots in parallel with currency strength heat map and dynamic legend, which makes this script unique as Dashboard.
Calculation criteria is based on user's input: Session, by which you can recalculate based on D, W, M.