Пример #1
0
 def set_trade_direction(self, t_dir):
     StrategyBase.set_trade_direction(self, t_dir)
     if (self.trade_dir == TradeDirection.SELLONLY):
         self.cond_down_count = self.LARGE_COUNT
         self.cond_up_count = self.SMALL_COUNT
     elif (self.trade_dir == TradeDirection.BUYONLY):
         self.cond_down_count = self.SMALL_COUNT
         self.cond_up_count = self.LARGE_COUNT
     else:
         self.cond_down_count = 60
         self.cond_up_count = 60
Пример #2
0
 def set_trade_direction(self, t_dir):
     StrategyBase.set_trade_direction(self, t_dir)
     '''