Type/to search

Moving Average Price Based Trading Strategy

Common strategy
Created: 2024-02-02 11:02:02
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

The core idea of this strategy is to generate trading signals based on moving average price. It combines three Super Trend indicators with different parameters and offers flexible stop loss settings.

The advantage lies in improving signal accuracy through multiple Super Trend systems and providing adjustable stop loss options.

How The Strategy Works

  1. Calculate three Super Trend indicators: the Super Trend lines are calculated based on the product of ATR indicator and price average. When price breaks above the Super Trend line, it is a bullish signal. When price breaks below the line, it is a bearish signal.

  2. Use the upper and lower bands of Bollinger Bands to determine if price breaks through. Breaking above upper band signals bullishness. Breaking below lower band signals bearishness.

  3. Combine the buy and sell signals from the three Super Trend indicators to determine if criteria are met for long or short entry.

  4. Set up various stop loss mechanisms like ATR trailing stop, anchor stop loss, percentage stop loss and pip stop loss for risk management.

  5. Judge if to enter positions based on ATR indicator value. This filters out erroneous signals in low volatility environments.

Advantages

  1. Combining multiple Super Trend indicators with different parameters improves signal accuracy.

  2. Using Bollinger Bands to determine upper/lower band breaks avoids false breaks.

  3. Multiple stop loss options provide effective risk control to maximize loss affordability.

  4. ATR filters help avoid misleading signals.

Risks

  1. Multiple signal criteria may cause missing some good opportunities.

  2. Improper stop loss setups can lead to unexpected big losses.

  3. Poor BB parameter tuning makes signals lag.

  4. Overly strict ATR filters omit too many valid signals.

Enhancement Guidelines

  1. Tune ATR period of Super Trend to optimize indicator sensitivity.

  2. Test different price average sources as Super Trend input, like WMA.

  3. Optimize BB parameters for better trend responsiveness.

  4. Adjust ATR filter threshold based on market volatility.

  5. Backtest to find optimum stop loss level for highest return.

Conclusion

This strategy filters noises and controls risks to some extent by combining signals from multiple indicators and flexible stop loss mechanisms. Fine tuning parameters can lead to better performance. However, multiple signal criteria may also cause missing opportunities. Generally speaking, this strategy suits medium-long term investment for steady returns.

Source
Pine
/*backtest
start: 2024-01-02 00:00:00
end: 2024-02-01 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// @version=5
// @strategy_alert_message {{strategy.order.comment}}
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © TradeSmart22
Strategy parameters
Strategy parameters
Plot Settings
Plot Signals
Plot SL/TP Lines
Supertrend 1
Plot Supertrend 1
Supertrend 1 can be entry signal
Long: Supertrend 1 has to be in
Short: Supertrend 1 has to be in
ATR Period 1
Source 1
ATR Multiplier 1
Supertrend 2
Plot Supertrend 2
Supertrend 2 can be entry signal
Long: Supertrend 2 has to be in
Short: Supertrend 2 has to be in
ATR Period 2
Source 2
ATR Multiplier 2
Supertrend 3
Plot Supertrend 3
Supertrend 3 can be entry signal
Long: Supertrend 3 has to be in
Short: Supertrend 3 has to be in
ATR Period 3
Source 3
ATR Multiplier 3
Supertrend 4
Plot Supertrend 4
Supertrend 4 can be entry signal
Long: Supertrend 4 has to be in
Short: Supertrend 4 has to be in
ATR Period 4
Source 4
ATR Multiplier 4
Exit Strategy
ATR Based Stop Loss
ATR Length
ATR Smoothing
Candle Low/High Based Stop Loss
Candle Lookback
Percentage Based Stop Loss
Percentage
Pip Based Stop Loss
Pip
Base Risk Multiplier
Risk to Reward Ratio
Force Exiting
1 - Force exit on custom session close
force_exit_exact_time_1
2 - Force exit on custom session close
force_exit_exact_time_2
3 - Force exit on custom session close
force_exit_exact_time_3
4 - Force exit on custom session close
force_exit_exact_time_4
Base Setups
Allow Long Entries
Allow Short Entries
Order Size
order_size_type
ATR Limiter
Use ATR Limiter
ATR Limiter Length
ATR Limiter Smoothing
High Boundary
Low Boundary
MA based calculation
MA Type
MA Length
Waddah Attar Filter
Explosion/Deadzone relation
Limit trades based on trends
WA bar value
Sensitivity
Fast MA Type
Fast MA Length
Slow MA Type
Slow MA Length
Channel MA Type
BB Channel Length
BB Stdev Multiplier
Trend Filter
Use long trend filter 1
Show long trend filter 1
TF1 - MA Type
TF1 - MA Length
TF1 - MA Source
Use short trend filter 1
Show short trend filter 1
TF2 - MA Type
TF2 - MA Length
TF2 - MA Source
Volume Filter
Only enter trades where volume is higher then the volume-based MA
Volume-based MA Type
Volume-based MA Length
Date Range Limiter
Limit Between Dates
Start Date
End Date
Session Limiter
Show session plots
Use session limiter
Sidney session
Tokyo session
London session
New York session
Trading Time Limiter
Limit Trading Time
Valid Trading Days Global
limit_day1
(1) Valid Trading Days
valid_hours1
(1) Valid Trading Hours Between
limit_day2
(2) Valid Trading Days
valid_hours2
(2) Valid Trading Hours Between
limit_day3
(3) Valid Trading Days
valid_hours3
(3) Valid Trading Hours Between
PineConnector Automation
PLEASE READ TOOLTIP -->
License ID
Risk (trading volume)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)