Moving Average Shift WaveTrend StrategyOverview
The Moving Average Shift WaveTrend Strategy is a trend-following and momentum-based trading system, designed to be overlayed on TradingView charts. It utilizes conditions based on volatility, session timing, trend direction, and a custom oscillator to trigger trades.
Strategy Objectives
Enter trades in the direction of the prevailing trend and exit on opposite momentum signals.
Filter out false signals using time and volatility constraints.
Employ automatic Take Profit (TP), Stop Loss (SL), and trailing stop mechanisms for risk management.
Key Features
Multiple selectable moving average (MA) types: SMA, EMA, SMMA (RMA), WMA, VWMA.
Combined filters using MA and a custom oscillator.
Time-based and volatility-based trade filtering.
[Trailing stop and custom TP/SL logic.
"In-wave" flag to prevent re-entry during the same trend wave.
Trading Rules
Long Entry Conditions:
Price is above the selected MA.
Oscillator is positive and rising.
Long-term EMA trend is upward.
Trade occurs within allowed session hours and under sufficient volatility.
Not currently in a wave.
Short Entry Conditions:
Price is below the MA.
Oscillator is negative and falling.
Long-term EMA trend is downward.
All other long entry criteria apply.
Exit Conditions:
Hit TP or SL.
Oscillator and MA provide opposing signals.
Trailing stop is triggered.
Risk Management Parameters
Pair : ETH/USD
Timeframe : 4H
Starting Capital : $3,000
Commission : 0.02%
Slippage : 2 pips
Risk per Trade : 5% of account equity (can be adjusted for sustainable practice)
Total Trades : 224 (backtested on selected dataset)
Backtesting range May 24, 2016, 05:00 — Apr 07, 2025, 17:00
Note: Risk parameters are fully configurable and should be tailored to individual trading setups and broker requirements.
Trading Parameters & Considerations
Time Filter : Trades only between 9:00 and 17:00 (exchange time)
Volatility Condition : ATR must exceed its median value
Long-Term Trend Filter : 200-period EMA
MA Settings
MA Type: SMA
Length: 40
Source: hl2
Oscillator Settings
Length: 15
Threshold: 0.5
Risk Settings
Take Profit: 1.5%
Stop Loss: 1.0%
Trailing Stop: 1.0%
Visual Support
MA and oscillator color changes offer clear visual signals.
Entry and exit points are visually represented on the chart.
Trailing stops and custom TP/SL conditions are transparently managed.
Strategy Improvements & Uniqueness
In-wave flag prevents overtrading within the same trend phase.
Sophisticated filtering through session, volatility, and trend conditions helps reduce noise.
Dynamic tracking of high/low since entry allows precise trailing stop placement.
Inspirations & Attribution
This strategy is inspired by the excellent work of:
ChartPrime – “Moving Average Shift”
Leveraging the Moving Average Shift technique for intuitive signal generation.
Summary
The Moving Average Shift WaveTrend Strategy is a robust trend-following system that operates based on the alignment of multiple filters and signals. With built-in time and volatility constraints and clear risk management logic, it minimizes the need for discretionary decision-making, offering a consistent and stable trading environment.
Following
TrendSync Pro (SMC)📊 TrendSync Pro (SMC) – Advanced Trend-Following Strategy with HTF Alignment
Created by Shubham Singh
🔍 Strategy Overview
TrendSync Pro (SMC) is a precision-based smart trend-following strategy inspired by Smart Money Concepts (SMC). It combines: Real-time pivot-based trendline detection
Higher Time Frame (HTF) filtering to align trades with dominant trend
Risk management via adjustable Stop Loss (SL) and Take Profit (TP)
Directional control — trade only bullish, bearish, or both setups
Realistic backtesting using commissions and slippage
Pre-optimized profiles for scalpers, intraday, swing, and long-term traders
🧠 How It Works:
🔧 Strategy Settings Image:
beeimg.com
The strategy dynamically identifies trend direction by using swing high/low pivots. When a new pivot forms: It draws a trendline from the last significant pivot
Detects whether the trend is up (based on pivot lows) or down (based on pivot highs)
Waits for price to break above/below the trendline
Confirms with HTF price direction (HTF close > previous HTF close = bullish)
Only then it triggers a long or short trade
It exits either at TP, SL, or a manual trendline break
🛠️ Adjustable Parameters:
Trend Period: Length for pivot detection (affects sensitivity of trendlines)
HTF Timeframe: Aligns lower timeframe entries with higher timeframe direction
SL% and TP%: Customize your risk-reward profile
Commission & Slippage: Make backtests more realistic
Trade Direction: Choose to trade: Long only, Short only, or Both
🎛️ Trade Direction Control:
In settings, you can choose: Bullish Only: Executes only long entries
Bearish Only: Executes only short entries
Both: Executes both long and short entries when conditions are met
This allows you to align trades with your own market bias or external analysis.
📈 Entry Logic: Long Entry:
• Price crosses above trendline
• HTF is bullish (HTF close > previous close)
• Latest pivot is a low (trend is considered up)
Short Entry:
• Price crosses below trendline
• HTF is bearish (HTF close < previous close)
• Latest pivot is a high (trend is considered down)
📉 Exit Logic: Hit Take Profit or Stop Loss
Manual trendline invalidation: If price crosses opposite of the trend direction
⏰ Best Timeframes & Recommended Settings:
Scalping (1m to 5m):
HTF = 15m | Trend Period = 7
SL = 0.5% | TP = 1% to 2%
Intraday (15m to 30m):
HTF = 1H | Trend Period = 10–14
SL = 0.75% | TP = 2% to 3%
6 Hour Trading (30m to 1H):
HTF = 4H | Trend Period = 20
SL = 1% | TP = 4% to 6%
Swing Trading (4H to 1D):
HTF = 1D | Trend Period = 35
SL = 2% | TP = 8% to 12%
Long-Term Investing (1D+):
HTF = 1W | Trend Period = 50
SL = 3% | TP = 15%+
Note: These are recommended base settings. Adjust based on volatility, asset class, or personal trading style.
📸 Testing Note:
beeimg.com
TradingView limits test length to 20k bars (~40 trades on smaller timeframes). To show long-term results: Test on higher timeframes (e.g., 1H, 4H, 1D)
Share images of backtest result in description
Host longer test result screenshots on Imgur or any public drive
📍 Asset Behavior Insight:
This strategy works on multiple assets, including BTC, ETH, etc.
Performance varies by trend strength:
Sometimes BTC performs better than ETH
Other times ETH gives better results
That’s normal as both assets follow different volatility and trend behavior
It’s a trend-following setup. Longer and clearer the trend → better the results.
✅ Best Practices: Avoid ranging markets
Use proper SL/TP for each timeframe
Use directional filter if you already have a directional bias
Always forward test before going live
⚠️ Trading Disclaimer:
This script is for educational and backtesting purposes only. Trading involves risk. Always use risk management and never invest more than you can afford to lose.
Long-Only MTF EMA Cloud StrategyOverview:
The Long-Only EMA Cloud Strategy is a powerful trend-following strategy designed to help traders identify and capitalize on bullish market conditions. By utilizing an Exponential Moving Average (EMA) Cloud, this strategy provides clear and reliable signals for entering long positions when the market trend is favorable. The EMA cloud acts as a visual representation of the trend, making it easier for traders to make informed decisions. This strategy is ideal for traders who prefer to trade in the direction of the trend and focus exclusively on long positions.
Key Features:
EMA Cloud:
The strategy uses two EMAs (short and long) to create a dynamic cloud.
The cloud is bullish when the short EMA is above the long EMA, indicating a strong upward trend.
The cloud is bearish when the short EMA is below the long EMA, indicating a downward trend or consolidation.
Long Entry Signals:
A long position is opened when the EMA cloud turns bullish, which occurs when the short EMA crosses above the long EMA.
This crossover signals a potential shift in market sentiment from bearish to bullish, providing an opportunity to enter a long trade.
Adjustable Timeframe:
The EMA cloud can be calculated on the same timeframe as the chart or on a higher/lower timeframe for multi-timeframe analysis.
This flexibility allows traders to adapt the strategy to their preferred trading style and time horizon.
Risk Management:
The strategy includes adjustable stop loss and take profit levels to help traders manage risk and lock in profits.
Stop loss and take profit levels are calculated as a percentage of the entry price, ensuring consistency across different assets and market conditions.
Alerts:
Built-in alerts notify you when a long entry signal is generated, ensuring you never miss a trading opportunity.
Alerts can be customized to suit your preferences, providing real-time notifications for potential trades.
Visualization:
The EMA cloud is plotted on the chart, providing a clear visual representation of the trend.
Buy signals are marked with a green label below the price bar, making it easy to identify entry points.
How to Use:
Add the Script:
Add the script to your chart in TradingView.
Set EMA Lengths:
Adjust the Short EMA Length and Long EMA Length in the settings to suit your trading style.
For example, you might use a shorter EMA (e.g., 21) for more responsive signals or a longer EMA (e.g., 50) for smoother signals.
Choose EMA Cloud Resolution:
Select the EMA Cloud Resolution (timeframe) for the cloud calculation.
You can choose the same timeframe as the chart or a different timeframe (higher or lower) for multi-timeframe analysis.
Adjust Risk Management:
Set the Stop Loss (%) and Take Profit (%) levels according to your risk tolerance and trading goals.
For example, you might use a 1% stop loss and a 2% take profit for a 1:2 risk-reward ratio.
Enable Alerts:
Enable alerts to receive notifications for long entry signals.
Alerts can be configured to send notifications via email, SMS, or other preferred methods.
Monitor and Trade:
Monitor the chart for buy signals and execute trades accordingly.
Use the EMA cloud as a visual guide to confirm the trend direction before entering a trade.
Ideal For:
Trend-Following Traders: This strategy is perfect for traders who prefer to trade in the direction of the trend and capitalize on sustained price movements.
Long-Only Traders: If you prefer to focus exclusively on long positions, this strategy provides a clear and systematic approach to identifying bullish opportunities.
Multi-Timeframe Analysts: The adjustable EMA cloud resolution allows you to analyze trends across different timeframes, making it suitable for both short-term and long-term traders.
Risk-Averse Traders: The inclusion of stop loss and take profit levels helps manage risk and protect your capital.
Phase Cross Strategy with Zone### Introduction to the Strategy
Welcome to the **Phase Cross Strategy with Zone and EMA Analysis**. This strategy is designed to help traders identify potential buy and sell opportunities based on the crossover of smoothed oscillators (referred to as "phases") and exponential moving averages (EMAs). By combining these two methods, the strategy offers a versatile tool for both trend-following and short-term trading setups.
### Key Features
1. **Phase Cross Signals**:
- The strategy uses two smoothed oscillators:
- **Leading Phase**: A simple moving average (SMA) with an upward offset.
- **Lagging Phase**: An exponential moving average (EMA) with a downward offset.
- Buy and sell signals are generated when these phases cross over or under each other, visually represented on the chart with green (buy) and red (sell) labels.
2. **Phase Zone Visualization**:
- The area between the two phases is filled with a green or red zone, indicating bullish or bearish conditions:
- Green zone: Leading phase is above the lagging phase (potential uptrend).
- Red zone: Leading phase is below the lagging phase (potential downtrend).
3. **EMA Analysis**:
- Includes five commonly used EMAs (13, 26, 50, 100, and 200) for additional trend analysis.
- Crossovers of the EMA 13 and EMA 26 act as secondary buy/sell signals to confirm or enhance the phase-based signals.
4. **Customizable Parameters**:
- You can adjust the smoothing length, source (price data), and offset to fine-tune the strategy for your preferred trading style.
### What to Pay Attention To
1. **Phases and Zones**:
- Use the green/red phase zone as an overall trend guide.
- Avoid taking trades when the phases are too close or choppy, as it may indicate a ranging market.
2. **EMA Trends**:
- Align your trades with the longer-term trend shown by the EMAs. For example:
- In an uptrend (price above EMA 50 or EMA 200), prioritize buy signals.
- In a downtrend (price below EMA 50 or EMA 200), prioritize sell signals.
3. **Signal Confirmation**:
- Consider combining phase cross signals with EMA crossovers for higher-confidence trades.
- Look for confluence between the phase signals and EMA trends.
4. **Risk Management**:
- Always set stop-loss and take-profit levels to manage risk.
- Use the phase and EMA zones to estimate potential support/resistance areas for exits.
5. **Whipsaws and False Signals**:
- Be cautious in low-volatility or sideways markets, as the strategy may generate false signals.
- Use additional indicators or filters to avoid entering trades during unclear market conditions.
### How to Use
1. Add the strategy to your chart in TradingView.
2. Adjust the input settings (e.g., smoothing length, offsets) to suit your trading preferences.
3. Enable the strategy tester to evaluate its performance on historical data.
4. Combine the signals with your own analysis and risk management plan for best results.
This strategy is a versatile tool, but like any trading method, it requires proper understanding and discretion. Always backtest thoroughly and trade with discipline. Let me know if you need further assistance or adjustments to the strategy!
Adaptive Trend Flow Strategy with Filters for SPXThe Adaptive Trend Flow Strategy with Filters for SPX is a complete trading algorithm designed to identify traits and offer actionable alerts for the SPX index. This Pine Script approach leverages superior technical signs and user-described parameters to evolve to marketplace conditions and optimize performance.
Key Features and Functionality
Dynamic Trend Detection: Utilizes a dual EMA-based totally adaptive method for fashion calculation.
The script smooths volatility the usage of an EMA filter and adjusts sensitivity through the sensitivity enter. This allows for real-time adaptability to market fluctuations.
Trend Filters for Precision:
SMA Filter: A Simple Moving Average (SMA) guarantees that trades are achieved best while the rate aligns with the shifting average trend, minimizing false indicators.
MACD Filter: The Moving Average Convergence Divergence (MACD) adds some other layer of confirmation with the aid of requiring alignment among the MACD line and its sign line.
Signal Generation:
Long Signals: Triggered when the fashion transitions from bearish to bullish, with all filters confirming the pass.
Short Signals: Triggered while the trend shifts from bullish to bearish, imparting opportunities for final positions.
User Customization:
Adjustable parameters for EMAs, smoothing duration, and sensitivity make certain the strategy can adapt to numerous buying and selling patterns.
Enable or disable filters (SMA or MACD) based totally on particular market conditions or consumer possibilities.
Leverage and Position Sizing: Incorporates a leverage aspect for dynamic position sizing.
Automatically calculates the exchange length based on account fairness and the leverage element, making sure hazard control is in area.
Visual Enhancements: Plots adaptive fashion ranges (foundation, top, decrease) for actual-time insights into marketplace conditions.
Color-coded bars and heritage to visually represent bullish or bearish developments.
Custom labels indicating crossover and crossunder occasions for clean sign visualization.
Alerts and Automation: Configurable alerts for each lengthy and quick indicators, well matched with automated buying and selling structures like plugpine.Com.
JSON-based alert messages consist of account credentials, motion type, and calculated position length for seamless integration.
Backtesting and Realistic Assumptions: Includes practical slippage, commissions, and preliminary capital settings for backtesting accuracy.
Leverages excessive-frequency trade sampling to make certain strong strategy assessment.
How It Works
Trend Calculation: The method derives a principal trend basis with the aid of combining fast and gradual EMAs. It then uses marketplace volatility to calculate adaptive upper and decrease obstacles, creating a dynamic channel.
Filter Integration: SMA and MACD filters work in tandem with the fashion calculation to ensure that handiest excessive-probability signals are accomplished.
Signal Execution: Signals are generated whilst the charge breaches those dynamic tiers and aligns with the fashion and filters, ensuring sturdy change access situations.
How to Use
Setup: Apply the approach to SPX or other well suited indices.
Adjust person inputs, together with ATR length, EMA smoothing, and sensitivity, to align together with your buying and selling possibilities.
Enable or disable the SMA and MACD filters to test unique setups.
Alerts: Configure signals for computerized notifications or direct buying and selling execution through third-celebration systems.
Use the supplied JSON payload to integrate with broking APIs or automation tools.
Optimization:
Experiment with leverage, filter out settings, and sensitivity to find most effective configurations to your hazard tolerance and marketplace situations.
Considerations and Best Practices
Risk Management: Always backtest the method with realistic parameters, together with conservative leverage and commissions.
Market Suitability: While designed for SPX, this method can adapt to other gadgets by means of adjusting key parameters.
Limitations: The method is trend-following and can underperform in enormously risky or ranging markets. Regularly evaluate and modify parameters primarily based on recent market conduct.
If you have any questions please let me know - I'm here to help!
Pyramiding Entries On Early Trends (by Coinrule)Pyramiding the entries in a trading strategy may be risky but at the same time very profitable with a proper risk management approach. This strategy seeks to spot early signs of uptrends and increase the position's size while the right conditions persist.
Each trade comes with its stop-loss and take-profit to enforce a proportional risk/reward profile.
The strategy uses a mix of Moving Average based setups to define the buy-signal.
The Moving Average (200) is above the Moving Average (100), which prevents from buying when the uptrend is already in its late stages
The Moving Average (9) is above the Moving Average (100), indicating that the coin is not in a downtrend.
The price crossing above the Moving Average (9) confirms the potential upside used to fire the buy order.
Each entry comes with a stop-loss and a take-profit in a ratio of 1-to-1. After over 400 backtests, we opted for a 3% TP and 3% SL, which provides the best results.
The strategy is optimized on a 1-hour time frame.
The Advantages of this strategy are:
It offers the possibility of adjusting the size of the position proportionally to the confidence in the possibilities that an uptrend will eventually form.
Low drawdowns. On average, the percentage of trades in profit is above 60%, and the stop-loss equal to the take-profit reduces the overall risk.
This strategy returned good returns both with trading pairs with Fiat/stable coins and with BTC. Considering the mixed trends that cryptocurrencies experienced during 2020 vs BTC, this strengthens the strategy's reliability.
The strategy assumes each order to trade 20% of the available capital and pyramids the entries up to 7 times.
A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
The Lazy Trader - Index (ETF) Trend Following Robot50/150 moving average, index (ETF) trend following robot. Coded for people who cannot psychologically handle dollar-cost-averaging through bear markets and extreme drawdowns (although DCA can produce better results eventually), this robot helps you to avoid bear markets. Be a fair-weathered friend of Mr Market, and only take up his offer when the sun is shining! Designed for the lazy trader who really doesn't care...
Recommended Chart Settings:
Asset Class: ETF
Time Frame: Daily
Necessary ETF Macro Conditions:
a) Country must have healthy demographics, good ratio of young > old
b) Country population must be increasing
c) Country must be experiencing price-inflation
Default Robot Settings:
Slow Moving Average: 50 (integer) //adjust to suit your underlying index
Fast Moving Average: 150 (integer) //adjust to suit your underlying index
Bullish Slope Angle: 5 (degrees) //up angle of moving averages
Bearish Slope Angle: -5 (degrees) //down angle of moving averages
Average True Range: 14 (integer) //input for slope-angle formula
Risk: 100 (%) //100% risk means using all equity per trade
ETF Test Results (Default Settings):
SPY (1993 to 2020, 27 years), 332% profit, 20 trades, 6.4 profit factor, 7% drawdown
EWG (1996 to 2020, 24 years), 310% profit, 18 trades, 3.7 profit factor, 10% drawdown
EWH (1996 to 2020, 24 years), 4% loss, 26 trades, 0.9 profit factor, 36% drawdown
QQQ (1999 to 2020, 21 years), 232% profit, 17 trades, 3.6 profit factor, 2% drawdown
EEM (2003 to 2020, 17 years), 73% profit, 17 trades, 1.1 profit factor, 3% drawdown
GXC (2007 to 2020, 13 years), 18% profit, 14 trades, 1.3 profit factor, 26% drawdown
BKF (2009 to 2020, 11 years), 11% profit, 13 trades, 1.2 profit factor, 33% drawdown
A longer time in the markets is better, with the exception of EWH. 6 out of 7 tested ETFs were profitable, feel free to test on your favourite ETF (default settings) and comment below.
Risk Warning:
Not tested on commodities nor other financial products like currencies (code will not work), feel free to leave comments below.
Moving Average Slope Angle Formula:
Reproduced and modified from source:
FRAMA - Supertrend strategyFRAMA Strategy
I found this strategy on internet, in a well-known forex forum.
I have translated the two indicators mentioned in that strategy (originally in mq4) in pine script.
Thanks to Fractured and Shizaru for the FRAMA snippets, to mejialucas for Supertrend snippet, to JayRogers for trade management snippet and to Trost for backtesting snippet.
I also added some code to have FRAME with a deiiferent timeframe
Indicators set-up:
FRAMA period 24 (it was originally 25 but it's better to use an even number)
FRAMA timefarme lower then chart timeframe (e.g. daily chart and weekly FRAMA)
Supertrend indicator as it is.
Of course, it is better to adapt above setting to traded instrument.
Long/Buy rules:
1 - Enter at crossover between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit long when short signal occurs;
Short/Sell rules:
1 - Enter at crossunder between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit short when long signal occurs;
VERY IMPORTANT NOTE: this is a trend following strategy, so the target is to stay in the trade as much as possible (drawdown my be high). If your trading style is more focused on scalping and/or pullbaks, this strategy is not for you.
Credits to who developed this startegy (google it).
Thanks to all pinescripters mentined in the code for their snippets.
I have also a study with alerts.
Please use comment section for any feedback or contact me if you need support.