以下是通达信老夏擒牛主图指标公式源码
通达信老夏擒牛主图指标公式源码:
stICKLINE(C 0,0,120,15,0),COLORBLUE;
RSV:=(CLOSE-LLV(LOW,4))/(HHV(HIGH,4)-LLV(LOW,4))*100;
FASTK:=SMA(RSV,3,1);
龙:Sma(FASTK,2,1);
龙D:=SMA(龙,5,1);
STICKLINE(龙 =龙D,龙D,龙,3,0),COLOR000085;
STICKLINE(龙 龙D,龙D,龙,3,0),COLOR324800;
DRAWTEXT(crOSS(龙D,龙)AND龙 70,50,'卖'),COLORGREEN;
L1:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*200-60;
凤:SMA(L1,3,1),COLORYELLOW;
凤D:=SMA(凤,3,1),COLORRED;
DRAWBAND(凤D,RGB(0,128,0),凤,RGB(255,97,0));
DRAWTEXT(CROSS(凤D,凤)AND凤 78,凤,'←快卖');
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
:=1000*(2*(DIFF-DEA))/EMA(C,30);
VARA:=EMA(REF(CLOSE,1),4);
VAR1:=(SMA(MAX(CLOSE-VARA,0),6,1)/SMA(Abs(CLOSE-VARA),6,1)*100);
VAR2:=FILTER(MacD 0ANDMACD REF(MACD,1)ANDVAR1 20,5);
VAR3:=CROSS(VAR1,90);
准备:IF(VAR1 3.5,15,0),COLORCYAN,LINETHICK2;
DRAWTEXT(VAR1 3.5,7,'准备'),COLORCYAN;
钱进:IF(VAR2,20,0),COLORMAGENTA,LINETHICK3;
DRAWTEXT(VAR2,10,'“钱”进'),COLORRED;
{DRAWTEXT(VAR3,70,'凤舞ラ小心'),COLORCYAN;}
VAR4:=LLV(LOW,10);
VAR5:=HHV(H,25);
VAR6:=EMA((C-VAR4)/(VAR5-VAR4)*4,4);
DRAWTEXT(CROSS(3.5,VAR6),110,'急卖');
恭喜:STICKLINE(CROSS(VAR6,0.3),-50,-30,3,0),COLOR00AAFF,LINETHICK1;
STICKLINE(CROSS(VAR6,0.3),-40,-30,3,0),COLORRED,LINETHICK1;
DRAWTEXT(CROSS(VAR6,0.3),-45,'恭喜'),COLORMAGENTA;
发财:STICKLINE(CROSS(3.5,VAR6),100,120,2,0),COLORRED,LINETHICK2;
STICKLINE(CROSS(3.5,VAR6),110,120,2,0),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(3.5,VAR6),90,'发财'),COLORYELLOW;
龙行凤影:=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);
龙飞:IF(龙行凤影 =10,-20,-40),COLOR0000FF,LINETHICK2;
{DRAWTEXT(龙行凤影 =10,-25,'龙飞'),COLORYELLOW;}
DRAWTEXT(CROSS(0,MACD)ANDVAR1 75,110,'☆高空'),COLORFFFFFF;
红红的天:=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);
花开:IF(CROSS(红红的天,2),70,-50),COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(CROSS(红红的天,2),75,'花开了'),COLORMAGENTA;
IF(CROSS(红红的天,2),70,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF77FF;
IF(CROSS(红红的天,2),70,DRAWNULL),POINTDOT,LINETHICK4,COLOR00CCFF;
RSV1:=(((CLOSE-LLV(LOW,29))/(HHV(HIGH,29)-LLV(LOW,29)))*100);
K1:=MA(RSV1,5);
D1:=MA(K1,2);
J1:=((3*K1)-(2*D1));
明天涨:IF((J1 5),25,0),COLORRED,LINETHICK2;
DRAWTEXT((J1 5),30,'明天涨'),COLORYELLOW;
R:=;
MAR:=MA(R,3);
F:=100*(C-REF(C,1))/REF(C,1);
HHH:=EMA(R,25)+6,COLORBLUE;
GaoDIAN:=REF(R,1) REF(R,2)ANDREF(R,1)
DIDIAN:=(REF(R,1) REF(R,2)ANDREF(R,1) R)OR(REF(R,1)=REF(R,2)ANDREF(R,1) RANDREF(R,2) REF(R,3));
BIAOJI:=CROSS(HHH,R);
JIN:STICKLINE(REF(R,2) REF(R,3)ANDREF(R,2) REF(R,1)ANDR REF(R,1)
ANDMAR REF(MAR,1)+1ANDREF(MAR,2)-REF(MAR,1) -1
ANDREF(R,1) REF(MAR,1)ANDREF(R,2)-REF(MAR,2) -3
ANDREF(R,1) 38ANDR HHHANDF 8,100,120,2,0),COLORRED;
DRAWTEXT(JIN,110,'RSI买'),COLORYELLOW;
VAR7:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
VAR8:=EMA(VAR7,5),LINETHICK2,COLOR6600FF;
VAR9:=100*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60)),LINETHICK2;
STICKLINE(CROSS(VAR8,VAR9),0,20,2,0);
DRAWTEXT(CROSS(VAR8,VAR9),20,'追涨');
UME:=VOL/10000,VOLSTICK;
MAVOL1:=MA(VOLUME,5)/10000;
MAVOL2:=MA(VOLUME,35)/10000;
MAVOL3:=MA(VOLUME,135)/10000;
地量:IF(CROSS(0.9,1/VOL*1000 0.01AND".J" 0),-25,-50),COLORMAGENTA,LINETHICK3;
DRAWTEXT(CROSS(0.9,1/VOL*1000 0.01AND"kdJ.J" 0),-29,'地量'),COLORRED;
DRAWTEXT(LAST(MA(C,5) MA(C,10),5,0)AND".CCI" REF("CCI.CCI",1)ANDCROSS("CCI.CCI",-100),-45,'CCI买点'),COLORYELLOW;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);
LC:=REF(CLOSE,1);
RSI2:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
出局:IF(CROSS(88,RSI2),100,120),COLORLIGREEN,LINETHICK3;
DRAWTEXT(CROSS(88,RSI2),100,'虎'),COLORGREEN;
RSV3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:=SMA(RSV3,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
X:=LLV(J,2)=LLV(J,8);
进场:IF(CROSS(J,REF(J+0.01,1))ANDXANDJ 20,0,-20),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDXANDJ 20,-10,'龙'),COLORYELLOW;
WZ:=150=CURRBARSCOUNT;
M1:=3;
M2:=5;
M3:=10;
M4:=20;
MA(CLOSE,3),LINETHICK3,COLORYELLOW;
MA(CLOSE,5),LINETHICK3,COLORRED;
MA(CLOSE,10),LINETHICK3,COLORGREEN;
MA(CLOSE,20),LINETHICK2,COLORLIBLUE;
MA(CLOSE,30),LINETHICK2,COLORWHITE;
MA(CLOSE,40),LINETHICK2,COLORLIMAGENTA;
MA(CLOSE,50),LINETHICK1,COLORBROWN;
MA(CLOSE,60),LINETHICK1,COLORLIGRAY;
MA(CLOSE,70),LINETHICK1,COLORGRAY;
MA(CLOSE,80),LINETHICK1,COLORYELLOW;
MA(CLOSE,90),LINETHICK1,COLORRED;
MA(CLOSE,100),LINETHICK1,COLORGREEN;
MA(CLOSE,110),LINETHICK1,COLORLIBLUE;
MA(CLOSE,120),LINETHICK1,COLORWHITE;
MA(CLOSE,130),LINETHICK1,COLORLIMAGENTA;
MA(CLOSE,140),LINETHICK1,COLORBROWN;
MA(CLOSE,150),LINETHICK1,COLORLIGRAY;
MA(CLOSE,160),LINETHICK1,COLORGRAY;
MA(CLOSE,170),LINETHICK1,COLORYELLOW;
MA(CLOSE,180),LINETHICK1,COLORRED;
MA(CLOSE,190),LINETHICK1,COLORGREEN;
MA(CLOSE,200),LINETHICK1,COLORLIBLUE;
MA(CLOSE,210),LINETHICK1,COLORWHITE;
MA(CLOSE,220),LINETHICK1,COLORLIMAGENTA;
MA(CLOSE,230),LINETHICK1,COLORBROWN;
MA(CLOSE,240),LINETHICK1,COLORLIGRAY;
MA(CLOSE,250),LINETHICK1,COLORGRAY;
MA(CLOSE,260),LINETHICK1,COLORYELLOW;
MA(CLOSE,270),LINETHICK1,COLORRED;
MA(CLOSE,280),LINETHICK1,COLORGREEN;
MA(CLOSE,290),LINETHICK1,COLORLIBLUE;
MA(CLOSE,300),LINETHICK1,COLORWHITE;
MA(CLOSE,310),LINETHICK1,COLORLIMAGENTA;
MA(CLOSE,320),LINETHICK1,COLORBROWN;
MA(CLOSE,330),LINETHICK1,COLORLIGRAY;
MA(CLOSE,340),LINETHICK1,COLORGRAY;
MA(CLOSE,350),LINETHICK1,COLORYELLOW;
MA(CLOSE,360),LINETHICK3,COLORRED;
MA(CLOSE,370),LINETHICK3,COLORGREEN;
牛熊线:EMA(C,250),CIRCLEDOT,COLOR00FFFF;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
N1:=5;N2:=10;
STICKLINE(C 0,0,10,15,0),COLOR781816;
LC:=REF(CLOSE,1);
RSI10:SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*10,COLOR00FFFF;
VAR1:=C-REF(C,1);
VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:(LLV(VAR2,2)=LLV(VAR2,7)ANDCOUNT(VAR2 0,2)ANDCROSS(VAR2,MA(VAR2,2)))AND
REF(DOWN,1) REF(DOWN,2)ANDUP REF(DOWN,1);
0,COLORFF00FF;
10,COLORFF0000;
STICKLINE(UP,0,0.2,3,0),COLOR0000FF;
STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;
STICKLINE(BT,0,3,2,0),COLOR000088;
STICKLINE(BT,0,3,1,0),COLOR0000CC;
STICKLINE(BT,0,3,0.22,0),COLOR0000FF;
DRAWTEXT(BT,3,'短牛'),COLOR0000FF;
TJ1:=REF(DOWN,1) REF(DOWN,2)ANDUP REF(DOWN,1)ANDC HHV(H,21)*0.82;
STICKLINE(TJ1,0,2,3,0),COLOR880088;
STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;
STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;
STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;
DRAWTEXT(TJ1,2,'中牛'),COLORFF00FF;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:=REF(DOWN,1) REF(DOWN,2)ANDUP REF(DOWN,1)ANDC HRY33;
STICKLINE(TJ2,0,1,5,0),COLOR008888;
STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;
STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;
DRAWTEXT(TJ2,1,'大牛'),COLOR00FFFF;
ST:=REF(UP,1) REF(UP,2)ANDDOWN REF(UP,1);
STICKLINE(ST,10,9,5,0),COLOR008800;
STICKLINE(ST,10,9,2,0),COLOR00AA00;
STICKLINE(ST,10,9,1,0),COLOR00CC00;
STICKLINE(ST,10,9,0.2,0),COLOR00FF00;
DRAWTEXT(ST,9,'卖'),COLOR00FF00;
通达信老夏擒牛主图指标公式截图