自動(dòng)畫(huà)通道 【源碼、主圖、附圖】 自動(dòng)畫(huà)通道源碼: N: 2 200 15 UP: 2 200 6
UR: 2 200 6 LR : 2 200 6
TC1:=IF(H=HHV(H,8*UR),H,DRAWNULL); TC2:=CONST(BARSLAST(TC1=H))+1; UPPER:=CONST(IF(TC2=1,H,REF(H,TC2-1))); BC1:=IF(L=LLV(L,8*LR),L,DRAWNULL); BC2:=CONST(BARSLAST(BC1=L))+1; LOWER:=CONST(IF(BC2=1,L,REF(L,BC2-1))); LP:=CURRBARSCOUNT<=BC2 AND L=LOWER;{低點(diǎn)定位} HP:=CURRBARSCOUNT<=TC2 AND H=UPPER;{高點(diǎn)定位} STICKLINE(IF(BC2>TC2,HP,LP),LOWER,UPPER,0,0),COLOR628962; STICKLINE(IF(BC2>TC2,LP,HP),LOWER,UPPER,0,0),COLOR628962; NOD:=(IF(TC2>BC2,TC2,BC2)-IF(TC2>BC2,BC2,TC2));{用時(shí)} LR1:=FORCAST(C,NOD+1); AD:=ABS(NP-FP);{高差}; LRL:=IF(NP>FP,FP+AD/NOD*BSP,FP-AD/NOD*BSP); UT1:=IF(BETWEEN(CURRBARSCOUNT,BC2,TC2) AND L<LRL,L,LRL); RH:=IF(CURRBARSCOUNT>=MIN(BC2,TC2)-10,ATL,CONST(REF(ATL,MIN(BC2,TC2)-11)));{限制高} 中軌:IF(NP>FP,IF(LRL<=RH,LRL,DRAWNULL),IF(LRL>=RL,LRL,DRAWNULL)),COLOR628962; 上軌:IF(NP>FP,IF(ATL<=RH,ATL,DRAWNULL),IF(ATL>=RL,ATL,DRAWNULL)),COLOR628962; 下軌:IF(NP>FP,IF(UTL<=RH,UTL,DRAWNULL),IF(UTL>=RL,UTL,DRAWNULL)),COLOR628962; |
|
來(lái)自: 天高云又淡 > 《通達(dá)信公式》