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

通达信源码:爆赢法则,多空神准变色磁力线,开天之剑

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

爆赢法则:

{公式名称: 爆赢法则}
 
运行指向:EMA(100*(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)),3),COLORYELLOW,LINETHICK2;
介入:IF(REF(运行指向,2)>REF(运行指向,1) AND 运行指向>REF(运行指向,1),1,0);
X_1:=HHV(HIGH,9)-LLV(LOW,9);
X_2:=HHV(HIGH,9)-CLOSE;
X_3:=CLOSE-LLV(LOW,9);
X_4:=X_2/X_1*100-70;
X_5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
X_6:=(2*CLOSE+HIGH+LOW)/4;
X_7:=SMA(X_3/X_1*100,3,1);
X_8:=LLV(LOW,34);
X_9:=SMA(X_7,3,1)-SMA(X_4,9,1);
X_10:=IF(X_9>100,X_9-100,0);
X_11:=HHV(HIGH,34);
X_12:=EMA((X_6-X_8)/(X_11-X_8)*100,8);
大仓持有:EMA(X_12,13),POINTDOT,COLORRED;
介入1:IF(REF(大仓持有,2)>REF(大仓持有,1) AND 大仓持有>REF(大仓持有,1),1,0);
XG:大仓持有>REF(大仓持有,1);
STICKLINE(X_12-大仓持有>0,X_12,大仓持有,3.5,0),COLORRED;
STICKLINE(X_12-大仓持有<0,X_12,大仓持有,3.5,0),COLORGREEN;
短:100*(CLOSE-LLV(LOW,5))/(HHV(CLOSE,5)-LLV(LOW,5)),COLORGRAY;
中:100*(CLOSE-LLV(LOW,10))/(HHV(CLOSE,10)-LLV(LOW,10)),COLORLIGRAY;
中长:100*(CLOSE-LLV(LOW,20))/(HHV(CLOSE,20)-LLV(LOW,20)),COLORBROWN;
长:100*(CLOSE-LLV(LOW,30))/(HHV(CLOSE,30)-LLV(LOW,30)),COLORRED,LINETHICK3;
20,POINTDOT;
50,POINTDOT;
80,POINTDOT;
甲:DRAWTEXT(短<10 AND 长>60,80,2),COLORCYAN;
乙:DRAWTEXT(短<6 AND 中<6 AND 长<6,50,6),COLORCYAN;
丙:DRAWTEXT(短=0 AND 中=0 AND 长=0,20,27),COLORCYAN;
丁:DRAWTEXT(短=100 AND 中=100 AND 长=100,80,28),COLORCYAN;




多空神准变色磁力线:

N:=11;
M:=6;
MA(C,5);
MA(C,13);
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
K:COST(80),LINETHICK1;
X1:=(C+L+H)/1.5;
X2:=EMA(X1,3);
X3:=EMA(X2,2.5);
磁力线:(MA(CLOSE,30)+MA(CLOSE,72))/2,COLORGREEN;
多空线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
DRAWTEXT(CROSS(多空线,磁力线),多空线,'进场'),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(磁力线,多空线),磁力线,'走人'),COLORRED,LINETHICK2;
STICKLINE(CLOSE/REF(C,1)>=1.09,O,C,2.7,0),COLORYELLOW;
STICKLINE(CLOSE/REF(C,1)<=0.91,O,C,2.7,0),COLORGREEN;
STICKLINE(X2>=X3,LOW,HIGH,0,1),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,3.2,2),COLORRED;
STICKLINE(X2<X3,LOW,HIGH,0,1),COLOR00FF00;
STICKLINE(X2<X3,CLOSE,OPEN,3.2,2),COLOR00FF00;
DA:=(EMA(C,1)+EMA(C,2)+EMA(C,3)+EMA(C,4))/4;
DB:=(EMA(C,10)+EMA(C,20)+EMA(C,40)+EMA(C,80))/4;
DRAWTEXT(CROSS(DA-DB,0),L*0.95,''),COLORRED;
JH:=SMA(MAX(C-REF(C,1),0),5,1)/SMA(ABS(C-REF(C,1)),5,1)*100;
DRAWTEXT(CROSS(84,JH),H*1.02,''),COLORGREEN;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,3.2,0),COLOR00FF00;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,3.2,0),COLORRED;
CV:=CLOSE;
地心引力区1:磁力线*1.1,LINETHICK2,COLORRED;
地心引力区2:磁力线*0.9,LINETHICK2,COLORFF33FF;
BBIBOLL:(MA(CV,3)+MA(CV,6)+MA(CV,12)+MA(CV,24))/4;
MA6:=MA(C,6),COLORWHITE;
MA18:=MA(C,24),COLORYELLOW;
MA55:=MA(C,55),COLORFF00FF;
MA135:=MA(C,135),COLORFFCC66;
STICKLINE((CLOSE>OPEN) AND (X2<X3),CLOSE,OPEN,3.2,2)COLOR00FF00;
STICKLINE((CLOSE>OPEN) AND (X2>=X3),CLOSE,OPEN,3.2,2)COLORRED;
WWW58188COM:=EMA(CLOSE,453),LINETHICK1,COLORRED;
UPR:BBIBOLL+M*STD(BBIBOLL,N);
DWN:BBIBOLL-M*STD(BBIBOLL,N);
STICKLINE((CLOSE<OPEN) AND (X2<X3),CLOSE,OPEN,3.2,0)COLOR00FF00;
STICKLINE((CLOSE<OPEN) AND (X2>=X3),CLOSE,OPEN,3.2,0)COLORRED;




