Type/to search

Coordinate Sliding Stop Loss Strategy

Cryptocurrency
Created: 2023-11-02 16:28:55
Last modified: 3 years ago
1
Follow
1779
Followers

img

Overview

This strategy uses Stochastic RSI and price rate of change indicator to identify trend direction for entry, and coordinate sliding stop loss for risk management.

Strategy Logic

Firstly, the strategy calculates Stochastic RSI using RSI indicator with length 5 and Stochastic indicator with length 7. When Stochastic RSI K value is above D value, it is bullish signal. When K is below D, it is bearish signal.

Secondly, the strategy calculates price rate of change indicator EMA ROC. When EMA ROC is above the threshold half or below negative half of threshold, it identifies active price movement.

Then, combining Stochastic RSI signals and price rate of change, it identifies trend direction. When Stochastic RSI is bullish and price actively moving, go long. When Stochastic RSI bearish and price actively moving, go short.

Finally, the strategy uses coordinate sliding stop loss for risk management. After opening position, it continues to refresh highest/lowest price, and uses certain percentage distance from highest/lowest price as stop loss level.

Advantage Analysis

The advantages of this strategy:

  1. Stochastic RSI indicator effectively identifies trends and overbought/oversold situations.

  2. Price rate of change filters out range-bound market to avoid false signals.

  3. Coordinate sliding stop loss can lock in profits to the largest extent while controlling risk.

  4. The strategy has big optimization space for parameters tuning based on different products.

  5. The strategy logic is simple and clear, easy to understand and implement.

Risk Analysis

The risks of this strategy:

  1. Stochastic RSI may generate false signals, needs confirmation with other factors.

  2. Coordinate sliding stop loss may be too aggressive, could be stopped out by gaps overnight.

  3. Short term reversal may trigger stop loss.

  4. Parameters need optimization for different products, otherwise performance may be poor.

  5. Trading cost impacts the strategy profitability, reasonable trading frequency needed.

Optimization Directions

The strategy can be further optimized in the following aspects:

  1. Optimize Stochastic RSI parameters to reduce false signals. Can test different K and D values.

  2. Optimize price rate of change parameters to improve filtering effect. Can test different length and threshold values.

  3. Add trend indicator to avoid being stopped out by reversals. Such as moving averages.

  4. Optimize stop loss percentage to reduce risk of being trapped. Can test different stop loss width.

  5. Add position sizing management to control single trade risk. Such as fixed stop loss amount, or dynamically adjust position size based on account equity.

  6. Test parameters on different products to improve adaptiveness. Verify on multiple markets and timeframes.

Summary

In summary, this strategy has clear and simple logic, identifies trend direction with Stochastic RSI and filters signals with price rate of change, which can effectively capture mid-long term trends. Coordinate sliding stop loss locks in profits and controls risk. With further optimization, this strategy can become a very practical trend following strategy.

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

//@version=4
strategy("Sto2", overlay=false, initial_capital=10000, default_qty_type=strategy.percent_of_equity, default_qty_value=100, commission_type=strategy.commission.percent, commission_value=0.0)

/////////////// Time Frame ///////////////
Strategy parameters
Strategy parameters
Backtest Start Year
Backtest Start Month
Backtest Start Day
Backtest Stop Year
Backtest Stop Month
Backtest Stop Day
smoothK
smoothD
lengthRSI
lengthStoch
RSI Source
roclength
pcntChange
Stop Loss %
Take Profit %
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)