以下是同花顺日K线公式

同花顺日K线公式

可直接按照买卖点做参考操作,

红柱区域表示为股价上涨阶段(其中的绿柱由红色点缀代表是正常调整),

绿柱区域表示为股价下跌阶段(其中的红柱由绿色点缀代表是诱多行为),

源码

MA5:MA(CLOSE,5),CulorCCCCCC;

//MA10:MA(CLOSE,10),Culor00BBBB;

MA21:MA(CLOSE,21),Culor00AA00;

//MA30:MA(CLOSE,30),Culor990099;

MA60:MA(CLOSE,60),Culor000088;

//MA120:MA(CLOSE,120),Culor777700;

EM1:=EMA(C,3),colorwhite;

EM2:=EMA(C,5),colorred;

EM3:=EMA(C,8),colorgreen;

TJ:=BETWEEN(EM2,EM1,EM3);

立桩量:=FILTER(TJ=0,5);

平台价:REF(H,BARSLAST(立桩量)),coloryellow;

//DRAWICON(CROSS(C,平台价),L*0.996,1);

//DRAWICON(CROSS(平台价,C),H*1.019,2);

现价:CLOSE;

涨幅:现价/平台价*100-100;

B:=ZIG(3,10);

G:MA(B,3);

BU:=CROSS(B,G);

SEL:=CROSS(G,B);

DRAWICON(CROSS(B,G),L*0.996,7);

DRAWICON(CROSS(G,B),H*1.019,8);

//DRAWTEXT(bu,L*0.99,’买’),linethick1,color00aaff;

//DRAWTEXT(sel,H*1.01,’卖’),linethick1,color00ff00;

DRAWTEXT(CROSS(B,G),L*0.990,’↖B’),coloryellow,LINETHICK5;

DRAWTEXT(CROSS(G,B) AND B<G,H*1.018,’↙S’),colorgreen,LINETHICK5;

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,1),color0000CC;

//STICKLINE(买线<卖线,CLOSE,OPEN,7,1),colorCCCC00;

//STICKLINE(买线<卖线,LOW,HIGH,0.1,0),colorCCCC00;

//STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,1),color00AAFF;

//STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),color00DD00;

STICKLINE(B>G AND CLOSE>=OPEN,OPEN,CLOSE,9,1),colorred;

STICKLINE(B>G AND CLOSE>=OPEN,OPEN,LOW,0,0),colorred;

STICKLINE(B>G AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorred;

STICKLINE(B>G AND CLOSE<OPEN,OPEN,CLOSE,9,0),colorred;

STICKLINE(B>G AND CLOSE<OPEN,LOW,HIGH,0,0),colorred;

STICKLINE(B<G AND CLOSE<=OPEN,OPEN,CLOSE,9,0),colorcyan;

STICKLINE(B<G AND CLOSE<=OPEN,LOW,HIGH,0,0),colorcyan;

STICKLINE(B<G AND CLOSE>OPEN,OPEN,CLOSE,9,1),colorcyan;

STICKLINE(B<G AND CLOSE>OPEN,OPEN,LOW,0,0),colorcyan;

STICKLINE(B<G AND CLOSE>OPEN,CLOSE,HIGH,0,0),colorcyan;

STICKLINE(B=G AND CLOSE>=OPEN,OPEN,CLOSE,9,1),colorblue;

STICKLINE(B=G AND CLOSE>=OPEN,OPEN,LOW,0,0),colorblue;

STICKLINE(B=G AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorblue;

STICKLINE(B=G AND CLOSE<OPEN,OPEN,CLOSE,9,0),colorblue;

STICKLINE(B=G AND CLOSE<OPEN,LOW,HIGH,0,0),colorblue;

STICKLINE((B=’-‘ OR G=’-‘) AND CLOSE>=OPEN,OPEN,CLOSE,9,1),colorblue;

STICKLINE((B=’-‘ OR G=’-‘) AND CLOSE>=OPEN,OPEN,LOW,0,0),colorblue;

STICKLINE((B=’-‘ OR G=’-‘) AND CLOSE>=OPEN,CLOSE,HIGH,0,0),colorblue;

STICKLINE((B=’-‘ OR G=’-‘) AND CLOSE<OPEN,OPEN,CLOSE,9,0),colorblue;

STICKLINE((B=’-‘ OR G=’-‘) AND CLOSE<OPEN,LOW,HIGH,0,0),colorblue;
 

 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。