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.
Session
Tutorial - Adding sessions to strategiesA simple script to illustrate how to add sessions to trading strategies.
In this interactive tutorial, you'll learn how to add trading sessions to your strategies using Pine Script. By the end of this session (pun intended!), you'll be able to create custom trading windows that adapt to changing market conditions.
What You'll Learn:
Defining Trading Sessions: Understand how to set up specific time frames for buying and selling, tailored to your unique trading style.
RSI-Based Entry Signals: Discover how to use the Relative Strength Index (RSI) as a trigger for buy and sell signals, helping you capitalize on market trends.
Combining Session Logic with Trading Decisions: Learn how to integrate session-based logic into your strategy, ensuring that trades are executed only during designated times.
By combining these elements, we create an interactive strategy that:
1. Generates buy and sell signals based on RSI levels.
2. Checks if the market is open during a specific trading session (e.g., 1300-1700).
3. Executes trades only when both conditions are met.
**Tips & Variations:**
* Experiment with different RSI periods, thresholds, and sessions to optimize your strategy for various markets and time frames.
* Consider adding more advanced logic, such as stop-losses or position sizing, to further refine your trading approach.
Get ready to take your Pine Script skills to the next level!
~Description partially generated with Llama3_8B
The Only EURUSD Trading Strategy You Need - KaspricciThe Only EURUSD Trading Strategy You Need
I got the idea to this strategy from a youtube video uploaded by Trade Beta. It is designed to capture the early market move of major forex pair EURUSD at beginning of New York Stock Exchange (13:30 GMT). Trade Beta tested his strategy on the 5 minute chart. I have set all parameters to same values as shown in the video.
The strategy creates two pending orders at the recent swing high and low. Once the first pending order entered, the remaining one is cancelled. Latest at the end of market session all pending orders are cancelled and all open trade are closed as well.
In rare case that price at session opening is above swing high, only a pending sell stop order is created at swing high price. And in case price is below swing low, a pending buy stop order is created.
Settings
Trading Time - default: New York Stock Exchange opening hours. Pending orders are created at the close of the first candle within the session.
Swing High Source / Bars - default: High / 5 bars. Used to find the latest swing high within a range of 5 bars left and right. Price is used for buy stop order.
Swing Low Source / Bars - default: Low / 5 bars. Used to find the latest swing low within a range of 5 bars left and right. Price is used for sell stop order.
Stop Loss Type - default: ATR. You can switch between stop loss calculation based on Average True Range value or fixed value.
ATR Length / Factor / TP Ratio - default: 14 / 2.0 / 2.0. Used to calculate the Stop Loss as ATR * Factor and Take Profit as Stop Loss * TP Ratio.
FIX Stop Loss / Take Profit - default: 10 pips / 20 pips. In case you select Stop Loss Type = FIX, these value swill be used.
This strategy is for educational purposes only! It is not meant to be a financial advice.
Wavetrend strategy with trading session for any time chartHello there
Today I am glad to provide you a strategy based on the wave trend oscillator. If you want to use it as an indicator, just disable long and short to not make any shops.
It works on all time frames.
The way it works its like an RSI .
We have overbought and oversold levels, and together with a channel and length we calculate the wave trend.
And then like in RSI, when we cross those lines we buy or sell depending on which lines we cross.
For risk management, so far its not implemented, but it can be done in many ways.
The only thing I applied is to always close a trade at the end of friday day. At the same time it can be applied the rule to sell when % of equity is lost, or at the end of a trading session like london,neywork and so on.
For any questions or doubts, let me know.
Hope you enjoy it :)
[STRATEGY][RS]Open Session Breakout TraderEXPERIMENTAL: use at your own discretion.
custom session breakout strategy, it uses a percentage of daily atr to set breakout limits. strategy only viable for intraday timeframes and is suggested under 1hour.