看股吧 www.kanguba.com [今日大盘指数 欧美全球股市行情 股票公式查询网站] 手机APP下载 | 手机访问 | 加入收藏 | 保存到桌面
看股吧
看股吧股票网-今日大盘指数 欧美全球股市行情 股票公式查询网站
股票查询: 行情分析 DDX指标 走势点评 股票公告 大事 主力持仓 股权质押 分红 大小非 十大股东 股本结构 高管持股 研报 高管 主营 龙虎榜 股吧
当前位置: 看股吧 > 股票公式 > 通达信公式
股票公式搜索:

通达信目标预测主图指标公式

2020/11/17 18:22:55

STICKLINE(C>O AND L>REF(H,1),CLOSE,OPEN,3,1),COLORYELLOW;
STICKLINE(C<O AND L>REF(H,1),CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(C>O AND H<REF(L,1),CLOSE,OPEN,3,1),COLORMAGENTA;
STICKLINE(C<O AND H<REF(L,1),CLOSE,OPEN,3,0),COLORGREEN;
VARA01:=BARSLAST(L>REF(H,1));
VARA02:=BARSLAST(H<REF(L,1));
STICKLINE(VARA01>0,REF(L,VARA01),REF(L,VARA01),2,0),COLORMAGENTA;
STICKLINE(VARA01>0,REF(H,VARA01+1),REF(H,VARA01+1),2,0),COLORMAGENTA;
STICKLINE(VARA02>0,REF(H,VARA02),REF(H,VARA02),2,0),COLORGREEN;
STICKLINE(VARA02>0,REF(L,VARA02+1),REF(L,VARA02+1),2,0),COLORGREEN;
{ABC}N:=(1,99,10);
A1:=REF(HIGH,3)=HHV(HIGH,N);
B1:=FILTER(A1,3);
C1:=BACKSET(B1,3+1);
D1:=FILTER(C1,3);{高点}
A2:=REF(LOW,3)=LLV(LOW,N);
B2:=FILTER(A2,3);
C2:=BACKSET(B2,3+1);
D2:=FILTER(C2,3);{低点}
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;{高低点出现在同一K线上时可作取舍}
H1:=(D1 AND NOT(D2 AND E1>=E2)) OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
H2:=D1 AND NOT(D2 AND E1>=E2);
L1:=D2 AND NOT(D1 AND E1=E2);
X1:=REF(BARSLAST(H1),1)+1;
F1:=BACKSET(H1 AND COUNT(L1,X1)>0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1>REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1>REF(I1,1);{过滤后低点}
L2:=LD OR BARSTATUS=2 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2)>0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2>REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2>REF(I2,1);{过滤后高点}
{DRAWLINE(LD,L,HD,H,0),COLORYELLOW;
DRAWLINE(HD,H,LD,L,0),COLORYELLOW;}{转折画线}
J1:=BACKSET(BARSTATUS=2,MIN(BARSLAST(HD),BARSLAST(LD))+1);
J2:=J1>REF(J1,1);
UU:=BACKSET(BARSTATUS=2,BARSLAST(LD)+1);
VV:=UU>REF(UU,1);
WW:=BACKSET(VV,REF(BARSLAST(LD),1)+2);
XX:=WW>REF(WW,1);
WWQ:=BACKSET(XX,REF(BARSLAST(LD),1)+2);
XXQ:=WWQ>REF(WWQ,1);
下轨:DRAWLINE(XX,L,VV,L,1),COLORLIGRAY;{画趋势线}
UU2:=BACKSET(BARSTATUS=2,BARSLAST(HD)+1);
VV2:=UU2>REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2>REF(WW2,1);
WW3Q:=BACKSET(XX2,REF(BARSLAST(HD),1)+2);
XX3Q:=WW3Q>REF(WW3Q,1);
WW4Q:=BACKSET(XX3Q,REF(BARSLAST(HD),1)+2);
XX4Q:=WW4Q>REF(WW4Q,1);
上轨:DRAWLINE(XX2,H,VV2,H,1),COLORLIGRAY;{画趋势线}
Q0:=BARSLAST(XX2>0);
Q1:=BARSLAST(XX>0);
Q2:=BARSLAST(WW2>0);
Q3:=BARSLAST(VV>0);
Q4:=BARSLAST(XXQ>0);
Q5:=BARSLAST(XX3Q>0);
OA周:=Q0-Q1+1;AB周:=Q1-Q2+1;BC周:=Q2-Q3+1;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)>Q4,0.80,0.01,1,STRCAT('◆―【A】: ',STRCAT(CON2STR(OA周,0),'天')))COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)>Q4,0.80,0.04,1,STRCAT('【A】―【B】: ',STRCAT(CON2STR(AB周,0),'天')))COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)>Q4,0.80,0.07,1,STRCAT('【B】―【C】: ',STRCAT(CON2STR(BC周,0),'天')))COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)>Q4,0.80,0.10,1,STRCAT('【C】―--: ',STRCAT(CON2STR(Q3,0),'天')))COLORYELLOW;
{123周期}
Z01:=Q1-Q0+1;Z12:=Q0-Q3+1;Z23:=Q3-Q2+1;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)<Q4,0.80,0.01,1,STRCAT('低1―高2: ',STRCAT(CON2STR(Z01,0),'天')))COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)<Q4,0.80,0.04,1,STRCAT('高2―低2: ',STRCAT(CON2STR(Z12,0),'天')))COLOR00FF00;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)<Q4,0.80,0.07,1,STRCAT('低2―高3: ',STRCAT(CON2STR(Z23,0),'天')))COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND(Q5)<Q4,0.80,0.10,1,STRCAT('高3―-- : ',STRCAT(CON2STR(Q2,0),'天')))COLORYELLOW;
DRAWTEXT( VV=1 AND Q0>Q1,L,'【C】')COLORWHITE;
DRAWTEXT(VV2=1 AND Q0>Q1,H,'【B】')COLORWHITE;
DRAWTEXT( XX=1 AND Q0>Q1,L,'【A】')COLORWHITE;
{DRAWTEXT(XX2=1 AND Q5>Q4 ,H,'◆')COLORWHITE;}
IF(XX2=1 AND Q5>Q4 ,H,DRAWNULL),COLORGREEN,LINETHICK5,CIRCLEDOT;
{DRAWTEXT(XXQ=1 AND Q5>Q4 ,L,'★')COLORWHITE;}
IF(XXQ=1 AND Q5>Q4 ,L,DRAWNULL),COLORRED,LINETHICK5,CIRCLEDOT;
DRAWLINE(XXQ=1 AND Q5>Q4 ,L,XX2=1 AND Q5>Q4 ,H,0),COLORRED;
DRAWLINE(VV2=1 AND Q0>Q1,H, VV=1 AND Q0>Q1,L,0),COLORGREEN;
DRAWLINE( XX=1 AND Q0>Q1,L,VV2=1 AND Q0>Q1,H,0),COLORRED;
DRAWLINE(XX2=1 AND Q5>Q4 ,H, XX=1 AND Q0>Q1,L,0),COLORGREEN;
DRAWTEXT( VV=1 AND Q0<Q1,L,'(低2)')COLORWHITE;
DRAWTEXT(VV2=1 AND Q0<Q1,H,'(高3)')COLORWHITE;
DRAWTEXT(XX2=1 AND Q0<Q1,H,'(高2)')COLORWHITE;
DRAWTEXT(XX=1 AND Q5<Q4,L,'(低1)')COLORWHITE;
DRAWTEXT(XX3Q=1 AND Q5<Q4,H,'(高1)')COLORWHITE;
DRAWLINE(XX3Q=1 AND Q5<Q4,H,XX=1 AND Q5<Q4,L,0),COLORGREEN;
DRAWLINE(XX=1 AND Q5<Q4,L,XX2=1 AND Q0<Q1,H,0),COLORRED;
DRAWLINE(XX2=1 AND Q0<Q1,H, VV=1 AND Q0<Q1,L,0),COLORGREEN;
DRAWLINE(VV=1 AND Q0<Q1,L,VV2=1 AND Q0<Q1,H,0),COLORRED;
笔:DRAWLINE(J2,IF(HD,H,L),BARSTATUS=2,IF(BARSLAST(HD)>BARSLAST(LD),H,L),0),DOTLINE,COLORYELLOW;
TL:=1000000+160526;DRAWTEXT(DATE=TL ,L*0.997,'DA')COLORCYAN;
TH:=1000000+160606;DRAWTEXT(DATE=TH ,H,'DB')COLORCYAN,DRAWABOVE;
TC:=1000000+160624;DRAWTEXT(DATE=TC ,L*0.997,'DC')COLORCYAN;
TO:=1000000+160413;DRAWTEXT(DATE=TO ,H,'DO')COLORCYAN DRAWABOVE;
IF(DATE=TO ,H,DRAWNULL),COLORCYAN,LINETHICK5,CIRCLEDOT;
IF(DATE=TC ,L,DRAWNULL),COLORWHITE,LINETHICK5,CIRCLEDOT;
AL:=IF(REFDATE(CLOSE,TL)>REFDATE(CLOSE,TH),REFDATE(HIGH,TL),REFDATE(LOW,TL));
BH:=IF(REFDATE(CLOSE,TL)>REFDATE(CLOSE,TH),REFDATE(LOW,TH),REFDATE(HIGH,TH));
CZF:=IF(REFDATE(CLOSE,TL)>REFDATE(CLOSE,TH),REFDATE(HIGH,TC),REFDATE(LOW,TC));
DJB:=IF(REFDATE(CLOSE,TL)>REFDATE(CLOSE,TH),REFDATE(LOW,TO),REFDATE(HIGH,TO));
OP:=BH-AL+CZF;
COP:=0.618*(BH-AL)+CZF;
XOP:=IF((1.618*(BH-AL)+CZF)<0,OP,1.618*(BH-AL)+CZF);
TODAY:=DATE;
STICKLINE(DATE=TC,CZF,XOP,0,-1),COLORYELLOW;
DRAWLINE(DATE=TC,COP,DATE=TODAY,COP,1),DOTLINE,COLORYELLOW;
DRAWLINE(DATE=TC,OP,DATE=TODAY,OP,1),DOTLINE,COLORYELLOW;
DRAWLINE(DATE=TC,XOP,DATE=TODAY,XOP,1),DOTLINE,COLORYELLOW;
DRAWTEXT(DATE=TC,COP*1.002,'COP=0.618'),COLORYELLOW ;
DRAWTEXT(DATE=TC,OP*1.002,'OP=1.000'),COLORYELLOW;
DRAWTEXT(DATE=TC,XOP*1.002,'XOP=1.618'),COLORYELLOW ;
DRAWNUMBER(DATE=TC,COP,COP),COLORYELLOW;
DRAWNUMBER(DATE=TC,OP,OP),COLORYELLOW;
DRAWNUMBER(DATE=TC,XOP,XOP),COLORYELLOW;
DRAWLINE(DATE=TO,DJB,DATE=TL,AL,0) ,COLORYELLOW;
DRAWLINE(DATE=TL,AL,DATE=TH,BH,0) ,COLORYELLOW;
DRAWLINE(DATE=TH,BH,DATE=TC,CZF,0) ,COLORYELLOW;

看股 吧公式 www.kan guba.com

其它股票公式列表
看股吧查股导航:个股行情分析查询 股票DDX指标查询 走势点评 股票公告查询 大事提醒 股权质押查询 股票分红查询 解禁查询 高管持股 高管查询
光力科技 300480+8.52% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
宁波韵升 600366+8.26% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
天宜上佳 688033+8.18% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
双飞股份 300817+8.04% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
科力远 600478+8.03% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
聚辰股份 688123+7.98% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
秀强股份 300160+7.96% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
上能电气 300827+7.95% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
博众精工 688097+7.91% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
全信股份 300447+7.77% 公告 DDX在线 走势点评 限售解禁 高管 股权质押
看股网力求但不保证数据的完全准确,不对因网站全部内容或部分内容而引致的盈亏承担任何责任,本站所有内容仅供参考。
本站不提供任何股票服务,站内广告不代表看股吧的观点,由此引起的一切法律责任均与本站无关,请股民自行识别判断,谨慎投资,预防上当受骗!
联系我们:nlfen9@hotmail.com
手机版(手机访问当前页面) | 手机APP下载 | 电脑端(适合电脑或大屏用户) | 备案号:沪ICP备2024045114号-121