HJ_1:=MA((IF(CLOSE>OPEN,HIGH-CLOSE,HIGH-OPEN)+IF(CLOSE>OPEN,OPEN-LOW,CLOSE-LOW))/2,60)*1.5;
短上轨:IF(Z=0,EMA(HIGH,T),WMA(HIGH,T)),COLORRED;
短下轨:IF(Z=0,EMA(LOW,T),WMA(LOW,T)),COLORGREEN;
NOTEXT短下轨0:IF(CLOSE>短下轨,短下轨,DRAWNULL),COLORRED;
NOTEXT短下轨1:IF(CLOSE<短下轨,短下轨,DRAWNULL),COLORGREEN;
NOTEXT短上轨0:IF(CLOSE>短上轨,短上轨,DRAWNULL),COLORRED;
NOTEXT短上轨1:IF(CLOSE<短上轨,短上轨,DRAWNULL),COLORGREEN;
STICKLINE(CLOSE>短上轨,短上轨,短下轨,0,0),COLORRED;
STICKLINE(CLOSE<短下轨,短上轨,短下轨,0,0),COLORGREEN;
长上轨:IF(Z=0,EMA(HIGH,TT),WMA(HIGH,TT)),COLORMAGENTA;
长下轨:IF(Z=0,EMA(LOW,TT),WMA(LOW,TT)),COLORBLUE;
NOTEXT长下轨0:IF(CLOSE>长下轨,长下轨,DRAWNULL),COLORMAGENTA;
NOTEXT长下轨1:IF(CLOSE<长下轨,长下轨,DRAWNULL),COLORBLUE;
NOTEXT长上轨0:IF(CLOSE>长上轨,长上轨,DRAWNULL),COLORMAGENTA;
NOTEXT长上轨1:IF(CLOSE<长上轨,长上轨,DRAWNULL),COLORBLUE;
STICKLINE(CLOSE>长上轨,长上轨,长下轨,0,0),COLORMAGENTA;
STICKLINE(CLOSE<长下轨,长上轨,长下轨,0,0),COLORBLUE;
HJ_2:=CROSS(CLOSE,短上轨);
HJ_3:=CROSS(短下轨,CLOSE);
HJ_4:=BARSLAST(HJ_2)+1;
HJ_5:=BARSLAST(HJ_3)+1;
HJ_6:=CROSS(SUM(HJ_2,HJ_5),0.5);
HJ_7:=CROSS(SUM(HJ_3,HJ_4),0.5);
HJ_8:=CROSS(CLOSE,长上轨);
HJ_9:=CROSS(长下轨,CLOSE);
HJ_10:=BARSLAST(HJ_8)+1;
HJ_11:=BARSLAST(HJ_9)+1;
HJ_12:=CROSS(SUM(HJ_8,HJ_11),0.5);
HJ_13:=CROSS(SUM(HJ_9,HJ_10),0.5);
HJ_14:=IF(HJ_13 AND HJ_7,0,IF(HJ_13,0,IF(HJ_7,6,1)));
DRAWNUMBER(HJ_14=6 AND 短下轨>长下轨,HIGH+HJ_1*3,6),COLORMAGENTA;
DRAWNUMBER(HJ_14=0 AND 短下轨>长下轨,HIGH+HJ_1*3,0),COLORMAGENTA;
DRAWNUMBER(HJ_6 AND 短下轨>长下轨,LOW-HJ_1*3,10),COLORMAGENTA;
HJ_15:=IF(HJ_12 AND HJ_6,10,IF(HJ_12,10,IF(HJ_6,4,1)));
DRAWNUMBER(HJ_15=4 AND 短上轨<长上轨,LOW-HJ_1*3,4),COLORMAGENTA;
DRAWNUMBER(HJ_15=10 AND 短上轨<长上轨,LOW-HJ_1*3,10),COLORMAGENTA;
DRAWNUMBER(HJ_7 AND 短上轨<长上轨,HIGH+HJ_1*3,0),COLORMAGENTA;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
HJ_16:=CLOSE>REF(CLOSE,4);
HJ_17:=BARSLASTCOUNT(HJ_16);
HJ_18:=HJ_17=9;
HJ_19:=ISLASTBAR AND BETWEEN(HJ_17,1,8);
HJ_20:=(BACKSET(HJ_18>0,9) OR BACKSET(HJ_19>0,HJ_17))*HJ_17;
DRAWNUMBER(HJ_20>0,HIGH+HJ_1*2,HJ_20),COLOR0080FF;
DRAWNUMBER(HJ_17=9 AND HIGH>REF(HIGH,2),HIGH+HJ_1*2,9),COLORGREEN;
DRAWNUMBER(HJ_17=18,HIGH+HJ_1*2,18),COLORYELLOW;
TD支撑线:IF(Z=1,DRAWLINE(HJ_17=1,LOW,HJ_17=9,REF(LOW,8),(-1)),DRAWNULL),DOTLINE,COLORMAGENTA;
HJ_21:=CLOSE<REF(CLOSE,4);
HJ_22:=BARSLASTCOUNT(HJ_21);
HJ_23:=HJ_22=9;{www.fxjgsw.com}
HJ_24:=ISLASTBAR AND BETWEEN(HJ_22,1,8);
HJ_25:=(BACKSET(HJ_23>0,9) OR BACKSET(HJ_24>0,HJ_22))*HJ_22;
DRAWNUMBER(HJ_25>0,LOW-HJ_1*2,HJ_25),COLOR0080FF;
DRAWNUMBER(HJ_22=9 AND LOW<REF(LOW,2),LOW-HJ_1*2,9),COLORGREEN;
DRAWNUMBER(HJ_22=18,LOW-HJ_1*2,18),COLORYELLOW;
TD阻力线:IF(Z=1,DRAWLINE(HJ_22=1,HIGH,HJ_22=9,REF(HIGH,8),(-1)),DRAWNULL),DOTLINE,COLORGREEN;
DRAWICON(HJ_17=9 AND (HIGH<REF(HHV(HIGH,8),1) OR CLOSE<OPEN),HIGH+HJ_1*4,8);
{-----------------------------------} |