Categories
Dairy

2017-10-21

考虑做一个股票自动交易软件。
需要的数据: rs m10 m20
定义的关键点: nova buy add sell
定义的状态:dark observe hold heavyhold  lost
变量: pre_stat next_stat
策略: 
when nova:
switch: pre_stat
  dark: observe
  lost: observe
when buy:
  switch: pre_stat
  observe: next_stat = hold
when add
  switch: pre_stat
  hold: heavy_hold
when sell
  switch: pre_stat
  heavy_hold: lost
  hold: lost

Leave a Reply