股票-通达信出击888压力支撑主图指标公式.docx
通达信出击888压力支撑主图指标公式_正点财经顶:REFDATE(高1,DATE),POINTDOT,COLORWHITE;%19:REFDATE(H1,DATE),POINTDOT,COLORYELLOW;%38:REFDATE(H2,DATE),POINTDOT,COLORYELLOW;%50:REFDATE(H3,DATE),POINTDOT,COLORWHITE;%61:REFDATE(H4,DATE),POINTDOT,COLORYELLOW;%80:REFDATE(H5,DATE),POINTDOT,COLORYELLOW;突破:REF(EMA(C,14),1)COLORMAGENTA,LINETHICK2;A1X:=(EMA(C,14)-突破)/突破*100,NODRAW;出击:IF(A1X=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0)+1),DRAWNULL)COLORRED,LINETHICK2;休假:IF(A1X0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X)+1),DRAWNULL)COLORGREEN,LINETHICK2;STICKLINE(A1X=0,出击,突破,0,-1)COLORRED;STICKLINE(A1X0,休假,突破,0,-1)COLORGREEN;STICKLINE(CROSS(A1X,0),C,O,2,0)COLORYELLOW;STICKLINE(CROSS(0,A1X),C,O,2,0)COLORGREEN;:IF(A1X0,突破,DRAWNULL)COLORGREEN,LINETHICK2;DP:=REF(EMA(INDEXC,14),1);DPX:=(EMA(INDEXC,14)-DP)/DP*100;STICKLINE(DPX=0ANDA1X=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(DPX0ANDA1X0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(NOT(DPX=0ANDA1X=0)ANDNOT(DPX0ANDA1X0),REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORYELLOW;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;高:=REF(HHV(H,80),3);低:=REF(LLV(L,80),3);H19:=高-(高-低)*0.191;H38:=高-(高-低)*0.382;H中:=高-(高-低)*0.5;H61:=高-(高-低)*0.618;H80:=高-(高-低)*0.809;顶点:REFDATE(高,DATE),POINTDOT,COLORWHITE;疯牛:REFDATE(H19,DATE),POINTDOT,COLORYELLOW;突破:REFDATE(H38,DATE),POINTDOT,COLORMAGENTA;平衡50:REFDATE(H中,DATE),POINTDOT,COLORRED;回落:REFDATE(H61,DATE),POINTDOT,COLORGREEN;安全:REFDATE(H80,DATE),POINTDOT,COLORBLUE;低点:REFDATE(低,DATE),POINTDOT,COLORWHITE;DRAWTEXT(ISLASTBAR,顶点,顶点),COLORWHITE;DRAWTEXT(ISLASTBAR,疯牛,疯牛),COLORYELLOW;DRAWTEXT(ISLASTBAR,突破,突破),COLORMAGENTA;DRAWTEXT(ISLASTBAR,平衡50,平衡),COLORRED;DRAWTEXT(ISLASTBAR,回落,回落),COLORMAGENTA;DRAWTEXT(ISLASTBAR,安全80.9,安全),COLORYELLOW;DRAWTEXT(ISLASTBAR,低点,低点),COLORWHITE;VAR1:=CLOSEREF(CLOSE,1)ANDCLOSEREF(CLOSE,2);VAR2:=REF(VAR1,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2);VAR3:=REF(VAR2,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE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OSE,1)ANDCLOSE=REF(CLOSE,2);VAR17:=REF(VAR16,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2);VAR18:=REF(VAR17,1)ANDCLOSE=REF(CLOSE,1)ANDCLOSE=REF(CLOSE,2);VAR19:=REF(VARDORVAREORVARFORVAR10ORVAR11ORVAR12ORVAR13ORVAR14ORVAR15ORVAR16ORVAR17ORVAR18,1)ANDVAR1;DRAWICON(VAR19,L*0.98,1);DRAWICON(CROSS(LLV(AMOUNT/V/100,3),L)ANDVREF(V,3)ANDCO,O*1.1,2);MA6:EMA(C,6),COLORWHITE;MA18:EMA(C,18),COLORGREEN;牧:STICKLINE(MA6MA18ANDMA6=REF(MA6,1)ANDMA18REF(MA18,1),MA6,MA18,0.3,0),COLORRED;马:STICKLINE(MA6MA18ANDMA6REF(MA6,1)ANDMA18=REF(MA18,1),MA6,MA18,0.3,0),COLORYELLOW;人:STICKLINE(MA6MA18ANDMA6=REF(MA6,1)ANDMA18REF(MA18,1),MA6,MA18,0.3,0),COLORGREEN;中:STICKLINE(MA6MA18ANDMA6REF(MA6,1)ANDMA18=REF(MA18,1),MA6,MA18,0.3,0),COLORCYAN;长:STICKLINE(MA6MA18ANDMA6REF(MA6,1)ANDMA18=REF(MA18,1),MA6,MA18,0.3,0),COLORMAGENTA;线:STICKLINE(MA6MA18ANDMA6REF(MA6,1)ANDMA18=REF(MA18,1),MA6,MA18,0.3,0),COLORBLUE;买进:=CROSS(MA6,MA18)ANDMA18=REF(MA18,1);DRAWICON(买进,L*0.95,9);DRAWTEXT(CROSS(85,RSI),(HIGH*1.02),落袋),COLORCYAN;通达信出击888压力支撑主图指标公式实例图解:通达信出击888压力支撑主图指标公式