賣點:箱體頂部橫盤,或突破不了,或遇到壓力后股價漲不了,在線下,其他指標高位,就要小心,要避險了! 源碼 DINGFEN := HIGH=HHV(HIGH, 6) AND HIGH=REFX(HHV(HIGH, 6), 5); {AND HIGH = HHV(HIGH, 3) AND LOW = HHV(LOW, 3) AND HIGH=REFX(HHV(HIGH, 3), 2) AND LOW=REFX(HHV(LOW, 3), 2);} DIFEN := LOW = LLV(LOW, 6) AND LOW=REFX(LLV(LOW, 6), 5); {AND HIGH = LLV(HIGH, 3) AND LOW = LLV(LOW, 3) AND HIGH=REFX(LLV(HIGH, 3), 2) AND LOW=REFX(LLV(LOW, 3), 2);} LASTDINGFEN := REF(BARSLAST(DINGFEN), 1); LASTDIFEN := REF(BARSLAST(DIFEN), 1); LASTDINGHIGH := REF(HIGH, LASTDINGFEN + 1); LASTDILOW := REF(LOW, LASTDIFEN + 1); {1=DING 2=DI} LASTTYPE := IF(LASTDINGFEN < LASTDIFEN, 1, 2); ZHUANGZHE1 := DINGFEN AND (LASTDIFEN >= 4 OR LASTDINGFEN > LASTDIFEN); ZHUANGZHE2 := DIFEN AND BARSLAST(DINGFEN) >= 4;{ AND LASTDIFEN > LASTDINGFEN;} ZHUANGZHE := ZHUANGZHE1 OR ZHUANGZHE2;{DINGFEN OR DIFEN;} DD1 := IF(DINGFEN, HIGH, 0); DD := IF(DIFEN, LOW, DD1); DINGOK := DINGFEN AND ((LASTTYPE=1 AND HIGH > LASTDINGHIGH) OR LASTTYPE=2); DIOK := DIFEN AND ((LASTTYPE=2 AND LOW < LASTDILOW) OR LASTTYPE=1); PLOYLINE(ZHUANGZHE AND (DINGOK OR DIOK), DD); {PLOYLINE(DINGOK, DD);}; 朋友圈更多:高清圖片、即時信息 |
|