1.è¯å¸ç¸å
³è®¡ç®å
¬å¼
2.通达信“均线共振形态主图”抓短线牛股指标选股公式,线粘右侧交易,合主趋势为王
è¯å¸ç¸å ³è®¡ç®å ¬å¼
4ï¼å¼ºå¿æ´ç
a1:=abs(close-open)/open<0.;
a2:=count(a,图选m)=m;
a3:=ref(o,m)<ref(c,m) and ref (c,m)/ref(c,m+1)>1+n/;
a2 and a3;
注ï¼ä¸æ ¹å®ä½è¶ è¿nçé¿é³ï¼åé¢è·m个K线å®ä½ä¸è¶ è¿1.5ï¼ çK线ã
ï¼5ï¼é«å¼å¤§é´çº¿
ãããopen>close and open/ref(c,1)>=1+m/ and close/open<=1-n/;
注ï¼è·³ç©ºé«å¼m%ï¼å½æ¥è¡ä»·è¾å¼çä»·è·å¹ 大äºnãè¡ä»·ç»è¿ä¸æ®µæç»æåä¹åï¼æä¸æ¥çªç¶è·³é«å¼çï¼
ãããopen/ref(c,1)>=1+m/
ãããåè¡ä»·ä¸è·¯ä¸è¡ï¼å°¾å¸ä»¥æ¥è¿æä½ç¹æ¶å¸ï¼
ãããclose/open<=1-n/
ãããæ¤ä¿¡å·åºç°ï¼å¾å¾æå³çè¡ä»·å·²å½¢æçæ头é¨ï¼åºæ³¨æåé¿é£é©ã
ï¼6ï¼ä½å¼å¤§é³çº¿
ãããopen<close and open/ref(c,1)<=1-m/ and close/open>=1+n/;
注ï¼è·³ç©ºä½å¼m%ï¼å½æ¥è¡ä»·è¾å¼çä»·æ¶¨å¹ å¤§äºnï¼å ¶ä»æ述请åè§ï¼5ï¼ã
ï¼7ï¼é»æä¹æ
ãããref(close,2)/ref(open,2)>1. and ref(open,1)>ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0. and close/open<0. and close<ref(close,2);
注ï¼é»æä¹æ表示è¡ä»·åè½ï¼æ¯ååºä¿¡å·ï¼åºä¼ºæºæè´§ãå¹æåæ ·ç±ä¸æ ¹K线ç»æï¼å ¶å½¢æåæ¨ææ£å¥½ç¸åï¼
ããã第ä¸å¤©è¡ä»·ç»§ç»ä¸åï¼æåºä¸æ ¹é³çº¿ï¼
ãããref(close,2)/ref(open,2)>1.
ããã第äºå¤©æ³¢å¨è¾å°ï¼å½¢æä¸æ ¹å°é³çº¿æå°é´çº¿ï¼æææç主ä½é¨åï¼
ãããref(open,1)>ref(close,2) and abs(ref(open,1)-ref(close,1)/ref(close,1)<0.
ããã第ä¸å¤©å½¢æä¸æ ¹å 容第äºå¤©å¹¶å»¶ä¼¸è³ç¬¬ä¸å¤©é³çº¿å®ä½ï¼
ãããclose/open<0. and close<ref(close,2)
ï¼8ï¼è·³ç©ºç¼ºå£
ãããhigh<ref(low,1) or low>ref(high,1);
注ï¼ä»å 容ä¸çï¼åå«æ¯åä¸è·³ç©ºç¼ºå£ååä¸è·³ç©ºç¼ºå£ã
ï¼9ï¼å线éå
ãããa;=ma(c,5);
b:=ma(c,);
cross(a,b);
注ï¼åäºå¥æ¯5ãæ¥å线ï¼crossæ¯äº¤åå½æ°ï¼cross(a,b)表示5æ¥å线ä¸æ¥å线éåã
ï¼ï¼å线æ»å
ãã a;=ma(c,5);
b:=ma(c,);
cross(b,a);
注ï¼åäºå¥æ¯5ãæ¥å线ï¼crossæ¯äº¤åå½æ°ï¼cross(b,a)表示5æ¥å线ä¸æ¥å线æ»åã
ï¼ï¼å线ç²å
ma1:=ma(c,5);
ma2:=ma(c,),
ma3:=ma(c,);
ãããp1:=abs(ma1-ma2)+abs(ma2-ma3);
p1/c<m/ and ma1>ref(ma1,1) and ma2>ref(ma2,1);
注ï¼åä¸å¥æ¯ä¸æ ¹å线ï¼p1æ¯ç¬¬ä¸æ ¹å线å第äºæ ¹å线差çç»å¯¹å¼ä¸ç¬¬äºæ ¹å线å第ä¸æ ¹å线差çç»å¯¹å¼ä¹åï¼æåä¸å¥æ¯p1ä¸æ¶çä»·çæ¯å¼å°äºä¸å®æ¯çm%(ä¸è¬è¯¥æ¯ç为2ï¼ ä»¥ä¸ï¼åæ¶åäºå线ä»æ¥æ¯æ¨æ¥ä¸ç¿ã å ¬å¼ç¼åå®ä¾
3.1 ææ å ¬å¼ï¼å线éé
æ°å»ºå ¬å¼âå线ééâï¼JXTDï¼
1.使ç¨å¿«æ·é®Ctrl+Fæå¼âå ¬å¼**å¨âã
2.ç¹å»âæ°å»ºâæé®ï¼æå¼âå ¬å¼ç¼è¾å¨â
3.å¡«åå ¬å¼é¡¹
âå ¬å¼å称â---JXTD,
âå ¬å¼æè¿°â---âå线ééâ
åæ° ï¼æå°å¼ï¼ï¼æ大å¼ï¼ï¼ç¼ºçå¼ï¼
#N: 1
--------------------------------------------------
VAR1:=MA(CLOSE,N);{ 对âVAR1âèµå¼}
VAR2:=MA(CLOSE,2*N);{ 对âVAR2âèµå¼}
VAR3:=MA(CLOSE,3*N);{ 对âVAR3âèµå¼}
VAR4:=MA(CLOSE,4*N);{ 对âVAR4âèµå¼}
VAR5:=MA((VAR1+VAR2+VAR3+VAR4)/4,5);{ ä¸æ¡å¤æ¡å线çå¹³å线}
ä¸è½¨:VAR5*1.;{ å¨å线âVAR5âä¸å ä¸8%çå¹ åº¦åæâä¸è½¨â}
ä¸è½¨:VAR5*0.; { å¨å线âVAR5âä¸åå»8%çå¹ åº¦åæâä¸è½¨â}
----------------------------------------------------
4.ææ ç±»åï¼éâè·¯å¾åâï¼è¿æ大å¿åãè¶ ä¹°è¶ ååãè¶å¿åãè½éåçå¦å¾
5.ç»çº¿æ¹æ³ï¼å¯å¾ã主å¾å å ãå¯å¾å å 线ãå¯å¾å å ç¾å½çº¿åç§ï¼éä¸â主å¾å å åâï¼å¯å¾æ¯K线å¾ä¸é¢çåºåï¼
6.å¯ç ä¿æ¤ï¼
7.åæ°è®¾ç½®ï¼#Nï¼æå°å¼ä¸º1ï¼æ大å¼ä¸ºï¼ç¼ºçå¼ï¼é»è®¤ï¼ä¸ºï¼
8.åæ 线ä½ç½®ï¼å¨éâ主å¾å å âä¸ï¼æ¤ç¼è¾æ¡å¤å¯åç¶æï¼è¾åºçº¿ä¸ºå¯å¾ä¸æ·±çº¢è²æ¨ªçº¿æ¾ç¤ºï¼æ¯å¯å¾åæ 线ï¼
9.é¢å¤Yè½´åçï¼æ¯ææ æææ°å¼è¾åºçº¿ï¼å¨å¯å¾ä¸æ¾ç¤ºä¸ºç½è²ï¼
.å¼å ¥ææ å ¬å¼ï¼å¨å¼å ¥åå ¬å¼çåºç¡ä¸è¿è¡ç¼è¾ï¼
.æå ¥å½æ°ï¼å·¦ä¸ä¸ºå½æ°ç±»å«ï¼å³ä¸ä¸ºå½æ°è¡¨ï¼ä¸åºä¸ºå½æ°è§£éåºåç¨æ³ä¸¾ä¾ï¼
.å ¬å¼ç¼è¾åºï¼
ã{ }ãæ¯è§£éï¼ä¸è¾åºï¼ä¸ºäºæ示èªå·±åå«äººï¼ä¾¿äºçæå ¬å¼ï¼
ã:=ãèµå¼ç¬¦ï¼æ为âç¸å½äºâï¼
ã:ãè¾åºç¬¦ï¼å®åé¢çå称为è¾åºå称ï¼å¯ä»¥å¨å¯å¾ä¸çå°ï¼å®åé¢çä¸ºå ¬å¼å®ä¹ï¼
ãï¼ãå段符ï¼è¡¨ç¤ºä¸æ®µå®æï¼
ãï¼ãåè符ï¼
ãï¼ï¼ãæ¬å·ä¸ä¸ºå ¬å¼ä½ã
.æµè¯å ¬å¼ï¼æµè¯éè¿åèªå¨ä¿åï¼æµè¯ä¸è½éè¿ï¼åå¨ç¿»è¯åºæ示é误æå¨ã
.ç¨æ³æ³¨éï¼èªç¼å ¬å¼ä½¿ç¨è¯´æã
.å¨K线å¾ä¸ï¼ç´æ¥æ²åæ¯é®âJXTDâè°åºèªç¼çå ¬å¼âå线ééâï¼æ¥çç»æï¼
.ä¿®æ¹å ¬å¼ï¼å·¦é®éä¸å ¬å¼çº¿åï¼ç¹å»å³é®ï¼å¨å¼¹åºç对è¯æ¡ä¸ï¼éä¸âä¿®æ¹ææ â项ï¼ç´æ¥è°åºãå ¬å¼ç¼è¾å¨ãä¿®æ¹å ¬å¼ãå¦æå·¦é®éææ 线ä¸ä¾¿ï¼ç´æ¥ç¨å³é®éåæ°æ°å¼ï¼ä¹å¯è°åºå ¬å¼ç¼è¾å¨ã
.é¼ æ å¨ææ示ï¼å°é¼ æ æ¾å¨å½æ°ä¸ï¼çä¸ä¼ç³»ç»èªå¨åºç°æ示æ¡ï¼æ¹ä¾¿å½æ°å¦ä¹ ååºç¨ï¼å¦å¾ï¼
3.2 éè¡å ¬å¼ï¼å线éé
æ¹å ¬å¼âå线ééâï¼JXTDï¼ä¸ºéè¡å ¬å¼âå线ééâ
1. ãCtrlã+ãFãæå¼âå ¬å¼**å¨âï¼
2. ç¹å»âæ¡ä»¶éè¡å ¬å¼âé项ï¼
3. ç¹å»âæ°å»ºâæé®ï¼æå¼âæ¡ä»¶éè¡å ¬å¼ç¼è¾å¨âï¼
4. ç¹å»âå¼å ¥ææ å ¬å¼âæé®ï¼éæåä¸é¡¹âå线ééâï¼ç¡®å®ï¼
5.ä¿®æ¹è¾åºï¼å ¬å¼è¾åºé¡¹æ¹ä¸ºèµå¼é¡¹ï¼å³å°ã:ã符æ¹ä¸ºã:=ã符ï¼
6.æ°å»ºè¾åºé¡¹ï¼éè¡:CLOSE<ä¸è½¨;{ éåºæ¶çä»·å°äºä¸è½¨çè¡ç¥¨}ï¼å¦å¾
7.æµè¯å ¬å¼éè¿ï¼
8. ãCtrlã+ãTãæå¼æ¡ä»¶éè¡å ¬å¼âå线ééâï¼è¿å ¥å ¬å¼éè¡æä½ç¨åºï¼
3.3 äºå½©Kçº¿å ¬å¼ï¼å线éé
æ¹å ¬å¼âå线ééâï¼JXTDï¼ä¸ºäºå½©Kçº¿å ¬å¼âå线ééâ
1. ãCtrlã+ãFãæå¼âå ¬å¼**å¨âï¼
2. ç¹å»âäºå½©Kçº¿å ¬å¼âé项ï¼
3. ç¹å»âæ°å»ºâæé®ï¼æå¼âK线æç¤ºå ¬å¼ç¼è¾å¨âï¼
4. ç¹å»âå¼å ¥ææ å ¬å¼âæé®ï¼éâå线ééâç¡®å®ï¼
äºå½©Kçº¿å ¬å¼
å ¬å¼åï¼JXTD
å ¬å¼æè¿°ï¼å线éé
åæ° ï¼æå°å¼ï¼ï¼æ大å¼ï¼ï¼ç¼ºçå¼ï¼
#N: 1
--------------------------------------------------
VAR1:=MA(CLOSE,N);{ 对âVAR1âèµå¼}
VAR2:=MA(CLOSE,2*N);{ 对âVAR2âèµå¼}
VAR3:=MA(CLOSE,3*N);{ 对âVAR3âèµå¼}
VAR4:=MA(CLOSE,4*N);{ 对âVAR4âèµå¼}
VAR5:=MA((VAR1+VAR2+VAR3+VAR4)/4,5);{ ä¸æ¡å¤æ¡å线çå¹³å线}
ä¸è½¨:=VAR5*1.;{ å¨å线âVAR5âä¸å ä¸8%çå¹ åº¦åæâä¸è½¨â}
ä¸è½¨:=VAR5*0.; { å¨å线âVAR5âä¸åå»8%çå¹ åº¦åæâä¸è½¨â}
CLOSE<ä¸è½¨,COLORRED; { å°äºä¸è½¨æç¤ºä¹°å ¥çº¢è²}
CLOSE>ä¸è½¨,COLORYELLOW; { é«äºä¸è½¨æ示ååºé»è²}
HIGH>ä¸è½¨*1.,COLORBLUE;{ é«äºä¸è½¨6%æç¤ºæ¸ ä»èè²}
LOW<ä¸è½¨*0., COLORMAGENTA;{ ä½äºä¸è½¨6%æ示å ä»æ´çº¢è²}
--------------------------------------------------
5.æµè¯éè¿,éåºï¼
6.ãCtrlã+ãKãï¼æå¼âäºå½©K线æ示â---âå线ééâï¼
7.æ¥çææï¼ä¸æ»¡æ就修æ¹åæ°ä¸ç´å°æ»¡æ为æ¢ï¼
3.4 交æç³»ç»å ¬å¼
æ¹å ¬å¼âå线ééâï¼JXTDï¼ä¸ºäº¤æç³»ç»å ¬å¼âå线ééâ
1. ãCtrlã+ãFãæå¼âå ¬å¼**å¨âï¼
2. ç¹å»â交æç³»ç»å ¬å¼âé项ï¼
3. ç¹å»âæ°å»ºâæé®ï¼æå¼â交æç³»ç»å ¬å¼ç¼è¾å¨âï¼
4. ç¹å»âå¼å ¥ææ å ¬å¼âæé®ï¼éâå线ééâç¡®å®ï¼
å ¬å¼åï¼JXTD
å ¬å¼æè¿°ï¼å线éé
åæ° ï¼æå°å¼ï¼ï¼æ大å¼ï¼ï¼ç¼ºçå¼ï¼
#N: 1
--------------------------------------------------
VAR1:=MA(CLOSE,N);{ 对âVAR1âèµå¼}
VAR2:=MA(CLOSE,2*N);{ 对âVAR2âèµå¼}
VAR3:=MA(CLOSE,3*N);{ 对âVAR3âèµå¼}
VAR4:=MA(CLOSE,4*N);{ 对âVAR4âèµå¼}
VAR5:=MA((VAR1+VAR2+VAR3+VAR4)/4,5);{ ä¸æ¡å¤æ¡å线çå¹³å线}
ä¸è½¨:=VAR5*1.;{ å¨å线âVAR5âä¸å ä¸8%çå¹ åº¦åæâä¸è½¨â}
ä¸è½¨:=VAR5*0.; { å¨å线âVAR5âä¸åå»8%çå¹ åº¦åæâä¸è½¨â}
{ å¤å¤´ä¹°å ¥} ENTERLONG:CLOSE<ä¸è½¨;
{ å¤å¤´ååº} EXITLONG:CLOSE>ä¸è½¨;
---------------------------------------------------
5.æµè¯éè¿,éåºï¼
6.ãCtrlã+ãEãï¼æå¼âäºå½©K线æ示â---âå线ééâï¼
7.æ¥çææï¼ä¸æ»¡æ就修æ¹åæ°ä¸ç´å°æ»¡æ为æ¢ï¼
8.å é¤æ示ï¼å¿«æ·é®ãCtrlã+ãHãï¼é¼ æ å·¦é®éä¸æ示å¾æ ï¼æãDeleteãï¼æè ç¹å»é¼ æ å³é®ï¼å¨å¼¹åºçèåä¸éâå é¤äº¤æç³»ç»æ示âã
3.5 é¢è²åæ°åºç¨ï¼âMACDâK线
å ¬å¼å称ï¼MACDK
ç®ç§°ï¼âMACDâK线
----------------------------
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACDDIF-DEA)*2,COLORSTICK;
D1:=EMA(C,3)-EMA(C,8);
D2:=EMA(O,3)-EMA(O,8);
D3:=EMA(H,3)-EMA(H,8);
D4:=EMA(L,3)-EMA(L,8);
DRAWICON(CROSS(D1,DIF) AND DIF<0 ,D4-0.1,);
STICKLINE(D1>=D2,D1,D2,8,0),COLORAA;
STICKLINE(D1<=D2,D1,D2,8,0),COLOR;
STICKLINE(D1>=D2,D1,D2,5,0),COLORCC;
STICKLINE(D1>=D2,D1,D2,3,0),COLORDD;
STICKLINE(D1>=D2,D3,D4,0,0),COLORBBFF;
STICKLINE(D1<=D2,D1,D2,5,0),COLOR;
STICKLINE(D1<=D2,D1,D2,3,0),COLORBB;
STICKLINE(D1<=D2,D3,D4,0,0),COLOREE;
------------------------------
示å¾
é¢è²åæ°ä¸æ¯å½æ°ï¼å®æè¿°å¾ ç»å¾å½¢çé¢è²ï¼å°å ¶æå ¥å°æ¯ä¸ªææ å ¬å¼åé¢ï¼ç¨éå·åéå¼ã
常ç¨é¢è²åæ°æï¼
COLORBLACK é»è²
COLORBLUE èè²
COLORGREEN 绿è²
COLORCYAN éè²
COLORRED 红è²
COLORMAGENTA æ´çº¢è²
COLORBROWN æ£è²
COLORLIGHTGRAY æ·¡ç°è²
COLORGRAY æ·±ç°è²
COLORLIGHTBLUE æ·¡èè²
COLORLIGHTGREEN 淡绿è²
COLORLIGHTCYAN æ·¡éè²
COLORLIGHTRED 淡红è²
COLORLIGHTMAGENTA æ·¡æ´çº¢è²
COLORYELLOW é»è²
COLORWHITE ç½è²
é¢è²æ述符è¿å¯ä»¥èªå®ä¹é¢è²ï¼æ ¼å¼ä¸ºCOLOR+âRRGGBBâï¼RRãGGãBB表示红è²ã绿è²åèè²çåéï¼æ¯ç§é¢è²çåå¼èå´æ¯-FFï¼éç¨äºè¿å¶ã
ä¾å¦ï¼MA5ï¼MA(CLOSEï¼5)ï¼COLORFFFF表示纯红è²ä¸çº¯ç»¿è²çæ··åè²ï¼COLOR表示淡èè²å淡绿è²çæ··åè²ã
ï¼åè§ãé件ã--é¢è²ä»£ç 表ï¼
通达信“均线共振形态主图”抓短线牛股指标选股公式,右侧交易,股公改进股趋势为王
通达信的式源式imx307 源码“均线共振形态主图”短线选股指标,注重趋势与形态结合,码线ddoshph源码以辅助右侧交易策略。粘合该指标主要通过五均线跟踪趋势,版选同时关注四种主图形态:三线粘合、线粘圆弧底、合主双交叉和穿四线的图选出现。具体计算如下:AA线:(收盘价*2+最高价+最低价+开盘价)/5,股公改进股计算均值
A0线:5日均线
A1线:(4日、式源式espcms源码8日、码线日EMA平均值)/3,粘合用于捕捉中短期趋势
A2线:(9日、日、模型源码日EMA平均值)/3
A3线:(日、日、日EMA平均值)/3
A4线:(日、日、源码mysql日EMA平均值)/3
A5线:动态调整的布林线中轨
A6线:A5线的四分之一,用于信号判断
A7、A8、A9、A线:计算A1到A4线的最大值和最小值
当A6线大于.5,且五日均线向上穿过后两日,结合其他条件,如A0线高于前两日,可标记为穿四线信号
当A1线和A4线以及A2线和A3线同时交叉时,可能形成买入信号
特定形态如圆弧底和三线粘合,要求满足价格、均线和比率条件,如顶形态的判断
选股公式中,穿四线和三线粘合的条件被具体化,用于筛选符合条件的股票
通过这些指标,投资者可以更精准地捕捉短线行情,利用趋势与形态共振来辅助决策。