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

同花顺源码:骁龙5号,庄家绝对成本线,安南超强MACD

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

1、骁龙5号,通道安全与风险

VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),colorgreen,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),colormagenta,LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
MA1:=MA(VAR1,3);
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),3,0),colorgreen;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),3,0),colorgreen;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),colorgreen;
STICKLINE(卖出<LOW,OPEN,CLOSE,3,0),colorgreen;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),colorgreen;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),3,0),colormagenta;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),3,0),colormagenta;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,0),colormagenta;
STICKLINE(买入>HIGH,OPEN,CLOSE,3,0),colormagenta;
STICKLINE(买入>HIGH,HIGH,LOW,0,0),colormagenta;
DRAWTEXT(CROSS(C,买入) OR (L<买入),LOW*0.95,'安全'),colorred,LINETHICK2;
DRAWTEXT(CROSS(C,卖出) OR (H>卖出),HIGH*1.02,'风险'),colorgreen;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'有异动'),coloryellow;
STICKLINE(买,OPEN,CLOSE,2,0),coloryellow;
黄金线:EMA(C,18),POINTDOT,LINETHICK4,coloryellow;



2、庄家绝对成本线,有买卖提示

按提示买卖;;当股价上穿主力成本线后,多空线上穿强命线,可择机买入。
当股价偏离主力成本线30%以上时就要小心回调( 顶尖财经 股票学院: http://58188.com )

 
 MA7:MA(CLOSE,7),COLORFFFFFF,LINETHICK1;

MA15:EMA(C,15),LINETHICK1,coloryellow;
MA18:=EMA(CLOSE,18),colorgreen;
买线:=ZIG(3,10);
卖线:=MA(买线,3);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(bu,L*0.99,'买'),linethick1,color00aaff;
DRAWTEXT(sel,H*1.01,'卖'),linethick1,color00ff00;
DRAWTEXT("X09A.T">0,L*0.99,'B'),linethick1,colorFFffff;
DRAWTEXT("X09A.T1">0,L*0.99,'B'),linethick1,color0000ff;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),color0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),color0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,7,0),colorCCCC00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),colorCCCC00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),color00AAFF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00



3、安南超强MACD,派拉吸落低位金叉二次金叉底背离

派拉吸落一目了然。通过色柱提前抄底。也可通过二次金叉,跟庄坐骄。( 顶尖财经 股票学院: http://58188.com )

提供信号,派拉吸落 macd低位金叉 macd二次金叉 macd底背离 底背离

 VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);

OBV1:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
OBV2:=EMA(OBV1,3)-MA(OBV1,9);
OBV3:=EMA(IF(OBV2>0,OBV2,0),3);
MAC3:=MA(C,3);
SHORT:=12;LONG:=26;MID:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),coloryellow ;
DEA:EMA(DIF,MID),COLORFF9900 ;
MACD:=(DIF-DEA)*2;
STICKLINE(OBV3>REF(OBV3,1) AND MAC3>REF(MAC3,1),0,MACD,2,0),coloryellow;
VARA:=EMA(EMA(C,13),13);
KP:=(VARA-REF(VARA,1))/REF(VARA,1)*1000;
MM:=REF(KP,1);
吸:=IF(KP<=0 AND KP>=MM,KP,DRAWNULL),colorlired,LINETHICK3;
拉:=IF(KP>=0 AND KP>=MM,KP,DRAWNULL),colorred,LINETHICK3;
派:=IF(KP>=0 AND KP<=MM,KP,DRAWNULL),colorgreen,LINETHICK3;
落:=IF(KP<=0 AND KP<=MM,KP,DRAWNULL),colorwhite,LINETHICK3;
STICKLINE(吸,0,MACD,1,0),colorlired,LINETHICK3;
STICKLINE(拉,0,MACD,1,0),colorred,LINETHICK3;
STICKLINE(派,0,MACD,1,0),colorgreen,LINETHICK3;
STICKLINE(落,0,MACD,1,0),colorwhite,LINETHICK3;
入1:IF(DIF>REF(DIF,1),DIF,DRAWNULL),colorred,LINETHICK2;
低位金叉:=CROSS(DIF,DEA) AND DIF<-0.1;
STICKLINE(低位金叉,0,DEA*0.8,6,0),colorligreen;
DRAWTEXT(低位金叉,DEA,'低位金叉'),colorwhite;
JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));
二次金叉:=CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1;
二次信号:IF(COUNT(二次金叉=1,30),0,DRAWNULL);
STICKLINE(二次金叉,0,-DEA*0.8,6,0),COLORFFCC00;
DRAWICON(二次金叉,DEA*0.9,1) ;
DRAWTEXT(二次金叉,-DEA,'二次金叉'),coloryellow;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
DRAWTEXT(底背离,-DEA*1.5,' 底背离'),COLORFF00FF;

上一篇:同花顺源码:小杨彩色MACD,KW凯文指标,温度计趋势

下一篇:同花顺源码:操盘论势,黄金生命线,BS点加强指标