Skip to content

Commit bfcdd1a

Browse files
committed
优化on_symbol, on_bar测试代码
1 parent 2e39242 commit bfcdd1a

3 files changed

Lines changed: 108 additions & 1684 deletions

File tree

‎quantdigger/engine/context/data_context.py‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
##
3-
# @file data_context.py
4-
# @brief
5-
# @author wondereamer
6-
# @version 0.1
7-
# @date 2016-11-27
82

93
import datetime
104

@@ -16,9 +10,10 @@
1610
Bar
1711
)
1812

13+
1914
class DataContext(object):
2015
""" A DataContext expose data should be visited by multiple strategie.
21-
which including bars of specific PContract, technicals and series of
16+
which including bars of specific PContract, technicals and series of
2217
strategie.
2318
"""
2419
def __init__(self, Helper):
@@ -111,7 +106,6 @@ def rolling_forward(self):
111106
raise
112107
return True, self.new_row
113108

114-
115109
def __len__(self):
116110
return len(self._Helper)
117111

0 commit comments

Comments
 (0)