以下是同花顺明哥四量图柱指标公式源码和截图
同花顺明哥四量图柱指标公式源码:
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,COLORGREEN{COLORRED};
马线:=ma(牛线,6),COLORMAGENTA{COLORYELLOW};
stICKLINE(C 牛线,2.5,4,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C 马线,2.5,4,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(牛线 =CANDC =马线,2.5,4,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
STICKLINE(C =A,0.5,2,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C =B,0.5,2,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(A =CANDC =B,0.5,2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
{R:=0;}
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
STICKLINE(C E,-1.5,0,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C F,-1.5,0,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(E =CANDC =F,-1.5,0,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
STICKLINE(C J,-3.5,-2,8,0),COLORRED{COLORGREEN},LINETHICK2;
STICKLINE(C K,-3.5,-2,8,0),COLORGREEN{COLORRED},LINETHICK2;
STICKLINE(J =CANDC =K,-3.5,-2,8,0),COLORGREEN{COLORMAGENTA}{COLORYELLOW},LINETHICK2;
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(牛线,6);
STICKLINE(C 牛线,2.5,4,8,0),colorlired,LINETHICK;
STICKLINE(C 马线,2.5,4,8,0),colorgreen,LINETHICK2;
STICKLINE(牛线 =CANDC =马线,2.5,4,8,0),colorgreen,LINETHICK;
A:=MAX(MA(C,60),MA(C,120));
B:=MIN(MA(C,60),MA(C,120));
STICKLINE(C =A,0.5,2,8,0),colorlired,LINETHICK2;
STICKLINE(C =B,0.5,2,8,0),colorgreen,LINETHICK2;
STICKLINE(A =CANDC =B,0.5,2,8,0),colorgreen,LINETHICK2;
R:=0;
E:=MAX(MA(C,45),MA(C,90));
F:=MIN(MA(C,45),MA(C,90));
STICKLINE(C E,-1.5,0,8,0),colorlired,LINETHICK2;
STICKLINE(C F,-1.5,0,8,0),colorgreen,LINETHICK2;
STICKLINE(E =CANDC =F,-1.5,0,8,0),colorgreen,LINETHICK2;
J:=MAX(MA(C,30),MA(C,60));
K:=MIN(MA(C,30),MA(C,60));
STICKLINE(C J,-3.5,-2,8,0),colorlired,LINETHICK2;
STICKLINE(C K,-3.5,-2,8,0),colorgreen,LINETHICK2;
STICKLINE(J =CANDC =K,-3.5,-2,8,0),colorgreen,LINETHICK2;
ma5:=MA(C,5);
ma13:=MA(C,13);
ma21:=MA(C,21);
ma34:=MA(C,34);
ma55:=MA(C,55);
ma89:=MA(C,89);
ma144:=MA(C,144);
ma233:=MA(C,233);
tmp1:=IF(C ma5,1,0);
tmp2:=IF(C ma13,1,0);
tmp3:=IF(C ma21,1,0);
tmp4:=IF(C ma34,1,0);
tmp5:=IF(C ma55,1,0);
tmp6:=IF(C ma89,1,0);
tmp7:=IF(C ma144,1,0);
tmp8:=IF(C ma233,1,0);
强弱钝化线:=tmp1+tmp2+tmp3+tmp4+tmp5+tmp6+tmp7+tmp8+-3.8,coloryellow,LINETHICK1;
说明:STRLEFT('由上至下:;游资;;',100),colorwhite;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*89.06);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(FF,MA15),-4,'↖底'),colorred;
RSI1:=((SMA(MAX((CLOSE-(REF(CLOSE,1))),0),3,1)/SMA(ABS((CLOSE-(REF(CLOSE,1)))),3,1))*89.06);
DRAWTEXT(CROSS(88,RSI1)AND(MA(C,3)) (EMA(C,3)),5,'↙顶'),colorgreen;
AA:=(HHV(HIGH,20)-(2*ATR));
BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));
SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);
BBB:=BARSLAST(BB);
SSSB:=BARSLAST(SSS);
B1:=((BBB=0)AND(REF(SSSB,1) REF(BBB,1)));
B1B:=BARSLAST(B1);
B2:=((((BB=1)AND(B1B SSSB))AND(B1B 0))AND(COUNT(BB,SSSB)
B2B:=BARSLAST(B2);
B3:=((((BB=1)AND(B2B B1B))AND(COUNT(BB,SSSB) 4))AND(COUNT(BB,SSSB)
DRAWTEXT((B1=1),-4.5,'跟进'),coloryellow;
DRAWTEXT((B2=1),-4.5,'加码'),COLORFFAAFF;
四柱同红:(C 牛线ANDC =AANDC EANDC JANDREF(C 牛线,1))*6,coloryellow,LINETHICK2;
SELECT四柱同红选股;
散户:5*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),colorgreen,LINETHICK2;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*5;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力:EMA(J,6),colorred,LINETHICK2;
DRAWICON(CROSS(主力,散户),主力,1);
DRAWICON(CROSS(散户,主力),散户,2);
倍量:=VOL =REF(V,1)*1.8ANDC REF(C,1);
K1:=SUMBARS(倍量,1);
STICKLINE(倍量,0,6,1,0),colorred;
DRAWTEXT(倍量,6,'倍'),colorred;
SHORT:=12;LONG:=26;MID:=9;
DIF:=(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG))*1;
DEA:=EMA(DIF,MID)*1,colorgreen;
:=CROSS(DIF,DEA);
死叉:=CROSS(DEA,DIF);
DRAWICON(金叉,-3,1);
DRAWICON(死叉,-5,2);
DRAWTEXT(金叉,-5,'金'),coloryellow;
DRAWTEXT(死叉,-5,'macd死'),colorgreen;
A1:=(L*(MACD.MACD
A2:=BARSLAST(MACD.MACD
A3:=IF(MA(A1,A2)=DRAWNULL,0,MA(A1,A2));
REF(A3,BARSLAST(MACD.MACD
DRAWKLINE(H,O,L,C);
A1B:=(H*(MACD.MACD
A2B:=BARSLAST(MACD.MACD
A3B:=IF(MA(A1B,A2B)=DRAWNULL,0,MA(A1B,A2B));
REF(A3B,BARSLAST(MACD.MACD =0));
同花顺明哥四量图柱指标公式截图