蜡烛图组合与形态量化之【连涨N天与连跌N天】
[b]k线形态量化之连涨N天要素:[/b]1、N天K线都是阳线;
2、N天高点依次抬高;
3、N天低点依次抬高;
(这里不考虑其中有高有低,以及其它的降低要求的可能。仅做最严谨的思路设计)。
[b]k线形态量化之连跌N天要素:[/b]
1、N天K线都是阴线;
2、N天高点依次下降;
3、N天低点依次下降; 红三兵形态量化程式码:
[code]
{3 red Soldier start}
condition1 = Close > Open and close[1] > open[1] and Close[2] > open[2]; // 3 red bar
condition2 = high > high[1] and high[1] > high[2]; // high more higher
condition3 = Low > low[1] and low[1] > low[2] ; //low more higher
{3 red Soldier end}[/code]
黑三兵形态量化程式码:
[code]
{3 black Soldier start}
condition1 = Close < Open and close[1] < open[1] and Close[2] < open[2]; // 3 black bar
condition2 = high < high[1] and high[1] < high[2]; // high more lower
condition3 = Low < low[1] and low[1] < low[2] ; //low more lower
{3 black Soldier end}[/code] 第224节:蜡烛图组合与形态量化之【红三兵、黑三兵/三连阳、三连阴】设计交易系统及效果展示:[url]http://www.qhlt.cn/thread-113674-1-1.html[/url]
页:
[1]