VIX Term StructureThis script allows users to visualize the state of the VIX Futures Term Structure. The user is able to select from five CBOE VIX Indices; VIX, VIX9D, VIX3M, VIX6M, and VIX1Y and the script will color the candles based on the price relationship between selected indices. Visit the CBOE website for more info on how the various VIX indices are calculated.
SPDR S&P 500 ETF (SPY)
VFI strategy [based on VFI indicator published by UTS]This strategy is based on VFI indicator published by UTS.
for the strategy purpose , I have added buy line and sell line to the indicator and tested SPY stock/index on one hour chart
BUY RULE
==========
1. EMA 50 is above EMA 200
2. vfi line is pulled down and crossing above -4
EXIT RULE
==========
1. when vfi line crossing down 5
STOP LOSS
=========
1. default stop loss is set to 5%
ALL the above values (Buy Line , Sell line and Stop Loss ) can be modified in settings window
Notes :
more details of VFI indicator can be found at mkatsanos.com and precisiontradingsystems.com
Warning:
for educational purposes only
S&P Bear Warning IndicatorTHIS SCRIPT HAS BEEN BUILT TO BE USED AS A S&P500 SPY CRASH INDICATOR ON A DAILY TIME FRAME (should not be used as a strategy).
THIS SCRIPT HAS BEEN BUILT AS A STRATEGY FOR VISUALIZATION PURPOSES ONLY AND HAS NOT BEEN OPTIMIZED FOR PROFIT.
The script has been built to show as a lower indicator and also gives visual SELL signal on top when conditions are met. BARE IN MIND NO STOP LOSS, NOR ADVANCED EXIT STRATEGY HAS BEEN BUILT.
As well as the chart SELL signal an alert option has also been built into this script.
The script utilizes a VIX indicator (maroon line) and 50 period Momentum (blue line) and Danger/No trade zone(pink shading).
When the Momentum line crosses down across the VIX this is a sell off but in order to only signal major sell offs the SELL signal only triggers if the momentum continues down through the danger zone.
A SELL signal could be given earlier by removing the need to wait for momentum to continue down through the Danger Zone however this is designed only to catch major market weakness not small sell offs.
As you can see from the picture between the big October 2018 and March 2020 market declines only 2 additional SELLS were triggered.
To use this indicator to identify ideal buying then you should only buy when Momentum line is crossed above the VIX and the Momentum line is above the Danger Zone (ideally 3 - 5 days above danger zone)
StonkBTC - autoswitch secondary series for scalpersSince the drop in March of 2020, the U.S. ETF , SPY, has been correlated with bitcoin's moves, especially during the NY session.
This tool is meant to help traders who want to take advantage of that without having to switch the secondary series between BTCUSD and (generally) SPY when changing the ticker they are viewing.
How this works:
The indicator will automatically switch between bitcoin or equity index depending on what ticker your current chart is. Ideally this tool would be very simple to use.
Options:
Show/hide a 'track price' line
Index choice of SP500, Nasdaq 100, and Russell 2000. Further selection by ETF, futures, and CFD
Varied bitcoin price sources
Notes:
You will need a separate subscription to TradingView to view realtime CME futures data (if not, it will be delayed by 10 minutes). Because of this, the default option chosen is the CFD for the most complete chart when viewing bitcoin.
NY Core Trading Session: 9:30 a.m. to 4:00 p.m. ET
www.nyse.com
SPY RelativeShows an instrument's sentiment in a day (or week) compared to the market (SPY default). The Red line shows bearish sentiment compared to the market and the green is bullish. Technically this works like a proxy for Alpha/Beta factor.
S&P 500 Sector Strength IndexHi traders , this is lonelygrass again 😄, and I am going to show what you don't often see out there and share it with you.
This indicator is called "s&p 500 sector strength index"😎 , which allows you to distinguish strengths and weaknesses between different sectors in s&p500, and to create meaningful trading frameworks around it.
Similar to the RSI indicator , it also has overbought and oversold levels , you can clearly figure out the degree of crowd behaviors in various sectors' stocks .
For me 🤣, I will use it to "BUY LOW⬇️ , SELL HIGH⬆️". When a sector is oversold at the moment, I will try to buy those stocks when I find price actions and chart patterns in comply with the analysis by this indicator , the opposite for shortselling.
Also, for sake of being more user-friendly 👍, I added a function which enables you to only select the sector(s) you want to look at in order to make it less messy.
If you can't help to know what I will share with you coming up, then FOLLOW my account 😙 . Also , your likes and shares are really important 🎊. I will get more motivated to bring you new thing every day!!! ✍
Monthly MA Close Generates buy or sell signal if monthly candle closes above or below the signal MA.
Long positions only.
Inputs:
-Change timeframe MA
-Change period MA
-Use SMA or EMA
-Display MA
-Use another ticker as signal
-Select time period for backtesting
This script is not necessarily written to maximize profits, but to minimize losses.
Although it can outperform 'Buy & Hold' on some occasions when there is a multiple month bearisch trend.
You can optimise this strategy by changing the signal MA inputs.
I would suggest aiming for the best Profit Factor starting from the monthly ("M") setting.
You can always fine-tune the results at a lower timeframe.
The option to use another ticker for providing signals can give you a more stable and unified results.
For example using AMEX:SPY as signal with default parameters gives better results with NASDAQ:AAPL than if you would use NASDAQ:AAPL itself.
I used the anti-repainting function from PineCoders to prevent repainting.
This script is best used for multi-month trading positions & Daily or 4H setting of your chart.
SPY Expected Move by VIXThis indicator shows 1 and 2 standard deviation price move from the VWAP based on VIX. Implied Volatility (IV) is being used extensively in the Option world to project the Expected Move for the underlying instrument. VIX is used as a proxy for SPY's IV for 30 days.
This indicator is meaningful only for SPY but can be used in any other instrument which has a strong correlation to SPY.
(JS)S&P 500 Volatility Oscillator For Options 2.0I am going to start taking requests to open source my indicators and they will also be updated to Version 4 of Pinescript.
I added some features to the original code such the ability to smooth the oscillator and select the look back periods for the historical volatility.
Link to original:
Original post:
"The idea for this started here: www.tradingview.com with the user @dime
This should only be used on SPX or SPY (though you could use it on other things for correlation I suppose) given that the instrument used to create this calculation is derived from the S&P 500 (thank you VIX ). There's a lot of moving parts here though, so allow me to explain...
First: The main signal is when Implied Volatility (from VIX ) drops beneath Historical Volatility - which is what you want to see so you aren't purchasing a ton of premium on long options. Green and above 0 means that IV% has dropped lower than Historical Volatility . (this signal, for example, would suggest using a Long Call or Put depending on your sentiment)
Second: The green line running underneath zero is the bottom portion of the "Average True Range" derived from the values used to create the oscillator. the closer the bottom histogram is to the green line, the more "normal" IV% is. Obviously, if this gets far away from the line then it could be setting up nicely to short options and sell the IV premium to someone else. (this signal, for example, would suggest using something like a Bull Put Spread)
Third: The red background along with the white line that drops down below zero signals when (and how far) the IV% from 3 months out (from VIX3M ) is less than the current IV%. This would signal the current environment has IV way too high, a signal to short options once again (and don't take any long option positions!).
Tried to make this simple, yet effective. If you trade options on SPX , SPY , even ES1! futures - this is a tool tailored specifically for you! As I said before, if you want you can use it for correlation on other securities. Any other ideas or suggestions surrounding this, please let me know! Enjoy!
Feb 17, 2019
Release Notes: Cosmetic update for a much cleaner look:
-Replaced the "HIGH IV" with a simlple "H"
-Now the white line is constantly showing you the relationship between VIX and VIX3M - when VIX is greater than VIX3M the background still goes red
-However, now when VIX drops below Historical Volatility, the background is bright green
-When both above are true - it's dark green
-The Average True Range on the bottom is now a series of crosses"
NYSE_ADVANCE_DECLINE_VOL vs SPYThis script plot a NYSE ADVANCING DECLINING VOLUME LINE on a WMA histogram of SPY. Very new at coding pine script, so use at your own risk
Asset Correlation Tool v3, improvedI found this useful tool among the indicators but it wasn't doing the correlation study correctly.
Everything in markets, with only a few exceptions, are rising in value over time and therefore trended to time. The simplest method I found is to use link relative or first difference detrending, before calculating a correlation between assets.
I also updated it to include more assets, to use the latest Cryptocap indices like BTC.D/ETH.D/TOTAL2 and the top 100 crypto index CIX100. I improved the colour schemes, too
Included in the source code are some other ideas like the FRED:M1 and FRED:M2 (only on daily charts), the Yuan/Yen/EUR/USD, etc. There's lots of scope for correlating unrelated markets.
I'll keep updating it as I use it to find truly correlated assets. Some kind of signal line of known correlations, to subtract from the baseline fuzz of market activity.
Any improvements are most welcome; I'm a novice at best at statistics and build on others' work.
- mabonyi
A.I.Driven TradersAI Model Trades for 20190612The entry and exit levels here are NOT derived from any specific indicator but are coming from our A.I. driven proprietary models.
This is an attempt at exploring the trading community here at TradingView and sharing our daily trading plans published at our site with the community here in the form a Pine Script - just starting and learning this platform. Please help point out any obvious errors or gotchas committed in the scripts. Thanks and have a great trading day!
**** The Trading Plan Published for today ****
>>>> Medium-Frequency Models: <<<<< For today, Wednesday 06/12, our medium-frequency models indicate using the 2895 as a pivot point - opening a long on a break above 2895, and opening a short on a break below 2895 (wait for a close on at least a five minute chart to determine the break), both sides with a 9-point trailing stop.
Note: For the trades to trigger, the breaks should occur during the regular session hours starting at 9:30am ET. By design, these models do NOT open any new positions after 3:45pm. Only one open position at any given time.
>>>>> Aggressive Intraday Models: <<<<< For today, Wednesday 06/12, our aggressive intraday models indicate going long on a break above 2892 or 2875 with an 6-point trailing stop, and going short on a break below 2887 or 2878 with an 8-point trailing stop.
Note: For the trades to trigger, the breaks should occur during regular session hours starting at 9:30am ET. Due to the intraday nature of these aggressive models, they indicate closing any open trades at 3:55pm and remaining flat into the session close. No opening of new positions after 3:45pm. Only one open position at any given time.
SPY BackgroundColors background green if AMEX:SPY 1 day performance is positive
Colors background red if AMEX:SPY 1 day performance is negative
@WACC Volatility Weighted PUT/CALL Positions [SPX]This indicator is based on Volatility and Market Sentiment. When volatility is high, and market sentiment is positive, the indicator is in a low or 'buy state'. When volatility is low and market sentiment is poor, the indicator is high.
The indicator uses the VIX as it's volatility input.
The indicator uses the spread between the Call Volume on SPX/SPY and the Put Volume.
This is pulled from CVSPX and PVSPX.
When volatility and put/call reaches a critical level, such as the levels present in a crisis or a sell off, the line will be green. See Sept 2015, 2008, and Feb 2018.
This level can be edited in the source code.
As the indicator is based on Put/Call, the indicator works best on larger time frames as the put/call ratio becomes a more discernible measure of sentiment over time.
XBT Volatility Weighted Bottom Finder. [For Daily Charts]An update to:
Made it into and indicator.
v. 0.0.1
DESIGNED FOR DAILY CHARTS
VIX INDICATORWorks best as an intraday indicator
Background black & line green = Long VIX
Background black & red line = No trade
Background orange & line green = Consider selling
Background orange & line red = Short VIX
Pair Strength: Updated Version of the one by GlazI updated this version used for Forex with Stock&Index related instruments. Enjoy.
Cowabunga System from babypips.comPlease do read the information below as well, especially if you are new to Forex.
The Cowabunga System is a type of Mechanical Trading System that filters trades based on the trend of the 4 hour chart with EMAs and some other familiar indicators (RSI, Stochastics and MACD) while entering trades base on 15 minute chart.
I have coded (quite amateurishly) the basic system onto a 15 minute chart (the 4 hour settings are coded as well). The author says the system is to be traded off the 15 minute chart with the 4 hour chart only as a reference for trend direction.
4 Hour Chart Settings
5 EMA
10 EMA
Stochastics (10,3,3)
RSI (9)
Then we move onto the 15 minute chart, where he gives us the trade entry rules.
15 Minute Chart Settings
5 EMA
10 EMA
Stochastics (10,3,3)
RSI (9)
MACD (12,26,9)
Entry Rules - long entry rules used, obviously reverse these for shorting.
1. EMA must cross above the 10 EMA.
2. RSI must be greater than 50 and not overbought.
3. Stochastic must be headed up and not be in overbought territory.
4. MACD histogram must go from negative to positive OR be negative and start to increase in value.
What I did.
1. Set the RSI and Stochastic levels to avoid entries when they indicate overbought conditions for long and oversold conditions for short (80 and 20 levels).
2. Users can input specific times they want to backtest.
3. User's can configure profit targets, trailing stops and stops. Default is set it to was 100 pips profit target with a 40 pip trailing stop. (Note, when you are changing these values, please note that each pip is worth 10, so 100 pips is entered as 1000.)
The Cowabunga System from babypips.com is another popular and active system. The author, Pip Surfer, continues to post wins and losses with this system. It shows there is a lot of honesty and integrity with this system if the author keeps up to date even 10 years later and is not afraid of sharing the times the system causes losses.
As an example of this, here is post he shared just last week . It's almost like a journal, he gives specific times and reasons why he entered, lets the readers know when he was stopped out, etc. I think that what he does is equally important as his system.
To read more about this system, visit the thread on babypips.com, click here.
Free Strategy #08 (Combo of #01 and #02) (ES / SPY)This strategy was designed to be traded on daily data on the ES and SPY—the strategy was originally developed for NinjaTrader, which displays daily ES data based on RTH hours instead of 24 hours (1440 minute) like TradingView does, so we are presenting the results on the SPY until we figure out how to overcome this hurdle.
The strategy combines the two ideas from strategy #01 and strategy #02 .
Strategy #08
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Net Profit: 26,044.60
Max Drawdown: 3,947.60
Buy and Hold (Custom)
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Entry Long: 1993-02-01 @ 43.99
Exit Long: 2017-07-28 @ 246.34
Net Profit: 20,225.10
Max Drawdown: 9,042.00
Free Strategy #02 (ES / SPY)This strategy was designed to be traded on daily data on the ES and SPY—the strategy was originally developed for NinjaTrader, which displays daily ES data based on RTH hours instead of 24 hours (1440 minute) like TradingView does, so we are presenting the results on the SPY until we figure out how to overcome this hurdle.
Strategy #02
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Net Profit: 10,118.30
Max Drawdown: 4.037.60
Buy and Hold (Custom)
Quantity 100
Slippage: 2 ticks
Commission: 4.95 per order
Entry Long: 1993-02-01 @ 43.99
Exit Long: 2017-07-28 @ 246.34
Net Profit: 20,225.10
Max Drawdown: 9,042.00
Free Strategy #01 (ES / SPY)The strategy was designed to be traded based on daily data on the ES and SPY--the strategy was originally developed on NinjaTrader using approximately 50% out of sample data with a slippage of 1 tick on the ES. This is our first strategy that we converted from NinjaTrader to TradingView, so if you see any issues with our conversion, please let us know as we are still learning TradingView Pine Script.
Session barsthis script marks off the extended hours trading for NY session. Shades the off hours and overnight data. Highlights the regular trading session for NY session. It can be adjusted for any particular market.
I use it specifically to show the missing data on the SPY as compared with the continuous data on the SPX500.
Fibonacci Bollinger BandsThese Bollinger bands feature Fibonacci retracements to very clearly show areas of support and resistance. The basis is calculate off of the Volume Weighted Moving Average. The Bands are 3 standard deviations away from the mean. 99.73% of observations should be in this range.