主图源码:
XA_1:=STRCAT(4,STRCAT(STRCAT(STRCAT(5,HYBLOCK),STRCAT(6,DYBLOCK)),STRCAT(7,GNBLOCK)));
DRAWTEXT_FIX(ISLASTBAR,0.005,0,0,XA_1);
均价:AMOUNT/VOL/100,NODRAW,COLORWHITE;
XA_2:=(CLOSE+0.005-REF(CLOSE,1))/REF(CLOSE,1)*100>=10;
STICKLINE(XA_2=1,OPEN,CLOSE,3,0),COLORMAGENTA;
XA_3:=MIN(CLOSE,OPEN)>REF(MAX(CLOSE,OPEN),1);
明日涨停参考:CLOSE*1.1,NODRAW,COLORWHITE;
STICKLINE(XA_3=1,OPEN,CLOSE,0.4,0),COLORYELLOW;
价柱腰价:(LOW+HIGH)/2,NODRAW,COLORWHITE;
实体腰价:(OPEN+CLOSE)/2,NODRAW,COLORWHITE;
价柱上三一价:MAX(HIGH,LOW)-(HIGH-LOW)/3,NODRAW,COLORWHITE;
价柱下三一价:MIN(HIGH,LOW)+(HIGH-LOW)/3,NODRAW,COLORWHITE;
实体上三一价:MAX(OPEN,CLOSE)-ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
实体下三一价:MIN(OPEN,CLOSE)+ABS(OPEN-CLOSE)/3,NODRAW,COLORWHITE;
XA_4:=FINDHIGHBARS(VOL,1,5,1);
XA_5:=FINDHIGHBARS(VOL,XA_4+5,5,1);
XA_6:=FINDHIGHBARS(VOL,10,100,1);
XA_7:=FINDLOWBARS(VOL,5,100,1);
XA_8:=CURRBARSCOUNT;
XA_9:=0;
XA_10:=CONST(XA_4);
XA_11:=CONST(XA_5);
XA_12:=CONST(XA_6);
XA_13:=CONST(XA_7);
XA_14:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),XA_10+XA_9));
XA_15:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),XA_10+XA_9));
DRAWICON(CURRBARSCOUNT=XA_10+1,LOW*0.98,38),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=XA_10,XA_14,XA_14,4,1),COLORMAGENTA;
STICKLINE(CURRBARSCOUNT<=XA_10,XA_15,XA_15,2,(-1)),COLORMAGENTA;
XA_16:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),XA_11+XA_9));
XA_17:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),XA_11+XA_9));
DRAWICON(CURRBARSCOUNT=XA_11+1,LOW*0.98,11),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=XA_11,XA_16,XA_16,4,1),COLORLICYAN;
STICKLINE(CURRBARSCOUNT<=XA_11,XA_17,XA_17,2,(-1)),COLORLICYAN;
XA_18:=CONST(REF(IF(CLOSE>OPEN,CLOSE,OPEN),XA_12));
DRAWICON(CURRBARSCOUNT=XA_12+1,HIGH,35),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=XA_12,XA_18,XA_18,4,(-1)),COLORRED;
XA_19:=CONST(REF(IF(CLOSE>OPEN,OPEN,CLOSE),XA_13));
DRAWICON(CURRBARSCOUNT=XA_13+1,LOW*0.97,34),LINETHICK9;
STICKLINE(CURRBARSCOUNT<=XA_13,XA_19,XA_19,1,(-1)),COLORRED;
主动参与幅图源码:
A:=IF((CLOSE > 126.32),(AMOUNT / 100000),VOL);
主力:MA(A,4),NODRAW,COLOR00FFFF;
游资:MA(A,8),NODRAW,COLOR00FF00;
大户:MA(A,16),NODRAW,COLOR0000FF;
散户:MA(A,32),NODRAW,COLORFFFF00;
主动参与比例:ROUND(((主力 / (((主力 + 游资) + 大户) + 散户)) * 100)),NODRAW,COLOR00FFFF;
游资参与比例:ROUND(((游资 / (((主力 + 游资) + 大户) + 散户)) * 100)),NODRAW,COLOR00FF00;
大户参与比例:ROUND(((大户 / (((主力 + 游资) + 大户) + 散户)) * 100)),NODRAW,COLOR0000FF;
散户参与比例:ROUND(((散户 / (((主力 + 游资) + 大户) + 散户)) * 100)),NODRAW,COLORFFFF00;
警戒线:MA(A,180),COLORFF00FF;
STICKLINE((主力 > 0),0,主力,3,0),COLOR0000FF;
STICKLINE((主力 > 0),0,主力,2.7.5,0),COLOR001BFF;
STICKLINE((主力 > 0),0,主力,2.4,0),COLOR0035FF;
STICKLINE((主力 > 0),0,主力,2.1,0),COLOR0050FF;
STICKLINE((主力 > 0),0,主力,1.8,0),COLOR0062FF;
STICKLINE((主力 > 0),0,主力,1.5,0),COLOR007AFF;
STICKLINE((主力 > 0),0,主力,1.2,0),COLOR0089FF;
STICKLINE((主力 > 0),0,主力,0.9,0),COLOR009CFF;
STICKLINE((主力 > 0),0,主力,0.6,0),COLOR00C0FF;
STICKLINE((主力 > 0),0,主力,0.3,0),COLOR00EAFF;
STICKLINE((游资 > 0),0,游资,3,0),COLOR007F00;
STICKLINE((游资 > 0),0,游资,2.7,3),COLOR008B00;
STICKLINE((游资 > 0),0,游资,2.4,0),COLOR009500;
STICKLINE((游资 > 0),0,游资,2.1,0),COLOR00A300;
STICKLINE((游资 > 0),0,游资,1.8,0),COLOR00AF00;
STICKLINE((游资 > 0),0,游资,1.5,0),COLOR00C000;
STICKLINE((游资 > 0),0,游资,1.2,0),COLOR00CA00;
STICKLINE((游资 > 0),0,游资,0.9,0),COLOR00DB00;
STICKLINE((游资 > 0),0,游资,0.6,0),COLOR00FF00;
STICKLINE((大户 > 0),0,大户,3,0),COLOR102088;
STICKLINE((大户 > 0),0,大户,2.7,0),COLOR102099;
STICKLINE((大户 > 0),0,大户,2.4,0),COLOR1020AA;
STICKLINE((大户 > 0),0,大户,2.1,0),COLOR1020BB;
STICKLINE((大户 > 0),0,大户,1.8,0),COLOR1020CC;
STICKLINE((大户 > 0),0,大户,1.5,0),COLOR1020DD;
STICKLINE((大户 > 0),0,大户,1.2,0),COLOR1020EE;
STICKLINE((大户 > 0),0,大户,0.9,0),COLOR1020FF;
STICKLINE((散户 > 0),0,散户,3,0),COLORFF7700;
STICKLINE((散户 > 0),0,散户,2.7,0),COLORFF8800;
STICKLINE((散户 > 0),0,散户,2.4,0),COLORFF9900;
STICKLINE((散户 > 0),0,散户,2.1,0),COLORFFAA00;
STICKLINE((散户 > 0),0,散户,1.8,0),COLORFFBB00;
STICKLINE((散户 > 0),0,散户,1.5,0),COLORFFCC00;
STICKLINE((散户 > 0),0,散户,1.2,0),COLORFFDD00;
STICKLINE((散户 > 0),0,散户,0.9,0),COLORFFEE00;