求帮忙编写缠论笔的指标
先做K先包含处理K线包含关系:high、low 为第i根K线的高点和低点。high> high-1 且 low >low -1,方向向上;high< high-1 且 low <low -1,方向向下;(high>= high-1 且 low <=low -1) 或 (high<= hi-1 且 low >=low -1),包含关系。当第i-1根K线方向向上,包含处理后K线为high=max(high,high-1),low =max(low ,low -1);当第i-1根K线方向向下,包含处理后K线为high=min(high,high-1),low =min(low ,low -1);然后用包含完毕的K线写成笔,笔是顶分型和底分型之间需要隔一根K线 顶分型 high>high,low>low,high>high,low>low;
底分型low<low,high<high,low<low,high<high;
页:
[1]