副图公式,有主力进,资金进场,拉升减仓等信号,黄色方块出现可关注,红色柱子出现是机会,看图。
源码
VAR5:=LLV(LOW,120);
VAR6:=HHV(HIGH,120);
VAR7:=(VAR6-VAR5)/100;
VAR8:=SMA((CLOSE-VAR5)/VAR7,20,1);
VARA:=3VAR8-2SMA(VAR8,10,1);
主力仓位: (100-VARA),COLORYELLOW,LINETHICK1;
V1:=(C2+H+L)/410;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)5.5;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))8;
V6:=EMA(3V5-2SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))10;
V8:=(INDEXC2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))100,5,1)-2SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))100,5,1),3,1);
V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)100;
AA:=(EMA(V11,3)<=13) AND FILTER((EMA(V11,3)<=13),15);
买入股票:= STICKLINE(EMA(V11,3)<=13 AND V12>13,0,30,5,0),COLORLIMAGENTA;
BB:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 AND V12>13),10);
DRAWTEXT (BB,35,’主力进’),COLORYELLOW;
CC:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 AND V12),10);
DD:=(EMA(V11,3)>=120 AND V12) AND FILTER((EMA(V11,3)>=120 AND V12),10);
STICKLINE(IF(VB>=0,VB,0) AND EMA(V11,3)<13,0,20,10,0),COLORYELLOW;
STICKLINE(IF(VB<=0,VB,0) AND EMA(V11,3)>90,0,20,10,0),COLORGREEN;
STICKLINE( IF(V4>=0,V4,1) AND EMA(V11,3)<13,0,20,10,0),COLORYELLOW;
STICKLINE(IF(V4<=0,V4,1) AND EMA(V11,3)>90,0,20,10,0),COLORLIBLUE;
DRAWTEXT (CC,33,’拉升减仓’),COLORLIBLUE;
DRAWTEXT_FIX(C>O,0.01,0.9,0,’SGZBK.TOP’),COLORYELLOW;
VARE:=MA(100(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1)+2SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1),15,1);
VAR10:=100-3SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1)+2SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1),15,1);
VAR11:=100-3SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1)+2SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR12:=VAR10<REF(VAR11,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR12 AND COUNT(VAR12,30)=1,70,’-资金进场’),LINETHICK1,COLORLIMAGENTA;
STICKLINE(VAR12 AND COUNT(VAR12,30)=1,1,60,5,0),COLORRED,LINETHICK7;
T2:=VAR12;
T3:=VAR12 AND COUNT(VAR12,30)=1,1,60,5,0;
资金进场:IF(T3>REF(T2,1),60,0),COLORRED,LINETHICK1;
LC:=REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
AR:=SUM(HIGH-OPEN,26)/SUM(OPEN-LOW,26)*100;
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
买点:IF(CROSS(RSI,11),70,0),COLORWHITE,POINTDOT;
DRAWTEXT(CROSS(RSI,11),80,’买点’),COLORRED;
STICKLINE(买点,66,70,3,0),COLORWHITE;
指标仅供参考,不作投资依据。