参数
T:=COST(80);
D:=COST(20);
M:=COST(61.8);
RI:=COST(50);
DRAWBAND(T,RGB(38,38,122),D,RGB(33,33,33));
DRAWBAND(RI,RGB(33,33,33),M,RGB(33,88,188));
{ 以上为5.0版本追加内容 }
{ 画基本K线 }
DRAWKLINE(H,O,L,C);
{ 非交易日显示COPYRIGHTS }
DRAWTEXT_FIX(WEEKDAY>=5,0.01,0.98,0,'RIVER POWERED BY JY'),COLOR383818;
{ K SET K线改颜色BY JY }
STICKLINE(C<O,H,L,0,0),COLORFFDD00;
STICKLINE(C<O,C,O,2.6,0),COLORFFDD00;
STICKLINE(C>O,H,L,0,0),COLOR3333FF;
STICKLINE(C>O,C,O,2.6,1),COLOR3333FF;
STICKLINE(C=O,H,L,0,0),COLORWHITE;
STICKLINE(C=O,C,O,2.6,0),COLORWHITE;
{ AJ PRICE BY JY }
AJ_JY:=AMOUNT/100/V;
AJ_JY_MA :MA(AJ_JY,5),COLORRED,LINETHICK2;{ 均价 5日均线 }
{ GOLD BAR BY JY }
JYGOLD:=V==HHV(V,60);{ 60日最高量 或这 涨停K线 }
JYGOLDAJ:=VALUEWHEN(JYGOLD,AJ_JY);{ 60日最高量当天的成交均价 }
{ 60日最高量主子改颜色 金色 }
STICKLINE(JYGOLD,AJ_JY,O,3.1,0),COLOR006190;
STICKLINE(JYGOLD,AJ_JY,O,2,0),COLOR0088BB;
STICKLINE(JYGOLD,AJ_JY,O,0.8,0),COLOR00BBEE;
STICKLINE(JYGOLD,AJ_JY,O,0.3,0),COLOR00CCDD;
STICKLINE(JYGOLD,AJ_JY,O,0.0,0),COLOR00FFFF;
{ 刻度线显示,BARSLAST(JYGOLD)<333;{是指,显示周期限定在333个K线,可按照需要修改}
STICKLINE(BARSLAST(JYGOLD)<333,REF(JYGOLDAJ,0),REF(JYGOLDAJ,0)-0.000000009587,5,0),COLOR00FFFF;
{ 以下为3.0版本追加内容 }
{ AJ LV BAR BY JY }
JYLV:=FILTER(V==LLV(V,43),5);{ 43日最低量,过滤掉连续5日内的重复信号 }
JYLVAJ:=VALUEWHEN(JYLV,AJ_JY);{ 60日最低量当日的均价 }
{ 标注缩量K线,样式可自行修改 }
STICKLINE(JYLV,H,L,0.382,0),COLORWHITE;
STICKLINE(JYLV,JYLVAJ,O,3.1,0),COLORFF6100;
STICKLINE(JYLV,JYLVAJ,O,2,0),COLORFF8800;
STICKLINE(JYLV,JYLVAJ,O,0.8,0),COLORFFBB00;
STICKLINE(JYLV,JYLVAJ,O,0.3,0),COLORFFEE00;
STICKLINE(JYLV,JYLVAJ,O,0.0,0),COLORFFFFFF;
{ 刻度线显示,BARSLAST(JYLV)<633;{是指,显示周期限定在633个K线,可按照需要修改}
STICKLINE(BARSLAST(JYLV)<633,REF(JYLVAJ,0),REF(JYLVAJ,0)-0.000000009587,5,0),COLORBLUE;
STICKLINE(BARSLAST(JYLV)<633,REF(JYLVAJ,0),REF(JYLVAJ,0)-0.000000009587,0.5,0),COLORWHITE;
锁定集中筹码副图
RAWRECTREL(0,0,100,400,RGB(250,0,0));
DRAWTEXT_FIX(1,0,0,0,11547),COLORYELLOW;
DRAWTEXT_FIX(1,0,0.2,0,11548),COLORYELLOW;
X_1:=MA(CLOSE,13);
X_2:=100-ABS((CLOSE-X_1)/X_1*100);
X_3:=MA(WINNER(CLOSE*0.95)*100,1);
X_4:=X_3>X_2;
DRAWNUMBER(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2+20,ROUND(X_2)),COLORCYAN;
DRAWNUMBER(X_4,X_2+20,ROUND(X_2)),COLORCYAN;
STICKLINE(X_4,X_2,0,3.2,0),COLOR117777;
STICKLINE(X_4,X_2,0,2.6,0),COLOR119999;
STICKLINE(X_4,X_2,0,1.9,0),COLOR11BBBB;
STICKLINE(X_4,X_2,0,1.1,0),COLOR11DDDD;
STICKLINE(X_4,X_2,0,0.3,0),COLORYELLOW;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,3.2,0),COLOR990099;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,2.6,0),COLOR990099;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,1.9,0),COLORBB00BB;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,1.1,0),COLORDD00DD;
STICKLINE(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2,0,0.3,0),COLORMAGENTA;
DRAWTEXT(X_4 AND X_2>REF(X_2,1) AND REF(X_4,1)>0,X_2+30,11553),COLORMAGENTA;
底部筹码副图选股
LCX1:=O<MA(C,5) AND O<MA(C,10) AND O<MA(C,20) AND C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20);
LCX11:=O<MA(C,5) AND O<MA(C,10) AND O<MA(C,30) AND C>MA(C,5) AND C>MA(C,10) AND C>MA(C,30);
LCX2:=MA(C,5)>MA(C,10) AND MA(C,10)>MA(C,20) AND MA(C,10)>MA(C,30) AND MA(C,30)>MA(C,60);
LCX3:=NOT(CROSS(MA(C,10),MA(C,5)) OR CROSS(MA(C,30),MA(C,20)) OR CROSS(MA(C,50),MA(C,10))
OR CROSS(MA(C,10),MA(C,20)) OR CROSS(MA(C,10),MA(C,30)));
LCX4:=C>O AND C/REF(C,1)>1.02;
LCXG:(LCX1 OR LCX11) AND LCX2 AND LCX3 AND LCX4;