Type/to search

BlackBit Trader XO Macro Trend Scanner Strategy

Common strategy
Created: 2024-01-25 15:21:46
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy combines double moving average and StochRSI indicator to identify trend direction and entry points. The main feature is that it can enter the market in the early stage of trend, while using the overbought/oversold characteristics of StochRSI to filter false breakouts.

Strategy Logic

The strategy uses fast moving average EMA(12) and slow moving average EMA(25) to build a double moving average system. When fast line crosses above slow line, buy signal is generated. When fast line crosses below slow line, sell signal is generated. This is used to determine the major trend direction.

At the same time, the strategy incorporates StochRSI crossover to further identify entry timing. StochRSI combines stochastic KDJ and RSI. When K line crosses D line upward from oversold zone, buy signal is generated. When K line crosses D line downward from overbought zone, sell signal is generated.

Only when double moving average produces signal and StochRSI also produces corresponding signal, this strategy will open positions. This can effectively filter out some false breakouts and avoid invalid trades.

Advantage Analysis

The biggest advantage of this strategy is being able to judge trend direction and potential entry points early. The moving average system can produce signals at the beginning of a trend, while the addition of StochRSI effectively filters false breakouts and avoids erroneous trades.

In addition, the strategy combines both trend analysis and overbought/oversold judgment, featuring the strengths of both trend following and mean-reversion. Whether tracking trends or buying low and selling high, this strategy can capture opportunities in all aspects.

Risk Analysis

The main risk of this strategy lies in the lag of the double moving average system itself. When the market changes violently in a sudden, the double moving average system often takes time to generate signals, easily missing the best entry timing.

In addition, StochRSI may also generate false signals, leading to unnecessary trades, especially in ranging markets where K and D line can frequently crossover, posing risks of excessive invalid operations.

Optimization Directions

The optimization of this strategy mainly focuses on several aspects:

  1. Adjust the parameters of double moving average to adopt moving average periods more conducive to capturing trends;

  2. Optimize the parameters of StochRSI to come up with more sensible overbought/oversold criteria;

  3. Increase order size or adjust stop loss/take profit to pursue higher return;

  4. Incorporate other indicators as filter conditions to further reduce invalid signals.

Summary

Overall, this strategy is very suitable for capturing medium-to-long term trends, with great profit potential in early stage of trends. Combining StochRSI as an auxiliary judge can effectively filter misleading signals and avoid unnecessary losses. With improvements in parameter tuning and risk management, this strategy can become a powerful tool to obtain steady returns.

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

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © btc_charlie / @TheParagonGrp

//@version=5
Strategy parameters
Strategy parameters
OHLC Type
Fast EMA
Slow EMA
Consolidated EMA
Show Both EMAs
K
D
RSI Length
Stochastic Length
Bands change this instead of length in Style for Stoch RSI colour to work properly
Upper Band
Middle Band
Lower Band
Crossover Alerts
Crossover Alert Background Colour (Middle Level) [ON/OFF]
Crossover Alert Background Colour (OB/OS Level) [ON/OFF]
Crossover Alert >input [ON/OFF]
Crossover Alert <input [ON/OFF]
Moving Average
MA Type
MA Source
MA Length
---------TIME RANGE SETTINGS---------
startDate
finishDate
EMA FILTER SETTINGS
EMA Filter Length
EMA Filter Source
MACD FILTER SETTINGS
Fast Length
Slow Length
Source
Signal Smoothing
Oscillator MA Type
Signal Line MA Type
TP/SL CONDITION INPUTS HERE
Enter The Take Profit %
Enter The Stop %
ALERT MESSAGE SETTINGS
Long entry alert
Short entry alert
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)