以下是通达信动态筹码指标公式
现价获利比例:WINNER(CLOSE)*100,NODRAW;
HJ_1:=COST(0.1);
HJ_2:=COST(99.900002);
HJ_3:=(HJ_2-HJ_1)/10;
STICKLINE((WINNER(HJ_1+HJ_3)-WINNER(HJ_1))*100>1,HJ_1,HJ_1+HJ_3,3,0),COLOR000066;
STICKLINE((WINNER(HJ_1+HJ_3*2)-WINNER(HJ_1+HJ_3))*100>1,HJ_1+HJ_3,HJ_1+HJ_3*2,3,0),COLOR5533FF;
STICKLINE((WINNER(HJ_1+HJ_3*3)-WINNER(HJ_1+HJ_3*2))*100>1,HJ_1+HJ_3*2,HJ_1+HJ_3*3,3,0),COLOR7777FF;
STICKLINE((WINNER(HJ_1+HJ_3*4)-WINNER(HJ_1+HJ_3*3))*100>1,HJ_1+HJ_3*3,HJ_1+HJ_3*4,3,0),COLORWHITE;
STICKLINE((WINNER(HJ_1+HJ_3*5)-WINNER(HJ_1+HJ_3*4))*100>1,HJ_1+HJ_3*4,HJ_1+HJ_3*5,3,0),COLORFFCC00;
STICKLINE((WINNER(HJ_1+HJ_3*6)-WINNER(HJ_1+HJ_3*5))*100>1,HJ_1+HJ_3*5,HJ_1+HJ_3*6,3,0),COLORCC6600;
STICKLINE((WINNER(HJ_1+HJ_3*7)-WINNER(HJ_1+HJ_3*6))*100>1,HJ_1+HJ_3*6,HJ_1+HJ_3*7,3,0),COLOR663300;
STICKLINE((WINNER(HJ_1+HJ_3*8)-WINNER(HJ_1+HJ_3*7))*100>1,HJ_1+HJ_3*7,HJ_1+HJ_3*8,3,0),COLOR006633;
STICKLINE((WINNER(HJ_1+HJ_3*9)-WINNER(HJ_1+HJ_3*8))*100>1,HJ_1+HJ_3*8,HJ_1+HJ_3*9,3,0),COLOR009933;
STICKLINE((WINNER(HJ_2)-WINNER(HJ_1+HJ_3*9))*100>1,HJ_1+HJ_3*9,HJ_2,3,0),COLOR00DD33;
筹一:(WINNER(HJ_1+HJ_3)-WINNER(HJ_1))*100,NODRAW;
筹二:(WINNER(HJ_1+HJ_3*2)-WINNER(HJ_1+HJ_3))*100,NODRAW;
筹三:(WINNER(HJ_1+HJ_3*3)-WINNER(HJ_1+HJ_3*2))*100,NODRAW;
筹四:(WINNER(HJ_1+HJ_3*4)-WINNER(HJ_1+HJ_3*3))*100,NODRAW;
筹五:(WINNER(HJ_1+HJ_3*5)-WINNER(HJ_1+HJ_3*4))*100,NODRAW;
筹六:(WINNER(HJ_1+HJ_3*6)-WINNER(HJ_1+HJ_3*5))*100,NODRAW;
筹七:(WINNER(HJ_1+HJ_3*7)-WINNER(HJ_1+HJ_3*6))*100,NODRAW;
筹八:(WINNER(HJ_1+HJ_3*8)-WINNER(HJ_1+HJ_3*7))*100,NODRAW;
筹九:(WINNER(HJ_1+HJ_3*9)-WINNER(HJ_1+HJ_3*8))*100,NODRAW;
筹十:(WINNER(HJ_2)-WINNER(HJ_1+HJ_3*9))*100,NODRAW;
DRAWNUMBER(筹一>1,HJ_1+HJ_3,INTPART(筹一)),COLOR7777FF;
DRAWNUMBER(筹二>1,HJ_1+HJ_3*2,INTPART(筹二)),COLOR7777FF;
DRAWNUMBER(筹三>1,HJ_1+HJ_3*3,INTPART(筹三)),COLORWHITE;
DRAWNUMBER(筹四>1,HJ_1+HJ_3*4,INTPART(筹四)),COLOR7777FF;
DRAWNUMBER(筹五>1,HJ_1+HJ_3*5,INTPART(筹五)),COLORWHITE;
DRAWNUMBER(筹六>1,HJ_1+HJ_3*6,INTPART(筹六)),COLORFFCC00;
DRAWNUMBER(筹七>1,HJ_1+HJ_3*7,INTPART(筹七)),COLORFFCC00;
DRAWNUMBER(筹八>1,HJ_1+HJ_3*8,INTPART(筹八)),COLOR00DD33;
DRAWNUMBER(筹九>1,HJ_1+HJ_3*9,INTPART(筹九)),COLOR00DD33;
DRAWNUMBER(筹十>1,HJ_2,INTPART(筹十)),COLORWHITE;
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
现价:CLOSE,COLOR99FFFF,LINETHICK4;
浮筹:(WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))/WINNER(HHV(HIGH,0))*100,NODRAW,COLOR99FFFF,LINETHICK3;
{———————————–}
评论(0)