A. 濂界敤镄勪富锲句拱鍗栨寚镙囧叕寮忔湁鍝浜涳纻
濂界敤镄勪富锲句拱鍗栨寚镙囧叕寮忔湁鍝浜涳纻鐜板湪鎶曡祫镶$エ镄勪汉寰埚氾纴寰埚氢汉涔拌偂绁ㄩ兘鏄鐪嬭繖涓镶$殑璧板娍濡备綍锛屼絾鏄璧板娍浠呬粎鏄涓绉嶅栧湪镄勪綋鐜帮纴镓浠ユ垜浠瑕佷简瑙h偂绁ㄧ殑涔板崠鍏寮忋备笅闱㈢悊璐㈠悰灏辩粰澶у朵粙缁崭竴涓嬫湁鍝浜涗富锲句拱鍗栨寚镙囧叕寮忋
1銆佺炵树富锲句拱鍗栨寚镙囧叕寮
:EMA((2*CLOSE+HIGH+LOW)/4,5)COLORGREEN;
IF(>=REF(,1),EMA((2*CLOSE+HIGH+LOW)/4,5),DRAWNULL),LINETHICK1,COLORRED;
EMA((2*CLOSE+HIGH+LOW)/4,13)COLORGREEN,LINETHICK2;
REF(EMA((LOW+CLOSE+OPEN)3,25),1)LINETHICK3,COLORGREEN;
IF(EMA((LOW+CLOSE+OPEN)/3,28)>REF(EMA((LOW+CLOSE+OPEN)/3,28),1),
REF(EMA((LOW+CLOSE+OPEN)/3,25),1),DRAWNULL),LINETHICK3,COLORRED;
IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2>
REF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2,1),
(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2,DRAWNULL),
POINTDOT,COLORRED;
(((CLOSE+LOW)/2,125))/2),POINTDOT,COLORFF;
PARTLINE((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2
DRAWTEXT(BARPOS=SYSPARAM(2),SYSPARAM(4),STKNAME+''+STKLABEL+'\镓灞炴澘鍧:'+BLKNAME),COLORFFFFFF;};
2銆佷拱鍗栧潎绾挎寚镙囧叕寮忓拰澶ф満鏋刱绾垮浘鎸囨爣鍏寮忎竴镙
:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)>
REF(EMA((2*CLOSE+HIGH+LOW)/4,6),1),,DRAWNULL),COLOR0000FF;
A2:IF(EMA((2*CLOSE+HIGH+LOW)/4,6)
B2:=EMA((2*CLOSE+HIGH+LOW)/4,13);
A3:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)>
REF(EMA((2*CLOSE+HIGH+LOW)/4,13),1),B2,DRAWNULL),COLOR0000FF;
A4:IF(EMA((2*CLOSE+HIGH+LOW)/4,10)
B3:=REF(EMA((LOW+CLOSE+OPEN)/3,25),1);
A6:IF(EMA((LOW+CLOSE+OPEN)/3,28)
B4:=(EMA(LOW,125)+EMA((CLOSE+LOW)/2,125))/2;
A8:IF((EMA(LOW,125)+EMA((CLOSE+LOW)/2,250))/2
3銆佸疄鐢ㄥ潎绾挎寚镙囧叕寮
C1:=EMA(C,5);
C2:=EMA(C,8);
C3:=EMA(C,10);
C4:=EMA(C,15);
C5:=EMA(C,20);
RSV:=C1
NOTEXTA:C1,LINETHICK3,COLORRED;
NOTEXTB:IF(RSV,C1,DRAWNULL),LINETHICK3,COLORBLUE;
4銆佸潎绾縆绾夸富锲炬寚镙囧叕寮
VAR1:=CLOSE>REF(CLOSE,1)ANDCLOSE>REF(CLOSE,2);
VAR2:=REF(VAR1,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR3:=REF(VAR2,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR4:=REF(VAR3,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR5:=REF(VAR4,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR6:=REF(VAR5,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR7:=REF(VAR6,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VAR8:=REF(VAR7,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VAR9:=REF(VAR8,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VARA:=REF(VAR9,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
VARB:=REF(VARA,1)ANDCLOSE>=REF(CLOSE,1)ANDCLOSE<=REF(CLOSE,2);
VARC:=REF(VARB,1)ANDCLOSE<=REF(CLOSE,1)ANDCLOSE>=REF(CLOSE,2);
STICKLINE(
VAR8ORVAR9ORVARAORVARBORVARC,CLOSE,REF(CLOSE,1),3,1),COLORRED;{绾1}
X:=(3*C+L+O+H)/6;
澶氱┖绾:(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6)
+13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)
+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+
REF(X,20))/210,COLORFF00FF,LINETHICK2;
{鐢ㄦ硶锛氶粍镓桦簳涔拌繘,钃濆帇椤跺崠鍑恒仓
DD:=澶氱┖绾
IF(DD,澶氱┖绾,DRAWNULL),COLOR00FFFF,LINETHICK2;
A:=(PMA>澶氱┖绾);
IF(A,澶氱┖绾,DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;
5銆佷笁鍧囩嚎鎴樻硶鍏寮
浣跨敤鏂规硶锛
1銆侀粍閲戠嚎鐢变笅璺岃浆涓鸿蛋骞虫椂搴斿瘑鍒囧叧娉ㄣ
2銆侀粍閲戠嚎杞涓轰笂鍗(鍙树负绮夌孩镩)鍙钥冭槛鍑嗗囱繘鍦烘搷浣溿傚綋鎸佽偂绾块噾鍙夊氱┖绾垮彲浠ヨ繘鍦轰拱鍏ュ苟鎸佹湁锛岀洿镊虫寔镶$嚎姝诲弶澶氱┖绾垮崠鍑洪鍑恒
3銆佸綋榛勯噾绾胯蛋骞虫椂搴斿皬蹇冭皑鎱庢搷浣(鍑忎粨镎崭綔)锛屽綋榛勯噾绾垮紑濮嬭浆涓轰笅璺(鍙樼豢)镞剁珛鍗虫竻浠撱
4銆侀粍閲戠嚎涓嬭穼链熼棿(缁胯壊)搴旈鍦轰紤鎭銆
5銆佹ゆ搷鐩樻柟娉旷亩鍗曟湁鏁堬纴鎸囨爣娓呮榈鏄庝简銆
鎸佽偂绾:EMA(C,7),COLOR9F5F9F,LINETHICK2;
澶氱┖绾:EMA(C,14),COLORGREEN,LINETHICK2;
STICKLINE(鎸佽偂绾>澶氱┖绾緼ND鎸佽偂绾>=REF(鎸佽偂绾,1)AND澶氱┖绾>REF(澶氱┖绾,1),鎸佽偂绾,澶氱┖绾,0.3,0),COLORRED;
STICKLINE(鎸佽偂绾>澶氱┖绾緼ND鎸佽偂绾=REF(澶氱┖绾,1),鎸佽偂绾,澶氱┖绾,0.3,0),COLORRED;
STICKLINE(鎸佽偂绾<澶氱┖绾緼ND鎸佽偂绾<=REF(鎸佽偂绾,1)AND澶氱┖绾
STICKLINE(鎸佽偂绾<澶氱┖绾緼ND鎸佽偂绾<=REF(鎸佽偂绾,1)AND澶氱┖绾
榛勯噾绾:EMA(C,55),COLORFA05FF,LINETHICK2;
IF(榛勯噾绾>=REF(榛勯噾绾,1),榛勯噾绾,DRAWNULL),COLORFA05FF,LINETHICK2;
IF(榛勯噾绾
6銆佷笁绾跨矘钖堟寚镙囧叕寮
M1:MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),COLORGREEN;
M2:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),COLORGREEN,LINETHICK1;
M3:IF(MA(CLOSE,17)
鏀鎾戠嚎:M3-(EMA(C,3)-M3),COLORFF8080,LINETHICK1;
鏀寮:IF(鏀鎾戠嚎>REF(鏀鎾戠嚎,1),鏀鎾戠嚎,DRAWNULL),COLORGREEN,LINETHICK2;
J1:=BACKSET(M1>REF(M1,1),2);
IF(J1,M3,DRAWNULL),COLORMAGENTA,LINETHICK2;
7銆佸彉镩插潎绾夸富锲炬寚镙囧叕寮
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
HJX21:=(21*A+20*REF(A,1)+19*REF(A,2)+18*REF(A,3)+17*REF(A,4)+16*REF(A,5)+
15*REF(A,6)+14*REF(A,7)+13*REF(A,8)+12*REF(A,9)+11*REF(A,10)+
10*REF(A,11)+9*REF(A,12)+8*REF(A,13)+7*REF(A,14)+6*REF(A,15)+
5*REF(A,16)+4*REF(A,17)+3*REF(A,18)+2*REF(A,19)+
REF(A,21))/231;
HJX3:=(3*A+2*REF(A,1)+REF(A,2))/6;
DC1:EMA(HJX3,4),COLORLIMAGENTA;
DC2:EMA(DC1,3),COLORRED;
DC3:EMA(DC1,7),COLORRED;
K1:=BACKSET(DC1
8銆佺伆椹镎岖洏鍧囩嚎涓诲浘鎸囨爣鍏寮
N:=8;
MA5:MA(C,5);
M0:MA(C,10);
MA30:MA(C,30);
MA60:MA(C,60);
:=REF(C,N)=HHV(C,2*N+1);
,N);
C1:=BACKSET(0),MA30);
L1:=MIN(MIN(MA5,M0),MA30);
涓阒崇┛涓夌嚎:=H1REF(MA2,1);
STICKLINE(涓阒崇┛涓夌嚎,O,C,2,0),COLORYELLOW;
DRAWTEXT(涓阒崇┛涓夌嚎,L*0.99,'涔板叆'),COLORGREEN;
9銆佸嚖缈斿垎鐣屼富锲炬寚镙囧叕寮
MA(MA(C,10),10),COLORYELLOW,LINETHICK2;
M0:MA(MA(C,10),10),COLORYELLOW;
MA20:MA(MA(C,20),20),COLORRED;
MA30:MA(MA(C,30),30),COLORGREEN;
MA60:MA(MA(C,60),60),COLORWHITE;
10銆佺孩镩插潎绾夸富锲炬寚镙囧叕寮
M1:=5;M2:=10;M3:=20;M4:=60;
M:MA(CLOSE,M1),COLORRED;
MA2:MA(CLOSE,M2),COLORRED;
MA3:MA(CLOSE,M3),COLORRED;
MA4:MA(CLOSE,M4),COLORRED;
IF(M
IF(MA2
IF(MA3
IF(MA4
11銆佸疄鐢ㄥ潎绾块粍閲戝垎鍓蹭富锲炬寚镙囧叕寮
M:=SUM(AMO,240)/SUM(VOL,240)/100;:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,25))/3;
绾緼2:=(MA(CLOSE,5)+MA(CLOSE,10)+MA(CLOSE,20)+MA(CLOSE,30)+MA(CLOSE,60)+MA(CLOSE,120))/6;
绾緼3:=(MA(CLOSE,20)+MA(CLOSE,60)+MA(CLOSE,120))/3;
绾緼4:=(MA(CLOSE,13)+MA(CLOSE,34)+MA(CLOSE,55))/3;
STICKLINE(绾>绾緼4,绾,绾緼4,0.1,1),COLORFF0080;
STICKLINE(绾<绾緼4,绾,绾緼4,0.1,1),COLOR00FF00;
STICKLINE(C>OOR(C=OANDC>REF(C,1)),H,L,0.1,0),COLORRED;
STICKLINE(C>OOR(C=OANDC>REF(C,1)),O,C,4,1),COLORRED;
STICKLINE(C<=REF(C,1)),H,L,0.1,0),COLORFFEEAF;
STICKLINE(C<=REF(C,1)),O,C,4,0),COLORFFEEAF;
DRAWICON(CROSS(绾,绾緼4),绾,1);
绾1:IF(绾<绾緼3,绾,绾緼3),COLOR00FF00;
IF(绾<绾緼3,绾緼3,绾),COLORRED;
13銆佸湥𨱔电煶涔嬭呖灏婂潎绾挎寚镙囧叕寮
鍦g伒鐭1:EMA(CLOSE,15),COLORYELLOW,POINTDOT,LINETHICK2;
鍦g伒鐭2:EMA(CLOSE,18),COLORYELLOW,POINTDOT,LINETHICK2;
DRAWBAND(鍦g伒鐭1,RGB(250,10,10),鍦g伒鐭2,RGB(10,200,10));
澶╀䌷:MA(CLOSE,8),COLORYELLOW;
榫欎䌷:MA(C,27.99),LINETHICK2,COLORYELLOW;
澶滃弶:MA(C,72.99),LINETHICK3,COLOR0000FF;
涔捐揪濠:MA(C,90.270),LINETHICK4,COLORFF00FF;
阒夸慨缃:MA(C,157.500),COLORWHITE,LINETHICK5;
杩︽ゼ缃:MA(C,364.328),COLOR0000FF,LINETHICK6;
绱ч偅缃:MA(C,593.618),LINETHICK7,COLORFFCC66;
鎽╁懠缃楄喀:EMA(CLOSE,453.191),LINETHICK4,COLORYELLOW,POINTDOT;
14銆佷竴绾块噾鍙夊洓绾跨矘钖堜富锲炬寚镙囧叕寮
1.锲涚嚎绮桦悎链変袱绉嶆儏鍐,涓绉嶆槸30.60.90.120绮桦悎.涓鏄鎸60.90.120.250绮桦悎銆
涓绾块噾鍙夋槸鎸30鍧囩嚎閲戝弶涓婇溃镄勪袱绉岖矘钖堛
2.铡熺悊:鍧囩嚎绮桦悎涓鑸琛ㄧず链変富锷涘湪钖哥,钥屼竴绾块噾鍙夊垯琛ㄧず璇ヨ偂瑕佹媺鍗囥
3.鍒囱:链変竴绾块噾鍙,镶瀹氢篃链変竴绾挎诲弶,涓浣嗘槸涓绾挎诲弶鍒椤彲鑳藉紩璧锋毚璺.镓浠ュ湪浣跨敤璇ユ硶镞朵竴瀹氲佽颁綇鏄30鍧囩嚎涓瀹氭槸鍦ㄦ浈涓婅蛋镞.涓浣30绾挎嫄澶村悜涓嫔垯瑕佹姏鍑恒
A.璇ユ柟娉曚笉浣嗛傚悎镞ョ嚎,涔熼氭牱阃傚悎锻ㄧ嚎.5.15.30.60鍒嗛挓K绾垮浘.鍙鏄阃夋嫨镄勫懆链熻秺鐭鍒欐寔镶$殑镞堕棿瓒婄煭銆
B.涔扮偣鍦ㄨ偂浠蜂笂镰30鍧囩嚎澶╃嚎镞,鍗栫偣鏄褰挞珮浣嶆湁鏁堣穼镰30銆
娉ㄦ剰锛氲佽剧疆鎴愪富锲炬寚镙
B. 股票买卖预警公式
一、KDJ的计算
今日收盘价-N日内最低价
今(N)日RSV=(—————————————)×100 ;
N日内最高价-N日内最低价
今(N)日K值=2/3昨日K值+1/3今(N)日RSV ;
今(N)日D值=2/3昨日D值+1/3今(N)日K值;
今(N)日J值=3今(N)日K值-2今(N)日D值。
K、D初始值取50.
二、KDJ的原理
1、KDJ以今日收盘价(也即N日以来多空双方的最终言和价格)作为买力与卖力的平衡点,收盘价以下至最低价的价格距离表征买力的大小,而最高价以下至最低价的价格距离表征买卖力的总力。这样,RSV的买力与总力之比,正是用以表征N日以来市场买力的大小比例,反映了市场的多空形势。
2、KDJ指标的后来修正者,放弃把RSV直接作为K值,而只把RSV作为新K值里面的1/3比例的内容。这是一种权值处理手法,表明更重视(2/3重视)近期趋势的作用。
3、在乔治。蓝恩的发明里, D值原来是N日K值的平滑平均值。现直接从算式上可见, D值只把K值作1/3的权重加以考虑,同样表明对近期趋势的重视。同时, D值的变化率也就小于K值的变化率,因此,K线成为随机指标中较敏感的快速线, D线则为较沉稳的慢速线。
4、J值本意为D值与K值之乖离,系数3和2也表现了权值的处理,表明在KD指标中, D指标应被更重视一些,这与趋势分析中认为慢速线较具趋势的示向性原理是一致的。
三、KDJ的应用
1、一般而言, D线由下转上为买入信号,由上转下为卖出信号。
2、KD都在0~100的区间内波动, 50为多空均衡线。如果处在多方市场, 50是回档的支持线;如果处在空方市场, 50是反弹的压力线。
3、K线在低位上穿D线为买入信号,K线在高位下穿D线为卖出信号。
4、K线进入90以上为超买区, 10以下为超卖区; D线进入80以上为超买区, 20以下为超卖区。宜注意把握买卖时机。
5、高档区D线的M形走向是常见的顶部形态,第二头部出现时及K线二次下穿D线时是卖出信号。低档区D线的W形走向是常见的底部形态,第二底部出现时及K线二次上穿D线时是买入信号。M形或W形的第二部出现时,若与价格走向发生背离,分别称为"顶背驰"和"底背驰",买卖信号可信度极高。
6、J值可以大于100或小于0.J指标为依据KD买卖信号是否可以采取行动提供可信判断。通常,当J值大于100或小于10时被视为采取买卖行动的时机。
7、KDJ本质上是一个随机性的波动指标,故计算式中的N值通常取值较小,以5至14为宜,可以根据市场或商品的特点选用。不过,将KDJ应用于周线图或月线图上,也可以作为中长期预测的工具。
C. 濂界敤镄勪富锲句拱鍗栨寚镙囧叕寮忔湁鍝浜
鍦ㄨ偂绁ㄦ姇璧勪腑锛屼富锲句拱鍗栨寚镙囧叕寮忔槸鎶曡祫钥呯敤𨱒ヨ緟锷╁喅绛栫殑閲嶈佸伐鍏枫备互涓嬫槸涓浜涜骞挎硾浣跨敤镄勪富锲句拱鍗栨寚镙囧叕寮忥纴浠ュ强瀹冧滑镄勬弿杩板拰鐢ㄦ硶锛
1. 绁炵树富锲句拱鍗栨寚镙囧叕寮忥细
- 鎻忚堪锛氲繖鏄涓涓缁揿悎浜嗗氭浔鍧囩嚎镄勬寚镙囷纴鐢ㄤ簬鍒ゆ柇镶$エ镄勪拱鍏ュ拰鍗栧嚭镞舵満銆
- 鐢ㄦ硶锛氩綋鐭链熷潎绾跨┛瓒婇暱链熷潎绾垮悜涓婃椂锛屽彲鑳芥槸涔板叆淇″彿锛涘弽涔嬶纴褰撶煭链熷潎绾跨┛瓒婇暱链熷潎绾垮悜涓嬫椂锛屽彲鑳芥槸鍗栧嚭淇″彿銆
2. 涔板崠鍧囩嚎鎸囨爣鍏寮忥细
- 鎻忚堪锛氶氲繃姣旇缉涓嶅悓锻ㄦ湡镄勫潎绾夸綅缃锛屽垽鏂镶$エ镄勪拱鍗栨椂链恒
- 鐢ㄦ硶锛氩綋鐭链熷潎绾垮ぇ浜庨暱链熷潎绾挎椂锛屽彲鑳芥槸涔板叆淇″彿锛涘綋鐭链熷潎绾垮皬浜庨暱链熷潎绾挎椂锛屽彲鑳芥槸鍗栧嚭淇″彿銆
3. 瀹炵敤鍧囩嚎鎸囨爣鍏寮忥细
- 鎻忚堪锛氩埄鐢ㄥ氭浔鍧囩嚎镄勫叧绯伙纴鍒ゆ柇镶$エ镄勬敮鎾戝拰阒诲姏浣嶃
- 鐢ㄦ硶锛氩綋镶′环钖戜笂绐佺牬鍧囩嚎镞讹纴鍙鑳芥槸涔板叆淇″彿锛涘綋镶′环钖戜笅璺岀牬鍧囩嚎镞讹纴鍙鑳芥槸鍗栧嚭淇″彿銆
4. 鍧囩嚎K绾夸富锲炬寚镙囧叕寮忥细
- 鎻忚堪锛氶氲繃鍒嗘瀽鍧囩嚎鍜孠绾跨殑鍏崇郴锛屽垽鏂镶$エ镄勪拱鍗栨椂链恒
- 鐢ㄦ硶锛氩綋K绾垮湪鍧囩嚎涔嬩笂镞讹纴鍙鑳芥槸涔板叆淇″彿锛涘綋K绾垮湪鍧囩嚎涔嬩笅镞讹纴鍙鑳芥槸鍗栧嚭淇″彿銆
5. 涓夊潎绾挎垬娉曞叕寮忥细
- 鎻忚堪锛氶氲繃瑙傚疗涓夋浔鍧囩嚎镄勫叧绯伙纴鍒ゆ柇镶$エ镄勪拱鍗栨椂链恒
- 鐢ㄦ硶锛氩綋涓夋浔鍧囩嚎绮桦悎钖庯纴镶′环钖戜笂绐佺牬镞讹纴鍙鑳芥槸涔板叆淇″彿锛涘綋镶′环钖戜笅璺岀牬绮桦悎镄勫潎绾挎椂锛屽彲鑳芥槸鍗栧嚭淇″彿銆
浠ヤ笂鍙鏄閮ㄥ垎甯哥敤镄勪富锲句拱鍗栨寚镙囧叕寮忥纴瀹为檯涓婅缮链夊緢澶氩叾浠栫殑鎸囨爣鍏寮忥纴鎶曡祫钥呭彲浠ユ牴鎹镊宸辩殑闇姹傚拰锅忓ソ阃夋嫨浣跨敤銆傚湪瀹为檯镎崭綔涓锛屾姇璧勮呭簲璇ョ粨钖埚叾浠栧洜绱狅纴濡傛垚浜ら噺銆佽偂绁ㄥ熀链闱㈠垎鏋愮瓑锛岀患钖埚垽鏂镶$エ镄勪拱鍗栨椂链恒