通达信——红绿鲜明上涨下跌趋势通达信公式...
通达信——红绿鲜明上涨下跌趋势通达信公式
STICKLINE(18,90,0,5,0),COLORE0D4B8;
STICKLINE(18,50,38,5,0),COLORF0CCA8;
STICKLINE(78,38,26,5,0),COLORE8D4A8;
STICKLINE(18,22,12,5,0),COLORF0D4B0;
STICKLINE(18,50,62,5,0),COLORE8C490;
上涨下跌:EMA(WINNER(C)*100,17),COLORWHITE;
L1:=EMA(上涨下跌,50);
红绿鲜明:ABS((COST(50)-CLOSE)/CLOSE*100),COLOR00FF00,LINETHICK1;
STICKLINE(上涨下跌>红绿鲜明,红绿鲜明,上涨下跌,5,0),COLORWHITE;
STICKLINE(上涨下跌<REF(上涨下跌,1),红绿鲜明,上涨下跌,5,0),COLORDEDDDD;
STICKLINE(红绿鲜明>上涨下跌,红绿鲜明,上涨下跌,5,0),COLOR00BB00;
STICKLINE(上涨下跌>L1,L1,上涨下跌,5,0),COLORRED;
趋势公式:=LLV(LOW,13);
通达信趋势:=HHV(H,25);
ddcc1:=EMA((C-趋势公式)/(通达信趋势-趋势公式)*4,4);
STICKLINE(CROSS(ddcc1,0.3),10,1,3,0),COLORRED,LINETHICK1;
ddcc2:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)
-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)
-LLV(LOW,27))*100,5,1),3,1),LINETHICK0;
IF(ddcc2>10,-6,DRAWNULL),CIRCLEDOT,COLORGREEN;
IF(ddcc2<=10,-6,DRAWNULL),CIRCLEDOT,COLOR0000CC;
ddcc3:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*200-60;
ddcc4:SMA(ddcc3,17,1),COLORGREEN;
ddcc5:SMA(ddcc4,17,1),COLOR00C3C6;
ddcc6:IF(CROSS(ddcc2,2),15,DRAWNULL),CROSSDOT,LINETHICK6,COLORFF33FF;
ddcc9:IF(CROSS(ddcc2,2),15,DRAWNULL),POINTDOT,LINETHICK4,COLORGREEN;