OPEN-SOURCE SCRIPT
S&P Trading System with Pivots

The S&P Trading System with Pivots is a TradingView indicator designed for the 30-minute SPX chart to guide SPY options trading. It uses a trend-following strategy with:
10 SMA and 50 SMA: Plots a 10-period (blue) and 50-period (red) Simple Moving Average. A bullish crossover (10 SMA > 50 SMA) signals a potential buy (green triangle below bar), while a bearish crossunder (10 SMA < 50 SMA) signals a sell or exit (red triangle above bar).
Trend Bias: Colors the background green (bullish) or red (bearish) based on SMA positions.
Pivot Points: Marks recent highs (orange circles) and lows (purple circles) as potential resistance and support levels, using a 5-bar lookback period.
10 SMA and 50 SMA: Plots a 10-period (blue) and 50-period (red) Simple Moving Average. A bullish crossover (10 SMA > 50 SMA) signals a potential buy (green triangle below bar), while a bearish crossunder (10 SMA < 50 SMA) signals a sell or exit (red triangle above bar).
Trend Bias: Colors the background green (bullish) or red (bearish) based on SMA positions.
Pivot Points: Marks recent highs (orange circles) and lows (purple circles) as potential resistance and support levels, using a 5-bar lookback period.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.