分享一个 变异量王画线 副图指标
{ BARSET }
STICKLINE(C>=O,0,V,2.5,1),COLOR0000FF;
STICKLINE(C<O,0,V,2.5,1),COLORAA7700;
{ AJ PRICE BY JY }
AJ_JY:=AMOUNT/100/V;
{ GOLD BAR BY JY }
JYGOLD:=V==HHV(V,60);{ 60日最高量 }
JYGOLDGV:VALUEWHEN(JYGOLD,V),COLORYELLOW,CROSSDOT;{ 60日最高量当天的成交量 }
{ 60日最高量主子改颜色 金色 }
STICKLINE(JYGOLD,V,O,3.1,0),COLOR006190;
STICKLINE(JYGOLD,V,O,2,0),COLOR0088BB;
STICKLINE(JYGOLD,V,O,0.8,0),COLOR00BBEE;
STICKLINE(JYGOLD,V,O,0.3,0),COLOR00CCDD;
STICKLINE(JYGOLD,V,O,0.0,0),COLOR00FFFF;
{ 以下为3.0版本追加内容 }
{ AJ LV BAR BY JY }
JYICE:=FILTER(V==LLV(V,43),5);{ 43日最低量,过滤掉连续5日内的重复信号 }
{ 43日最低量横线 }
JYICELV:=VALUEWHEN(JYICE,V);
STICKLINE(1,JYICELV,JYICELV-0.00009587,3.1,0),COLORWHITE;
{ 标注缩量K线,样式可自行修改 }
STICKLINE(JYICE,0,V,0.382,0),COLORWHITE;
STICKLINE(JYICE,V,O,3.1,0),COLORFF6100;
STICKLINE(JYICE,V,O,2,0),COLORFF8800;
STICKLINE(JYICE,V,O,0.8,0),COLORFFBB00;
STICKLINE(JYICE,V,O,0.3,0),COLORFFEE00;
STICKLINE(JYICE,V,O,0.0,0),COLORFFFFFF;