KAEN1:=IFELSE(HIGH<REF(HIGH,2)&&REF(HIGH,1)<REF(HIGH,2),REF(HIGH,2),0);KAEN2:=IFELSE(LOW>REF(LOW,2)&&REF(LOW,1)>REF(LOW,2),REF(LOW,2),0);KAEN3:=VALUEWHEN(KAEN1>0,KAEN1);KAEN4:=VALUEWHEN(KAEN2>0,KAEN2);KAEN5:=IFELSE(CLOSE>KAEN3,-3,IFELSE(CLOSE<KAEN4,1,0));KAEN6:=VALUEWHEN(KAEN5<>0,KAEN5);KAEN7:=IFELSE(KAEN6=1,KAEN3,KAEN4);TJ:KAEN7,COLORYELLOW,HICK2,PRECIS0;//最新价:KAEN7,COLORYELLOW,HICK2,PRECIS0;KAEN8:=VALUEWHEN(ISLASTBAR,KAEN7);//DRAWNUMBER(L>0,KAEN8,KAEN8,0,COLORCYAN),ALIGN0,FONTSIZE30,VALIGN1;KAEN9:=IFELSE(C>=KAEN7,-3,1);KAEN10:=OPEN-CLOSE;KAEN11:=IFELSE(OPEN>CLOSE,OPEN,CLOSE);KAEN12:=IFELSE(OPEN<CLOSE,OPEN,CLOSE);DRAWLINE(KAEN9=1,HIGH,KAEN9=1,KAEN11,COLORCYAN);DRAWLINE(KAEN9=1,LOW,KAEN9=1,KAEN12,COLORCYAN);DRAWLINE(KAEN9=-3,HIGH,KAEN9=-3,KAEN11,COLORRED);DRAWLINE(KAEN9=-3,LOW,KAEN9=-3,KAEN12,COLORRED);STICKLINE(KAEN9>0,OPEN,CLOSE,
文华财经期货指标公式源码多空线指标使用技巧 来自淘豆网m.daumloan.com转载请标明出处.