软件简介:
{自用MACD,这是另一个公式 取消参数设置后重发}
VAR2:=REF(LOW,1);
VAR3:=SMA(ABS(LOW-VAR2),13,1)/SMA(MAX(LOW-VAR2,0),13,1)*100;
VAR4:=EMA(IF(CLOSE*1.2,VAR3*13,VAR3/13),13);
VAR5:=LLV(LOW,34);
VAR6:=HHV(VAR4,34);
VAR7:=IF(LLV(LOW,55),1,0);
VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;
VAR9:=EMA(CLOSE,5);
VAR10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
VAR11:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7*(-1);
VAR12:=EMA(CLOSE,5)*(-1);
STICKLINE(VAR8>REF(VAR8,1),0,-VAR8*1.5,2,1),COLORYELLOW,LINETHICK1;
备钱:=IF(VAR8>REF(VAR8,1),0,VAR8),COLOR0FFFFF;
STICKLINE(VAR11>REF(VAR11,1),0,VAR11*2,2,1),COLORFFF810;
界:=0,COLORFFFFFF,LINETHICK1;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);
STICKLINE(XL3,0,VAR8*3,2,0),COLORRED;
启动:=IF(XL3,0,-VAR8*3),COLORRED;
VA:=(2*C+H+L)/4;
VB:=LLV(L,5);
VC:=HHV(H,5);
红线上穿买:=EMA((VA-VB)/(VC-VB)*27,5),COLORRED;
红线下穿卖:=EMA(红线上穿买,3),COLORFFFF00;
散户:= EMA(((2*CLOSE+HIGH+LOW)/4-LLV(LOW,5))/(HHV(HIGH,4)-LLV(LOW,5))*100,4);
庄家:= EMA(0.667*REF(散户,1)+0.333*散户,2);
底部:=IF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5))/MA(C,5)>0.04,23,0),LINETHICK1,COLORFF00FF;
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;
X:=LLV(J,2)=LLV(J,8);
QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
QVAR1C:=SMA(QVAR1B,13,8);
QVAR1D:=SMA(QVAR1A,21,8);
机会来临:=SMA(QVAR1C,13,8),COLORRED;
AAS:=FILTER((COUNT((机会来临-QVAR1D<(-65)),3)=3),34);
波段买点:=IF(AAS,15,0),COLORFFFFFF,STICK,LINETHICK1;
DRAWTEXT(波段买点,16,'△'),COLORFFFFFF;
VAR1:=MA(CLOSE,5);
VARA:=INTPART(VAR9*100)/100;
VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);
VARC:=INTPART(VARB*100)/100;
VARD:=EMA(CLOSE,5)-EMA(CLOSE,13);
VARE:=EMA(CLOSE,5)-EMA(CLOSE,28);
VARF:=EMA(VARD,28);
空仓:IF(VARD>VARF,VARF,VARE),COLOR00FF00;
持仓:IF(VARD< VARF,VARF,VARE),COLORRED;
VAR13:=(-100)*(HHV(CLOSE,66)-CLOSE)/(HHV(CLOSE,66)-LLV(LOW,66))+100;
VAR14:=REF(VARF,1);
VAR15:=VARF;
VAR16:=VAR15-VAR14;
VAR17:=REF(VARD,1);
VAR18:=VARD;
VAR19:=VAR18-VAR17;
VAR1A:=OPEN;
VAR1B:=CLOSE;
变:=IF(VAR1A<=VAR1 AND VAR1A<=VAR2 AND VAR1A<=VAR3 AND VAR1B>=VAR1 AND VAR1B>=VARC AND VAR16>0 AND VAR19>0,50,0), STICK,COLORWHITE;
VAR1C:=IF(CROSS(VARD,VARF) AND VARD<0 AND VARF<-0.2 AND VAR11>45 AND VAR16>0,0.3,0);
进:=IF(VAR1C,10,0),COLORYELLOW;
DRAWICON(进,10,1);
VAR1D:=(2*CLOSE+HIGH+LOW)/4;
VAR1E:=LLV(LOW,66);
VAR1F:=HHV(HIGH,66);
VAR20:=EMA((VAR1D-VAR1E)/(VAR1F-VAR1E)*100,13);
VAR21:=EMA(0.667*REF(VAR20,1)+0.333*VAR20,3);
VAR22:=REF(CLOSE,1);
VAR23:=SMA(MAX(CLOSE-VAR22,0),6,1)/SMA(ABS(CLOSE-VAR22),6,1)*100;
出:IF(CROSS(84,VAR23),-10,0),COLOR00FF00;
DRAWICON(出,-10,2);
捂:=0,COLORFF00FF;
平:=0,COLORGREEN;
STICKLINE(VAR20>VAR21,0,-1,10,1),COLORFF00FF;
STICKLINE(VAR20< VAR21,0,-1,10,1),COLORGREEN;
SQX:=(C-MA(CLOSE,13))*100;
F:=EMA(MA(SQX,7),1),COLOR00FFFF;
A:=EMA(F,7),COLORFF33FF;
M:=(F-A)*2,COLORSTICK;
JCCOUNT:=COUNT(CROSS(F,A),BARSLAST(A>=0));
A1:=BARSLAST(REF(CROSS(F,A),1));
底:IF(REF(CLOSE,A1)>CLOSE AND F>REF(F,A1+1) AND CROSS(F,A),1,0),COLORRED;
STICKLINE(底,-10,0,0.1,0),COLORRED;
A2:=BARSLAST(REF(CROSS(A,F),1));
顶:REF(CLOSE,A2)<CLOSE AND REF(F,A2+1)>F AND CROSS(A,F),COLORGREEN;
VAR31:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR41:=SMA(ABS(LOW-VAR31),13,1)/SMA(MAX(LOW-VAR31,0),10,1);
VAR51:=EMA(VAR41,10);
VAR61:=LLV(LOW,33);
VAR71:=EMA(IF(LOW<=VAR61,VAR51,0),3);
庄进:=IF(VAR71>REF(VAR71,1),0.6*VAR71,0)*0.5,COLORBLUE;
VAR100:=(CLOSE*2+HIGH+LOW)/4;
DIF:(EMA(CLOSE,13)-EMA(CLOSE,33))*100 COLORD19275,LINETHICK1;
DIF段:IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLOR0080FF,LINETHICK1;
DEA:EMA(DIF,9),COLORGREEN,LINETHICK1;
DEA段:IF(DEA>=REF(DEA,1),DEA,DRAWNULL),COLORWHITE,LINETHICK1;
金叉:=IF(CROSS(DIF,DEA),1,0),COLORYELLOW;
二叉:IF(CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,1,0),COLORFF00FF;
MACD:(DIF-DEA)*2,COLORSTICK,COLOR70DB93;
多方:=MACD+1,COLORRED;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0)COLORYELLOW;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0,0)COLORWHITE;
DIF33日:EMA(DIF,33)COLOR7388C1,LINETHICK3;
STICKLINE(13,0.001,-0.001,10,0),COLOR205AA7;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,0,0)COLORYELLOW;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,0,0)COLORWHITE;
DIF33日紫色段:IF(DIF33日>=REF(DIF33日,1), DIF33日,DRAWNULL)COLOR6B238E,LINETHICK3;
STICKLINE(13,0.001,-0.001,10,0)COLOR205AA7;
DRAWTEXT(CROSS(散户,庄家) AND 散户<30,MACD,'△'),COLORFFFFFF;
DRAWTEXT(CROSS(庄家,散户) AND 散户>70,MACD+1,'▼'),COLOR00FF00;
DRAWTEXT(CROSS(J,REF(J+0.01,1)) AND X AND J<19,MACD-1,'△'),COLORRED;
DRAWTEXT(金叉,DIF-5,'△'),COLORYELLOW;
DRAWTEXT(二叉,DEA-5,'☆'),COLORFF00FF;
DRAWTEXT(顶,DEA+5,'▼'),COLORGREEN;
上一页自用KDJ 下一页6线全红