当前位置:分析家公式网 → 软件中心 → 股票公式 → 同花顺公式 → 资金老马(同花顺公式 副图 源码 测试图)
|
软件简介:
VAR1:=HHV(HIGH,9)-LLV(LOW,9); VAR2:=HHV(HIGH,9)-C;
VAR3:=C-LLV(LOW,9);
VAR4:=VAR2/VAR1*100-70;
VAR5:=(C-LLV(LOW,44))/(HHV(HIGH,44)-LLV(LOW,44))*100;
VAR6:=(2*C+H+L)/4;
VAR7:=SMA(VAR3/VAR1*100,3,1);
VAR8:=LLV(LOW,21);
VAR9:=SMA(VAR7 ,3 ,1 )-SMA(VAR4 ,9 ,1);
VAR10:=IF(VAR9>100 ,VAR9-100 ,0 );
VAR11:=HHV(HIGH,21);
VAR12:=EMA((VAR6- VAR8)/(VAR11-VAR8)*100,9 );
VAR13:=EMA(0.667*REF(VAR12 ,1) +0.333*VAR12,2 );
资金:=EMA(100*(C-LLV(LOW,21))/(HHV(H,21)-LLV(LOW,21)),3), colorred,LINETHICK3;
PARTLINE(资金,资金>REF(资金,1),RGB(250,10,10),资金<=REF(资金,1),RGB(10,250,250)),LINETHICK3;
资金线:=EMA(100*(C-LLV(LOW,21))/(HHV(H,21)-LLV(LOW,21)),3), coloryellow,LINETHICK1;
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF (ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF (ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF (ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
买入:(VAR11+VAR13+VAR15+VAR17)*18,colorf00ff0,LINETHICK2;
卖出:=(VAR12+VAR14+VAR16+VAR18)*18,color00ff00,LINETHICK2;
VAR30:=PEAKBARS(3,15,1)<10;
VAR50:=IF(VAR30=1,2,0);
顶:= IF(VAR50=2,2,0);
顶A:=IF(顶>REF(顶,1),50,0),colorgreen;
S1:=SMA((CLOSE-LLV(LOW,3))/(HHV(HIGH,3)-LLV(LOW,3))*100,5,1);
趋势线:SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1),LINETHICK2;
升:IF(趋势线>=REF(趋势线,1),趋势线,DRAWNULL),COLORFF00FF,LINETHICK2;
降:IF(趋势线<=REF(趋势线,1),趋势线,DRAWNULL),COLOR00FF00,LINETHICK2;
趋势:SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1),colorwhite,LINETHICK1;
VC:=(2*C+H+L)/4;
VD:=LLV(L,34);
VE:=HHV(H,34);
VF:=LLV(L,21);
V10:=HHV(H,21);
V11:=EMA((VC-VF)/(V10-VD)*100,5);
V12:=EMA((VC-VD)/(VE-VD)*100,8);
V13:=EMA(V12,5);
STICKLINE(V12>0 AND (V12-V13)>=0 ,80 ,78 ,6 ,0 ),COLORFF00FF;
STICKLINE(V12>0 AND (V12-V13)<0 ,80 ,78 ,6 ,1 ),COLOR00FF00;
STICKLINE(V12>0 AND (V12-V13)>=0 ,20 ,18 ,6 ,0 ),COLORFF00FF;
STICKLINE(V12>0 AND (V12-V13)<0 ,20 ,18 ,6 ,1 ),COLOR00FF00;
N=50.0000000009,1.0000000009,100.0000000009,1;
M1=5.0000000009,1.0000000009,40.0000000009,1;
M2=10.0000000009,1.0000000009,40.0000000009,1;
LG=240.0000000009,1.0000000009,2300.0000000008999,1;
N54=12.0000000009,1.0000000009,5000.0000000009004,1;
RSV=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
a=SMA(RSV,M1,1);
b=SMA(a,M2,1);
e=3*a-2*b;
kkk:=100;
K:=MA(a,3);
D:=MA(b,3);
J:=MA(e,3);
VarB1:=ZIG(3,96/N54);
乌云:IF( REF(varB1,2)<REF(varB1,1) AND varB1<REF(varB1,1),75,100),colorFF8000,LINETHICK3;
卖出:IF( REF(varB1,2)<REF(varB1,1) AND varB1<REF(varB1,1),75,100),colorwhite,LINETHICK1;
DRAWICON(REF(varB1,2)<REF(varB1,1) AND varB1<REF(varB1,1),73,"sell");
猎豹: IF(REF(VarB1,2)>REF(VarB1,1) AND VarB1>REF(VarB1,1),25,0),color8000FF,LINETHICK3;
买入: IF(REF(VarB1,2)>REF(VarB1,1) AND VarB1>REF(VarB1,1),25,0),coloryellow,LINETHICK1;
DRAWICON(REF(VarB1,2)>REF(VarB1,1) AND VarB1>REF(VarB1,1),28,"buy");
MV5:=IF(BARSCOUNT(CLOSE)<5,MA(V,BARSCOUNT(CLOSE)),MA(V,5));
MV13:=IF(BARSCOUNT(CLOSE)<13,MA(V,BARSCOUNT(CLOSE)),MA(V,13));
MV21:=IF(BARSCOUNT(CLOSE)<21,MA(V,BARSCOUNT(CLOSE)),MA(V,21));
MV34:=IF(BARSCOUNT(CLOSE)<34,MA(V,BARSCOUNT(CLOSE)),MA(V,34));
MV55:=IF(BARSCOUNT(CLOSE)<55,MA(V,BARSCOUNT(CLOSE)),MA(V,55));
MV89:=IF(BARSCOUNT(CLOSE)<89,MA(V,BARSCOUNT(CLOSE)),MA(V,89));
MV144:=IF(BARSCOUNT(CLOSE)<144,MA(V,BARSCOUNT(CLOSE)),MA(V,144));
MV233:=IF(BARSCOUNT(CLOSE)<233,MA(V,BARSCOUNT(CLOSE)),MA(V,233));
GL1:=IF(VOL>MV5*2,1,0);
GL2:=IF(VOL>MV13*2,1,0);
GL3:=IF(VOL>MV21*2,1,0);
GL4:=IF(VOL>MV34*2,1,0);
GL5:=IF(VOL>MV55*2,1,0);
GL6:=IF(VOL>MV89*2,1,0);
GL7:=IF(VOL>MV144*2,1,0);
GL8:=IF(VOL>MV233*2,1,0);
DL1:=IF(VOL<MV5/2,1,0);
DL2:=IF(VOL<MV13/2,1,0);
DL3:=IF(VOL<MV21/2,1,0);
DL4:=IF(VOL<MV34/2,1,0);
DL5:=IF(VOL<MV55/2,1,0);
DL6:=IF(VOL<MV89/2,1,0);
DL7:=IF(VOL<MV144/2,1,0);
DL8:=IF(VOL<MV233/2,1,0);
GL:=GL1+GL2+GL3+GL4+GL5+GL6+GL7+GL8;
DL:=DL1+DL2+DL3+DL4+DL5+DL6+DL7+DL8;
放量出货:GL*5,color00FF00,LINETHICK2;
//www.70822.com 低量类别:=DL;
|