严重超买:100,COLORRED,DOT;
超买:80,COLORRED,DOT;
超卖:20,COLOR00FF00,DOT;
严重超卖:0,COLOR00FF00,DOT;
//–多空格
DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MMACD:=(DIFF-DEA)*2;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA) AND DEA<0;
A2:= BARSLAST(REF(CROSS(DEA,DIFF),1));
B2:= REF(CLOSE,A2+1)<CLOSE AND REF(DIFF,A2+1)>DIFF AND CROSS(DEA,DIFF);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9));
K:=SMA(RSV,9,3);
D:=SMA(K,9,3);
J:=3*K-2*D;
A:=CROSS(DIFF,DEA) AND CROSS(K,D) AND CROSS(J,D) AND DIFF<0;
SA:=CROSS(DEA,DIFF) AND CROSS(D,K) AND CROSS(D,J) AND DIFF>0;
TRR := SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),14);
HD := HIGH-REF(HIGH,1);
LD := REF(LOW,1)-LOW;
PDM:= SUM(IF(HD>0 AND HD>LD,HD,0),14);
MDM:= SUM(IF(LD>0 AND LD>HD,LD,0),14);
PDI:= PDM*100/TRR;
MDI:= MDM*100/TRR;
LC := REF(CLOSE,1);
N1:=7;
N2:=14;
RSI18:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
RSI28:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;
DIF8: =EMA(CLOSE,12) – EMA(CLOSE,26);
DEA8:= EMA(DIF8,9);
RSV8:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
K8:=SMA(RSV8,5,1);
D8:=SMA(K8,3,1);
A18:=BARSLAST(REF(CROSS(DIF8,DEA8),1));
B18:=REF(C,A18+1)>C AND REF(DIF8,A18+1)<DIF8 AND CROSS(DIF8,DEA8);
A28:=BARSLAST(REF(CROSS(K8,D8),1));
B28:=REF(C,A28+1)>C AND REF(K8,A28+1)<K8 AND CROSS(K8,D8);
A388:=BARSLAST(REF(CROSS(RSI18,RSI28),1));
B38:=REF(C,A388+1)>C AND REF(RSI18,A388+1)<RSI18 AND CROSS(RSI18,RSI28);
C18:=BARSLAST(REF(CROSS(DEA8,DIF8),1));
D18:=REF(C,C18+1)<C AND REF(DIF8,C18+1)>DIF8 AND CROSS(DEA8,DIF8);
C28:=BARSLAST(REF(CROSS(D8,K8),1));
D28:=REF(C,C28+1)<C AND REF(K8,C28+1)>K AND CROSS(D8,K8);
C38:=BARSLAST(REF(CROSS(RSI28,RSI18),1));
D38:=REF(C,C38+1)<C AND REF(RSI18,C38+1)>RSI18 AND CROSS(RSI28,RSI18);
VAR51:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR61:=EMA(VAR51,100);
VAR71:=2*(VAR51-VAR61);
VAR81:=POW(VAR71,3)*0.100+POW(VAR71,1);
成大控股投资版:=IF(VAR71>0.100,VAR81,0)*10;
成基投资汇市版:=成大控股投资版;
挺身上九重:=(LLV(LOW,25)-CLOSE)/(LLV(LOW,25)-HHV(HIGH,25))*100;
VAR21B:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;
VAR21C:=SMA(VAR21B,4,1);
散户:=SMA(VAR21C,4,1);
VAR21D:=(HHV(HIGH,6)-CLOSE)/(HHV(HIGH,6)-LLV(LOW,6))*100;
VAR21E:=SMA(VAR21D,4,1);
血染夕阳正红:=SMA(VAR21E,4,1);
主力:=SMA(散户,4,1);
VAR2:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
VAR3:=SMA(VAR2,3,1);
VAR4:=SMA(VAR3,3,1);
VAR5:=3*VAR3-2*VAR4;
VAR6:=LLV(LOW,5);
VAR7:=HHV(HIGH,5);
VAR8:=EMA((CLOSE-VAR6)/(VAR7-VAR6)*100,4)*2;
VAR9:=EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);
VARA:=3*VAR8-2*VAR9;
VARB:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
VARC:=POW(MA(LOW,5),2)+MA(LOW,5);
VARD:=POW(MA(HIGH,5),2)+MA(HIGH,5);
VARE:=(VARB-LLV(VARC,64))/(HHV(VARD,64)-LLV(VARC,64))*150+65-10;
VARF:=SMA(VARE,3,1)*1.5-100;
VAR10:=SMA(VARF,3,1);
VAR11:=3*VARF-2*VAR10;
VAR12:=(HIGH+LOW+CLOSE*2)/4;
VAR13:=EMA(VAR12,13);
VAR14:=STD(VAR12,13);
VAR15:=(VAR12-VAR13)*100/VAR14;
VAR16:=EMA(VAR15,5);
VAR17:=EMA(VAR16,13);
VAR18:=EMA(VAR16,13)+200-100;
VAR19:=EMA(VAR18,10);
VAR1A:=3*VAR18-2*VAR19;
VAR1B:=VAR3+VAR8+VARF+VAR18;
VAR1C:=VAR4+VAR9+VAR10+VAR19;
VAR1D:=VAR5+VARA+VAR11+VAR1A;
VAR1E:=(HIGH+LOW+CLOSE)/3;
VAR21:=(VAR1E-MA(VAR1E,34))/(0.015*AVEDEV(VAR1E,34));
AMOUNT:=AVPRICE*V;
CAPITAL:=GETPRICE1('流通股本');
VAR22:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
VAR23:=(HIGH+LOW+CLOSE+VAR1E)/4;
VAR24:=EMA(VAR23,24);
VAR25:=STD(VAR23,24);
VAR26:=(VAR23-VAR24)/VAR25*100;
VAR27:=(VAR1E-MA(VAR1E,24))/(0.015*AVEDEV(VAR1E,24));
VAR28:=EMA(VAR26,5);
VAR2B:=((VAR28+VAR27+VAR21)/3+165)/4;
VAR2C:=(EMA(EMA(EMA(VAR2B,15),10),5)-25)*2;
VAR2D:=(VAR1B+VAR1C+VAR1D*30)/32/5-15;
VAR2E:=EMA(VAR2D,13);
攻击路线:=EMA((VAR2C+VAR2E)/2,2);
印钞痕迹:=REF(攻击路线,1);
DY11:=(2*CLOSE+HIGH+LOW)/4;
DY22:=LLV(LOW,34);
DY33:=HHV(HIGH,34);
DYAA:=EMA((DY11-DY22)/(DY33-DY22)*100,30);
DYBB:=EMA(DYAA,5);
A11:=EMA((DY11-DY22)/(DY33-DY22)*100,9);
B11:=EMA(0.667*REF(A11,1)+0.333*A11,2);
HZDWR:=MA((CLOSE-LLV(LOW,98))/(HHV(HIGH,98)-LLV(LOW,98))*120,8);
HZZWR:=MA((CLOSE-LLV(LOW,88))/(HHV(HIGH,88)-LLV(LOW,88))*120,8);
RSV6:=(CLOSE-LLV(LOW,26))/(HHV(HIGH,26)-LLV(LOW,26));
DY16:=(OPEN+CLOSE+HIGH+LOW)/4;
DY26:=LLV(LOW,13);
DY36:=HHV(HIGH,13);
DYA6:=MA((DY16-DY26)/(DY36-DY26)*100,1);
DYB6:=MA(DYA6,5);
A16:=EMA((DY16-DY26)/(DY36-DY26)*180,20);
B16:=EMA(REF(A16,1),1);
B26:=MA(0.667*REF(RSV,1)+0.333*RSV,1);
RB6:=IF(A16>=B26,A16,B26);
QL6:=IF(B16-A16,B16,A16);
RSV16:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
RSV26:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;
J16:=SMA(RSV16,3,1);
J26:=SMA(J16,3,1);
趋势线:=3*SMA(RSV26,5,1)-2*SMA(SMA(RSV26,5,1),3,1);
K6:=SMA(RSV26,3,1);
D6:=SMA(K6,3,1);
买点准备:=IF(趋势线<=10,25,0);
卖点准备:=IF(CROSS(J26,J16) AND J26>85,70,100);
VERTLINE(趋势线<=10,COLORRED);
VERTLINE(CROSS(J26,J16) AND J26>85,COLORGREEN);
DRAWBMP(趋势线>=49,65,'A186');
DRAWBMP(趋势线<=49,55,'下');
STICKLINE1(攻击路线<0,攻击路线,REF(攻击路线,1),3,0),LINETHICK3, COLORMAGENTA;
STICKLINE1(印钞痕迹<攻击路线 AND 攻击路线<0,攻击路线,REF(攻击路线,1),3,0),LINETHICK3, COLORYELLOW ;
STICKLINE1(攻击路线<100 AND 攻击路线>0,攻击路线,REF(攻击路线,1),3,0), LINETHICK3, COLORGREEN;
STICKLINE1(印钞痕迹<攻击路线 AND 攻击路线>0,攻击路线,REF(攻击路线,1),3,0),LINETHICK3, COLORRED;
STICKLINE1(攻击路线>100,攻击路线,REF(攻击路线,1),3,0),LINETHICK2, COLORBLUE;
//攻击路线;
STICKLINE1(攻击路线>135,115,110,10,0), COLORGREEN;
STICKLINE1(攻击路线>105,110,105,10,1), COLORBLUE;
STICKLINE1(攻击路线<-15,5,10,10,1),COLORMAGENTA;
STICKLINE1(攻击路线<-26,10,15,10,0), COLORRED;
T:=BARSLAST(攻击路线>105)+1;
T1:=BARSLAST(攻击路线<-15)+1;
DRAWTEXT(EXIST(攻击路线>105,REF(BARSLASTCOUNT(攻击路线>100),1))&&CROSS(攻击路线<100 AND 攻击路线>0,0.5),攻击路线,'空1');
AA1:=CROSS(印钞痕迹>攻击路线,0.5)&&REF(EXIST(攻击路线<80,BARSLAST(CROSS(印钞痕迹>攻击路线,0.5))+1),1)&&攻击路线>80;
DRAWTEXT(NOT(T=1)&&CROSS(COUNT(AA1,T),0.5)&&T<T1,攻击路线,'空2');
DRAWTEXT(NOT(T=1)&&CROSS(COUNT(AA1,T),1.5)&&T<T1,攻击路线,'空3');
EXIST(攻击路线>105,REF(BARSLASTCOUNT(攻击路线>100),1))&&CROSS(攻击路线<100 AND 攻击路线>0,0.5);
BB1:=CROSS(印钞痕迹<攻击路线&&攻击路线>0,0.5)&&REF(EXIST(攻击路线>20,BARSLAST(CROSS(印钞痕迹<攻击路线,0.5))+1),1)&&攻击路线<20;
DRAWTEXT(EXIST(攻击路线<-15,REF(BARSLASTCOUNT(攻击路线<0),1))&&CROSS(印钞痕迹<攻击路线 AND 攻击路线>0,0.5),攻击路线,'多1');
DRAWTEXT(NOT(T1=1)&&CROSS(COUNT(BB1,T1),0.5)&&T>T1,攻击路线,'多2');
DRAWTEXT(NOT(T1=1)&&CROSS(COUNT(BB1,T1),1.5)&&T>T1,攻击路线,'多3');
(来源:文华财经)