文华财经WH6周期内高低点自动画线画框主图指标公式源码:
A:=DAYBARPOS=1;
B:=DAYBARPOS-1;
DRAWLINE3((REFX(A,1))&&C>REF(O,B),HHV(H,B+1),0,1,LLV(L,B+1),0,0),RGB(128,128,0);
DRAWLINE3((REFX(A,1))&&C>REF(O,B),HHV(H,B+1),BARSLAST(A),1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((REFX(A,1))&&C>REF(O,B),HHV(H,B+1),0,1,HHV(H,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((REFX(A,1))&&C>REF(O,B),LLV(L,B+1),0,1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((REFX(A,1))&&C<=REF(O,B),HHV(H,B+1),0,1,LLV(L,B+1),0,0),RGB(128,128,0);
DRAWLINE3((REFX(A,1))&&C<=REF(O,B),HHV(H,B+1),BARSLAST(A),1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((REFX(A,1))&&C<=REF(O,B),HHV(H,B+1),0,1,HHV(H,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((REFX(A,1))&&C<=REF(O,B),LLV(L,B+1),0,1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C>REF(O,B),HHV(H,B+1),-1*(HHV(B,BARPOS)-B),1,LLV(L,B+1),-1*(HHV(B,BARPOS)-B),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C>REF(O,B),HHV(H,B+1),BARSLAST(A),1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C>REF(O,B),HHV(H,B+1),0,1,HHV(H,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C>REF(O,B),LLV(L,B+1),0,1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C>REF(O,B),HHV(H,B+1),0,1,HHV(H,B+1),-1*(HHV(B,BARPOS)-B),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C>REF(O,B),LLV(L,B+1),0,1,LLV(L,B+1),-1*(HHV(B,BARPOS)-B),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C<=REF(O,B),HHV(H,B+1),-1*(HHV(B,BARPOS)-B),1,LLV(L,B+1),-1*(HHV(B,BARPOS)-B),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C<=REF(O,B),HHV(H,B+1),BARSLAST(A),1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C<=REF(O,B),HHV(H,B+1),0,1,HHV(H,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C<=REF(O,B),LLV(L,B+1),0,1,LLV(L,B+1),BARSLAST(A),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C<=REF(O,B),HHV(H,B+1),0,1,HHV(H,B+1),-1*(HHV(B,BARPOS)-B),0),RGB(128,128,0);
DRAWLINE3((ISLASTBAR)&&C<=REF(O,B),LLV(L,B+1),0,1,LLV(L,B+1),-1*(HHV(B,BARPOS)-B),0),RGB(128,128,0);
HH:CROSS(BACKSET(ISLASTBAR||REFX(A,1),HHVBARS(H,B+1)+1),0.5)||BACKSET(ISLASTBAR||REFX(A,1),HHVBARS(H,B+1)+1)&&A;
LL:CROSS(BACKSET(ISLASTBAR||REFX(A,1),LLVBARS(L,B+1)+1),0.5)||BACKSET(ISLASTBAR||REFX(A,1),LLVBARS(L,B+1)+1)&&A,VALIGN0;
QL:=CROSS(BACKSET(REFX(HH,1),LLVBARS(L,SUMBARS(REF(HH,1),1))+1)=1,0.5),NODRAW;
QH:=CROSS(BACKSET(REFX(LL,1),HHVBARS(H,SUMBARS(REF(LL,1),1))+1)=1,0.5),NODRAW;
ZH:=CROSS(BACKSET(QL,HHVBARS(H,SUMBARS(QL,2))+1),0.5);
ZL:=CROSS(BACKSET(QH,LLVBARS(L,SUMBARS(QH,2))+1),0.5);
M1:=COUNT(QL||ZL,BARSLAST(QH||ZH)+1)&&(QL||ZL);
M2:=COUNT(QH||ZH,BARSLAST(QL||ZL)+1)&&(QH||ZH);