Board logo

标题: 蜡烛图组合与形态量化之【连涨N天与连跌N天】 [打印本页]

作者: 龙听    时间: 2021-9-7 13:46     标题: 蜡烛图组合与形态量化之【连涨N天与连跌N天】

k线形态量化之连涨N天要素:

1、N天K线都是阳线;

2、N天高点依次抬高;

3、N天低点依次抬高;

(这里不考虑其中有高有低,以及其它的降低要求的可能。仅做最严谨的思路设计)。

k线形态量化之连跌N天要素:

1、N天K线都是阴线;

2、N天高点依次下降;

3、N天低点依次下降;
作者: 龙听    时间: 2021-9-8 06:16

红三兵形态量化程式码:
  1. {3 red Soldier start}

  2. condition1 = Close > Open and close[1] > open[1] and Close[2] > open[2]; // 3 red bar
  3. condition2 = high > high[1] and high[1] > high[2]; // high more higher
  4. condition3 = Low > low[1] and low[1] > low[2] ; //low more higher

  5. {3 red Soldier end}
复制代码



黑三兵形态量化程式码:

  1. ​{3 black Soldier start}

  2. condition1 = Close < Open and close[1] < open[1] and Close[2] < open[2]; // 3 black bar
  3. condition2 = high < high[1] and high[1] < high[2]; // high more lower
  4. condition3 = Low < low[1] and low[1] < low[2] ; //low more lower

  5. {3 black Soldier end}
复制代码

作者: 龙听    时间: 2021-9-8 06:17

第224节:蜡烛图组合与形态量化之【红三兵、黑三兵/三连阳、三连阴】设计交易系统及效果展示:http://www.qhlt.cn/thread-113674-1-1.html




欢迎光临 龙听期货论坛 (http://www.qhlt.cn/) Powered by Discuz! 7.2