Type/to search

The Multi-Period Trading Strategy Based on Volatility Index and Stochastic Oscillator

Common strategy
Created: 2023-12-21 14:34:42
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview
This strategy combines the volatility index VIX and stochastic oscillator RSI through a composition of indicators across different time periods, in order to achieve efficient breakout entries and overbought/oversold exits. The strategy has large room for optimizations and can be adapted to different market environments.

Principles

  1. Calculate the VIX volatility index: take the highest and lowest prices over the past 20 days to compute volatility. High VIX indicates market panic while low VIX suggests market complacency.

  2. Compute the RSI oscillator: take the price changes over the past 14 days. RSI above 70 suggests overbought conditions and RSI below 30 suggests oversold conditions.

  3. Combine the two indicators. Go long when VIX breaches the upper band or the highest percentile. Close longs when RSI goes above 70.

Advantages

  1. Integrates multiple indicators for comprehensive market timing assessment.
  2. Indicators across timeframes verify each other and improves decision accuracy.
  3. Customizable parameters can be optimized for different trading instruments.

Risks

  1. Improper parameter tuning may cause multiple false signals.
  2. A single exit indicator may miss price reversals.

Optimization Suggestions

  1. Incorporate more confirming indicators like moving averages and Bollinger bands to time entries.
  2. Add more exit indicators such as reversal candlestick patterns.

Summary
This strategy utilizes the VIX to gauge market timing and risk levels, and filters out unfavorable trades using overbought/oversold readings from the RSI, in order to enter at opportune moments and exit timely with stops. There is ample room for optimization to suit wider market conditions.

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

//@version=5
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © timj
Strategy parameters
Strategy parameters
lookback length of Stochastic
Stochastic overbought condition
Stochastic oversold condition
smoothing of Stochastic %K
moving average of Stochastic %K
lookback length of RSI
RSI overbought condition
RSI oversold condition
LookBack Period Standard Deviation High
Bolinger Band Length
Bollinger Band Standard Devaition Up
Look Back Period Percentile High
Highest Percentile - 0.90=90%, 0.95=95%, 0.99=99%
-------Text Plots Below Use Original Criteria-------
Show Text Plot if WVF WAS True and IS Now False
Show Text Plot if WVF IS True
-------Text Plots Below Use FILTERED Criteria-------
Show Text Plot For Filtered Entry
Show Text Plot For AGGRESSIVE Filtered Entry
Long-Term Look Back Current Bar Has To Close Below This Value OR Medium Term--Default=40
Medium-Term Look Back Current Bar Has To Close Below This Value OR Long Term--Default=14
Entry Price Action Strength--Close > X Bars Back---Default=3
-------------------------Turn On/Off ALERTS Below---------------------
----To Activate Alerts You HAVE To Check The Boxes Below For Any Alert Criteria You Want----
Show Alert WVF = True?
Show Alert WVF Was True Now False?
Show Alert WVF Filtered?
Show Alert WVF AGGRESSIVE Filter?
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)