GJ:=(C+H+L+O)/4;
明日阻力:=L+(GJ-L)+(C-L);
明日支撑:=L+(C-GJ);
下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100);
RRRSV:=SMA(下档线,3,1);
KKK:=SMA(RRRSV,3,1);
DDDDD:=((3 * RRRSV) - (2 * KKK));
JJ12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);
RSV24:=SMA(JJ12,3,1);
K24:=SMA(RSV24,3,1);
D24:=((3 * RSV24) - (2 * K24));
压力 2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORFFFFFF;
底部:=LLV(HIGH,30),COLOR00FF00;
今日阻力:REF(明日阻力 , 1),NODRAW;
今日支撑:REF(明日支撑 , 1),NODRAW;
压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;
底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;
EMA30:EMA(C,30),COLORWHITE,LINETHICK2;EMA60:EMA(C,60),COLORFF00FF;EMA90:EMA(C,90),COLORYELLOW;
EMA120:EMA(C,120),COLORFFCC66;EMA250:EMA(C,250),COLORBLUE;
SS:=CROSS(EMA30,EMA60) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(EMA30,EMA120) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(EMA60,EMA90) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(EMA30,EMA90) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018 ;
DRAWICON(SS,L-0.04,5);DD:=CROSS(EMA60,EMA90) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(EMA60,EMA250) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(EMA90,EMA120) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018
OR CROSS(EMA60,EMA120) AND C O AND C REF(C,1) AND C/REF(C,1) =1.018 AND CROSS
(EMA30,EMA250);DRAWICON(DD,L-0.04,6);
买:=IF("KDJ.J" 0,10,0);
条件:=CROSS(9.9,买);
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=LLV(LOW,5);
VAR3:=HHV(HIGH,5);
VAR4:=EMA((VAR1-VAR2)/(VAR3-VAR2)*100,5);
MA1:=MA(VAR4,2);
AA:STICKLINE(VAR4 MA1,VAR4,MA1,6,1),colorred;
BBB:STICKLINE(VAR4 MA1ANDREF(VAR4,1) 30,VAR4,MA1,6,1),colorred;
STICKLINE(VAR4 =MA1,VAR4,MA1,6,1),COLORFFCC66;
DRAWICON(CROSS(9.9,买),VAR4-12,4);
STICKLINE(CROSS(9.9,买),VAR4+5,MA1-4,6,1),coloryellow;
XXX:STICKLINE(VAR4 MA1ANDREF(VAR4,1) 30,VAR4+5,MA1-4,6,1),coloryellow;