Type/to search

Trend and Moving Average Crossover Based Multi-Functional Algorithmic Trading Strategy

Cryptocurrency
Created: 2023-12-08 12:14:50
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy integrates multiple technical indicators and trading concepts to automatically generate buy and sell signals. The key features are optimizing stops based on trend indicators and triggering trades from moving average crossovers.

Strategy Logic

Technical Indicators

  • Custom UTSTC indicator: An adaptive trailing stop based on Average True Range to adjust stop loss range according to market volatility.

  • STC indicator: The difference between fast and slow simple moving averages to determine market trend direction and potential reversal points.

  • Simple Moving Averages (SMA) and Exponential Moving Averages (EMA): Plotting moving averages of different periods to provide additional trend information.

Trading Signals

  • Buy signal: Generated when close price crosses above UTSTC line and STC is in bullish state.

  • Sell signal: Generated when close price crosses below UTSTC line and STC is in bearish state.

Advantages

  • Integrates multiple indicators to determine market trend, improving signal accuracy.

  • UTSTC adjusts stops automatically based on true volatility, effectively controlling loss per trade.

  • Simple and effective trading signals from moving average crosses.

  • Different parameter combinations accommodate more market environments.

Risks

  • Trend indicators like STC may lag and miss short-term reversals.

  • Moving average crosses may generate false signals.

  • Careful assessment of parameters required, improper combinations may reduce profits or increase losses.

  • Stop loss range too wide may increase losses, too tight may stop out early.

Enhancement Opportunities

  • Test different STC lengths to find settings with minimal strategy impact.

  • Incorporate additional filters to reduce false signals e.g. KDJ, MACD.

  • Optimize stops based on backtest results to find best parameter mix.

  • Evaluate different holding periods to determine optimal.

Conclusion

This strategy combines trend, automated stops and signal modules into a rather complete algorithmic trading framework. With parameter tuning and feature expansion, stable profits may be achieved but no strategy can fully avoid losses. Proper validation and risk control is still essential.

Source
Pine
/*backtest
start: 2022-12-01 00:00:00
end: 2023-12-07 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

//@version=4
strategy("OB+LQ+UTSTC+SMA+EMA-NORA-MIP21-Jashore-Bangladesh-OneMinuteTF", shorttitle="OB+LS+UTSTC-MIP21-Jashore-Bangladesh-OneMinuteTF", overlay=true)

// Order Block + Liquidity Swings [NORA] Settings
Strategy parameters
Strategy parameters
Pivot Lookback
Bullish OB Extension
Bearish OB Extension
Swing Length
Swing Area
Minimum Profit Target
Maximum Loss Stop
UT Bot Key Value
UT Bot ATR Period
STC Length
STC Fast Length
STC Slow Length
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)