副图源码:
CWR1:=HHV(HIGH,9)-LLV(LOW,9);
CWR2:=HHV(HIGH,9)-CLOSE;
CWR3:=CLOSE-LLV(LOW,9);
CWR4:=((CWR2)/(CWR1))*(100)-70;
CWR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
CWR7:=SMA(((CWR3)/(CWR1))*(100),3,1);
CWR8:=LLV(LOW,34);
CWR9:=SMA(CWR7,3,1)-SMA(CWR4,9,1);
CWR10:=IF((CWR9>100),CWR9-100,0);
CWR11:=HHV(HIGH,34);
B1:=EMA(((CWR6-CWR8)/(CWR11-CWR8))*(100),8);
主力趋势:=EMA(B1,13);
STICKLINE(B1-主力趋势>0,B1,主力趋势,3,1),COLOR0000FF;
STICKLINE(B1-主力趋势<0,B1,主力趋势,3,0),COLOR00FF00;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
V11:=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);
V12:=(EMA(V11,3)-REF(EMA(V11,3),1))/REF(EMA(V11,3),1)*100;
STICKLINE(EMA(V11,3)<=13 AND V12>13,0,50,3,0),COLORRED;
BBO:= (EMA(V11,3)<=13 AND V12>13) AND FILTER((EMA(V11,3)<=13 AND V12>13),10);
DRAWTEXT (BBO,60,'主力进'),COLORWHITE;
STICKLINE(EMA(V11,3)>60 AND EMA(V11,3)>REF(EMA(V11,3),1),100,95,15,1),COLORGREEN;
CCO:=(EMA(V11,3)>=90 AND V12) AND FILTER((EMA(V11,3)>=90 AND V12),10);
AA:=(O+H+L+C)/4;
BB:=MA(AA,3);
CC:=SUM(IF(AA>REF(AA,1),AA*VOL,0),4)/SUM(IF(AA<REF(AA,1),AA*VOL,0),4);
DD:=REF(100-(100/(1+CC)),1);
CWRE:=REF(LOW,1)*0.9;
CWRF:=LOW*0.9;
CWR12:=(CWRF*VOL+CWRE*(CAPITAL-VOL))/CAPITAL;
CWR13:=EMA(CWR12,30);
CWR14:=CLOSE-REF(CLOSE,1);
CWR15:=MAX(CWR14,0);
CWR16:=ABS(CWR14);
CWR17:=SMA(CWR15,7,1)/SMA(CWR16,7,1)*100;
CWR18:=SMA(CWR15,13,1)/SMA(CWR16,13,1)*100;
CWR19:=BARSCOUNT(CLOSE);
CWR20:=SMA(MAX(CWR14,0),6,1)/SMA(ABS(CWR14),6,1)*100;
CWR21:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
CWR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CWR1B:=SMA((SMA(CWR1A,4,1)-50)*2,3,1);
CWR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
CWR1D:=SMA(CWR1C,4,1);
CWR1E:=SMA(CWR1D,3,1);
CWR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
CWR22:=CWR20<=25 AND CWR21<-95 AND CWR1F>20 AND CWR1B<-30 AND CWR1E<30 AND CWR11-CLOSE>=-0.25 AND CWR17<22 AND CWR18<28 AND CWR19>50;
STICKLINE(CWR22,0,70,3,0),COLORMAGENTA;
DRAWTEXT(CROSS(CWR22,0.5) AND COUNT(CWR22=1,10)=1,80,'超级主力建仓') , COLORMAGENTA;
VAREX:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARFX:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10X:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11X:=CWRF<REF(VAR10X,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11X AND COUNT(VAR11X,30)=1,70,'大资金'),LINETHICK1,COLORYELLOW;
STICKLINE(VAR11X AND COUNT(VAR11X,30)=1,1,60,3,0),COLORYELLOW;
选股源码:
CWRE:=REF(LOW,1)*0.9;
CWRF:=LOW*0.9;
CWR10:=(CWRF*VOL+CWRE*(CAPITAL-VOL))/CAPITAL;
CWR11:=EMA(CWR10,30);
CWR12:=CLOSE-REF(CLOSE,1);
CWR13:=MAX(CWR12,0);
CWR14:=ABS(CWR12);
CWR15:=SMA(CWR13,7,1)/SMA(CWR14,7,1)*100;
CWR16:=SMA(CWR13,13,1)/SMA(CWR14,13,1)*100;
CWR17:=BARSCOUNT(CLOSE);
CWR18:=SMA(MAX(CWR12,0),6,1)/SMA(ABS(CWR12),6,1)*100;
CWR19:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;
CWR1A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
CWR1B:=SMA((SMA(CWR1A,4,1)-50)*2,3,1);
CWR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
CWR1D:=SMA(CWR1C,4,1);
CWR1E:=SMA(CWR1D,3,1);
CWR1F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;
超级主力:CWR18<=25 AND CWR19<-95 AND CWR1F>20 AND CWR1B<-30 AND CWR1E<30 AND CWR11-CLOSE>=-0.25 AND CWR15<22 AND CWR16<28 AND CWR17>50;