当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是转折点(无源码的请下载附件导入)
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {通达信用的:}
- {INPUT: N(3,1,100);}
- N:=3;
- {转折点}
- Z_1:=(EMA(C,N)-REF(EMA(C,N),1))/REF(EMA(C,N),1)*100;
- Z_2:=IF(Z_1<0,REF(Z_1,BARSLAST(CROSS(0,Z_1))+1),0);
- Z_3:=IF(Z_1>0,REF(Z_1,BARSLAST(CROSS(0,Z_1))+1),0);
- Z_4:=IF(CROSS(0,Z_1),H,L);
- DRAWLINE(CROSS(Z_2,Z_3),H,CROSS(Z_3,Z_2),L,0),LINETHICK2,COLORWHITE;
- DRAWLINE(CROSS(Z_3,Z_2),L,CROSS(Z_2,Z_3),H,0),LINETHICK2,COLORMAGENTA;
- DRAWLINE(CROSS(0,Z_1)||CROSS(Z_1,0),Z_4,ISLASTBAR,Z_4,0),LINETHICK2,COLORGREEN;
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- {飞狐用的:}
- input: N(3,1,100);
- {转折点}
- Z_1:=(EMA(C,N)-REF(EMA(C,N),1))/REF(EMA(C,N),1)*100;
- Z_2:=IF(Z_1<0,REF(Z_1,BARSLAST(CROSS(0,Z_1))+1),0);
- Z_3:=IF(Z_1>0,REF(Z_1,BARSLAST(CROSS(0,Z_1))+1),0);
- Z_4:=if(CROSS(0,Z_1),H,L);
- DRAWLINE(CROSS(Z_2,Z_3),h,CROSS(Z_3,Z_2),L,0),LINETHICK2,COLORWHITE;
- DRAWLINE(CROSS(Z_3,Z_2),l,CROSS(Z_2,Z_3),h,0),LINETHICK2,COLORMAGENTA;
- DRAWLINE(CROSS(0,Z_1)||CROSS(Z_1,0),Z_4,ISLASTBAR,Z_4,0),LINETHICK2,COLORGREEN;
上一篇:破解通达信解盘难题 - 东家《系统买点》 下一篇:分时看盘 5分钟T+0