当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:最佳波段(通达信公式 主图 源码 测试图)
软件名称:[B]最佳波段(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2022-07-23 00:15:18
软件简介:
最佳波段
AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AA*102/100;
通道2:=AA*(200-102)/100;
CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DD:=DMA(CLOSE,CC);
通道3:=(1+7/100)*DD;
通道4:=(1-7/100)*DD;
股价:=(H+L+C)/3;
股价运动:=股价,LINETHICK2,COLORBLUE;
趋势1:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(股价,3),3),3),3),3),3),3),3),3),3);
趋势2:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势1,3),3),3),3),3),3),3),3),3),3);
趋势3:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势2,3),3),3),3),3),3),3),3),3),3);
趋势4:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势3,3),3),3),3),3),3),3),3),3),3);
趋势5:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势4,3),3),3),3),3),3),3),3),3),3);
趋势6:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势5,3),3),3),3),3),3),3),3),3),3);
趋势7:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势6,3),3),3),3),3),3),3),3),3),3);
趋势8:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势7,3),3),3),3),3),3),3),3),3),3);
趋势9:=XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(XMA(趋势8,3),3),3),3),3),3),3),3),3),3);
趋势:=XMA(XMA(XMA(XMA(XMA(XMA(趋势9,3),3),3),3),3),3),LINETHICK1,COLORFFFFFF;
风险区1:趋势*1.1,COLOR0000FF;
风险区2:趋势*1.125,COLOR0000FF;
风险区3:趋势*1.15,COLOR00FFFF,POINTDOT;
良机区1:趋势*0.9,COLORLIBLUE;
良机区2:趋势*0.875,COLORLIBLUE;
良机区3:趋势*0.85,COLORFFFF00,POINTDOT;
上一:IF(风险区1>REF(风险区1,1), 风险区1,DRAWNULL),COLORYELLOW;
上二:IF(风险区2>REF(风险区2,1), 风险区2,DRAWNULL),COLORYELLOW;
上三:IF(风险区3>REF(风险区3,1), 风险区3,DRAWNULL),COLORYELLOW;
下一:IF(良机区1>REF(良机区1,1), 良机区1,DRAWNULL),COLORYELLOW;
下二:IF(良机区2>REF(良机区2,1), 良机区2,DRAWNULL),COLORYELLOW;
下三:IF(良机区3>REF(良机区3,1), 良机区3,DRAWNULL),COLORYELLOW;
DRAWBAND(上三,RGB(0,0,255),上二,DRAWNULL);
DRAWBAND(上二,RGB(255,255,0),上一,DRAWNULL);
DRAWBAND(下一,RGB(80,00,00),下二,DRAWNULL);
DRAWBAND(下二,RGB(255,255,255),下三,DRAWNULL);
DRAWBAND(上一,RGB(128,128,64), 下一,DRAWNULL);
{IF(趋势>REF(趋势,1), 趋势,DRAWNULL),COLORYELLOW,LINETHICK2}
T:=CLOSE/REF(CLOSE,1)*1000-1000;
QS2:=XMA(XMA(XMA(T,2),2),2);
QS4:=XMA(XMA(XMA(T,4),4),4);
QS6:=XMA(XMA(XMA(T,6),6),6);
{DRAWICON(CROSS(QS2,QS4),L,1);
DRAWICON(QS2<QS4 AND REF(QS2,1)>REF(QS4,1),H,2);}
风险:=((C-趋势)/趋势*100>10 AND C>通道3) OR ((H-趋势)/趋势*100>10 AND H>通道3 ) OR ((O-趋势)/趋势*100>10 AND O>通道3);
良机:=((C-趋势)/趋势*100<-10 AND C<通道4) OR ((O-趋势)/趋势*100<-10 AND O<通道4 ) OR((L-趋势)/趋势*100<-10 AND L<通道4);
QW1:=趋势>REF(趋势,1);
DRAWICON(良机 AND QW1 AND FILTER(良机,3),L*0.97,5);
QW2:=O<良机区3;
DRAWICON(QW2 AND FILTER(QW2,3),L*0.97,9);
E1:EXPMA(C,7),COLORGREEN;
E2:EXPMA(C,9),COLORGREEN;
E3:EXPMA(C,12),COLORGREEN;
E4:EXPMA(C,14),COLORGREEN;
E5:EXPMA(C,17),COLORGREEN;
E6:=EXPMA(C,50),COLORFF8800,LINETHICK2;
就:IF(E1>REF(E1,1),E1,DRAWNULL), COLOR0080FF;
这:IF(E2>REF(E2,1),E2,DRAWNULL), COLOR0080FF;
样:IF(E3>REF(E3,1),E3,DRAWNULL), COLOR0080FF;
做:IF(E4>REF(E4,1),E4,DRAWNULL), COLOR0080FF;
多:IF(E5>REF(E5,1),E5,DRAWNULL), COLOR0080FF;
DRAWKLINE(H,O,L,C);
STICKLINE(C>=O,H,L,0,1),COLOR0000FF;
STICKLINE(C>=O,C,O,2.8,0),COLOR0000BB;
STICKLINE(C>=O,C,O,2,0),COLOR0000DD;
STICKLINE(C>=O,C,O,1.2,0),COLOR0000EE;
STICKLINE(C>=O,C,O,0.4,0),COLOR0000FF;
STICKLINE(C<O,H,L,0,1),COLORFFFF00;
STICKLINE(C<O,C,O,2.8,0),COLOR999900;
STICKLINE(C<O,C,O,2,0),COLORBBBB00;
STICKLINE(C<O,C,O,1.2,0),COLORDDDD00;
STICKLINE(C<O,C,O,0.4,0),COLORFFFF00;
STICKLINE(C<O,H,L,0,0),COLORFFFF00;
A1:=(E1>REF(E1,1) AND E2>REF(E2,1) AND E3>REF(E3,1) AND E4>REF(E4,1) AND E5>REF(E5,1)) AND (REF(E1,1)<=REF(E1,2) OR REF(E2,1)<=REF(E2,2) OR REF(E3,1)<=REF(E3,2) OR REF(E4,1)<=REF(E4,2) OR REF(E5,1)<=REF(E5,2));
A2:=风险区1>REF(风险区1,1) AND 风险区2>REF(风险区2,1) AND 风险区3>REF(风险区3,1) AND 良机区1>REF(良机区1,1) AND 良机区2>REF(良机区2,1) AND 良机区3>REF(良机区3,1);
DRAWICON(A1 AND A2,L*0.99,25);
DRAWTEXT(风险 AND FILTER(风险,3),H+0.01,'←获利出局'),COLOR00FF00;
[url=http://www.70822.com/soft/sort013/sort05/down-163380.html]最佳波段(通达信公式 主图 源码 测试图)[/url]