文华财经收盘价开盘价高低点画线指标源码:
HH:=CROSS(BACKSET(ISLASTBAR OR REFX(DAYBARPOS=1,1),HHVBARS(H,DAYBARPOS)+1),0.5) OR BACKSET(ISLASTBAR OR REFX(DAYBARPOS=1,1),HHVBARS(H,DAYBARPOS)+1) AND DAYBARPOS=1;
LL:=CROSS(BACKSET(ISLASTBAR OR REFX(DAYBARPOS=1,1),LLVBARS(L,DAYBARPOS)+1),0.5) OR BACKSET(ISLASTBAR OR REFX(DAYBARPOS=1,1),LLVBARS(L,DAYBARPOS)+1) AND DAYBARPOS=1;
END1:=CROSS(BACKSET(ISLASTBAR,DAYBARPOS+1),0.5);
H1:=CROSS(BACKSET(ISLASTBAR,REF(1+HHVBARS(H,DAYBARPOS),DAYBARPOS)+DAYBARPOS),0.5) ;
H2:=CROSS(BACKSET(ISLASTBAR,REF(1+HHVBARS(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,2))+SUMBARS(DAYBARPOS=1,2)),0.5) ;
H3:=CROSS(BACKSET(ISLASTBAR,REF(1+HHVBARS(H,DAYBARPOS),SUMBARS(DAYBARPOS=1,3))+SUMBARS(DAYBARPOS=1,3)),0.5) ;
DRAWSL(1 , VALUEWHEN( H1,H),0,999,0,COLORRED);
DRAWSL(1 , VALUEWHEN( H2,H),0,999,0,COLORRED);
DRAWSL(1 , VALUEWHEN( H3,H),0,999,0,COLORRED);
L1:=CROSS(BACKSET(ISLASTBAR,REF(1+LLVBARS(L,DAYBARPOS),DAYBARPOS)+DAYBARPOS),0.5) ;
L2:=CROSS(BACKSET(ISLASTBAR,REF(1+LLVBARS(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,2))+SUMBARS(DAYBARPOS=1,2)),0.5) ;
L3:=CROSS(BACKSET(ISLASTBAR,REF(1+LLVBARS(L,DAYBARPOS),SUMBARS(DAYBARPOS=1,3))+SUMBARS(DAYBARPOS=1,3)),0.5) ;
DRAWSL(1 , VALUEWHEN( L1,L),0,999,0,RGB(0,240,0));
DRAWSL(1 , VALUEWHEN( L2,L),0,999,0,RGB(0,240,0));
DRAWSL(1, VALUEWHEN( L3,L),0,999,0,RGB(0,240,0));
C1:=CROSS(BACKSET(ISLASTBAR,DAYBARPOS+1),0.5) ;
C2:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,2)+1),0.5) ;
C3:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,3)+1),0.5) ;DRAWSL(1 , VALUEWHEN( C1,C),0,999,0,COLORMAGENTA);
DRAWSL(1 , VALUEWHEN( C2,C),0,999,0,COLORMAGENTA);
DRAWSL(1 , VALUEWHEN( C3,C),0,999,0,COLORMAGENTA);
O1:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,2)),0.5) ;
O2:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,3)),0.5) ;
O3:=CROSS(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)),0.5) ;
DRAWSL(1 , VALUEWHEN(O1,O),0,999,0,COLORYELLOW);
DRAWSL(1 , VALUEWHEN(O2,O),0,999,0,COLORYELLOW);
DRAWSL(1 , VALUEWHEN(O3,O),0,999,0,COLORYELLOW);
CUR:=DATACOUNT-BARPOS+1,NODRAW;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( H1,H),VALUEWHEN(H1, H),0,COLORRED,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( L1,L),VALUEWHEN(L1,L),0,COLORGREEN,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(O1,O),VALUEWHEN(O1,O),0,COLORYELLOW,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(C1,C),VALUEWHEN(C1,C),0,COLORMAGENTA,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( H2,H),VALUEWHEN(H2, H),0,COLORRED,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( L2,L),VALUEWHEN(L2,L),0,COLORGREEN,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(O2,O),VALUEWHEN(O2,O),0,COLORYELLOW,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(C2,C),VALUEWHEN(C2,C),0,COLORMAGENTA,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( H3,H),VALUEWHEN(H3, H),0,COLORRED,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( L3,L),VALUEWHEN(L3,L),0,COLORGREEN,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(O3,O),VALUEWHEN(O3,O),0,COLORYELLOW,1,CUR+10),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(C3,C),VALUEWHEN(C3,C),0,COLORMAGENTA,1,CUR+10),ALIGN2,FONTSIZE20;DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( H1,H),1,0,COLORRED,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( L1,L),1,0,COLORGREEN,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(O1,O),1,0,COLORYELLOW,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(C1,C),1,0,COLORMAGENTA,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( H2,H),2,0,COLORRED,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( L2,L),2,0,COLORGREEN,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(O2,O),2,0,COLORYELLOW,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(C2,C),2,0,COLORMAGENTA,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( H3,H),2,0,COLORRED,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN( L3,L),2,0,COLORGREEN,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(O3,O),2,0,COLORYELLOW,1,CUR+7),ALIGN2,FONTSIZE20;
DRAWSHIFTNUMBER(BACKSET(ISLASTBAR,SUMBARS(DAYBARPOS=1,4)), VALUEWHEN(C3,C),2,0,COLORMAGENTA,1,CUR+7),ALIGN2,FONTSIZE20;
CROSS(C,REF(H,SUMBARS(HH,1)-1)) OR CROSS(C,REF(H,SUMBARS(HH,2)-1)) OR CROSS(C,REF(H,SUMBARS(HH,3)-1)),SOUND(‘A’);//声音提示A
CROSSDOWN(C,REF(L,SUMBARS(LL,1)-1)) OR CROSS(C,REF(L,SUMBARS(LL,2)-1)) OR CROSS(C,REF(L,SUMBARS(LL,3)-1)),SOUND(‘B’);//声音提示B