开天之剑:

有未来函数(顶尖财经 股票学院: www.58188.com)

TR1:=EXPMEMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(REF(C,1)-L)),12);
HD1:=H-REF(H,1); LD1:=REF(L,1)-L;
VAR1:=EXPMEMA(IF(HD1>0&&HD1>LD1,HD1,0),12)*100/TR1;
VAR2:=EXPMEMA(IF(LD1>0&&LD1>HD1,LD1,0),12)*100/TR1;
VAR3:=VAR1>65 AND VAR1>REF(VAR1,1);
VAR4:=LLV(VAR1,0);
VAR5:=BARSLAST(VAR4=VAR1);
VAR6:=(0-REF(VAR2,4))/(VAR4-REF(VAR2,VAR5))>2;
VAR7:=VAR1>REF(VAR1,1);
VAR8:=VOL>2*MA(VOL,30);
VAR9:=EXPMEMA(ABS(VAR2-VAR1)/(VAR2+VAR1)*100,6);
VARA:=EXPMEMA(VAR3,6);
VARB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
VARD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARE:=0-(EMA(CLOSE,7)-EMA(CLOSE,21));
VARF:=TROUGHBARS(3,15,1)<4;
VAR10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
VAR11:=IF(VARF=1,50,0);
公式网70822COM:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
VAR12:=CROSS(VAR2,VAR1) AND CROSS(VARA,VAR9);
VAR13:=CROSS(VAR2,VAR1) AND CROSS(VAR9,VARA);
VAR14:=VARB AND VARC AND VARD AND VAR10 AND VAR6 AND VAR7 AND VAR8*50;
VAR15:=BARSLAST(CROSS(VAR2,VAR1)=1);
VAR16:=BARSLAST(CROSS(VAR1,VAR2)=1);
VAR17:=HHV(VAR1,VAR16);
VAR18:=BARSLAST(VAR1=VAR17);
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
STICKLINE(0=0,0,0,1500,1),COLORRED;
STICKLINE(FILTER(VARF=1,5) AND 多空<-10,50,0,10,0),COLORF00FF0;
STICKLINE(FILTER(VARF=1,5),50,0,5,0),COLORYELLOW;
VAR19:=VAR3 OR VAR12 OR VAR13*100;
VAR1A:=VAR13*100;
DRAWTEXT(FILTER(VARF=1,3),25,'←开天★之剑'),COLORRED;
STICKLINE(多空<-10,0,多空,0.85,0),COLORYELLOW;
STICKLINE(多空>10,0,多空,0.95,0),COLORRED;

上一篇:通达信公式下载:黄金狙击,量柱变色龙,飞龙涨停狙击

下一篇:通达信源码:庄家动作,猫哥双均布林,Q潜龙决