PARTLINE(MA(CLOSE,13)>REF(MA(CLOSE,13),1),MA(CLOSE,13)),linethick2,colorred;
//缺口
DRAWTEXT(LOW>REF(HIGH,1),REF(HIGH,1),'←<'),COLORRED;//上涨缺口
DRAWTEXT(HIGH<REF(LOW,1),REF(LOW,1),'←<'),COLORGREEN;//下跌缺口
显示文字((收盘价/向前引用(收盘价,1)>1.098 and 收盘价/向前引用(收盘价,1)<1.12 and 最高价=收盘价),最低价,'板'),coloryellow;
显示文字((收盘价/向前引用(收盘价,1)>0.88 and 收盘价/向前引用(收盘价,1)<0.91 and 最低价=收盘价),最低价,'停'),colorwhite;
//cb:=AMOUNT/VOL/100;
//STICKLINE(1,cb-0.002,cb+0.002,8,1),COLORYELLOW;
gj:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
明日阻力:=LOW+(gj-LOW)+(CLOSE-LOW);
明日支撑:=LOW+(CLOSE-gj);
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
STICKLINE(BARSCOUNT(CLOSE)=SYSPARAM(1) and CLOSE>=今日阻力,今日阻力,今日阻力,30,0),Color0000FF;
STICKLINE(BARSCOUNT(CLOSE)=SYSPARAM(1) and CLOSE<今日阻力,今日阻力,今日阻力,30,0),Color00FF00;
STICKLINE(BARSCOUNT(CLOSE)=SYSPARAM(1) and CLOSE>=今日支撑,今日支撑,今日支撑,30,0),ColorFF00FF;
STICKLINE(BARSCOUNT(CLOSE)=SYSPARAM(1) and CLOSE<今日支撑,今日支撑,今日支撑,30,0),ColorFF0000;
b:=BARSCOUNT(CLOSE)=SYSPARAM(2);
d:=BARSLAST(b);
hh:=HHV(HIGH,d);
ll:=LLV(LOW,d);
e:=(hh-ll)/100;
gj:=IF(CLOSE=INDEXC,(INDEXC+INDEXH+INDEXL+INDEXO)/4,AMOUNT/(VOL+0.01)/100);
明日阻力:=LOW+(gj-LOW)+(CLOSE-LOW);
明日支撑:=LOW+(CLOSE-gj);
今日阻力:=REF(明日阻力 , 1);
今日支撑:=REF(明日支撑 , 1);
STICKLINE(BARSTATUS=2 and CLOSE>=今日阻力,今日阻力,今日阻力,30,0),Color0000FF;
STICKLINE(BARSTATUS=2 and CLOSE<今日阻力,今日阻力,今日阻力,30,0),Color00FF00;
STICKLINE(BARSTATUS=2 and CLOSE>=今日支撑,今日支撑,今日支撑,30,0),ColorFF00FF;
STICKLINE(BARSTATUS=2 and CLOSE<今日支撑,今日支撑,今日支撑,30,0),ColorFF8800;
DRAWTEXT(BARSTATUS=2 and CLOSE>=今日支撑,hh-3*e,' 今日支撑=:'+NUMTOSTR(今日支撑 ,2 )+' '),ColorFF00FF,align4,align2;
DRAWTEXT(BARSTATUS=2 and CLOSE<今日支撑,hh-3*e,' 今日支撑=:'+NUMTOSTR(今日支撑 ,2 )+' '),ColorFF8800,align4,align2;
DRAWTEXT(BARSTATUS=2 and CLOSE>=今日阻力,hh-8*e,' 今日阻力=:'+NUMTOSTR(今日阻力 ,2 )+' '),align4,Color0000FF,align2;
DRAWTEXT(BARSTATUS=2 and CLOSE<今日阻力,hh-8*e,' 今日阻力=:'+NUMTOSTR(今日阻力 ,2 )+' '),Color00FF00,align4,align2;
DRAWTEXT(BARSTATUS=2 ,hh-3*e,' 明日阻力=:'+NUMTOSTR(明日阻力 ,2 )+' '),Color00FFFF,align4,align2;
DRAWTEXT(BARSTATUS=2 ,hh-8*e,' 明日支撑=:'+NUMTOSTR(明日支撑 ,2 )+' '),Color00FFFF,align4,align2;
DRAWICON(CROSS(ZIG(3,10) ,REF(ZIG(3 ,10),1)) ,LOW*0.98,1);
DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)) ,HIGH*1.02,2); |