当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:精品买卖,进退自如,超级量能柱

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

精品买卖:

手机端主图很有参考价值( 顶尖财经 股票学院: http://www.58188.com )

 
JJ:=(CLOSE+HIGH+LOW)/3;
A:=EMA(JJ,10);
B:=REF(A,1);
STICKLINE(A>B,A,B,5,0),COLORYELLOW;
STICKLINE(A<B,A,B,5,0),COLORBLUE;
M1:EMA(CLOSE,3);
M2:EMA(CLOSE,8);
M3:EMA(M2,13);
M4:EMA(M2,55);
VAR1:=EMA(M3,55);
M5:EMA(M4,81), COLORRED,LINETHICK2;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'), COLORGREEN;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(79,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.035,2);
DRAWTEXT(VAR7,HIGH*1.02,'卖出'), COLORGREEN;
A7:=(2*C+H+L)/4;
VAR10:=LLV(LOW,34);
VAR11:=HHV(HIGH,34);
SK:=EMA((A7-VAR1)/(VAR2-VAR1)*100,7);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,5);
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),8)/8>6/10 AND VOL>=1.5*MA(VOL,5) AND
COUNT(SK>=SD,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'●买进') ,COLORRED;
DRAWTEXT(IF(COUNT(CLOSE<REF(CLOSE,1),13)/13>6/10 AND
COUNT(SK>SD,6) AND REF(LOW,5)=LLV(LOW,120) AND REF(CLOSE>=OPEN,4) AND
REF(CLOSE>OPEN,3) AND REF(CLOSE>OPEN,2) AND REF(OPEN>CLOSE,1) AND
OPEN>REF(CLOSE,1),1,0),LOW,'●买进'), COLORRED;
D:=MA(CLOSE,80)-MA(CLOSE,10)/3;
DRAWTEXT(IF(CLOSE<D AND VOL/240>MA(VOL,5)/240 AND CLOSE>REF(CLOSE,1)*1.08
AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'●抄底'),COLORRED;




进退自如:

VAR1:=(HHV(HIGH,9)-LLV(LOW,9)); 
VAR2:=(HHV(HIGH,9)-CLOSE); 
VAR3:=(CLOSE-LLV(LOW,9)); 
VAR4:=VAR2/VAR1*100-70 ; 
VAR5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; 
VAR6:=(2*C+H+L)/4; 
VAR7:=SMA((VAR3/VAR1*100),3,1); 
VAR8:=LLV(LOW,34); 
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1); 
VAR10:= IF(VAR9>100,VAR9-100,0); 
VARA:=HHV(HIGH,34); 
防线B:EMA((VAR6-VAR8)/(VARA-VAR8)*100,8),COLORWHITE;
 
B1:=EMA(防线B,5); 
STICKLINE(防线B>0 AND 防线B-B1>=0,79,80,6,0),COLORFF8000;
STICKLINE(防线B>0 AND 防线B-B1<0,79,80,6,1),COLORRED; 
STICKLINE(防线B>0 AND 防线B-B1>=0,19,20,6,0),COLOR00FF00; 
STICKLINE(防线B>0 AND 防线B-B1>=0,49,50,6,0),COLORYELLOW;
STICKLINE(防线B>0 AND 防线B-B1<0,49,50,6,1),COLORRED;
STICKLINE(防线B>0 AND 防线B-B1<0,19,20,6,1),COLORRED;
红进:防线B-B1,COLORRED;
{STICKLINE(防线B-B1>0,防线B,B1,8,1),COLOR00FF00;}
绿出:-红进,COLOR00FF00;
{STICKLINE(防线B-B1<0,防线B,B1,8,1),COLORRED;}
卖:(REF(红进,1)>0 AND 红进<=0) OR (红进<1 AND 红进>=0  AND C<O) AND 防线B>62,COLORRED;
卖出:FILTER(卖=1,3);
STICKLINE(卖出,0,28,2,0),COLOR00FF00;
DRAWTEXT(卖出,45,'卖'),COLOR00FF00;
买:卖出=0 AND REF(红进,1)<0 AND 红进>0 AND 防线B<42,COLORRED; 
买入:FILTER(买=1,3);
STICKLINE(买入,0,28,2,0),COLORRED;
DRAWICON(买入,30,1);
DRAWTEXT(买入,33,'买'),COLORRED;




超级量能柱:

{超级量能柱

 
参数1: LIMIT, 最小: 0, 最大: 1000, 缺省: 35
参数2: M1, 最小: 0, 最大: 1000, 缺省: 5
参数3: M2, 最小: 0, 最大: 1000, 缺省: 10
参数4: M3, 最小: 0, 最大: 1000, 缺省: 120
}
LIMIT:=35;
M1:=5;
M2:=10;
M3:=120;
VOLUME:VOL,VOLSTICK;
X_1:=MA(VOL,LIMIT);
MA1:MA(VOL,M1);
MA2:MA(VOL,M2);
MA3:MA(VOL,M3);
X_2:=MA(VOL,5);
X_3:=MA(CLOSE,5);
 
脉冲量:VOL>X_1 AND CLOSE>OPEN;
量能簇:EVERY(VOL>X_1 AND CLOSE>OPEN,3);
X_4:=IF(OPEN>CLOSE,OPEN,CLOSE);
黑心柱:VOL>2*X_1 AND (CLOSE<OPEN OR (HIGH-X_4>0.5*(HIGH-LOW) AND (HIGH-LOW)/REF(CLOSE,1)>0.05));
洗盘柱:X_3<REF(X_3,1) AND VOL>REF(VOL,1) AND VOL>X_2 AND ABS(CLOSE/REF(CLOSE,1)-1)>0.03 AND CLOSE<OPEN;
STICKLINE(量能簇,HHV(VOL,3),0,2.5,0),COLORRED;
STICKLINE(量能簇,REF(VOL,1),0,2,0),COLORRED;
STICKLINE(量能簇,REF(VOL,2),0,2,0),COLORRED;
STICKLINE(脉冲量,VOL,0,2,0),COLORYELLOW;
STICKLINE(黑心柱,VOL*0.9,0,2,0),COLORBLACK;
STICKLINE(洗盘柱,VOL*0.8,0,2,0),COLORMAGENTA;

上一篇:通达信源码:分时高抛低吸,轨道线主图,缠论多空

下一篇:通达信源码:突破防线,趋势K线