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

同花顺源码:MACD多空主图+BS点三多方必涨+黑马出枪

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

同花顺MACD多空主图

MAV:=(C*2+H+L)/4;

SK:=EMA(MAV,13)-EMA(MAV,34);SD:=EMA(SK,5);

空方主力:(-2*(SK-SD))*3.8,colorgreen,LINETHICK1;

中轴:0,colorblue;

{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}

YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;

{量:(线),VOLSTICK;}

主力:=(CLOSE*2+HIGH+LOW+O)/4;

散户:=EMA(主力,11)-EMA(主力,22);

量比:=EMA(散户,5);

多方主力:2*(散户-量比)*5,LINETHICK1;




BS点三多方必涨:

三个多空指标依次变多!满足三个指标都是多方开启上升

 
买线:EMA(C,5),colorliblue;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
马线:=MA(牛线,5);
买卖线:=MA(牛线,2);
DRAWICON(CROSS(牛线,买卖线),L*0.99,7);
DRAWICON(CROSS(买卖线,牛线),H*1.01,8);
主力成本线:牛线,coloryellow;
资金生命线:马线,colormagenta;
趋势方向60日线:EMA(C,60),colorlired;
 
下面三个依次多方 满足三个大涨
 
1.
 
红涨:CLOSE,colorred,LINETHICK1;
VAR1:=(HIGH+LOW+OPEN+CLOSE)/4;
VAR3:=2*EMA(LLV(VAR1,7),10)-VAR1;
绿跌:3*VAR3-2*SMA(VAR3,10,1),colorgreen;
黄金线:MA(3*VAR1-2*SMA(VAR1,2,1),12),colorblue;
 
 
2.
 
MAV:=(C*2+H+L)/4;
SK:=EMA(MAV,13)-EMA(MAV,34);SD:=EMA(SK,5);
空方主力:(-2*(SK-SD))*3.8,colorgreen,LINETHICK1;
中轴:0,colorblue;//分析家公式网
{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}
YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;
{量:(线),VOLSTICK;}
主力:=(CLOSE*2+HIGH+LOW+O)/4;
散户:=EMA(主力,11)-EMA(主力,22);
量比:=EMA(散户,5);
多方主力:2*(散户-量比)*5,LINETHICK1;
 
 
3.
 
 
红线: 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);
资金2:EMA(资金,2.25);
 




黑马出枪:

很不错的副图指标,能及时提示上涨和下跌(顶尖财经 股票学院: www.58188.com)

LC:=REF(CLOSE,1);

RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);

TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);

HD:=(HIGH - REF(HIGH,1));

LD:=(REF(LOW,1) - LOW);

DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);

DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);

PDI:=((DMP * 100) / TR1);

MDI:=((DMM * 100) / TR1);

ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);

AV:=(RSI5 + ADX);

DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);

0,COLORFF00FF;

WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,13) - LLV(LOW,13)));

NEWVOL:=(RSI5 - WR10);

阶段底部:=(AV + NEWVOL);

趋势线:=LLV(阶段底部,1),COLORWHITE,LINETHICK0;

STICKLINE(CROSS(阶段底部,0),0,-10,0.1,1),LINETHICK6,COLORRED;

STICKLINE((趋势线 >230 ),100,90,0.1,1),LINETHICK6,COLORGREEN;

Y1:=LLV(L,17);

Y2:=SMA(ABS(L-REF(L,1)),17,1);

Y3:=SMA(MAX(L-REF(L,1),0),17,2);

Q:=-(EMA(IF(L<=Y1,Y2/Y3,-3),1));

STICKLINE(CROSS(Q,0),15,0,4,0), , COLORYELLOW;

强拉升: IF(CROSS(Q,0),1,0),COLORYELLOW; 

Q1:= (CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100, , COLOR00FF00,LINETHICK2;

STICKLINE(CROSS(Q1,-24),20,0,4,0), , COLORMAGENTA;

加强拉升: IF(CROSS(Q1,-24),1,0),COLORMAGENTA;

VAR1:=EMA(EMA(CLOSE,9),9);

控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;

VAR2:=EXPMA(EXPMA(EXPMA((2*CLOSE+HIGH+LOW)/4,4),4),4);

天:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,2));

地:=( MA((VAR2-REF(VAR2,1))/REF(VAR2,1)*100,1));

STICKLINE(地>天 AND 地<0,10,0,1,0),COLORRED;

开始拉升:STICKLINE(地>天 AND 地<0,10,0,1,0)=1,COLORRED;

LOWV:=LLV(LOW,9);

HIGHV:=HHV(HIGH,9);

RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,3);

K:EMA(RSV,3);

D:MA(K,3);

STICKLINE(K>D , K,D ,1.1,0),COLORRED,LINETHICK2;

STICKLINE(D>K,K,D,1.1,0),COLORGREEN,LINETHICK2;

逃顶线:90,COLORGREEN;

抄底线:10,COLORGREEN;

警戒:阶段底部 < 0,LINETHICK0,COLORYELLOW;

出击:CROSS(阶段底部,0),LINETHICK0,COLORRED;

R1:=1;

R2:=((((2*CLOSE)+HIGH)+LOW) / 4);

R4:=LLV(LOW,5);

R5:=HHV(HIGH,4);

C1:=(EMA((((R2-R4)/(R5-R4))*100),4)*R1),COLORFF00FF,LINETHICK2;

C2:=(EMA(((0.667*REF(C1,1))+(0.333*C1)),2)*R1),COLORFFFFFF,LINETHICK2;

条:=CROSS(C1,C2) AND C1<40;

STICKLINE(条,0,-10,2,0),COLORRED;

DRAWTEXT(条,20,'出枪'),COLORYELLOW;

A10:=CROSS(控盘,0);

无庄控盘:IF(控盘<0,控盘,0),COLORWHITE,NODRAW;

开始控盘:IF(A10,20,0),LINETHICK1,COLORYELLOW;

AAZ2:=(MIN(O,C)-L)/L*100>1.4;

BBZ2:=L/MA(C,30)<1.03 AND L/MA(C,30)>0.99 AND C<=O;

准备抓:IF(AAZ2 AND BBZ2,20,0);

DRAWTEXT(AAZ2 AND BBZ2,20,'准备')COLORLIBLUE;

上一篇:同花顺源码:赢钱法宝+特立独行的乖离强势+散资底预警备钱吸筹操盘

下一篇:同花顺源码:加仓+MACD多空更新版副图+能量资金