@晚起的小虫,请教一下,在以下这段代码当中:
```
if not self.is_day_stop_loss_by_price:
h = attribute_history(self.index, self.day_count, unit='1d', fields=('close', 'high', 'low'), skip_paused=True)
low_price_130 = h.low.min()
high_price_130 = h.high.max()
if high_price_130 > self.multiple * low_price_130 and h['close'][-1] < h['close'][-4]*1 and h['close'][-1] > h['close'][-100]:
# 当日第一次输出日志
self.log_info("==> 大盘止损,%s指数前130日内最高价超过最低价2倍, 最高价: %f, 最低价: %f" %(get_security_info(self.index).display_name, high_price_130, low_price_130))
self.is_day_stop_loss_by_price = True
if self.is_day_stop_loss_by_price:
self.clear_position(context)
```
后两个条件:
```
h['close'][-1] < h['close'][-4]*1 and h['close'][-1] > h['close'][-100]
```
有什么意义呢?
2017-02-10