SMA 12 26 50 200 / BB / KAIRIThe SMA 12 26 50 200 / BB / KAIRI is a comprehensive technical analysis tool designed for traders who rely on various moving averages and indicators to inform their market decisions. This custom-built indicator includes:
Multiple Simple Moving Averages (SMA):
The script includes four simple moving averages (SMA) with customizable periods:
SMA 12 (Short-Term)
SMA 26 (Medium-Term)
SMA 50 (Mid-Term)
SMA 200 (Long-Term)
These moving averages help identify potential trends and market direction based on varying timeframes, allowing traders to analyze short, medium, and long-term price movements.
Bollinger Bands (BB):
The Bollinger Bands indicator is included to measure market volatility. The indicator consists of:
The middle band, which is a 20-period simple moving average.
The upper and lower bands, which are calculated using standard deviations to show potential overbought or oversold conditions.
Kairi Oscillator:
The Kairi Oscillator is a unique tool for identifying price divergence from the SMA 25. The oscillator creates two lines, an upper and lower level based on a percentage of price deviation from the SMA. Alerts are generated when the price crosses these levels, providing buy or sell signals.
Alerts and Signals:
Possible Buy Alert: An alert is triggered when the price touches the 50-period SMA or 200-period SMA, signaling potential buying opportunities.
Buy and Sell Signals: The script includes built-in logic for buy and sell signals based on the crossing of the Kairi Oscillator, helping traders make informed decisions in real-time.
Customizable Parameters:
Users can adjust the periods of the SMAs and the Kairi Oscillator directly within the script settings to align with their preferred trading strategy.
This indicator is particularly useful for trend-following traders who want to visualize multiple timeframes and use volatility measures to make strategic decisions. The combination of SMAs, Bollinger Bands, and the Kairi Oscillator helps traders spot market opportunities and manage risk effectively.
This description covers the main features and functionalities of the Pine Script indicator, highlighting its flexibility and utility for traders who use moving averages, Bollinger Bands, and the Kairi Oscillator. Let me know if you'd like to adjust or add any specific features to the description!
Media mobile semplice (SMA)
EMA+SMA+VWAP Trading Strategy This strategy is for COINBASE:ETHUSD 15min. Tweak the INPUTS as per requirement.
Note: The strategy will give different results for different sources(Binance, Bitstamp) and symbols.
For more accurate P&L in "Strategy Tester" modify the settings as below:
Under "Properties" tab
--Change "Order Size" value (default is 1) and type from "% of equity" to "Contract".
--Add "Commission". For me commission was "0.07 %".
Strategy Explanation
Trend Following: The strategy uses EMA crossovers (17 vs. 31) to detect momentum shifts, with VWAP and SMA (69) acting as filters to confirm the broader trend.
Reversal Mechanism: It allows switching directly from long to short (or vice versa) by closing the existing position before entering the new one.
Exit Strategy: Faster EMAs (8 and 9) are used for exits, making the strategy sensitive to short-term reversals while avoiding premature exits during strong trends.
Risk Management: The use of multiple filters (VWAP, SMA) reduces false signals, though it may delay entries in fast-moving markets.
How It Works:
Bullish Scenario: If the 17-period EMA crosses above the 31-period EMA, and the price is above both VWAP and the 69-period SMA, a long position is opened. It exits when the 8-period EMA crosses below the 9-period EMA.
Bearish Scenario: If the 17-period EMA crosses below the 31-period EMA, and the price is below both VWAP and the 69-period SMA, a short position is opened. It exits when the 8-period EMA crosses above the 9-period EMA.
Reversal: If a short position is active and a long signal triggers, the short is closed before entering the long (and vice versa).
Potential Strengths
Combines momentum (EMA crossovers) with trend confirmation (VWAP, SMA).
Reversal logic allows flexibility in choppy markets.
Visual indicators make it easy to monitor signals.
Potential Weaknesses
Multiple conditions may reduce trade frequency, missing some opportunities.
Sensitivity to EMA periods; defaults (17, 31, 8, 9, 69) may not suit all assets or timeframes.
No explicit stop-loss or take-profit logic, relying solely on EMA exits.
EMA Cloud with Custom MAs and RSI [deepakks444]EMA Cloud with Custom MAs and RSI
Overview
A simple yet very effective tool, this indicator combines three essential elements to help you analyze the market with ease, using inputs to customize settings like MA types, lengths, and RSI periods. It includes an EMA Cloud to identify trends, two customizable Moving Averages (MAs) to confirm those trends, and a simple RSI (Relative Strength Index) to measure momentum. The EMA Cloud creates a colored area on your chart to show the trend direction at a glance, the MAs act as a second layer of confirmation, and the RSI, displayed in a separate pane, helps you understand the strength of the price movement. This setup is perfect for traders who want a clear, straightforward way to spot trends and gauge momentum without extra complexity.
Features
EMA Cloud:
The EMA Cloud is a shaded area on your chart that makes trend spotting easy. It’s created using two 3-period EMAs (Exponential Moving Averages): one based on the candle’s high price (called the High EMA) and one based on the candle’s low price (called the Low EMA). These EMAs track the recent highs and lows over the last three candles, forming a cloud-like area between them that moves with the price.
The cloud changes color based on where the candle is compared to these EMAs, giving you a quick visual of the trend:
Green: The candle is in a strong uptrend. This happens when the candle’s highest point (its high) touches or goes above the High EMA, and its lowest point (its low) stays above the Low EMA. In simple terms, the price is climbing higher and isn’t dropping below the recent lows, which shows strong bullish momentum and suggests the price might keep going up.
Red: The candle is in a strong downtrend. This happens when the candle’s lowest point (its low) touches or goes below the Low EMA, and its highest point (its high) stays below the High EMA. This means the price is falling lower and isn’t spiking above the recent highs, showing strong bearish momentum and suggesting the price might keep going down.
Yellow: The trend isn’t clear. This happens when the candle doesn’t fit the Green or Red conditions. For example, the candle might be stuck between the two EMAs, or it might be outside them but not showing a strong bullish or bearish move. A Yellow cloud tells you the market is in a neutral state, often during sideways movement or choppy price action, so it’s a sign to wait for a clearer trend before acting.
The cloud is overlaid directly on the price chart, so you can see the trend while watching the candles. It’s designed to be fast and responsive, thanks to the short 3-period EMAs, making it great for short-term trading.
Custom Moving Averages:
This indicator includes two Moving Averages (MAs) that you can customize to match your trading style. These MAs act as a backup to the EMA Cloud, helping you confirm the trend and spot potential entry or exit points.
You can choose the type of MA from a list: SMA (Simple Moving Average, which gives equal weight to all prices), EMA (Exponential Moving Average, which focuses more on recent prices), WMA (Weighted Moving Average, which gives more weight to recent prices in a linear way), HMA (Hull Moving Average, which is smoother and faster), RMA (Running Moving Average, often used in momentum indicators), or VWMA (Volume Weighted Moving Average, which factors in trading volume). Each type has its own strengths, so you can pick the one that suits your strategy best.
The default lengths are 20 for the first MA (shorter, faster) and 50 for the second MA (longer, slower), but you can adjust these lengths to make the MAs more or less sensitive. For example, a shorter length like 10 will react faster to price changes, while a longer length like 100 will show the bigger trend.
The MAs are plotted on the price chart in blue (for the first MA) and black (for the second MA). You can use them to see how the price is moving compared to the trend shown by the EMA Cloud, and they’re especially helpful for spotting crossovers (when the shorter MA crosses the longer MA), which can signal a change in trend.
RSI for Momentum:
The RSI (Relative Strength Index) is a simple momentum indicator that shows how strong the price movement is. It’s displayed in a separate pane below the chart, so it doesn’t get in the way of your price view.
This is a default 14-period RSI, meaning it looks at the last 14 candles to calculate momentum. You can adjust the period if you want it to be more or less sensitive—for example, a shorter period like 7 will react faster, while a longer period like 21 will be slower and smoother.
The RSI ranges from 0 to 100. A higher RSI (closer to 100) means the price is moving up with strong momentum, while a lower RSI (closer to 0) means the price is moving down with strong momentum. For example, if the RSI is rising and heading toward 70, it shows the price is gaining upward momentum, which can support a Green cloud signal. If the RSI is falling and heading toward 30, it shows the price is gaining downward momentum, which can support a Red cloud signal.
You can also use the RSI to see if momentum is slowing down. For example, if the price is going up but the RSI starts to flatten or drop, it might mean the uptrend is losing steam, even if the cloud is still Green. This can help you prepare for a potential trend change.
Settings
EMA Cloud:
Fixed at 3-period EMAs.
Additional MAs:
MA1 Length and MA1 Type: Set the first MA (default: 20, SMA).
MA2 Length and MA2 Type: Set the second MA (default: 50, SMA).
RSI Settings:
RSI Length: Default 14, adjustable.
Source: Default close, adjustable.
Usage
Spot Trends with the Cloud:
A Green cloud means the price is trending up, which can be a good time to buy or hold a position if you’re trading with the trend. It shows the price is moving higher with strength.
A Red cloud means the price is trending down, which can be a good time to sell or short if you’re looking for bearish opportunities. It shows the price is dropping with strength.
A Yellow cloud means the price isn’t showing a clear trend, so it’s often better to wait for a stronger signal before making a move. This helps you avoid getting caught in choppy or sideways markets.
Confirm with MAs:
The two MAs help you confirm the trend shown by the EMA Cloud. For example, if the cloud is Green (uptrend) and the shorter MA (blue) crosses above the longer MA (purple), it’s a stronger sign to buy, as both the cloud and the MAs agree the trend is up. If the cloud is Red (downtrend) and the shorter MA crosses below the longer MA, it’s a stronger sign to sell, as both tools confirm the downtrend.
You can also use the MAs to spot trend changes. If the price breaks above both MAs while the cloud turns Green, it’s a good sign a new uptrend is starting. If the price breaks below both MAs while the cloud turns Red, it’s a sign a new downtrend might be starting.
Check Momentum with RSI:
Use the RSI to see how strong the price movement is. If the RSI is rising, it means the price is gaining momentum, which can support a Green cloud (uptrend) or warn you if the momentum is slowing down in a Red cloud (downtrend). If the RSI is falling, it means the price is losing momentum, which can support a Red cloud or warn you if the momentum is slowing in a Green cloud.
For example, if the cloud is Green and the RSI is rising toward 60, it shows strong upward momentum, giving you more confidence in the uptrend. If the cloud is Red and the RSI is falling toward 40, it shows strong downward momentum, supporting the downtrend.
You can also watch for changes in momentum. If the cloud is Green but the RSI starts to drop, it might mean the uptrend is weakening, even if the price is still going up. This can help you prepare for a potential reversal or pullback.
Accuracy
The EMA Cloud is designed to catch trends by looking at the candle’s full range (high and low prices), not just the close. This makes it more sensitive to real price movements, helping it accurately show when the price is trending up (Green), trending down (Red), or stuck in a neutral zone (Yellow). The 3-period EMAs are short and fast, so the cloud reacts quickly to price changes, which is ideal for short-term trading but might give more signals in choppy markets. The custom MAs add reliability by confirming the trend over a longer period, helping you avoid false signals from the cloud alone. The RSI provides a clear view of momentum, showing you how strong the trend is and whether it’s gaining or losing steam. Together, these tools create a balanced system for trend and momentum analysis, but you should always test it on your specific market and timeframe to see how well it works for your trading style.
Notes
The EMA Cloud uses the candle’s high and low prices to catch the full price movement, making it more accurate for spotting trends.
The cloud colors have a bit of transparency so you can still see the candles clearly.
The RSI sits in its own pane below the chart, while the cloud and MAs are on the price chart.
Credits
To Creators of Original Indicators Used in this Indictor.
Disclaimer
This indicator is for educational purposes only. Trading involves risks, and you should use this tool at your own risk. Always conduct your own analysis and backtest the indicator before using it in live trading. The creators are not responsible for any financial losses incurred.
Mar 28
Release Notes
Added option to select Source of MAs.
This update introduces an advanced crossover confirmation feature to the indicator by leveraging the existing user-defined moving averages (MA1 and MA2). It enhances flexibility and visual feedback through customizable source selection and dynamic color changes based on crossover events. Below are the details of this addition:
Customizable Source Selection:
Users now have the ability to define the price source for each moving average independently through the MA1 Source and MA2 Source input options. Available choices include open, close, high, low, or other price data points, enabling tailored analysis based on specific price behaviors.
Crossover Confirmation Mechanism:
The feature detects crossovers between MA1 and MA2 to provide additional confirmation signals:
A bullish crossover occurs when MA1 crosses above MA2, signaling potential bullish momentum.
A bearish crossover occurs when MA1 crosses below MA2, indicating possible bearish momentum.
These events are identified using precise Pine Script functions (ta.crossover() and ta.crossunder()), ensuring reliable detection of trend shifts.
Dynamic Color Response:
Post-crossover, the visual representation of both MAs adapts to reflect the market condition:
After a bullish crossover (MA1 > MA2), both MA1 and MA2 lines change to green, visually reinforcing an upward trend.
After a bearish crossover (MA1 < MA2), both lines shift to red, highlighting a downward trend.
Prior to any crossover, the MAs default to gray, maintaining neutrality until a significant event occurs. The color persists until the opposite crossover takes place, offering sustained feedback.
Practical Examples for Customization:
MA 3 vs. MA 3 Configuration: Set MA1 to a length of 3 with source open and MA2 to a length of 3 with source close. This fast-moving pair leverages the difference between opening and closing prices, with crossovers providing rapid confirmation signals for short-term traders.
MA 9 vs. MA 20 Crossover: Configure MA1 with a length of 9 and MA2 with a length of 20 (both defaulting to close). This setup captures short-term trends against a medium-term baseline, a popular choice for swing trading.
MA 20 vs. MA 50 Crossover: Assign MA1 a length of 20 and MA2 a length of 50. This classic combination tracks medium-term versus long-term trends, ideal for identifying broader market shifts.
The flexibility of length and source inputs allows users to experiment with countless other pairings tailored to their strategies.
Purpose and Integration:
This crossover functionality enhances the indicator’s utility by offering a clear, visual confirmation tool alongside the existing EMA Cloud and RSI components. It empowers users to monitor momentum shifts with greater confidence, using MA1 and MA2 as a dynamic duo within the broader analytical framework.
Critical User Guidance:
Disclaimer: While this indicator provides valuable insights, it is not a standalone solution for trading decisions. All technical indicators, including this one, merely suggest potential price movements without offering guarantees. To maximize effectiveness and minimize risk, users must complement crossover signals with additional confirmations, such as:
Candlestick Formations: Patterns like doji, engulfing, or hammer candles to validate reversals or continuations.
Support and Resistance Levels: Key price zones to assess the strength of a trend or breakout.
Trendline Breakouts: Confirmation of trend direction through breaches of established lines.
Combining these elements ensures a more robust trading approach, aligning with sound risk management principles.
Trailing Monster StrategyTrailing Monster Strategy
This is an experimental trend-following strategy that incorporates a custom adaptive moving average (PKAMA), RSI-based momentum filtering, and dynamic trailing stop-loss logic. It is designed for educational and research purposes only, and may require further optimization or risk management considerations prior to live deployment.
Strategy Logic
The strategy attempts to participate in sustained price trends by combining:
- A Power Kaufman Adaptive Moving Average (PKAMA) for dynamic trend detection,
- RSI and Simple Moving Average (SMA) filters for market condition confirmation,
- A delayed trailing stop-loss to manage exits once a trade is in profit.
Entry Conditions
Long Entry:
- RSI exceeds the overbought threshold (default: 70),
- Price is trading above the 200-period SMA,
- PKAMA slope is positive (indicating upward momentum),
- A minimum number of bars have passed since the last entry.
Short Entry:
- RSI falls below the oversold threshold (default: 30),
- Price is trading below the 200-period SMA,
- PKAMA slope is negative (indicating downward momentum),
-A minimum number of bars have passed since the last entry.
Exit Conditions
- A trailing stop-loss is applied once the position has been open for a user-defined number of bars.
- The trailing distance is calculated as a fixed percentage of the average entry price.
Technical Notes
This script implements a custom version of the Power Kaufman Adaptive Moving Average (PKAMA), conceptually inspired by alexgrover’s public implementation on TradingView .
Unlike traditional moving averages, PKAMA dynamically adjusts its responsiveness based on recent market volatility, allowing it to better capture trend changes in fast-moving assets like altcoins.
Disclaimer
This strategy is provided for educational purposes only.
It is not financial advice, and no guarantee of profitability is implied.
Always conduct thorough backtesting and forward testing before using any strategy in a live environment.
Adjust inputs based on your individual risk tolerance, asset class, and trading style.
Feedback is encouraged. You are welcome to fork and modify this script to suit your own preferences and market approach.
RR Trail MA-Osc Strategy (entry-based TP/SL)Overview
The "RR Trail MA-Osc Strategy" is designed to capture trends while maintaining clear risk management .
With fixed TP/SL, a trailing stop, and safety exits based on MA and oscillator divergence, this strategy offers a mechanical and strategic approach to trading .
Strategy Objectives
Capture trend development and continuation for maximum profit
Optimize profit/loss balance through a clear risk-reward ratio (RR)
Utilize multi-layered exit logic: fixed target/stop, trailing stop, and divergence exit
Eliminate emotional decision-making with rule-based execution
Key Features
Fixed TP/SL – Targets and stops based on recent high/low (structural exits)
Customizable RR Ratio – Adjust reward-to-risk levels to match strategy or market
Trailing Stop – Dynamically locks in profit as price moves favorably
Divergence Exit – Exits early when MA and oscillator disagree in direction
Simple Structure – Easy to modify and expand
Trading Rules
Long Entry
Price above short-term MA
WaveTrend oscillator rising and above 0
Long-term trend MA trending upward
Short Entry
Price below short-term MA
Oscillator falling and below 0
Long-term trend MA trending downward
Exit Conditions
Fixed TP/SL (based on recent highs/lows + RR)
Triggering the trailing stop
Divergence between oscillator and MA
Risk Management Parameters
Pair : ETH/USD
Timeframe : 4-hour
Starting Capital : $3,000
Commission : 0.02%
Slippage : 2 pips
Risk per Trade : 5% of account equity (adjustable)
Total Trades : 651 (backtested on selected dataset)
Trading Parameters & Considerations
Multiple MA types available (SMA / EMA / SMMA / WMA / VWMA)
Separate MAs for signal and trend evaluation
Flexible RR ratio (e.g. 1.0 to 2.0+)
Adjustable lookback window for high/low-based TP/SL
Strategy Improvements & Uniqueness
Combines fixed TP/SL + trailing stop + divergence exit for layered exit logic
Provides stable, emotion-free execution through clear risk structures
Simple yet complete design—ideal for customization or integration
Clean and understandable for Pine Script beginners
Inspirations & Attribution
This strategy was inspired by:
ChartPrime – “Moving Average Shift”
Leveraging the Moving Average Shift concept for intuitive signal generation,
it has been restructured here into a more strategic and automated system.
Summary
"RR Trail MA-Osc Strategy" merges:
Trend-following logic
Defined risk control
Emotionless, rule-based execution
into a compact and effective trading strategy .
Perfect for beginners and intermediate traders alike,
especially those seeking a mechanical, disciplined approach to the markets.
TFT-Price-PluseTFT Price Pluse is a multi-purpose trend analysis and momentum confirmation indicator designed for intraday and swing traders. It combines well-known trading tools—EMAs, RSI, and a multi-timeframe dashboard—with a custom-built logarithmic regression channel that adapts to price behavior dynamically.
This tool helps traders quickly assess market conditions, spot trend reversals or continuation zones, and identify dynamic support/resistance using layered confluence — all in one visual system.
🔧 Main Components & Logic
📉 Trend Structure (EMAs & SMA)
8 EMA (short-term)
21 EMA (intermediate-term)
50 SMA (medium-term)
200 EMA (long-term baseline)
Triangle markers are plotted when the 8 EMA crosses the 21 EMA — commonly used as trend-change signals.
🔁 Multi-Timeframe RSI Table
Displays RSI(14) values across six timeframes:
1m, 3m, 5m, 10m, 15m, and 30m.
Color-coded cells:
Green = RSI > 50 (bullish momentum)
Red = RSI < 50 (bearish momentum)
This feature helps traders gauge market momentum across multiple granular timeframes at a glance.
📊 Custom Log Regression Channel (Original Component)
Uses a logarithmic transformation of price and time to fit a regression line.
Calculates standard deviation from the regression line to build dynamic upper and lower deviation bands.
Displays R-squared value, a statistical measure of trend strength.
This feature acts like an adaptive trend channel with built-in volatility measurement.
🔍 Unlike simple linear regression, this model tracks exponential behavior in trending markets, making it more suitable for crypto, futures, and other fast-moving instruments.
🎯 How to Use It
1. Spot Trends with EMA Crossovers
Bullish setup: 8 EMA crosses above 21 EMA while price is above 50 SMA and 200 EMA.
Bearish setup: opposite conditions.
2. Confirm with RSI Table
All RSI cells green = higher-probability long setup.
All red = potential short trend confirmation.
Mixed RSI = trend indecision or consolidation.
3. Use Log Regression Bands
Price bouncing from lower band with bullish EMA cross = potential long entry.
Price rejecting upper band with bearish cross = potential short entry.
R² above 0.8 = strong directional conviction.
4. Alerts (optional)
Alerts can be enabled for:
EMA crossovers
RSI overbought/oversold thresholds
🧩 Attribution & Open-Source Acknowledgement
This indicator includes adapted and integrated logic from several open-source scripts published on TradingView by the community.
Features such as the RSI table, moving average crossovers, and regression math were inspired by public scripts and documentation. These components were modified and enhanced to work together as a cohesive system.
The log regression channel is uniquely implemented, combining log(price) and log(time) transformations for a statistically calculated dynamic channel.
This version is published open-source to support learning, transparency, and community improvement. You are free to study, customize, and build upon it — just credit if reused.
🚀 Who This Is For
Intraday traders needing fast visual confirmation
Futures/crypto traders wanting trend/momentum filtering
Strategy builders looking for a reliable confluence tool
Coders studying advanced regression modeling in Pine Script
💬 Tips
Works best on 1m–15m charts for active setups.
Set alerts on RSI/EMA events for automation.
Use in combination with price action or volume tools if desired.
❤️ Final Note
If you find this script helpful, follow my profile for future updates and tools.
Feedback, forks, and enhancements are welcome — let's build better together.
Double SMA with VWMAUsing Long and short SMA with VWMA as filter, and MACD as second filter.
Using VWMA as trail profit taker.
siaThis script is a combination of several TradingView Pine Script indicators, each designed to provide different types of analysis and visualization for trading strategies. Here's a breakdown of each part:
1. Trendlines with Breaks
Purpose: Identifies trendlines and their breaks.
Key Features:
Detects swing highs and lows.
Calculates trendlines based on ATR, Stdev, or Linreg.
Plots upper and lower trendlines.
Highlights breakouts with shapes and alerts.
2. CM_Ultimate_MA_MTF_V2
Purpose: Plots a multi-timeframe moving average with optional second moving average.
Key Features:
Supports various moving average types (SMA, EMA, WMA, etc.).
Highlights price crossings with the moving averages.
Allows color changes based on direction.
Optional second moving average for additional analysis.
3. HalfTrend
Purpose: Identifies trends and plots trend channels.
Key Features:
Uses ATR for channel deviation.
Plots trend lines and channels.
Highlights trend changes with arrows.
Provides alerts for buy and sell signals.
4. Ichimoku
Purpose: Plots Ichimoku Cloud components and additional lines.
Key Features:
Plots Tenkan-Sen, Kijun-Sen, Chikou Span, and Ichimoku Cloud.
Highlights crosses between Tenkan-Sen and Kijun-Sen.
Includes additional lines like Quality Line and Direction Line.
Provides alerts for cross signals.
How to Use
Trendlines with Breaks: Useful for identifying potential breakout points in the market.
CM_Ultimate_MA_MTF_V2: Helps in understanding the trend across different timeframes.
HalfTrend: Provides a clear visualization of trend channels and potential reversal points.
Ichimoku: Offers a comprehensive view of market trends and potential support/resistance levels.
Integration
These indicators can be used together to create a robust trading strategy. For example, you can use the trendlines to identify breakouts, confirm the trend with the multi-timeframe moving average, and use Ichimoku for additional confirmation.
Customization
Each indicator has several input parameters that can be customized to fit your trading style and preferences.
TOMOs SPX Consolidation Detector with Cooldown.Consolidation indicator. Pick the tolerance range for consolidation. Triggers an alert at the end of the "min consolidation" bar. Blue is the bar after showing consolidation right before it.
Moving Average CrossoverSimple moving average crossover configurable by period.
The indicator displays a bullish crossover with a green circle and a bearish crossover with a red circle just below or above the candle where the moving average crossover occurs.
Multi-Timeframe MA DashboardThis indicator monitors 5 timeframes: 5min, 15min, 1hr, 4hr, and Daily. It displays fast and slow moving averages for each timeframe, along with the current price. The trend direction is color-coded: green for bullish (fast MA above slow MA) and red for bearish (fast MA below slow MA).
The dashboard also shows the last crossover signal (Buy/Sell) for each timeframe.
Visual arrows are plotted on the chart for the current timeframe. A green up arrow indicates a potential bullish crossover (Buy signal), while a red down arrow indicates a potential bearish crossover (Sell signal).
The dashboard is elegant and professional, with alternating row colors for better readability. It can be placed in any corner of the screen and customized with user-defined colors for bullish and bearish trends.
Alerts are triggered when a crossover occurs on any timeframe. These alerts include the timeframe and signal type (e.g., "5min: ↑ BUY").
How to Read the Indicator
The dashboard displays the following for each timeframe:
Fast MA: The value of the fast moving average.
Slow MA: The value of the slow moving average.
Price: The current price for the timeframe.
Trend: The current trend direction (Bullish or Bearish).
Signal: The last crossover signal (↑ BUY or ↓ SELL).
On the chart, green up arrows indicate a bullish crossover (Fast MA crosses above Slow MA), while red down arrows indicate a bearish crossover (Fast MA crosses below Slow MA).
Green text in the dashboard indicates a bullish trend or signal, while red text indicates a bearish trend or signal.
How to Use the Indicator
Use the dashboard to monitor the trend direction across multiple timeframes. Look for confluence (agreement) between timeframes to identify stronger trends. Observe the "Signal" column in the dashboard for the last crossover on each timeframe. Use the arrows on the chart to identify potential crossover points for the current timeframe.
Enable alerts to be notified of crossover signals on any timeframe. Alerts include the timeframe and signal type for easy reference.
Adjust the fast and slow moving average lengths to suit your trading style. Choose between EMA, SMA, or WMA for the moving average type. Customize the dashboard placement and colors for better visibility.
Important Notes
This indicator is not a buy or sell recommendation. It is a tool to assist traders in their analysis. Always use this indicator in conjunction with other tools, such as support/resistance levels, volume analysis, and price action. Past performance of moving averages does not guarantee future results.
How to Add the Indicator
Add the indicator to your chart from the TradingView library. Configure the inputs:
Fast MA Length: Default is 20.
Slow MA Length: Default is 50.
MA Type: Choose between EMA, SMA, or WMA.
Dashboard Placement: Select the corner of the screen where the dashboard will appear.
Colors: Customize the colors for bullish and bearish trends.
Monitor the dashboard and chart for trends and signals.
Disclaimer
This indicator is for educational and informational purposes only. It does not provide financial, investment, or trading advice. Always perform your own analysis and consult with a financial advisor before making trading decisions.
Global Foreigners SMA, WMA IndicatorThis Indicator is a custom technical analysis tool designed to overlay multiple moving averages on a price chart, helping traders analyze price trends and potential trading opportunities.
It features both a Simple Moving Average (SMA) and Weighted Moving Averages (WMAs) with different period settings.
Key Features:
1. SMA and WMA Calculations:
- SMA 1: A simple moving average (SMA) calculated over a user-defined period (default: 1).
- WMA 1 - WMA 5: Five weighted moving averages (WMA) with different periods (5, 10, 20, 30, 40). WMAs give more importance to recent price movements, helping to identify short-term trends.
2. Customizable Periods:
- The indicator allows users to adjust the lookback period for each moving average via input settings.
3. Color-Coded Moving Averages:
- Each moving average is assigned a unique color for easy differentiation:
- SMA 1 → Black
- WMA 1 (5-period) → Blue
- WMA 2 (10-period) → Peach
- WMA 3 (20-period) → Orange
- WMA 4 (30-period) → Lavender
- WMA 5 (40-period) → Purple
4. Line Thickness:
- Each moving average is plotted with a line width of 2, making them clearly visible on the chart.
How This Indicator is Used:
Trend Analysis:
The alignment of the WMA sequence (e.g., WMA 5 > WMA 4 > WMA 3 > WMA 2 > WMA 1) can
indicate a bullish trend.
The opposite alignment suggests a bearish trend.
Dynamic Support & Resistance:
Shorter-period WMAs (5 & 10) react faster to price changes and can be used as dynamic
support or resistance levels for short-term trades.
Longer-period WMAs (20, 30, 40) smooth out price fluctuations and are useful for detecting
long-term trends.
Signal Confirmation:
The SMA 1 acts as a quick price reference, and traders can look for crossovers between the
WMA lines to confirm trend changes.
Who Can Use This Indicator?
Scalpers & Day Traders:
The faster WMAs (5 & 10) can be used to catch quick price reversals.
Swing Traders & Position Traders:
The combination of short-term and long-term moving averages helps identify key trend
shifts.
Algorithmic Traders:
Can be used alongside other indicators for automated signal generation.
This indicator is not a buy/sell signal generator but rather a trend-following tool that helps traders visually interpret market movements using moving averages. It works well when combined with momentum indicators (e.g., MACD, RSI) to confirm entry and exit points.
Crypto MA Cross StrategyBuy with MA crossover. Take profit when price reaches your percentage target. Stops at defined percentage below the buy price
SMA 12, 36, 200 with Signals and AlertsFeatures:
✅ Simple Moving Averages:
SMA 12 (short-term)
SMA 36 (mid-term)
SMA 200 (long-term trend filter)
✅ Buy & Sell Signals:
Buy: When SMA 12 crosses above SMA 36
Sell: When SMA 12 crosses below SMA 36
✅ Built-in Alerts:
Receive real-time alerts when a signal is triggered.
🧠 Strategy Overview – Multi-Timeframe Trading
This script is designed to be used with multi-timeframe analysis:
1H Chart – Trend Direction
If the price is above the SMA 200 on the 1-hour chart → look for Long opportunities.
If the price is below the SMA 200 on the 1-hour chart → look for Short opportunities.
5-Min Chart – Entry Timing
Once the higher-timeframe trend is clear, switch to the 5-minute chart.
Use SMA 12 and SMA 36 crossovers to time your entry in the direction of the main trend.
This approach helps filter out false signals and improves overall trade accuracy.
MA CloudsMA Clouds – Adaptive Moving Average Visualization (with Bollinger bands)
The MA Clouds indicator is designed to help traders visualize multiple moving averages simultaneously, providing a dynamic view of trend direction, momentum, and potential support/resistance zones. This tool overlays Simple Moving Averages (SMA) and Exponential Moving Averages (EMA) in an easy-to-read cloud format, allowing traders to interpret market structure at a glance.
Key Features:
✅ Customizable Moving Averages – Adjust SMA and EMA lengths to suit your strategy.
✅ Cloud-Based Visualization – Color-coded clouds between different moving averages highlight areas of potential trend shifts.
✅ Toggle Price Lines – Option to enable or disable individual price lines for a cleaner chart.
✅ Bollinger Bands Integration – Adds upper and lower bands for additional confluence in volatility analysis.
✅ Quick Trend Identification – Helps traders gauge short-term and long-term trend strength.
✅ Preset View Modes – Toggle between a simplified 5-10 SMA/EMA setup or a full multi-timeframe cloud setup with one click.
This indicator is ideal for traders looking to combine trend-following strategies with dynamic support/resistance insights. Whether you're scalping intraday moves or managing longer-term swing trades, MA Clouds provides an efficient way to keep market structure in focus.
111D SMA / (350D SMA * 2)Indicator: Pi Cycle Ratio
This custom technical indicator calculates a ratio between two moving averages that are used for the PI Cycle Top indicator. The PI Cycle Top indicator triggers when the 111-day simple moving average (111D SMA) crosses up with the 350-day simple moving average (350D SMA *2).
The line value is ratio is calculated as:
Line Value = 111DSMA / (350D SMA × 2)
When the 111D SMA crosses with the 350D SMA triggering the PI Cycle Top, the value of the ratio between the two lines is 1.
This visualizes the ratio between the two moving averages into a single line. This indicator can be used for technical analysis for historical and future moves.
Multi-MA Strategy Analyzer with BacktestMulti-MA Strategy Analyzer with Backtest
This TradingView Pine Script indicator is designed to analyze multiple moving averages (SMA or EMA) dynamically and identify the most profitable one based on historical performance.
Features
Dynamic MA Range:
Specify a minLength, maxLength, and step size.
Automatically calculates up to 20 MAs.
Custom MA Calculation:
Uses custom SMA and EMA implementations to support dynamic length values.
Buy/Sell Logic:
Buy when price crosses above a MA.
Sell when price crosses below.
Supports both long and short trades.
Performance Tracking:
Tracks PnL, number of trades, win rate, average profit, and drawdown.
Maintains individual stats for each MA.
Best MA Detection:
Automatically highlights the best-performing MA.
Optional showBestOnly toggle to focus only on the best line and its stats.
Visualization:
Up to 20 plot() calls (static) for MAs.
Green highlight for the best MA.
Color-coded result table and chart.
Table View
When showBestOnly = false, the table displays all MAs with stats.
When showBestOnly = true, the table displays only the best MA with a summary row.
Includes:
Best MA length
Total PnL
Number of trades
Win rate
Avg PnL per trade
Max Drawdown
Configuration
minLength (default: 10)
maxLength (default: 200)
step (default: 10)
useEMA: Toggle between EMA and SMA
showBestOnly: Focus on best-performing MA only
Notes
MA plotting is static, limited to 20 total.
Table supports highlighting and is optimized for performance.
Script is structured to run efficiently using arrays and simple int where required.
Potential Extensions
Add visual buy/sell arrows
Export stats to CSV
Strategy tester conversion
Custom date range filtering for backtesting
Author: Muhammad Wasim
Version: 1.0
Regime Filter IndicatorRegime Filter – Crypto Market Trend Indicator
📊 Overview
The Regime Filter is a powerful market analysis indicator designed specifically for crypto trading. It helps traders identify whether the market is in a bullish or bearish phase by analyzing key assets in the cryptocurrency market, including Bitcoin (BTC), Bitcoin Dominance (BTC.D), and the Altcoin Market (TOTAL3). The indicator compares these assets against their respective Simple Moving Averages (SMA) to determine the overall market regime, allowing traders to make more informed decisions.
🔍 How It Works
The Regime Filter evaluates three main components to determine the market's sentiment:
1. BTC Dominance (BTC.D) vs. 40 SMA (Medium Timeframe)
The Bitcoin Dominance (BTC.D) is compared to its 40-period SMA on a mid-timeframe (e.g.,
1-hour). If BTC.D is below the 40 SMA, it indicates that altcoins are performing well relative
to Bitcoin, suggesting a bullish altcoin market. If BTC.D is above the 40 SMA, Bitcoin is
gaining dominance, indicating a potential bearish phase for altcoins.
2. TOTAL3 Market Cap vs. 100 SMA (Medium Timeframe)
The TOTAL3 index, which tracks the total market capitalization of all cryptocurrencies except
Bitcoin and Ethereum, is compared to its 100-period SMA. A bullish signal occurs when TOTAL3
is above the 100 SMA, indicating strength in altcoins, while a bearish signal occurs when
TOTAL3 is below the 100 SMA, signaling a potential weakness in the altcoin market.
3. BTC Price vs. 200 SMA (Higher Timeframe)
The current Bitcoin price is compared to its 200-period Simple Moving Average (SMA) on a
higher timeframe (e.g., 4-hour). A bullish signal is given when the BTC price is above the 200
SMA, and a bearish signal when it's below.
🟢 Bullish Market Conditions
The market is considered bullish when:
- BTC Dominance (BTC.D) is below the 40 SMA, suggesting altcoins are gaining momentum.
- TOTAL3 Market Cap is above the 100 SMA, signaling strength in the altcoin market.
- BTC price is above the 200 SMA, indicating an uptrend in Bitcoin.
In these conditions, the background turns green 🟢, and a "Bullish" label is displayed on the chart.
🔴 Bearish Market Conditions
The market is considered bearish when:
- BTC Dominance (BTC.D) is above the 40 SMA, indicating Bitcoin is outperforming altcoins.
- TOTAL3 Market Cap is below the 100 SMA, signaling weakness in altcoins.
- BTC price is below the 200 SMA, indicating a downtrend in Bitcoin.
In these conditions, the background turns red 🔴, and a "Bearish" label appears on the chart.
⚙ Customization Options
- The Regime Filter offers flexibility for traders:
- Enable or Disable Specific SMAs: Customize the indicator by enabling or disabling the 200 SMA for Bitcoin, the 40 SMA for BTC Dominance, and the 100 SMA for TOTAL3.
- Adjust Timeframes: Choose the timeframes for each of the moving averages to suit your preferred trading strategy.
- Real-Time Data Adjustments: The indicator updates in real-time to reflect current market conditions, ensuring timely analysis.
📈 Best Use Cases
- Trend Confirmation: The Regime Filter is ideal for confirming the market's overall trend,
helping traders to align their positions with the dominant market sentiment.
- Trade Entry/Exit Signals: Use the indicator to identify favorable entry or exit points based on
whether the market is in a bullish or bearish phase.
- Market Overview: Gain a quick understanding of the broader crypto market, with a focus on
Bitcoin and altcoins, to make more strategic decisions.
⚠️ Important Notes
Trend-Following Indicator: The Regime Filter is a trend-following tool, meaning it works best in strong trending markets. It may not perform well in choppy, sideways markets.
Risk Management: This indicator is designed to assist in identifying market trends, but it does not guarantee profits. Always apply sound risk management strategies and use additional indicators when making trading decisions.
Not a Profit Guarantee: While this indicator can help identify potential market trends, no trading tool or strategy guarantees profits. Please trade responsibly and ensure that your decisions are based on comprehensive analysis and risk tolerance.
MA SniperThis indicator automatically finds the most effective moving average to use in a price crossover strategy—so you can focus on trading, not testing. It continuously evaluates a wide range of moving average periods, ranks them based on real-time market performance, and selects the one delivering the highest quality signals. The result? A smarter, adaptive tool that shows you exactly when price crosses its optimal moving average—bullish signals in green, bearish in red.
What makes it unique is the way it thinks.
Under the hood, the script doesn’t just pick a random MA or let you choose one manually. Instead, it backtests a large panel of moving average lengths for the current asset and timeframe. It evaluates each one by calculating its **Profit Factor**—a key performance metric used by pros to measure the quality of a strategy. Then, it assigns each MA a score and ranks them in a clean, built-in table so you can see, at a glance, which ones are currently most effective.
From that list, it picks the top-performing MA and uses it to generate live crossover signals on your chart. That MA is plotted automatically, and the signals adapt in real-time. This isn’t a static setup—it’s a dynamic system that evolves as the market evolves.
Even better: the indicator detects the type of instrument you’re trading (forex, stocks, etc.) and adjusts its internal calculations accordingly, including how many bars per day to consider. That means it remains highly accurate whether you’re trading EURUSD, SPX500, or TSLA.
You also get a real-time dashboard (via the table) that acts as a transparent scorecard. Want to see how other MAs are doing? You can. Want to understand why a certain MA was selected? The data is right there.
This tool is for traders who love crossover strategies but want something smarter, faster, and more precise—without spending hours manually testing. Whether you're scalping or swing trading, it offers a data-driven edge that’s hard to ignore.
Give it a try—you’ll quickly see how powerful it can be when your MA does the thinking for you.
This tool is for informational and educational purposes only. Trading involves risk, and past performance does not guarantee future results. Use responsibly.
SMA7 Tail Reversal📌 Description:
The SMA7 Tail Reversal indicator is designed to identify potential counter-trend trading opportunities by checking if candle wicks (tails) respect a key moving average level (SMA7).
This indicator highlights price action where candles are clearly separated from the moving average, suggesting a possible reversal or temporary correction.
📌 How It Works:
Moving Average Calculation:
Calculates a simple moving average (SMA) of length 7 to act as the primary trend filter.
Candle Classification:
Bullish Candle: A candle where the closing price is higher than the opening price, with a short upper wick.
Bearish Candle: A candle where the closing price is lower than the opening price, with a short lower wick.
Conditions for Coloring Candles:
Long Condition (Green Candle):
High & Low are both below the SMA7 line.
Volume is above the 20-period average.
A bullish candle is detected.
Short Condition (Red Candle):
High & Low are both above the SMA7 line.
Volume is above the 20-period average.
A bearish candle is detected.
📌 Visual Representation:
Green Candles: Potential long signals when price action stays below the SMA7 line.
Red Candles: Potential short signals when price action stays above the SMA7 line.
Yellow Line: SMA7, used as the dynamic threshold for signal generation.
📌 Usage:
Best applied to volatile markets with clear trends.
Effective in detecting counter-trend opportunities where price diverges from the SMA7 line.
Works well with additional confirmation tools for better accuracy.