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

同花顺源码:较好买点,一本预警主图,换缺3 空桨副图

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

1、较好买点

买线:=EMA(C,2);

卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(bu,LOW*0.999,'B'),colorred,linethick3;
DRAWTEXT(bu,LOW,'﹉'),Color208FFF,LINETHICK3;
DRAWTEXT(sel,HIGH,'﹉'),ColorFFFF00,LINETHICK3;
DRAWTEXT(sel,HIGH*1.008,'S'),colorffff00,linethick3;
STICKLINE(买线>=卖线,LOW,HIGH,1,0),colorred;
STICKLINE(买线>=卖线,CLOSE,OPEN,4.5,0),color0000aa;
STICKLINE(买线>=卖线,CLOSE,OPEN,4,0),color0000cc;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),color0000cc;
STICKLINE(买线>=卖线,CLOSE,OPEN,2,0),color0000ee;
STICKLINE(买线<卖线,CLOSE,OPEN,4.5,0),coloraaaa00;
STICKLINE(买线<卖线,CLOSE,OPEN,4,0),colorbbbb00;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),colorcccc00;
STICKLINE(买线<卖线,CLOSE,OPEN,2,0),coloreeee00;
STICKLINE(买线<卖线,LOW,HIGH,1,0),colorffff00;
STICKLINE(CROSS(买线,卖线)
OR CROSS(卖线,买线),OPEN,CLOSE,3,0),color00ffff;
指导线:
EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2),linethick1,ColorFFffFF;
界: MA(CLOSE,27),linethick1,Color00FFFF;
DRAWTEXT(CROSS(指导线,界),界,' ̄'),Colorffffff;
DRAWTEXT(CROSS(界,指导线),界,' ̄'),Color00ffff;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
G:=95;
DRAWTEXT(CROSS(界,指导线),界,'始');
DRAWTEXT(CROSS(指导线,界),指导线,'终');




2、一本预警主图

DRAWTEXT_FIX(C>O,0.35,0.13,0,' ★★★★★一本预警★★★★★ '),colorred;

N:=150;
高1:=REF(HHV(H,N),3);
低1:=REF(LLV(L,N),3);
H1:=高1-(高1-低1)*0.809;
H2:=高1-(高1-低1)*0.618;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.382;
H5:=高1-(高1-低1)*0.191;
红轨道:=MA(MA(CLOSE,3),1);
涨停线:REFDATE(高1,DATE),colorgreen,LINETHICK1;
地:=REFDATE(低1,DATE),colorred,LINETHICK1;
下191:=REFDATE(H1,DATE),colorcyan,LINETHICK1;
下382:=REFDATE(H2,DATE),coloryellow,LINETHICK1;
起拔:REFDATE(H3,DATE),colormagenta,LINETHICK2;
警戒二:REFDATE(H4,DATE),coloryellow,LINETHICK1;
警戒一:REFDATE(H5,DATE),colorcyan,LINETHICK1;
轨道:=MA(MA(CLOSE,3),3),colorblue,LINETHICK2;
一本:IF(红轨道>=轨道,轨道,红轨道),colorred,LINETHICK2;



3、换缺3 空桨副图

//换缺3 空桨副图( 顶尖财经 股票学院: http://58188.com )
HS:V/SHGZG*100;
HS3:MA(HS,3);
DRAWTEXT(HIGH<REF(LOW,1),-1.1*HS,'空');
STICKLINE(LOW>REF(HIGH,1),0,HS,8,1),colorgreen;
STICKLINE(LOW>REF(HIGH,1) AND HS>REF(HS,1),0,0.5*HS,8,1),coloryellow;
辅助:0;
A0:=L=LLV(LOW,60);
B0:=IF(C<HHV(H,60)*0.6,0.5,0);
VAR1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
b1:=VAR3;
d1:=VAR4;
VAR5:=CROSS(VAR3,VAR4) AND VAR3<20;
DRAWTEXT(FILTER(VAR5,10)=1 AND CLOSE/OPEN<1.03 AND C>O,1.5,'b'),colorred;
DRAWTEXT(CROSS(b1,d1),3,'c'),colorblue;
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
zl:=(EMA(CS,3)-50)*2;
DRAWTEXT(CROSS(zl,-60),-0.5,'h'),colorgreen;
DRAWTEXT(CROSS(zl,-80),-2,'x'),colorcyan;
STICKLINE(L=LLV(LOW,60),0,-Hs,8,1),colorgreen;
STICKLINE(C<HHV(H,60)*0.6,0,-0.5*Hs,8,0),coloryellow;
桨:=IF(H/REF(L,1)>=1.1,1,0);
DRAWTEXT(桨=1,Hs*0.8,'桨');
 

上一篇:同花顺源码:风险控制,顶底趋势,缠论分笔及中枢主图

下一篇:同花顺源码:多空顶底,美人眼KD,箱体轨道