当前位置: 网站首页 > 股票软件公式 > 同花顺公式 > 文章 当前位置: 同花顺公式 > 文章

同花顺源码:DKX买入+杨氏龙腾四海+MACD主升浪抓涨停

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

DKX买入:

DKX:WMA(CLOSE,P1),coloryellow;

DKXM:MA(DKX,P2),colorgreen;
STICKLINE(DKX>DKXM,DKX,DKXM,0.5,0),coloryellow;
STICKLINE(DKX<=DKXM,DKX,DKXM,0.5,0),colorblue;



杨氏龙腾四海:

 Var1:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));

Var2:=100-90*(HHV(HIGH,20)-CLOSE)/(HHV(HIGH,20)-LLV(LOW,20));
Var3:=100-MA(100*(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6)),28);
买入:IF(Var2<MA(Var3,6),MA(Var3,6),Var2),colorred;
卖出:IF(Var1>MA(Var3,6),MA(Var3,6),Var1),colorgreen,linethick2;
强弱线:MA(Var3,6),coloryellow ,linethick2;
DRAWBAND(买入,RGB(180,180,80),80,RGB(10,10,10));
DRAWBAND(卖出,RGB(280,180,180),50,RGB(10,100,10));
海面:=20;
海天分界线:=50;
天际:=80;
个股趋势:3*SMA((C-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,20,1)
-2*SMA(SMA((C-LLV(L,34))/(HHV(H,34)-LLV(L,34))*100,20,1),15,1),LINETHICK5,COLOR00DDDD;
DRAWBAND(个股趋势,RGB(80,80,80),80,RGB(0,0,0));
持币:IF(个股趋势<REF(个股趋势,1),个股趋势,DRAWNULL),LINETHICK5,COLORFFFF00;
VAR1:=(2*C+H+L)/4;
VAR2:=LLV(LOW,30);
VAR3:=HHV(HIGH,30);
B:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,8);
B1:=EMA(B,8);
STICKLINE(B>0 AND B-B1>=0,79,80,10,0),COLOR000080,LINETHICK8;
STICKLINE(B>0 AND B-B1<0,79,80,10,0),COLOR00FF00,LINETHICK8;
STICKLINE(B>0 AND B-B1>=0,49,50,10,0),COLOR000080,LINETHICK8;
STICKLINE(B>0 AND B-B1<0,49,50,10,0),COLOR00FF00,LINETHICK8;
STICKLINE(B>0 AND B-B1>=0,19,20,10,0),COLOR000080,LINETHICK8;
STICKLINE(B>0 AND B-B1<0,19,20,10,0),COLOR00FF00,LINETHICK8;
//
Var1:=(H+L)/2;
AO:=SMA(Var1,5,1)-SMA(Var1,34,1),LINETHICK0;
AC:=SMA((AO-SMA(AO,5,1)),5,1),COLOR6699CC,DOTLINE,LINETHICK0;
STICKLINE(AC>=REF(AC,1),0,AC,6,1),colorlired,LINETHICK5;
STICKLINE(AC<=REF(AC,1),0,AC,6,1),colorgray,LINETHICK5;
STICKLINE(MACD>0,0.000001,0.000003,15,0),colorred,,LINETHICK8;
STICKLINE(MACD<0,0.000001,0.000003,15,0),colorblue,LINETHICK8;
VAR1:=(C-REF(C,1))/REF(C,1);
VAR2:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1);
个股:=EMA(SUM(VAR1,20),5);
大盘:=EMA(SUM(VAR2,20),5);
领涨:=(个股-大盘)>=0;
Var3:=(C-LLV(L,125))/(HHV(H,125)-LLV(L,125))*100;
Var4:=SMA(Var3,72,1);
Var5:=SMA(Var4,34,1);
中线趋势:=3*Var4-2*Var5;
中线趋势升:=(中线趋势-REF(中线趋势,1))>=0;
均五升:=(MA(C,5)-REF(MA(C,5),1))>=0;
均十升:=(MA(C,10)-REF(MA(C,10),1))>=0;
VAR6:=(2*C+H+L)/4;
VAR7:=LLV(L,9);
VAR8:=HHV(H,9);
操作:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13)-50,linethick0,colorred;
趋势:EMA(0.618*REF(操作,1)+0.382*操作,3),colorffff00,linethick2;
强势:=IF(均五升 AND 均十升 AND 中线趋势升 AND 领涨,4,0),colorff99ff;
STICKLINE(操作>趋势 AND 操作>=REF(操作,1),操作+5,趋势-1,3.5,0),colorred,linethick2;
STICKLINE(操作>=趋势,趋势,趋势,3.5,0),coloryellow,linethick2;
STICKLINE(操作<趋势,趋势+0.5,趋势-0.5,3.5,0),colorffff00,linethick2;
STICKLINE(强势=4,操作+6,趋势-1,4,0),colorff99ff;
DRAWTEXT(CROSS(操作,趋势) AND (操作>-30),操作,'▲'),colorred;
DRAWTEXT(CROSS(趋势,操作) AND (操作>-20),操作,'▼' ),Color00FF00;
//
 



MACD主升浪抓涨停:

黄线金叉绿线短线企稳。零轴上方强势上升趋势。选择将要零轴出头的股(蓝色流出慢慢变少),
资金线会优先上穿零轴!此时股价要爆发!(顶尖财经 股票学院: http://58188.com)
 
红线: EMA(CLOSE,6) - EMA(CLOSE,10),LINETHICK1,coloryellow;
绿线: EMA(红线,5),LINETHICK1,colorgreen;
DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*400;
DEA:=EMA(DIFF,9),COLORFFFF00;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
VARB:=SMA(MAX(CLOSE-LC,0),7,1)/SMA(ABS(CLOSE-LC),7,1)*100;
VARC:=SMA(MAX(CLOSE-LC,0),13,1)/SMA(ABS(CLOSE-LC),13,1)*100;
VARD:=BARSCOUNT(CLOSE);
控盘:=EMA(CLOSE,6) - EMA(CLOSE,10);
STICKLINE(控盘<0,控盘,0,3,0),COLORFFAA00;
STICKLINE(控盘>REF(控盘,3) AND 控盘>0,控盘,0,3,0),colorred;
STICKLINE(控盘<REF(控盘,3) AND 控盘>0,控盘,0,3,0),COLOR008800;
BT2:=CROSS(红线,绿线) AND 红线<-10;
买:IF((CROSS(红线,绿线) AND 红线<-10),1,0),LINETHICK1,COLORC87800;
资金:EMA(CLOSE,3)-EMA(CLOSE,6.5),colormagenta,LINETHICK1;

上一篇:同花顺公式下载:神手看盘主图+金牛波段

下一篇:同花顺源码:主散争霸+生命趋势