From 29fe0b072c315a1778ad0dae2d8701f2fa1d445e Mon Sep 17 00:00:00 2001 From: 1122455801 Date: Fri, 29 Mar 2019 12:56:04 +0800 Subject: [PATCH] Update multi_timeframe_strategy.py --- .../strategies/multi_timeframe_strategy.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vnpy/app/cta_strategy/strategies/multi_timeframe_strategy.py b/vnpy/app/cta_strategy/strategies/multi_timeframe_strategy.py index 2b406a98..cb18cf04 100644 --- a/vnpy/app/cta_strategy/strategies/multi_timeframe_strategy.py +++ b/vnpy/app/cta_strategy/strategies/multi_timeframe_strategy.py @@ -12,7 +12,7 @@ from vnpy.app.cta_strategy import ( class MultiTimeframeStrategy(CtaTemplate): """""" - author = '用Python的交易员' + author = "用Python的交易员" rsi_signal = 20 rsi_window = 14 @@ -27,12 +27,12 @@ class MultiTimeframeStrategy(CtaTemplate): slow_ma = 0 ma_trend = 0 - parameters = ['rsi_signal', 'rsi_window', - 'fast_window', 'slow_window', - 'fixed_size'] + parameters = ["rsi_signal", "rsi_window", + "fast_window", "slow_window", + "fixed_size"] - variables = ['rsi_value', 'rsi_long', 'rsi_short', - 'fast_ma', 'slow_ma', 'ma_trend'] + variables = ["rsi_value", "rsi_long", "rsi_short", + "fast_ma", "slow_ma", "ma_trend"] def __init__(self, cta_engine, strategy_name, vt_symbol, setting): """"""