资金异动公式源码 副图指标:

M:=24;N:=24;
资金异动:=VOL/MA(VOL,55)*100;
箱顶:=MA(HHV(C,30),2);
箱顶线:IF(H>箱顶,DRAWNULL,箱顶),COLOR0000FF,LINETHICK2;
AA:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,M))/MA(CLOSE,M);
赢富线:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORMAGENTA;
CC:=(CLOSE/赢富线); {本文来源:'www.328588.com' }
MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3);
MAAA:=((MA1-赢富线)/赢富线)/3;
TMP:=MA1-MAAA*MA1;
Y:IF(TMP<=赢富线,赢富线,DRAWNULL),LINETHICK3,COLORWHITE;
F:TMP,LINETHICK2,COLORYELLOW;
X:IF(TMP<=赢富线,TMP,DRAWNULL),LINETHICK2,COLORGREEN;
乾坤线:(EMA(C,18)),LINETHICK2,COLORBLUE;
A3:=EMA((((SLOPE(C,21)) * 20) + C),68);
A4:=EMA(C,10);
A5:=ref(C,2);
A6:=((SMA((MAX((C - A5),0)),6,1)) / (SMA(ABS((C - A5)),6,1))) * 100;
A7:=IF(((A6 < (ref(A6,1))) AND (A6 > 79)),A6,0);
A8:=LLV(L,21);
A9:=HHV(H,21);
A10:=EMA((((CLOSE - A8) / (A9 - A8)) * 100),5);
A11:=EMA((((CLOSE - A8) / (A9 - A8)) * 50),13);
A12:=EMA(((0.667 * (ref(A10,1))) + (0.333 * A10)),2); {内容来至程序化交易网 CXH99.COM}
A13:=LLV(L,55);
A14:=HHV(H,34);
A15:=EMA((((C - A13) / (A14 - A13)) * 100),3);
A16:=(A11 + A15) / 2;
A17:=EMA(((0.667 * (ref(A15,1))) + (0.333 * A10)),2);
A18:=EMA(A16,5);
A19:=EMA(((0.667 * (ref(A18,1))) + (0.333 * A18)),2);
A20:=CROSS(A10,A11);
A21:=(CROSS(A10,A19)) AND (A19 < 30);
A22:=A21 * 0.6;
A23:=((C + L) + H) / 3;
A24:=EMA(A23,6);
A25:=EMA(A24,5);
A26:=CROSS(A24,A25);{
STICKLINE(((C >= 乾坤线) AND (C >= O)),H,L,0,1),COLORRED;
STICKLINE(((C >= 乾坤线) AND (C >= O)),O,C,2,1),COLORRED;
STICKLINE(((C >= 乾坤线) AND (C <= O)),H,L,0,0),COLORRED;
STICKLINE(((C >= 乾坤线) AND (C <= O)),O,C,2,0),COLORRED;
STICKLINE(((C < 乾坤线) AND (C >= O)),H,L,0,1),COLORGREEN;
STICKLINE(((C < 乾坤线) AND (C >= O)),O,C,2,1),COLORGREEN;
STICKLINE(((C < 乾坤线) AND (C <= O)),H,L,0,0),COLORGREEN;
STICKLINE(((C < 乾坤线) AND (C <= O)),O,C,2,0),COLORGREEN;}
BOLL:=MA(CLOSE,N);
UPPER:=BOLL+2*STD(CLOSE,N);
LOWER:=BOLL-2*STD(CLOSE,N);

VAR1:=(HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100-70;
VAR2:=SMA(VAR1,9,1)+100;
VAR3:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR4:=SMA(VAR3,3,1);
VAR5:=SMA(VAR4,3,1)+100;
VAR6:=VAR5-VAR2;
趋势:= IF(VAR6>45,VAR6-45,0);
AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
AA5:=SMA(AA4,13,8);
走势:=CEILING(SMA(AA5,13,8));
AA6:=SMA(AA3,21,8);
卖临界:=STICKLINE(走势-AA6>85,103,100,15,1),COLORRED,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),LINETHICK1,POINTDOT;
超短线:=(((主力线-LLV(主力线,21))/(HHV(主力线,21)-LLV(主力线,21)))*(4))*(25),LINETHICK2,COLORLIRED;

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
卖点1:=C>UPPER AND ((趋势>=70 AND 超短线>=90) OR 趋势>=80);
卖点2:=ref(超短线,1)=100 AND 超短线<100 AND 趋势>90;
买点:=CROSS(A4,A3);{本文来源:'www.328588.com' }
选股:=C<LOWER AND ((趋势<=30 AND 超短线<=10) OR 趋势<=20) AND 资金异动<75;{超跌,BOLL与捕捉启动股}
选股2:=选股 AND J<= -10;
DRAWTEXT(选股2, L,'买'),COLORRED;

(0)

相关推荐