问答交流

where语句:couldn't find matching opcode for 'and_bbi'

由cnkavin创建,最终由small_q 被浏览 33 用户

gua1=where((open_2>high_3)&(open_2>close_2)&(volume_2>volume_32)&(volume_2==ts_max(volume_2,30)),1,0) gub1=where((open_3>high_4)&(open_3>close_3)&(volume_3>volume_42)&(volume_3==ts_max(volume_3,30)),1,0) gua2=where((low_0<ta_ma(close_0,10))&(close_0>ta_ma(close_0,10))&(close_0>open_0)&(max(open_0/low_0>1.01, close_0/open_0>1.03)),1,0) gua3=where((low_1>shift(ta_ma(close_0,5),1))&(close_0>ta_ma(close_0,60))&(close_0>ta_ma(close_0,120)),1,0) gua4=where((ta_ma(close_0,5)>ta_ma(close_0,10))&(ta_ma(close_0,10)>ta_ma(close_0,20)),1,0) xg1=where((max(gua1, gub1))&(gua2)&(gua3)&(gua4),1,0)


上面的表达式报错:

<INFO: derived_feature_extractor: 提取失败 xg1=where((max(gua1, gub1))&(gua2)&(gua3)&(gua4),1,0): couldn't find matching opcode for 'and_bbi'>

标签

where函数
评论
  • 咋解决的?
  • where里面不能套where语句