输入/搜索内容

基于波动率指标和随机指标的多时间周期交易策略

通用策略
创建日期: 2023-12-21 14:34:42
最后修改: 3 年前
复制: 0
点击次数: 1029
1
关注
1815
关注者

img

概述

本策略融合了波动率指标VIX和随机指标RSI,通过不同时间周期指标的组合,实现高效的突破买入和超买超卖的止损平仓。策略优化空间较大,可适应不同市场环境。

策略原理

  1. 计算VIX波动率指标:取最近20天的最高价与最低价计算波动率。当波动率高于上轨时,表示市场恐慌;当低于下轨时,表示市场Complacency。

  2. 计算RSI随机指标:取最近14天的涨跌幅计算,当RSI高于70时为超买区,低于30时为超卖区。

  3. 融合两种指标,当波动率高于上轨或最高百分位时做多;当RSI高于70时平仓。

策略优势

  1. 融合多种指标,综合判断市场时点。
  2. 不同时间周期指标互相验证,提高决策准确性。
  3. 可优化调整参数,适应不同交易品种。

风险分析

  1. 参数设置不当可能导致多次虚假信号。
  2. 单一平仓指标容易漏掉价格反转。

优化建议

  1. 增加更多验证指标,例如均线、布林带等判断入场时机。
  2. 增加更多平仓指标,例如反转K线形态等。

总结

本策略通过VIX指标判断市场时点和风险水平,配合RSI指标过滤掉超买超卖的不利交易点,从而在高效的时机买入且及时止损。策略优化空间较大,可适应更广泛的市场环境。

策略源码
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
策略参数
策略参数
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?
评论
全部评论 (0)
暂无数据
暂无数据
  • 1
社区
回测系统
APP 下载
iPhone 下载
© 2015 - ∞ INVENTOR PTE LTD (SG)