文华财经K线高低点红绿变色线主图指标公式源码:
NSR:=10; N:=5; DRAWICON(BACKSET(L<LV(L,NSR),NSR+1),H,'ICO11'); DRAWNUMBER(BACKSET(L<LV(L,NSR),NSR+1),H+N*MINPRICE,H,0,COLORGREEN); DRAWICON(BACKSET(H>HV(H,NSR),NSR+1),L,'ICO10'),VALIGN0; DRAWNUMBER(BACKSET(H>HV(H,NSR),NSR+1),L-N*MINPRICE,L,0,COLORRED),VALIGN0; DRAWLINE3(BACKSET(L<LV(L,NSR),NSR+1)&&REF(BACKSET(L<LV(L,NSR),NSR+1),1),H,0,1,REF(H,1),1,0),COLORGREEN; DRAWLINE3(BACKSET(H>HV(H,NSR),NSR+1)&&REF(BACKSET(H>HV(H,NSR),NSR+1),1),L,0,1,REF(L,1),1,0),COLORRED; DRAWTEXT(BACKSET(H>HV(H,NSR),NSR+1)&&BACKSET(ISLASTBAR,BARSLAST(BACKSET(H>HV(H,NSR),NSR+1))+1),H,'后多'); DRAWTEXT(REFX(BACKSET(H>HV(H,NSR),NSR+1)&&BACKSET(ISLASTBAR,BARSLAST(BACKSET(H>HV(H,NSR),NSR+1))+1),1),H,'前多'); DRAWTEXT(BACKSET(L<LV(L,NSR),NSR+1)&&BACKSET(ISLASTBAR,BARSLAST(BACKSET(L<LV(L,NSR),NSR+1))+1),L,'后空'),VALIGN0; DRAWTEXT(REFX(BACKSET(L<LV(L,NSR),NSR+1)&&BACKSET(ISLASTBAR,BARSLAST(BACKSET(L<LV(L,NSR),NSR+1))+1),1),L,'前空'),VALIGN0;