Type/to search

Volatility Price Channel Moving Average Trading Strategy

Cryptocurrency
Created: 2023-12-12 11:44:15
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy is based on the Super Trend indicator and price channel indicator, combined with moving average signals for trading. Its core idea is to use the price channel to judge whether the current price is in an abnormal state, the Super Trend to determine the current trend direction, and generate trading signals in combination with the moving average signals.

Strategy Logic

  1. Calculate the Super Trend indicator. The upper and lower rails are the current price plus/minus N times the ATR indicator respectively. When the price is higher than the upper rail, it is bullish. When the price is lower than the lower rail, it is bearish.

  2. Calculate the price channel indicator. The price channel line is M times the N-day standard deviation of the price. Prices higher/lower than the channel line are considered abnormal states.

  3. Calculate moving averages. Take the average lines of open price, close price and Super Trend respectively.

  4. Generate trading signals:

    • Buy signal: Close price crosses above Super Trend line and is higher than open price moving average.

    • Sell signal: Close price crosses below Super Trend line and is lower than open price moving average.

  5. Set stop loss and take profit price channel.

Advantage Analysis

  1. Combining multiple indicators avoids false signals.

  2. Using price channel to judge abnormal price states can filter out some undesirable entry points.

  3. Moving averages combined with judging trend direction avoid trading against the trend.

  4. Setting stop loss and take profit range controls risk.

Risk Analysis

  1. Parameter settings are too subjective and need optimization.

  2. Stop loss and take profit range may be set too wide or too narrow.

  3. Price channel parameters may not suit all products, separate testing is needed.

  4. Significant losses may occur during drastic trend changes.

Optimization Directions

  1. Test and optimize parameters to find optimal combinations.

  2. Test moving averages with different periods to select optimal parameters.

  3. Backtest on multiple products and select parameters according to performance respectively.

  4. Optimize stop loss strategy to avoid excessively large single loss.

Conclusion

This strategy combines multiple indicators to judge price abnormalities and trend directions, which can theoretically filter out some false signals. However, parameter settings are still relatively subjective with room for optimization. In addition, trading costs like commissions and slippage should be considered in actual trading. Overall, this strategy is more suitable as a trend following strategy, but parameters need to be optimized and adjusted for different products.

Source
Pine
/*backtest
start: 2023-12-10 00:00:00
end: 2023-12-11 00:00:00
period: 1m
basePeriod: 1m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy(title="Vol ST VM", overlay=true)

source = close
Strategy parameters
Strategy parameters
tf
SuperTrend Multiplier
SuperTrend Period
TP
TP length
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)