董先生聊珠宝
2024-12-01 14:59:54
最佳回答
{多彩k线-主图公式, 显示大阳\\大阴\\涨停\\跌停\\假阴\\假阳\\跳空\\大k线中点,适用于通达信 }c_: const(c),colorlired,pointdot;{现价线}ma5:=ma(c,5);ma5角度: atan((ma5/ref(ma5,1)-1)*100)*180/3.1416,nodraw;drawkline(h,o,l,c);{重绘k线}rc1:=ref(c,1);cs:=if(c>=1,10000,100000);c涨停10:=1.10*rc1-49/cs;{考虑到4舍5入}c涨停5 :=1.05*rc1-49/cs;c跌停10:=0.90*rc1+51/cs;c跌停5 :=0.95*rc1+51/cs;st:=namelike('s') or namelike('*s');涨停:= if(st, c>=c涨停5, c>=c涨停10);跌停:= if(st, c<=c跌停5, c<=c跌停10);盘中涨停:=if(st, h>=c涨停5, h>=c涨停10);盘中跌停:=if(st, l<=c跌停5, l<=c跌停10);stickline(盘中涨停,h,max(c,o),0,0),colormagenta;{涨停后回落}stickline(盘中跌停,l,min(c,o),0,0),colorlicyan;{跌停后回升}大阳线:=c>o and (c>=c涨停5 or c>(1.05*o-51/cs) ) or (c>1000 and c>rc1*1.024);stickline(大阳线,o,c,1,0),color0000bb;大阴线:=c<o and (c<=c跌停5 or c<(0.95*o+49/cs) ) or (c>1000 and c<rc1*0.976);stickline(大阴线,o,c,1,0),colorligreen;stickline(涨停,o,c,1,0),colormagenta;stickline(跌停,o,c,1,0),colorlicyan;假阴:=c<o and c>ref(c,1);stickline(假阴,o,c,0,0),colorred;{假阴柱};假阳:=c>o and c<ref(c,1);stickline(假阳,o,c,0,0),colorgreen;{假阳柱};大盘tj:=period=5 and namelike('上证指数') and (abs((c-ref(c,1)))/ref(c,1)>=0.025 or abs(c-o)>=60);stickline(大盘tj,(h+l)/2,(h+l)/2,2,0),coloryellow;{显示大盘日线的60点大k线中值};stickline((大阳线 or 大阴线 or 涨停 or 跌停) and between(c,1,500),l+(h-l)/2,l+(h-l)/2,1,0),coloryellow;{大k线画中点线};maa5:ma(c,5);maa10:ma(c,10);maa20:ma(c,20);maa30:ma(c,30);maa60:ma(c,60);maa120:ma(c,120); 20210311