回覆列表
  • 1 # 使用者6333892743394

    分筆1

    KU1:=IF(HIGH=HHV(HIGH,3),1,0);

    KD1:=IF(LOW=LLV(LOW,3),1,0);

    UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0

    AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0)));

    DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0

    AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0)));

    HV:=H>UL AND H>REF(H,1) ;

    LV:=L<DL AND L<REF(L,1) ;

    GP:=BARSLAST(HV);

    DP:=BARSLAST(LV);

    IP:=IF(GP=0,DP,GP)>3;

    HV1:=HV AND IP AND H>=HHV(H,BARSLAST(LV)); LV1:=LV AND IP AND L<=LLV(L,BARSLAST(HV));

    DRAWLINE(LV1,LOW,HV1, HIGH,0),COLORYELLOW,LINETHICK2; DRAWLINE(HV1,HIGH,LV1, LOW,0),COLORMAGENTA,LINETHICK2;

    分筆2

    區域性低點預選A:=BACKSET(LLV(L,5)<REF(LLV(L,4),1),4); 區域性低點預選B:=BACKSET(區域性低點預選A=0 AND REF(區域性低點預選A,1)=1,2);

    區域性低點預選C:=IF(區域性低點預選B=1 AND REF(區域性低點預選B,1)=0,-1,0);

    區域性高點預選A:=BACKSET(HHV(H,5)>REF(HHV(H,4),1),4); 區域性高點預選B:=BACKSET(區域性高點預選A=0 AND REF(區域性高點預選A,1)=1,2);

    區域性高點預選C:=IF(區域性高點預選B=1 AND REF(區域性高點預選B,1)=0,1,0);

    區域性極點A:=區域性低點預選C+區域性高點預選C;

    區域性極點B:=IF(區域性低點預選C=-1,-1,IF(區域性高點預選C=1,1,0));

    缺口判斷:=IF(L>REF(H,1),1,IF(H<REF(L,1),-1,0)); 距前高天:=BARSLAST(區域性極點A=1);

    距前低天:=BARSLAST(區域性極點A=-1);

    高保留A:=IF(區域性極點A=1 AND REF(距前低天,1)>REF(距前高天,1) AND HHV(H,距前低

  • 中秋節和大豐收的關聯?
  • 為什麼往北飛的機票便宜,往南飛的機票貴?