import tbpy
import sys
import datetime
class MyStrategy(tbpy.IStrategy):
def init(self, max_pos, interval_secs, account_id, symbol):
super().__init__('MyStrategy')
self._side = 0
self._max_pos = max_pos
self._interval_secs = interval_secs
self._account_id = account_id
self._symbol = symbol
self._account = None
self._pos = None
self._order_dict = {}
self._time= None
pass