How to Use Moving Averages in TradingViewMaster moving averages using TradingView's charting tools in this comprehensive tutorial from Optimus Futures.
Moving averages are among the most versatile technical analysis tools available, helping traders analyze trends, identify overbought/oversold conditions, and create tradeable support and resistance levels.
What You'll Learn:
Understanding moving averages: lagging indicators with multiple applications
Simple moving average basics: calculating price averages over set periods
Key configuration choices: lookback periods, price inputs, and timeframes
How to select optimal lookback periods (like 200-day) for different trading styles
Using different price inputs: close, open, high, or low prices
Applying moving averages across all timeframes from daily to 5-minute charts
Analyzing price relative to moving averages for trend identification
Using 50-day and 200-day moving averages for trend analysis on E-Mini S&P 500
Mean reversion trading: how price tends to return to moving averages
Trend direction analysis using moving average slopes
Famous crossover signals: "Death Cross" and "Golden Cross" explained
Trading moving averages as dynamic support and resistance levels
Advanced moving average types: weighted and exponential moving averages
Applying moving averages to other indicators like MACD and Stochastics
Balancing sensitivity vs. noise when choosing periods
This tutorial may benefit futures traders, swing traders, and technical analysts who want to incorporate moving averages into their trading strategies.
The concepts covered could help you identify trend direction, potential reversal points, and dynamic trading levels across multiple timeframes.
Learn more about futures trading with TradingView:
optimusfutures.com
Disclaimer:
There is a substantial risk of loss in futures trading. Past performance is not indicative of future results. Please trade only with risk capital. We are not responsible for any third-party links, comments, or content shared on TradingView. Any opinions, links, or messages posted by users on TradingView do not represent our views or recommendations. Please exercise your own judgment and due diligence when engaging with any external content or user commentary.
This video represents the opinion of Optimus Futures and is intended for educational purposes only. Chart interpretations are presented solely to illustrate objective technical concepts and should not be viewed as predictive of future market behavior. In our opinion, charts are analytical tools—not forecasting
Simplemovingaverages
NASDAQ: PLTR – Strong Trendline & SMA Confluence SupportNASDAQ: PLTR Palantir remains in a clear uptrend with the moving averages aligned (SMA 50 > SMA 100 > SMA 150 > SMA 200). Since April, price has consistently traded above the 50-day SMA, finding support on each pullback to the trendline (green line). This trendline has been tested four times over the past six months, the latest on August 20.
On August 20, PLTR formed a hammer candlestick while testing multiple key supports simultaneously:
1) Horizontal support (red dotted line)
2) Cut Lower Bollinger Band
3) Tested 50-day SMA
4) Trendline support (green line)
5) Stochastic in oversold zone
6) Takeout stops pattern: wick flushed below prior lows, likely taking out stops before reversing
This strong confluence of signals suggests buyers are defending the level, offering a favorable risk-reward setup.
How to Use - "Volatility Squeeze (NR4/NR7) in Action"Overview
The NR4/NR7 V olatility Squeeze & Breakouts indicator highlights narrow range bars (the tightest candles in the last 4 or 7 bars).
These patterns often signal price contraction before an expansion move.
Performance Snapshot from the Chart
• Multiple NR4/NR7 labels appeared during sideways phases, correctly highlighting compression zones.
• Breakouts above/below the marked levels often triggered short directional bursts.
• The final cluster near the right edge (orange NR bar) preceded a sharp downside breakout, confirmed by both price and volume.
• The 20-period SMA acted as a bias filter:
• Breakouts below the SMA during the downtrend aligned with stronger moves.
• Breakouts against the SMA were generally weaker or faded quickly.
Key Observations
1. Clustering of NR Bars:
• When NR4/NR7 patterns cluster together, it often signals that a bigger move is loading.
2. Breakout Triggers:
• The High/Low of the NR bar served as clean breakout reference levels.
3. Volume Confirmation:
• Strong moves (especially the last breakdown) came with spikes in volume, adding conviction.
How Traders Can Use This
• Identify Volatility Contraction : Spot NR4/NR7 bars as potential setups.
• Set Levels: Use NR High/Low for breakout triggers.
• Add Filters : Combine with trend (SMA), volume, or support/resistance for stronger conviction.
• Risk Management : Opposite side of the NR bar can serve as a logical stop level.
$TDUP - Bullish Before Earnings TodayNASDAQ:TDUP was a pick from my August 3rd, 2025 newsletter, along with NYSE:HWM , NYSE:RBC , and $AMSC. These picks all have the following in common:
Performance 10Y > Performance 5Y - No long term dips in performance
Performance 5Y > Performance 1Y - No short term dips in performance
SMA(300) < Price - Price above moving average
SMA(200) < Price - Price above moving average
Avg Volume 10D > 100K - No lightly traded stocks. Liquidity needed
SMA(200) >= SMA(300) - Stacked long-term simple moving averages
SMA(50 >= SMA(200) - Stacked mid-term simple moving averages
ROE, Trailing 12 Months > 0% - Improving ROE (Return on Equity)
PE increasing quarter-over-quarter
NASDAQ:TDUP has an earnings event after hours on Monday, August 4th - today. On a fundamental note, earlier this year they exited the European market and have gotten a big growth benefit from some of the AI tools, like Style Chat, that they’ve introduced to their ecommerce platform.
With their entire focus being redirected to the US market, and their numbers showing the benefits of this new focus, they have a fighting chance to be a solid pick for the next few years.
EPS and ROE have gained in the last quarter, but there is some overhead resistance right now based on the free TradingView Indicator Magic Order Blocks .
Oh, and they’ve been winning a lot of awards and recognition on the technology front, including a nod for their Chief Product and Technology Officer, Dan DeMeyer, being named a 2024 Vanguard at the beginning of the year, by Modern Retail.
My analysis shows that there is an expected 23% move because of the earnings events based on implied volatility. But the IV is so large, the movement over the last few trading days might take the wind out of the sails of today's announcement. Unless, of course, there's a miss. In which case, bulls might get smashed.
This is a slightly riskier play, considering the IV going into earnings, but could be a big winner if NASDAQ:TDUP stays on their current trajectory.
Or, I could be wrong. 😕🤔
SelectQuote | SLQT | Long at $2.18SelectQuote NYSE:SLQT is currently resting within my historical simple moving average zone. This often signals consolidation and a future move (in this case, let's hope up). Looking at the company's financials, NYSE:SLQT is currently profitable. For Q3 2025 (ended March 31, 2025), the company reported a net income of $26.0 million, up from $8.6 million in Q3 2024. This follows a strong Q2 2025 with a net income of $53.2 million. While like most companies there are likely headwinds in 2025 (earnings are projected at a loss of -$0.20 per share due to seasonal fluctuations and investments in 2025 (e.g., new Kansas facility)), profitability is likely to stabilize in 2026, with EPS forecasts of $0.05, supported by improved Medicare reimbursement rates and operational efficiencies. Ongoing Department of Justice allegations could pose risks... but SelectQuote’s recent $350M investment and cost management suggest profitability may continue if legal issues are resolved favorably.
Thus, at $2.18, NYSE:SLQT is in a personal buy zone. There is a potential for the price to dip to the bottom of the historical simple moving average channel (near $1.25) in the near-term, but time will tell.
Targets:
$2.64
$4.24
Beating the S&P 500 with TradingView's Stock ScreenerThis is Mo from MWRIGHT TRADING. The date is Friday, June 27th, 2025.
This video is about selecting stocks that collectively have the potential to consistently beat the S&P 500
I look for smooth and consistent long-, mid-, and short-term performance. For that we need
Building a Screener
What I look for
- Liquidity - that means money, or trading volume.
- Room to move - no overhead resistance
- Favorable trends - stable moving averages
- Good short term signals - a good intraday chart
Filters
- Market Cap 300M to 2B
Not too big, and not too small
- Perf 10Y > Perf 5Y
No long term dips in performance
- Perf 5Y > Perf 1Y
No short term dips in performance
- SMA(300) < Price
Price above moving average
- SMA(200) < Price
Price above moving average
- Avg Volume 10D > 100K
No lightly traded stocks. Liquidity needed
- + SMA(200) >= SMA(300)
Stacked long-term SMAs
- + SMA(50 >= SMA(200)
Stacked short-term SMAs
- + ROE, Trailing 12 Months > 0% (Chris Mayer)
Improving ROE
Examples
- SENEA
- DGII
Review the charts
- Verify short term performance
- Multi-VWAP (1 hr Chart) - Free Indicator
- Above a rising 5-Day AVWAP
- Magic Order Blocks (5 min Chart) - Free Indicator
- No major overhead resistance
- Verify fundamentals and long term performance
- ROE (Quarterly) - TV Indicator
- Rising ROE
- Float Shares Outstanding - TV Indicator
- Lower float means lower supply. When high demand occurs, this can act as a price catalyst.
- Multi VWAP from Gaps - Free Indicator
- Stacked is good
- 3 SMA Ladies - Custom Indicator
- Stacked is good
DEATH CROSS on the SP500?We just witnessed the 50-day SMA crossing below the 200-day SMA — a technical signal known as the Death Cross.
Historically, this pattern has been associated with:
Trend reversals from bullish to bearish
Extended downside pressure
A loss of investor confidence in the short-to-medium term
🧠 While not always followed by major crashes, the last time this pattern showed up in a similar setup was followed by an accelerated drop — and that’s exactly what we’ve seen again.
The real question now is: 👉 Was this a false signal or is more downside ahead?
🔍 Keep an eye on price action around the 5,400–5,500 zone. If it fails to recover, this death cross might just be the start of a deeper correction...
How to develop a simple Buy&Sell strategy using Pine ScriptIn this article, will explain how to develop a simple backtesting for a Buy&Sell trading strategy using Pine Script language and simple moving average (SMA).
Strategy description
The strategy illustrated works on price movements around the 200-period simple moving average (SMA). Open long positions when the price crossing-down and moves below the average. Close position when the price crossing-up and moves above the average. A single trade is opened at a time, using 5% of the total capital.
Behind the code
Now let's try to break down the logic behind the strategy to provide a method for properly organizing the source code. In this specific example, we can identify three main actions:
1) Data extrapolation
2) Researching condition and data filtering
3) Trading execution
1. GENERAL PARAMETERS OF THE STRATEGY
First define the general parameters of the script.
Let's define the name.
"Buy&Sell Strategy Template "
Select whether to show the output on the chart or within a dashboard. In this example will show the output on the chart.
overlay = true
Specify that a percentage of the equity will be used for each trade.
default_qty_type = strategy.percent_of_equity
Specify percentage quantity to be used for each trade. Will be 5%.
default_qty_value = 5
Choose the backtesting currency.
currency = currency.EUR
Choose the capital portfolio amount.
initial_capital = 10000
Let's define percentage commissions.
commission_type = strategy.commission.percent
Let's set the commission at 0.07%.
commission_value = 0.07
Let's define a slippage of 3.
slippage = 3
Calculate data only when the price is closed, for more accurate output.
process_orders_on_close = true
2. DATA EXTRAPOLATION
In this second step we extrapolate data from the historical series. Call the calculation of the simple moving average using close price and 200 period bars.
sma = ta.sma(close, 200)
3. DEFINITION OF TRADING CONDITIONS
Now define the trading conditions.
entry_condition = ta.crossunder(close, sma)
The close condition involves a bullish crossing of the closing price with the average.
exit_condition = ta.crossover(close, sma)
4. TRADING EXECUTION
At this step, our script will execute trades using the conditions described above.
if (entry_condition==true and strategy.opentrades==0)
strategy.entry(id = "Buy", direction = strategy.long, limit = close)
if (exit_condition==true)
strategy.exit(id = "Sell", from_entry = "Buy", limit = close)
5. DESIGN
In this last step will draw the SMA indicator, representing it with a red line.
plot(sma, title = "SMA", color = color.red)
Complete code below.
//@version=6
strategy(
"Buy&Sell Strategy Template ",
overlay = true,
default_qty_type = strategy.percent_of_equity,
default_qty_value = 5,
currency = currency.EUR,
initial_capital = 10000,
commission_type = strategy.commission.percent,
commission_value = 0.07,
slippage = 3,
process_orders_on_close = true
)
sma = ta.sma(close, 200)
entry_condition = ta.crossunder(close, sma)
exit_condition = ta.crossover(close, sma)
if (entry_condition==true and strategy.opentrades==0)
strategy.entry(id = "Buy", direction = strategy.long, limit = close)
if (exit_condition==true)
strategy.exit(id = "Sell", from_entry = "Buy", limit = close)
plot(sma, title = "SMA", color = color.red)
The completed script will display the moving average with open and close trading signals.
IMPORTANT! Remember, this strategy was created for educational purposes only. Not use it in real trading.
S&P 500 Drops Below 100-Day Moving Average The S&P 500 has broken below its 100-day simple moving average (SMA), a key technical level that many traders and institutions use to gauge trend strength. Historically, when the price falls below this moving average, it often signals a potential shift in market sentiment.
What This Means:
🔹 Potential Trend Reversal? If the index fails to recover above this level, we could see increased selling pressure, leading to further downside.
🔹 Bearish Confirmation: A sustained close below this moving average might attract more short sellers, reinforcing a downward move.
🔹 Buying Opportunity? If buyers step in and reclaim the 100-day SMA, this could be a temporary dip before resuming the uptrend.
Are we looking at the start of a deeper correction or just a pullback before new highs? Let’s see how the market reacts!
#SP500 #TechnicalAnalysis #MovingAverages #TradingStrategy
Trading with the 20 & 100 Simple Moving Averages (SMA) The Simple Moving Average (SMA) is a powerful trend-following tool that helps traders identify buy and sell opportunities. In this chart, we use:
SMA 20 (Purple Line) → This moving average represents the average price of the last 20 candles. Since it reacts quickly to price changes, it reflects short-term momentum and helps identify early trend shifts.
SMA 100 (White Line) → The 100-period SMA smooths out price action over a longer timeframe, reducing noise and showing the overall market direction.
Trading Strategy: The Golden & Death Cross
✅ BUY Signal: The SMA 20 crosses above the SMA 100 → This is called a Golden Cross, and it indicates that recent prices are rising faster than the long-term trend, suggesting a shift toward bullish momentum. Traders see this as a buying opportunity since short-term demand is increasing
❌SELL Signal: The SMA 20 crosses below the SMA 100 → This is called a Death Cross, and it shows that recent prices are dropping below the long-term trend, signaling a potential bearish market shift. This suggests that sellers are taking control, increasing the likelihood of a downtrend.
By using moving averages, traders can filter out market noise and trade with confidence.
Ready for the next wave?After reaching its low in early August, the chart of Unity Software Inc. has shown a textbook bullish move. The Elliott Wave count is marked on the chart. Now, with the correction phase seemingly complete, the price appears poised to kickstart the next bullish impulse from the 38.2% Fibonacci level, supported by the 50-day SMA.
NIFTY DAILY - 12/4/2024Nifty opened gap down and bear stretch their arms and drag the nifty to low of the day that is 22503 which is around 1% and 234 points.
Nifty has formed red body big candle with upper shadows which indicates participants were selling from upper end.
A small part of candle is crossing 9 days Simple Moving Average Line on daily chart.
Nifty is at support level which is 22518 so, further support will be 22364 with resistance of 22720 level.
Today’s Advance Decline ratio of NIFTY50
Advance - 5
Decline - 45
FII Sell – 8027 crores
DII Buy + 6341.53 crores.
⚠️ Important: Always maintain your Risk & Reward Ratio.
✅Like and follow to never miss a new idea!✅
Disclaimer: I am not SEBI Registered Advisor. My posts are purely for training and educational purposes.
Eat🍜 Sleep😴 TradingView📈 Repeat 🔁
Happy learning with trading. Cheers!🥂
NIFTY DAILY - 27/3/2024Index opens with gap and bulls stretch their arms for another day, and made days high that is 22193.
Index has formed green body shaven bottom candle on daily chart, which indicates todays open and low are same and buyers were buying from starting of the day.
Candle is above 9 days Moving Average line on daily chart. Index has broken the resistance of 22115 level so, further resistance can be 22381 level with support of 22028 level.
Today’s Advance Decline ratio of NIFTY50
Advance - 22
Decline - 27
FII Buy + 2170.32 crore
DII Buy + 1197.61 crore.
⚠️ Important: Always maintain your Risk & Reward Ratio.
✅Like and follow to never miss a new idea!✅
Disclaimer: I am not SEBI Registered Advisor. My posts are purely for training and educational purposes.
Eat🍜 Sleep😴 TradingView📈 Repeat 🔁
Happy learning with trading. Cheers!🥂
BTC monthly UpdateFollowing the run up to all time high in 2017, we had a bear market breakdown that lasted the year. This period was followed by an uptrend after bouncing off the monthly 50 simple moving average. That uptrend broke at the .618 extension and gave way to another breakdown to test the 50 simple moving average. PA wicked below the 50sma and opened above the following month, and the bull market was on.
Here we are at the .618 extension with a doji candle formation following the 2021 top and subsequent breakdown. RSI level is similar to the previous reversal area (around 65) following the 2017 meltdown. The 50 sma looks to line up well with a major area of demand.
Monthly open for february is tomorrow, and im expecting the monthly to open red.
Both scenarios have printed 5 solid monthly green candles. I think we are due for the macro correction that many have been waiting for.
This could be an excellent buying opportunity for those who have been sidelined or are looking to add to a position in anticipation of the next parabolic bull run.
NFA
Do your own DD
GBPUSD 4H Symetrical triangle + Bullish market structureOn the 4H chart for the GBPUSD we are getting a symetrical triangle
Since the end of October we can observe a well defined Bullish market structure ( orange line ) which indicate an up trend
For higher success ratio, you are looking for a breakout to the up side from the chart pattern as it will align with the general trend
Additional factors to take in consideration:
- The low points of the symetrical triangle pattern have bounced up from a support range created from the previous major low in this Bullish market structure and from the 200 SMA
- Few candles back the 20 and 50 SMAs produced a Bullish cross. If the price goes up and breaks above the chart pattern, we will likely get a proper alignment of the price and the 20, 50 and 200 SMAs to give further confirmation of a further movement to the up side
XAUUSD ( Gold ) 1H chart Ascending triangleGold is forming an Ascending triangle on a 1H chart. The resistance of the pattern is aligning with the recent low points in the price creating a strong resistance range.
The development here is important. If the price breaks the resistance, this can fulful the chart pattern and also break above the resistance range, which can push the price up. If the price breaks bellow the pattern and the resistance range, then it can continue down towards a new major low point.
Additional confluences to monitor for: 20, 50 and 200 SMAs
Currently, the 20, 50 and 200 SMAs are aligned to indicate a down trend. The price is testing the 50 right now. If it drops down to break below the chart pattern, this will also be a rejection from the 50 and a drop below the 20. This is a further strong confirmation for a general drop.
If the price breaks above the chart pattern, what you want to see is the 50 moving below the price and crossing with the 20 to produce a bullish cross
Identifying Trends and Reversals 🎯💥HOW TO TRADE:
Identifying Trends and Reversals 🎯
If you find this information helpful, please show your support with a LIKE ❤️.
Here's my approach to determining the intraday direction when trading short or long, specifically focusing on the relationship between Price and SMAs(20,50 and 200), EMA200, Oscillator, Support Line and Patterns:
🐸 Simple Moving Average 20, 50 and 200 & Exponential Moving Average200
🐸 Stochastic Oscillator: focus when oscillator in RedZone or GreenZone
🐸 Patterns: H Pattern, Inverted H Pattern
🐸 Support | Resistant Line
💥 One example of such confirmation reversal from bottom is: oscillator in callzone, H pattern (double bottoms), smas(20,50, and 200) & ema200 support, support line resistant.
💥 One example of such confirmation reversal from top is: oscillator in redzone, inverted H pattern (double tops), smas(20,50, and 200) & ema200 resistant, support line resistant.
Remember, trading involves risks, and it's important to have a well-defined strategy and risk management in place.
Logarithmic growth curveBy using the 140 sma in combination with the logarithmic growth curves (gab´s crypto) by baltristangabriel, we can see that the crossing of the 140 sma (blue line) and the red line on the logarithmic growth curve means the trend has shifted. When the blue line crosses up, it's pretty close to the top. When the blue line crosses down, a volatile move to the upside sets in motion. So even though these crosses may not predict the exact top and bottom, they do give a clear indication of the direction the pendulum is swinging. Estimated time for the next cross is 21. nov.
RNDR is at Resistance - Will We See a Breakout?RNDR is at resistance and could experience a 120%-150% rally if the breakout pans out!
The Details: Render Token (RNDR) is a cryptocurrency that powers the decentralized render network of OTOY. OTOY is a cloud graphics company that provides high-quality rendering services to the entertainment, architectural, and product design industries. RNDR is used to pay for rendering services on the OTOY network and can be traded on various exchanges.
RNDR is at resistance; what now?
RNDR recently rallied to reach its highest price since Spring 2022. This increase in price has attracted a lot of attention from investors and traders who are interested in the potential for future gains.
There are two key support levels for RNDR that investors should be aware of. The first support level is between $0.75-$1.00. The second support level is at $0.35, which is the lowest price the token has reached since its inception.
At present, RNDR is trading at the $1.60 level and is attempting to break out of this level. If the token is successful in breaking out, it is likely to head toward the next resistance, which is between $3.50-$4.00. This represents a potential increase of 120% to 150% from the current price.
Bottom Line: RNDR powers the decentralized render network of OTOY. The token is currently experiencing a strong rally and has two key support levels that investors should be aware of. If RNDR successfully breaks out of its current trading range, it has the potential for substantial gains in the future.