主图+源码+图
-
相关简介:C/C++ Code 复制内容到剪贴板 N11008 M:=INTPART(3*N/5); AAA:=REF(H,M)=HHV(H,2*M+1); QYY:=BACKSET(AAA,M+1); CCC:=FILTER(QYY,M)ANDH=HHV(H,M+1); DDDD:=BARSLAST(CCC),NODRAW; GDTSS:=IF(CCC,CURRBARSCOUNT,0); DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS);
-
文章来源:择股网作者:股海网发布时间:2009-11-04浏览次数:
C/C++ Code复制内容到剪贴板
- N 1 100 8
- M:=INTPART(3*N/5);
- AAA:=REF(H,M)=HHV(H,2*M+1);
- QYY:=BACKSET(AAA,M+1);
- CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);
- DDDD:=BARSLAST(CCC),NODRAW;
- GDTSS:=IF(CCC,CURRBARSCOUNT,0);
- DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD),GDTSS);
- GDCS11:=CONST(DINGBUTSS);
- DINGBUTS11:=REF(DINGBUTSS,DDDD+1);
- GDCS22:=CONST(DINGBUTS11);
- AA11:=REF(L,M)=LLV(L,2*M+1);
- QY11:=BACKSET(AA11,M+1);
- CC11:=FILTER(QY11,M) AND L=LLV(L,M+1);
- DD11:=BARSLAST(CC11);
- DDTSS:=IF(CC11,CURRBARSCOUNT,0);
- DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);
- DDCS11:=CONST(DDTS11);
- DDTS22:=REF(DDTS11,DD11+1);
- DDCS22:=CONST(DDTS22);
- 线1:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORFFAA99,LINETHICK1;
- 线2:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLOR9966FF,LINETHICK1;
- 预报:H>=线1 AND REF(H<线1,1),NODRAW; 预警:L<=线2 AND REF(L>线2 ,1),NODRAW;
- STICKLINE(预报,O,C,3,0),COLOR00FFFF; STICKLINE(预警,O,C,3,0),COLORFF0033;
优化后的划线预警
C/C++ Code复制内容到剪贴板
- M:=INTPART(3*8/5);
- AAA:=REF(H,M)=HHV(H,2*M+1);
- QYY:=BACKSET(AAA,M+1);
- CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);
- AA11:=REF(L,M)=LLV(L,2*M+1);
- QY11:=BACKSET(AA11,M+1);
- CC11:=FILTER(QY11,M) AND L=LLV(L,M+1);
- DD11:=BARSLAST(CC11);
- DDTSS:=IF(CC11,CURRBARSCOUNT,0);
- DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);
- DDCS11:=CONST(DDTS11);
- DDTS22:=REF(DDTS11,DD11+1);
- DDCS22:=CONST(DDTS22);
- 线2:=DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLOR9966FF,LINETHICK1;
- 预警:L<=线2 AND REF(L>线2 ,1);
上一篇:风翔长波段
下一篇:参量导数DF_MACD_KDJ