1.通达信炒股软件中5.10.20日均线粘连在一起的股票公式公式公式怎样编辑
2.通达信WR指标中的两线在当天值在80以上粘合的选股公式
3.两个ç¹è¿çº¿çè¡ç¥¨å
¬å¼
4.炒股软件:请教,相邻两个波段的两线两线高点用直线连接,公式怎么编写?通达信的接近,谢谢
通达信炒股软件中5.10.20日均线粘连在一起的源码公式怎样编辑
计算两两之差,它们的指标和(C)足够小就可以了。例如:
MCA:= MA(C,股票公式公式aeshelper java 源码 5); MCB:= MA(C, ); MCD:= MA(C, );
CAB:= ABS(MCA -MCB); CAD:= ABS(MCA -MCD); CBD:= ABS(MCB -MCD);
C: (CAB + CAD + CBD) * / C;
通达信WR指标中的两线在当天值在以上粘合的选股公式
N:=;N1:=6; WR1:=*(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,两线两线N)-LLV(LOW,接近N)); WR2:=*(HHV(HIGH,源码N1)-CLOSE)/(HHV(HIGH,指标N1)-LLV(LOW,股票公式公式N1)); MAX(WR1,两线两线WR2)/MIN(WR1,接近WR2)= AND WR2>=;
通达信软件是源码多功能的证券信息平台,与其他行情软件相比,指标有简洁的界面和行情更新速度较快等优点。通达信允许用户自由划分屏幕,并规定每一块对应哪个内容。至于快捷键,传奇手游源码端也是通达信的特色之一。通达信还有一个有用的功能,就是“在线人气”,可以了解哪些是当前关注,哪些是持续关注,又有哪些是当前冷门,可以更直接了解各个股票的关注度。
深圳市财富趋势科技有限责任公司是一家资深的证券业高科技企业,致力于证券分析系统和计算机通讯系统的乖离率指标源码研究开发,自年成立以来,经过蓬勃发展,已经成为该行业的典范。其开发的行情源被同行业多企业采用,是市场上非常主流的拥有自主开发证券类软件能力的企业。深圳市财富趋势科技有限责任公司在证券行业的著名品牌是“通达信”。
一、通达信WR线粘合选股公式
WR1,WR2粘合(尖尖头)。android 串口通信源码
N:=;N1:=;N2:=;M:=2;
WR1:*-(HHV(HIGH,N)-CLOSE)/(HHV(HIGH,N)-LLV(LOW,N)),COLORGREEN;
WR2:*-(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1));
WR3:*-(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,域名交易网源码N2)-LLV(LOW,N2));
底部线:-.,COLORYELLOW,LINETHICK2;
突破线:-.,COLORWHITE,LINETHICK2;
暴涨线:-.,COLORRED,LINETHICK2;
上:=MAX(WR1,MAX(WR2,WR3));
下:=MIN(WR1,MIN(WR2,WR3));
三线粘合:LLV((上-下)/下*二、股票wr超买是什么意思?
wr指标又称威廉指标,表示当天的收盘价在过去一段日子的全部价格范围内所处的相对位置,是一种兼具超买超卖和强弱分界的指标。它主要的作用在于辅助其他指标确认讯号,其中股票wr超买是指3日wr和日wr和日wr三条wr指标线全部高于,表示市场处于极端超买状态,行情即将见长期顶部,是一种卖出信号,投资者应进行清仓操作。
wr指标进入超买区时,表示多方力量已经强盛到极致,面临后续力量不足的风险,股价继续上涨的空间已经很小,相反一旦多方力量稍有减弱,股价会受到空方的持续打压而下跌,是一个看空信号,投资者可以在超买区进行清仓操作。
而wr超卖是指3日wr和日wr和日wr三条wr指标线全部低于,表示市场处于极端超卖状态,行情即将见长期底部,是一种买入信号。
两个ç¹è¿çº¿çè¡ç¥¨å ¬å¼
ææè¿ä¸ªå ¬å¼ãinput: k(2,0,2),n(,1,),p1(3,1,);
BBI:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,)+MA(CLOSE,))/4,pointdot,COLORFFFFFF;
BBI2:BBI+3*STD(BBI,),pointdot,COLORmagenta;
BBI3:BBI-3*STD(BBI,),pointdot,COLORblue;
B1:=MA(CLOSE,1);
B2:=SMA(SMA(SMA(B1,2,1),2,1),2,1) ;
SMA2:=MA(B2,3) ;
FILLRGN(b2,sma2,b2>sma2),colorred;
FILLRGN(b2,sma2,b2<sma2),colorgreen;
var9Q:=c= hhv(c,4)and (ref(c,1)>=ref(c,2) or ref(c,1)>=ref(c,3))
or ref(c,1)=hhv(c,4) and close>=ref(c,2)
or ref(c,2)=hhv(c,4) and ref(c,3)=llv(c,4) and c>=ref(c,1)
or ref(c,3)=hhv(c,4) and c>=ref(c,1) and c>=ref(c,2);
红æ:var9Q,colorff,LINETHICK0;
varaQ:=c=hhv(c,4) and ref(c,1)=llv(c,4);
ç²å:varaQ,colorffff,LINETHICK0;
varbQ:=c=llv(c,4) and (ref(c,1)<ref(c,2) or ref(c,1)<ref(c,3))
or ref(c,1)=llv(c,4) and c<ref(c,2)
or ref(c,2)=llv(c,4) and ref(c,1)<>hhv(c,4) and c<ref(c,1)
or ref(c,3)=llv(c,4) and c<ref(c,1) and c<ref(c,2);
ç°è·:varbQ,color,LINETHICK0;
varcQ:=ref(c,1)=llv(c,4) and c>=ref(c,2) or ref(c,2)=llv(c,4)
and ref(c,1)<=ref(c,3) and ref(c,2)<ref(c,4) and c>=ref(c,1);
绿买:varcQ,colorff,LINETHICK0;
vardQ:=ref(c,1)=hhv(c,4) and c<ref(c,2)
or (ref(c,2)=hhv(c,4) and ref(c,1)>ref(c,3)
or ref(c,3)=hhv(c,4) and ref(c,1)>ref(c,2))
and ref(c,2)>=ref(c,4) and c<ref(c,1);
èæ:vardQ,colorff,LINETHICK0;
if DATATYPE>1 then begin;
xxx1:=(C+L+H)/3;
xxx2:EMA(xxx1,6),colorFFFFFF,linethick1;
xxx3:EMA(xxx2,5),colorFFFF,linethick1;
VAR:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR:=CROSS(VAR,0.9);
VAR:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR:=CROSS(VAR,0.9);
åå: REF(HIGH,BARSLAST(Var)), POINTDOT,ColorEAB5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(Var)),REF(HIGH,BARSLAST(Var)),5,0),ColorEAB5;
æ¯æ: REF(LOW,BARSLAST(Var)), POINTDOT,Colorb4ff;
STICKLINE(CLOSE,REF(LOW,BARSLAST(Var)),REF(LOW,BARSLAST(Var)),5,0),Colorb4ff;
ä¸æ¡£çº¿:=(((CLOSE - LLV(LOW,)) / (HHV(HIGH,) - LLV(LOW,))) * );
aRSV:=SMA(ä¸æ¡£çº¿,3,1);
aK:=SMA(aRSV,3,1);
aD:=((3 * aRSV) - (2 * aK));
aJ:=(((CLOSE - LLV(LOW,)) / (HHV(HIGH,) - LLV(LOW,))) * );
aRSV:=SMA(aJ,3,1);
aK:=SMA(aRSV,3,1);
aD:=((3 * aRSV) - (2 * aK));
æåä½:=IF(CROSS(aD,aD),HIGH,REF(HIGH,BARSLAST(CROSS(aD,aD)))){ ,LINETHICK2,COLORFFFFFF};
åº:=LLV(HIGH,){ ,COLORFF,LINETHICK2};
STICKLINE(BARSTATUS=2 ,æåä½,æåä½,,1),LINETHICK1,COLORFFFFFF;
DRAWTEXT(BARSTATUS=2 ,æåä½,' æå'),COLORFFFFFF,VALIGN1;
STICKLINE(BARSTATUS=2 ,åº,åº,,1),COLORFF,LINETHICK1;
DRAWTEXT(BARSTATUS=2 ,åº,' åºçº¿'),COLORFF,VALIGN0;
END;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),COLORFF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),COLORFF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),COLORFF;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLORFF;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLORff;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORff;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORffbb;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORffcc;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORffdd;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORffee;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORbb;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORdd;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORff;
stickline(var9Q,c,(o+c)/2,7,0),color;
stickline(var9Q,c,(o+c)/2,6,0),color;
stickline(var9Q,c,(o+c)/2,5,0),coloraa;
stickline(var9Q,c,(o+c)/2,4,0),colorcc;
stickline(var9Q,c,(o+c)/2,2,0),colorff;
stickline(var9Q,c,(o+c)/2,0,0),COLORffffff;
stickline(varaQ,c,(o+c)/2,7,0),colorffff;
stickline(varaQ,c,(o+c)/2,6,0),colorffff;
stickline(varaQ,c,(o+c)/2,5,0),colorffff;
stickline(varaQ,c,(o+c)/2,4,0),colorffff;
stickline(varaQ,c,(o+c)/2,3,0),colorffff;
stickline(varaQ,c,(o+c)/2,2,0),colorffbbff;
stickline(varaQ,c,(o+c)/2,1,0),colorffddff;
stickline(varbQ,c,(o+c)/2,7,0),color;
stickline(varbQ,c,(o+c)/2,6,0),color;
stickline(varbQ,c,(o+c)/2,5,0),color;
stickline(varbQ,c,(o+c)/2,4,0),color;
stickline(varbQ,c,(o+c)/2,3,0),colorbbbbbb;
stickline(varbQ,c,(o+c)/2,2,0),colordddddd;
stickline(varbQ,c,(o+c)/2,1,0),colorffffff;
stickline(varcQ,o,(o+c)/2,7,0),color;
stickline(varcQ,o,(o+c)/2,6,0),color;
stickline(varcQ,o,(o+c)/2,5,0),color;
stickline(varcQ,o,(o+c)/2,4,0),color;
stickline(varcQ,o,(o+c)/2,3,0),colorbb;
stickline(varcQ,o,(o+c)/2,2,0),colordd;
stickline(varcQ,o,(o+c)/2,1,0),colorff;
stickline(vardQ,o,(o+c)/2,7,0),colorff;
stickline(vardQ,o,(o+c)/2,6,0),colorff;
stickline(vardQ,o,(o+c)/2,5,0),colorff;
stickline(vardQ,o,(o+c)/2,4,0),colorff;
stickline(vardQ,o,(o+c)/2,3,0),colorff;
stickline(vardQ,o,(o+c)/2,2,0),colorffbb;
stickline(vardQ,o,(o+c)/2,1,0),colorffdd;
V7:=BARSTATUS=2;
V8:=(REF(HIGH,n) = HHV(HIGH,((2 * n) + 1)));
V9:=FILTER(V8,n);
VA:=BACKSET(V9,(n + 1));
VB:=FILTER(VA,n);
VC:=(VB OR V7);
VD:=(REF(LOW,n) = LLV(LOW,((2 * n) + 1)));
VE:=FILTER(VD,n);
VF:=BACKSET(VE,(n + 1));
V:=FILTER(VF,n);
V:=(V AND NOT(VB));
V:=BACKSET(VC,(REF(BARSLAST(V),1) + 1));
V:=(V > REF(V,1));
V:=BACKSET(V,2);
V:=(V > REF(V,1));
V:=BACKSET((V AND (COUNT(VC,(REF(BARSLAST(V),1) + 2)) = 0)),(REF(BARSLAST(V),1) + 2));
V:=(V > REF(V,1));
V:=BACKSET((V AND (COUNT(VC,(REF(BARSLAST(V),1) + 2)) = 0)),(REF(BARSLAST(V),1) + 2));
V:=(V > REF(V,1));
V1A:=IF(VC,COUNT(V,(REF(BARSLAST(VC),1) + 1)),0);
V1B:=IF(((V1A = 1) AND VC),BARSLAST(V),0);
V1C:=IF((VC AND (REF(LOW,BARSLAST(V)) >= REF(LOW,BARSLAST(V)))),BARSLAST(V),BARSLAST(V));
V1D:=IF(((V1A = 2) AND VC),V1C,0);
V1E:=IF(((V1A >= 3) AND VC),IF((VC AND (REF(LOW,V1C) >= REF(LOW,BARSLAST(V)))),BARSLAST(V),V1C),0);
V1F:=((V1B + V1D) + V1E);
V:=BACKSET(VC,V1F);
V:=(V > REF(V,1));
V:=BACKSET(V,2);
V:=(V > REF(V,1));
V:=(V OR V7);
V:=BACKSET(V,(REF(BARSLAST(VC),1) + 1));
V:=(V > REF(V,1));
V:=BACKSET(V,2);
V:=(V > REF(V,1));
V:=BACKSET((V AND (COUNT(V,(REF(BARSLAST(VC),1) + 2)) = 0)),(REF(BARSLAST(VC),1) + 2));
V2A:=(V > REF(V,1));
V2B:=BACKSET((V2A AND (COUNT(V,(REF(BARSLAST(VC),1) + 2)) = 0)),(REF(BARSLAST(VC),1) + 2));
V2C:=(V2B > REF(V2B,1));
V2D:=IF(V,COUNT(VB,(REF(BARSLAST(V),1) + 1)),0);
V2E:=IF(((V2D = 1) AND V),BARSLAST(V),0);
V2F:=IF((V AND (REF(HIGH,BARSLAST(V)) <= REF(HIGH,BARSLAST(V2A)))),BARSLAST(V2A),BARSLAST(V));
V:=IF(((V2D = 2) AND V),V2F,0);
V3B:=IF(((V2D >= 3) AND V),IF((V AND (REF(HIGH,V2F) <= REF(HIGH,BARSLAST(V2C)))),BARSLAST(V2C),V2F),0);
V3C:=((V2E + V) + V3B);
V3D:=BACKSET(V,V3C);
V3E:=(V3D > REF(V3D,1));
AA:=BACKSET(V3E,2);
AAA:=(AA > REF(AA,1));
BB:=BACKSET(V7,(BARSLAST(AAA) + 1));
CC1:=(BB > REF(BB,1));
CC:=BACKSET(CC1,(REF(BARSLAST(AAA),1) + 2));
AAA2:=(CC > REF(CC,1));
DRAWLINE(K=1 AND AAA2,HIGH,K=1 AND CC1,HIGH,1),POINTDOT,colorAAAA;
BB2:=(REF(HIGH,4) = HHV(HIGH,((2 * 4) + 1)));
CC:=FILTER(BB2,4);
CC2:=BACKSET(CC,(4 + 1));
EA:=FILTER(CC2,4);
EB:=(EA OR BARSTATUS=2);
A6:=(REF(LOW,4) = LLV(LOW,((2 * 4) + 1)));
EE:=FILTER(A6,4);
FF1:=BACKSET(EE,(4 + 1));
EE2:=FILTER(FF1,4);
FF2:=(EE2 AND NOT(EA));
EE3:=BACKSET(EB,(REF(BARSLAST(FF2),1) + 1));
FF3:=(EE3 > REF(EE3,1));
JS:=BACKSET(FF3,2);
G1:=(JS > REF(JS,1));
GA:=BACKSET((G1 AND (COUNT(EB,(REF(BARSLAST(FF2),1) + 2)) = 0)),(REF(BARSLAST(FF2),1) + 2));
G2:=(GA > REF(GA,1));
G3:=BACKSET((G2 AND (COUNT(EB,(REF(BARSLAST(FF2),1) + 2)) = 0)),(REF(BARSLAST(FF2),1) + 2));
GG:=(G3 > REF(G3,1));
JA:=IF(EB,COUNT(FF2,(REF(BARSLAST(EB),1) + 1)),0);
JB:=IF(((JA = 1) AND EB),BARSLAST(G1),0);
JJ:=IF((EB AND (REF(LOW,BARSLAST(G1)) >= REF(LOW,BARSLAST(G2)))),BARSLAST(G2),BARSLAST(G1));
LD:=IF(((JA = 2) AND EB),JJ,0);
LD1:=IF(((JA >= 3) AND EB),IF((EB AND (REF(LOW,JJ) >= REF(LOW,BARSLAST(GG)))),BARSLAST(GG),JJ),0);
HEA:=((JB + LD) + LD1);
HEB:=BACKSET(EB,HEA);
HEE:=(HEB > REF(HEB,1));
HFF1:=BACKSET(HEE,2);
HEE2:=(HFF1 > REF(HFF1,1));
HFF2:=(HEE2 OR BARSTATUS=2);
HEE3:=BACKSET(HFF2,(REF(BARSLAST(EB),1) + 1));
HFF3:=(HEE3 > REF(HEE3,1));
HJS:=BACKSET(HFF3,2);
HG1:=(HJS > REF(HJS,1));
HGA:=BACKSET((HG1 AND (COUNT(HFF2,(REF(BARSLAST(EB),1) + 2)) = 0)),(REF(BARSLAST(EB),1) + 2));
HG2:=(HGA > REF(HGA,1));
HG3:=BACKSET((HG2 AND (COUNT(HFF2,(REF(BARSLAST(EB),1) + 2)) = 0)),(REF(BARSLAST(EB),1) + 2));
HGG:=(HG3 > REF(HG3,1));
HJA:=IF(HFF2,COUNT(EA,(REF(BARSLAST(HFF2),1) + 1)),0);
HJB:=IF(((HJA = 1) AND HFF2),BARSLAST(HG1),0);
HJJ:=IF((HFF2 AND (REF(HIGH,BARSLAST(HG1)) <= REF(HIGH,BARSLAST(HG2)))),BARSLAST(HG2),BARSLAST(HG1));
HD:=IF(((HJA = 2) AND HFF2),HJJ,0);
X1:=IF(((HJA >= 3) AND HFF2),IF((HFF2 AND (REF(HIGH,HJJ) <= REF(HIGH,BARSLAST(HGG)))),BARSLAST(HGG),HJJ),0);
X2:=((HJB + HD) + X1);
Y1:=BACKSET(HFF2,X2);
Y2:=(Y1 > REF(Y1,1));
Z1:=BACKSET(Y2,2);
Z2:=(Z1 > REF(Z1,1));
UU:=BACKSET(BARSTATUS=2,(BARSLAST(HEE2) + 1));
VV:=(UU > REF(UU,1));
WW:=BACKSET(BARSTATUS=2,(BARSLAST(Z2) + 1));
XX:=(WW > REF(WW,1));
UU2:=IF((BARSLAST(VV) < BARSLAST(XX)),VV,XX);
VV2:=IF((BARSLAST(VV) < BARSLAST(XX)),LOW,HIGH);
DRAWLINE(K=1 AND UU2,VV2,K=1 AND BARSTATUS=2,CLOSE,0),POINTDOT,colorFF;
WW2:=BACKSET(BARSTATUS=2,(BARSLAST(HEE2) + 1));
XX2:=(WW2 > REF(WW2,1));
VAR:=BACKSET(XX2,(REF(BARSLAST(HEE2),1) + 2));
VAR:=(VAR > REF(VAR,1));
DRAWLINE(K=1 AND VAR,LOW, K=1 AND XX2,LOW,1),POINTDOT,colorffff;
VAR:=BACKSET(BARSTATUS=2,(BARSLAST(Z2) + 1));
VAR:=(VAR > REF(VAR,1));
VAR:=BACKSET(VAR,(REF(BARSLAST(Z2),1) + 2));
VAR:=(VAR > REF(VAR,1));
DRAWLINE(K=1 AND VAR,HIGH, K=1 AND VAR,HIGH,1),POINTDOT,colorffff;
wN:=p1;{ åç N:=3;}
wA1:=REF(H,wN)=HHV(H,2*wN+1); wB1:=FILTER(wA1,wN); wC1:=BACKSET(wB1,wN+1); wD1:=FILTER(wC1,wN);{ é«ç¹}
wA2:=REF(L,wN)=LLV(L,2*wN+1); wB2:=FILTER(wA2,wN); wC2:=BACKSET(wB2,wN+1); wD2:=FILTER(wC2,wN);{ ä½ç¹}
wE1:=(REF(LLV(L,2*wN),1)+REF(HHV(H,2*wN),1))/2; wE2:=(H+L)/2;{ é«ä½ç¹åºç°å¨åä¸K线ä¸æ¶å¯ä½åè}
wH1:=(wD1 AND NOT(wD2 AND wE1>=wE2)) OR DISPSTATUS=2 OR BARSCOUNT(C)=1;
wL1:=(wD2 AND NOT(wD1 AND wE1<wE2)); wH2:=wD1 AND NOT(wD2 AND wE1>=wE2);
wX1:=REF(BARSLAST(wH1),1)+1; wF1:=BACKSET(wH1 AND COUNT(wL1,wX1)>0,LLVBARS(IF(wL1,L,),wX1));
wG1:=wF1>REF(wF1,1); wI1:=BACKSET(wG1,2); wLD:=wI1>REF(wI1,1);{ è¿æ»¤åä½ç¹}
wL2:=wLD OR DISPSTATUS=2 OR BARSCOUNT(C)=1;
wX2:=REF(BARSLAST(wL2),1)+1; wF2:=BACKSET(wL2 AND COUNT(wH2,wX2)>0,HHVBARS(IF(wH2,H,0),wX2));
wG2:=wF2>REF(wF2,1); wI2:=BACKSET(wG2,2); wHD:=wI2>REF(wI2,1);{ è¿æ»¤åé«ç¹}
wR1:=BACKSET(DISPSTATUS=2,BARSLAST(wHD)+1); wS1:=wR1>REF(wR1,1); { åä¸é«}
wT1:=BACKSET(DISPSTATUS=2,BARSLAST(wLD)+1); wU1:=wT1>REF(wT1,1); { åä¸ä½}
wR2:=BACKSET(wS1,REF(BARSLAST(wHD),1)+2); wS2:=wR2>REF(wR2,1); { åäºé«}
wT2:=BACKSET(wU1,REF(BARSLAST(wLD),1)+2); wU2:=wT2>REF(wT2,1); { åäºä½}
wT3:=BACKSET(wU2,REF(BARSLAST(wLD),1)+2); wU3:=wT3>REF(wT3,1); { åä¸ä½}
wT4:=BACKSET(wU3,REF(BARSLAST(wLD),1)+2); wU4:=wT4>REF(wT4,1); { ååä½}
wR3:=BACKSET(wS2,REF(BARSLAST(wHD),1)+2); wS3:=wR3>REF(wR3,1); { åä¸é«}
wR4:=BACKSET(wS3,REF(BARSLAST(wHD),1)+2); wS4:=wR4>REF(wR4,1); { ååé«}
DRAWLINE(K=2 AND wS2,H,K=2 AND wS1,H,1),Color; { â åå1:}
DRAWLINE(K=2 AND wU2,L,K=2 AND wU1,L,1),POINTDOT,Color;{ â æ¯æ1:}
DRAWLINE(K=2 AND wS3,H,K=2 AND wS2,H,1),Color; { â åå2:}
DRAWLINE(K=2 AND wU3,L,K=2 AND wU2,L,1),POINTDOT,Color;{ â æ¯æ2:}
DRAWLINE(K=2 AND wS4,H,K=2 AND wS3,H,1),ColorCC;{ â åå3:}
DRAWLINE(K=2 AND wU4,L,K=2 AND wU3,L,1),POINTDOT,ColorCC;{ â æ¯æ3:};
åº:=SUM(MA(CLOSE,),9)/.;
DRAWTEXT(CROSS(LOW,åº) AND REF(åº,1)>REF(HIGH,1) OR CROSS(HIGH,åº),0.*CLOSE,'---éåº'),colorFF;
X1:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X2:=EMA(X1,);
X3:=REF(X2,1);
X4:=(REF(HIGH,1)+REF(LOW,1))/2;
X5:=MA(CLOSE,)+2*STD(CLOSE,);
X6:=REF(CLOSE,1);
X7:=(SMA(MAX(CLOSE-X6,0),7,1))/(SMA(ABS(CLOSE-X6),7,1))*;
X8:=CROSS(,X7);
X9:=FILTER(X8,4);
WZ1:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
WZ2:=POW(MA(LOW,5),2)+MA(LOW,5);
WZ3:=POW(MA(HIGH,5),2)+MA(HIGH,5);
WZ4:=(WZ1-LLV(WZ2,9))/(HHV(WZ3,9)-LLV(WZ2,9))*+;
DK:=SMA(WZ4,3,1)*1.5;
DD:=SMA(DK,3,1);
DJ:=3*DK-2*DD;
WZ5:=EMA(CLOSE,)-EMA(CLOSE,);
WZ6:=EMA(WZ5,9);
WZ7:=2*(WZ5-WZ6);
WZ8:=REF(WZ7,1);
WZ9:=CROSS(WZ8,WZ7) AND WZ8>0;
VAR1T:=EMA(CLOSE,8);
VAR2T:=EMA(VAR1T,);
VAR3T:=CROSS(VAR1T,VAR2T);
VAR4T:=VAR1T<MA(CLOSE,);
VAR5T:=(HHV(HIGH,)-CLOSE)/(HHV(HIGH,)-LLV(LOW,))*;
VAR6T:=SMA(VAR5T,5,1);
VAR7T:=SMA(VAR6T,8,1);
VAR8T:=CROSS(VAR6T,VAR7T) AND VAR7T<;
VAR9T:=CLOSE>LLV(CLOSE,)+0.3*LLV(CLOSE,) AND VAR8T;
VARA:=IF(CLOSE>,VAR8T,VAR9T);
èµ·æ¥:=VAR3T AND VAR4T;
éé:=VARA;
XL1:=EMA(CLOSE,)/;
XL2:=MA((XL1-REF(XL1,))/REF(XL1,),3)*;
XL3:=MA(XL2,3);
XL4:=SMA((CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*,3,1);
DRAWTEXT(IF(CROSS(3*XL4-2*SMA(XL4,3,1),8),,0) AND X2>X3,LOW-0.1,'âåå¼¹'),colorred;
DRAWTEXT(IF(CROSS((VAR1T-LLV(VAR1T,4))/(HHV(VAR1T,4)-LLV(VAR1T,4))*4*,.5) AND VAR1T<,,0) AND X2>X3,LOW-0.,'âçä¹°'),colorFFFF;
DRAWTEXT(IF(CROSS(2*(EMA((CLOSE*2+HIGH+LOW)/4,)-EMA((CLOSE*2+HIGH+LOW)/4,)-(EMA(EMA((CLOSE*2+HIGH+LOW)/4,)-EMA((CLOSE*2+HIGH+LOW)/4,),2)))*5.8,0.),LOW,0) AND X2>X3,LOW-0.2,'âå ä»'),colorFF5ED8;
DRAWTEXT(CROSS(X4,X5),HIGH*1.,'âå'),colorFF;
DRAWTEXT(FILTER((WZ9 AND DJ>) OR X9 ,5),HIGH*1.,'âè·'),colorBCFF8B;
STICKLINE(èµ·æ¥>0,HIGH,LOW,0.8,0),colorFFFF;
STICKLINE(èµ·æ¥>0,OPEN,CLOSE,5,0),colorFFFF;
DRAWTEXT(éé>0,HIGH*1.,'ââé'),color7FFFD6;
sam:=(C+L+H)/3;
BB:=ATAN(EMA(sam,)-REF(EMA(sam,),1))*3.*;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB>1 AND EMA(sam,)>REF(EMA(sam,8),1),),
EMA8,'â ä¸å'),COLORWHITE;
VAR3aa:=IF((CLOSE>REF(CLOSE,1)),,0);
VAR4aa:=IF(((CLOSE)/(REF(CLOSE,1))>1.) AND ((HIGH)/(CLOSE)<1.) AND (VAR3aa>0),,0);
DRAWTEXT(FILTER((VAR4aa>),),(LOW)*(0.),'â 大èæ '),ColorFFFF;
L:=MA(*(CLOSE-LLV(CLOSE,))/(HHV(HIGH,)-LLV(LOW,)),5)-;
L:=(HIGH+LOW+CLOSE)/3;
L:=(L-MA(L,))/(0.*AVEDEV(L,));
L:=(L-MA(L,))/(0.*AVEDEV(L,));
L:=IF(L>= AND L< AND L>= AND L<,,0);
L:=IF(L<=- AND L>- AND L<=- AND L>-,-,L);
L:=-ABS((CLOSE-MA(CLOSE,))/MA(CLOSE,)*);
L:=IF(L<,L,);
L:=IF(L>0,L,0);
XL1:=(IF(L>= AND L>=,,IF(L<=- AND L<=-,-,L)))+;
XL2:=L> AND XL1> AND L<;
DRAWTEXT(XL2 AND COUNT(XL2,)=1,l,'大ç¬æ交'),colorFFFF;
MTM:=C-REF(C,1);
DX:=*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
ä¹°:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(filter(ä¹°=1,5),LOW-0.3,'â²æå'),Colormagenta;
炒股软件:请教,相邻两个波段的高点用直线连接,公式怎么编写?通达信的,谢谢
主图公式:支撑压力射线加黄金分割
N:=;P:=5;P1:=;{ N为多少天内的高低值参数,我以自已的初始K线根数定义。P1、P2为短、长支撑压力取点参数}
A1:=REF(H,P)=HHV(H,2*P+1);
B1:=FILTER(A1,P);
C1:=BACKSET(B1,P+1);
D1:=FILTER(C1,P);
E1:=BACKSET(ISLASTBAR,BARSLAST(D1)+1);
F1:=E1>REF(E1,1);
短压:DRAWLINE(D1,H,F1,H,1),COLORCYAN;
A2:=REF(L,P)=LLV(L,2*P+1);
B2:=FILTER(A2,P);
C2:=BACKSET(B2,P+1);
D2:=FILTER(C2,P);
E2:=BACKSET(ISLASTBAR,BARSLAST(D2)+1);
F2:=E2>REF(E2,1);
短支:DRAWLINE(D2,L,F2,L,1),COLORLIRED;
AA1:=REF(H,P1)=HHV(H,2*P1+1);
BB1:=FILTER(AA1,P1);
CC1:=BACKSET(BB1,P1+1);
DD1:=FILTER(CC1,P1);
EE1:=BACKSET(ISLASTBAR,BARSLAST(DD1)+1);
FF1:=EE1>REF(EE1,1);
长压:DRAWLINE(DD1,H,FF1,H,1),COLORGREEN;
AA2:=REF(L,P1)=LLV(L,2*P1+1);
BB2:=FILTER(AA2,P1);
CC2:=BACKSET(BB2,P1+1);
DD2:=FILTER(CC2,P1);
EE2:=BACKSET(ISLASTBAR,BARSLAST(DD2)+1);
FF2:=EE2>REF(EE2,1);
长支:DRAWLINE(DD2,L,FF2,L,1),COLORRED;
STICKLINE(C>=O,C,O,3,0),COLOR;
STICKLINE(C>=O,C,O,2.5,0),COLOR;
STICKLINE(C>=O,C,O,2,0),COLOR;
STICKLINE(C>=O,C,O,1.5,0),COLORA5;
STICKLINE(C>=O,C,O,1,0),COLORC5;
STICKLINE(C>=O,C,O,0.5,0),COLORE5;
STICKLINE(C>=O,H,L,0,0),COLORF5;
STICKLINE(C<O,C,O,3,0),COLOR;
STICKLINE(C<O,C,O,2.5,0),COLOR;
STICKLINE(C<O,C,O,2,0),COLOR;
STICKLINE(C<O,C,O,1.5,0),COLOR;
STICKLINE(C<O,C,O,1,0),COLOR;
STICKLINE(C<O,C,O,0.5,0),COLOR;
STICKLINE(C<O,H,L,0,0),COLOR;
高:=REFDATE(HHV(H,N),DATE);
低:=REFDATE(LLV(L,N),DATE);
H1:=高-(高-低)*0.;
H2:=高-(高-低)*0.;
H3:=高-(高-低)*0.5;
H4:=高-(高-低)*0.;
H5:=高-(高-低)*0.;
DRAWTEXT(CURRBARSCOUNT=1,高,'高'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1,H1,''),COLORCYAN;
DRAWTEXT(CURRBARSCOUNT=1,H2,''),COLORGRAY;
DRAWTEXT(CURRBARSCOUNT=1,H3,'中'),COLORYELLOW;
DRAWTEXT(CURRBARSCOUNT=1,H4,''),COLORLIRED;
DRAWTEXT(CURRBARSCOUNT=1,H5,''),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,低,'低'),COLORRED;
STICKLINE(CURRBARSCOUNT=,高,高,,-1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=,H1,H1,,-1),COLORCYAN;
STICKLINE(CURRBARSCOUNT=,H2,H2,,-1),COLORGRAY;
STICKLINE(CURRBARSCOUNT=,H3,H3,,-1),COLORYELLOW;
STICKLINE(CURRBARSCOUNT=,H4,H4,,-1),COLORLIRED;
STICKLINE(CURRBARSCOUNT=,H5,H5,,-1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT=,低,低,,-1),COLORRED;
-----------------------------------------------------------------------------
{ 注意:公式画线有未来函数,使用时注意一点)
百度知道股票分类管理团队队员为您答复。回答完毕!