第一:用法
紅柱線是中線指示,其余四色柱線是短線指示;連續(xù)發(fā)出三個以上短線指示,可以短線買入;連續(xù)發(fā)出三個以上短線指示后,發(fā)出中線指示,可以重倉買入。
指標(biāo)當(dāng)在 在零軸線之上時,指標(biāo)的 【多頭和多均】會顯示正值。代表股價的方向和趨勢屬于形態(tài)比較好!反之如果在零軸之下【多頭和多均】會顯示負(fù)值,標(biāo)示股價是弱勢形態(tài)! 這樣可以根據(jù)正負(fù)值來來看本只股價的強(qiáng)弱程度!
第二、源碼
k2:=EMA(c,5);
k3:=EMA(c,10);
k5:=EMA(c,30);
k6:=2*(k2-k5);
k7:=2*(k2-k3);
k8:=2*(k7+k6);
中線指示:STICKLINE(CROSS(k8,0),0,40,8,0),COLORRED;
p1:= ma(close,2);
p2:= ma(close,5);
diff :=ema(close,12) - ema(close,26);
dea :=ema(diff,9);
vma1:=ma (vol,2)/100000;
vma2:=ma(vol,5)/100000;
ppday:= barslast(cross(p1,p2));
vvday:= barslast(cross(vma1,vma2));
macdday:= barslast(cross(diff,dea));
A1:=BARSLAST(ref(cross(diff,dea),1));
金叉:if(ref(c,A1+1)>c and ref(diff,A1+1)
sjcjd:= if((ppday<=3 and vvday<=3 and macdday<=3)and (diff<0),1,0);
STICKLINE(sjcjd,50,60,6,0),colorwhite,linethick2;
短趨勢:
=((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50);
Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var3:=LLV(LOW,34);
Var4:=HHV(HIGH,34);
長趨勢:=EMA((Var2-Var3)/(Var4-Var3)*100,13),color00ff00;
判斷底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*15;
Var5:=CROSS(短趨勢,長趨勢)AND 長趨勢<25;
STICKLINE(Var5,60,70,8,0) ,colorgreen;
XX:=((((CLOSE-MA(CLOSE,34))/MA(CLOSE,34))*100)*5);
B001:=(((((CLOSE-MA(CLOSE,42))/MA(CLOSE,42)))*100)*5);
B002:=(((((CLOSE-MA(CLOSE,67))/MA(CLOSE,67)))*100)*5);
B003:=(((XX+B001)/2)-B002);
B004:=(((0-100)*(Var4-CLOSE))/(Var4- Var3));
B005:=(((0-100)*(HHV(HIGH,42) - CLOSE))/(HHV(HIGH,42) - LLV(LOW,42)));
B006:=(((0-100)*(HHV(HIGH,72) - CLOSE))/(HHV(HIGH,72) - LLV(LOW,72)));
B007:=EMA((((B004+B005)/2)-B006),6);
B008:=REF(CLOSE,1);
B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);
B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);
B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);
多頭:EMA(((((B009 + B010)/2) - B011) * 5),6);
空頭:=(((-1*((B007 + B003) + 多頭))/3) * 1.5);
多均:EMA(多頭,4);
空均:=EMA(空頭,4);
C026:=WINNER(CLOSE);
W:=(DMA(C026,(VOL/CAPITAL)) * 100);
XD1:=EMA(W,6);
莊家控盤:((W-XD1)*15),COLORSTICK,LINETHICK2;
STICKLINE(cross(多頭,空均),80,70,8,0),COLORYELLOW;
Varb1:=(2*CLOSE+HIGH+LOW)/4;
Varb2:=LLV(LOW,34);
Varb3:=HHV(HIGH,34);
Varb4:=ma(HIGH,8);
xx1:=EMA((Varb1-Varb2)/(Varb3-Varb2)*100,13);
yy:=EMA(0.667*REF(xx1,1)+0.333*xx1,2) , ;
STICKLINE(CROSS(xx1,20) AND yy
逃頂:IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),70,90),COLORFF0000;
DRAWTEXT(CROSS(多頭,多均)AND 多均<-15,多均,'☆'),COLORRED;
DRAWTEXT(CROSS(多均,多頭)AND 多均>35,多均+7,'☆'),COLOR00FF00;
分析家的(對莊家控盤進(jìn)行了改動,與飛狐不完全一樣):
{使用方法:
1 紅柱線是中線指示
2 其余四色柱線是短線指示
3連續(xù)發(fā)出三個以上短線指示,可以短線買入.
4連續(xù)發(fā)出三個以上短線指示后,發(fā)出中線指示,可以重倉買入.}
k2:=EMA(c,5);
k3:=EMA(c,10);
k5:=EMA(c,30);
k6:=2*(k2-k5);
k7:=2*(k2-k3);
k8:=2*(k7+k6);
中線指示:STICKLINE(CROSS(k8,0),0,40,8,0),COLORRED;
p1:=ma(close,2);
p2:=ma(close,5);
diff:=ema(close,12) - ema(close,26);
dea:=ema(diff,9);
vma1:=ma(vol,2)/100000;
vma2:=ma(vol,5)/100000;
ppday:= barslast(cross(p1,p2));
vvday:= barslast(cross(vma1,vma2));
macdday:= barslast(cross(diff,dea));
A1:=BARSLAST(ref(cross(diff,dea),1));
金叉:if(ref(c,A1+1)>c and ref(diff,A1+1)
sjcjd:= if((ppday<=3 and vvday<=3 and macdday<=3)and (diff<0),1,0);
STICKLINE(sjcjd,50,60,6,0),colorwhite,linethick2;
短趨勢:
=((3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-50)*1.032+50);
Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var3:=LLV(LOW,34);
Var4:=HHV(HIGH,34);
長趨勢:=EMA((Var2-Var3)/(Var4-Var3)*100,13);
判斷底:SQRT(SQRT(FLOOR(SQRT(MA(1/WINNER(CLOSE)*100,4)/10000))))*15;
Var5:=CROSS(短趨勢,長趨勢)AND 長趨勢<25;
STICKLINE(Var5,60,70,8,0) ,colorgreen;
XX:=((((CLOSE-MA(CLOSE,34))/MA(CLOSE,34))*100)*5);
B001:=(((((CLOSE-MA(CLOSE,42))/MA(CLOSE,42)))*100)*5);
B002:=(((((CLOSE-MA(CLOSE,67))/MA(CLOSE,67)))*100)*5);
B003:=(((XX+B001)/2)-B002);
B004:=(((0-100)*(Var4-CLOSE))/(Var4- Var3));
B005:=(((0-100)*(HHV(HIGH,42) - CLOSE))/(HHV(HIGH,42) - LLV(LOW,42)));
B006:=(((0-100)*(HHV(HIGH,72) - CLOSE))/(HHV(HIGH,72) - LLV(LOW,72)));
B007:=EMA((((B004+B005)/2)-B006),6);
B008:=REF(CLOSE,1);
B009:=((((SMA(MAX((CLOSE - B008),0),19,1) / SMA(ABS((CLOSE - B008)),19,1)) * 100) - 50) * 1.25);
B010:=((((SMA(MAX((CLOSE - B008),0),34,1) / SMA(ABS((CLOSE - B008)),34,1)) * 100) - 50) * 1.25);
B011:=((((SMA(MAX((CLOSE - B008),0),72,1) / SMA(ABS((CLOSE - B008)),72,1)) * 100) - 50) * 1.25);
多頭:EMA(((((B009 + B010)/2) - B011) * 5),6);
空頭:=(((-1*((B007 + B003) + 多頭))/3) * 1.5);
多均:EMA(多頭,4);
空均:=EMA(空頭,4);
Va1:=EMA(EMA(CLOSE,13),13);
莊家控盤:(Va1-REF(Va1,1))/REF(Va1,1)*3000,POINTDOT;
STICKLINE(莊家控盤<0,莊家控盤,0,4,0),colorffff00;
STICKLINE(莊家控盤>0,莊家控盤,0,4,0),colorred;
STICKLINE(cross(多頭,空均),80,70,8,0),COLORYELLOW;
Varb1:=(2*CLOSE+HIGH+LOW)/4;
Varb2:=LLV(LOW,34);
Varb3:=HHV(HIGH,34);
Varb4:=ma(HIGH,8);
xx1:=EMA((Varb1-Varb2)/(Varb3-Varb2)*100,13);
yy:=EMA(0.667*REF(xx1,1)+0.333*xx1,2);
STICKLINE(CROSS(xx1,20) AND yy
逃頂:IF(FILTER(CROSS(YY,XX) AND xx>80 ,3),70,90),COLORFF0000;
DRAWTEXT(CROSS(多頭,多均)AND 多均<-15,多均,'☆'),COLORRED;
DRAWTEXT(CROSS(多均,多頭)AND 多均>35,多均+7,'☆'),COLOR00FF00;
以上就是關(guān)于五星連珠指標(biāo)公式源碼的介紹,相信大家已經(jīng)了解,想要學(xué)習(xí)更多的股票指標(biāo)源碼敬請關(guān)注本欄目的更新,如若想要學(xué)習(xí)dmi指標(biāo)的應(yīng)用可點(diǎn)擊進(jìn)入,最后預(yù)祝大家投資愉快。
服務(wù)中心:鄭州市金水區(qū)農(nóng)業(yè)路經(jīng)三路
郵編:450002 網(wǎng)址:www.xinsheng8.com
銷售熱線:0371-65350319
技術(shù)支持:13333833889