UR:=6;LR:=6;TC1:=IF(H=HHV(H,8*UR),H,NULL);TC2:=REFX1(BARSLAST(TC1=H),10000)+1;UPPER:=REFX1(IF(TC2=1,H,REF(H,TC2-1)),10000);BC1:=IF(L=LLV(L,8*LR),L,NULL);BC2:=REFX1(BARSLAST(BC1=L),10000)+1;LOWER:=REFX1(IF(BC2=1,L,REF(L,BC2-1)),10000);CURRBARSCOUNT:=DATACOUNT-BARPOS+1;LP:=CURRBARSCOUNT<=BC2ANDL=LOWER;HP:=CURRBARSCOUNT<=TC2ANDH=UPPER;NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));LR1:=FORCAST(C,NOD+1);NP:=IF(CURRBARSCOUNT<=MAX(BC2,TC2),REFX1(IF(MIN(TC2,BC2)=1,LR1,REF(LR1,MIN(TC2,BC2)-1)),10000),NULL);LR2:=SLOPE(C,NOD+1);LR3:=REFX1(IF(MIN(TC2,BC2)=1,LR2,REF(LR2,MIN(TC2,BC2)-1)),10000);FP:=NP-LR3*(NOD),POINTDOT,COLORRED;NP1:IF(REFX1(NP<FP,10000),NP,NULL),POINTDOT,COLORCYAN;NP2:IF(REFX1(NP>FP,10000),NP,NULL),POINTDOT,COLORRED;MM:=9;NN:=3;KU1:=HIGH=HHV(HIGH,MM);KD1:=LOW=LLV(LOW,MM);UL:=VALUEWHEN(REF(KU1,NN)=1ANDEVERY(KU1=0,NN),REF(HIGH,NN));DL:=VALUEWHEN(REF(KD1,NN)=1ANDEVERY(KD1=0,NN),REF(LOW,NN));SFX:=VALUEWHEN(HIGH>=MA(CLOSE,3),UL);XFX:=VALUEWHEN(LOW<=MA(CLOSE,3),DL);COND1:=BARSLAST(ABS(SFX-REF(SFX,1)))<BARSLAST(CLOSE>SFXANDREF(CLOSE,1)<REF(SFX,1));COND2:=BARSLAST(ABS(XFX-REF(XFX,1)))<BARSLAST(CLOSE<XFXANDREF(CLOSE,1)>REF(XFX,1));DRAWNUMBER(ISLASTBAR&&NP2>0&&C>NP,NP,ABS(SFX-C),2,COLORRED),ALIGN0,FONTSIZE50,VALIGN1;DRAWNUMBER(ISLASTBAR&&NP1>0&&C<NP,NP,ABS(SFX-C),2,COLORCYAN),ALIGN0,FONTSIZE50,VALIGN1;DRAWNUMBER(ISLASTBAR&&NP2>0&&C<NP,NP,-ABS(SFX-C),2,COLORRED),ALIGN0,FONTSIZE50,VAL
赢顺云指标公式文华期货指标公式期货波段多空点指标kdj i boll 来自淘豆网m.daumloan.com转载请标明出处.