指标源码:
指标公式:=EMA(100*(INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5)),5); 专用:=EMA(100*(C-LLV(LOW,5))/(HHV(H,5)-LLV(LOW,5)),5); DDDS1:=BACKSET(专用<REF(专用,1),2); DDDS2:=IF(DDDS1,专用,DRAWNULL); DDDS3:=专用-指标公式, 0,POINTDOT; STICKLINE( 专用>0,0 ,专用*1.0,4 ,0 )COLOR0000FF; STICKLINE( 专用>0,0 ,专用*0.8,4 ,0 )COLOR0066FF; STICKLINE( 专用>0,0 ,专用*0.6,4 ,0 )COLOR0099FF; STICKLINE( 专用>0,0 ,专用*0.4,4 ,0 )COLOR00CCFF; STICKLINE( 专用>0,0 ,专用*0.2,4 ,0 )COLOR00FFFF; STICKLINE( DDDS2=DDDS2,0 ,DDDS2*1.0,4 ,0 )COLOR00FF00; STICKLINE( DDDS2=DDDS2,0 ,DDDS2*0.8,4 ,0 )COLOR00CC33; STICKLINE( DDDS2=DDDS2,0 ,DDDS2*0.6,4 ,0 )COLOR009933; STICKLINE( DDDS2=DDDS2,0 ,DDDS2*0.4,4 ,0 )COLOR007733; STICKLINE( DDDS2=DDDS2,0 ,DDDS2*0.2,4 ,0 )COLOR005500; DDDS5:EMA(100*(INDEXC-LLV(INDEXL,5))/(HHV(INDEXH,5)-LLV(INDEXL,5)),5),COLORWHITE,LINETHICK3; K2:=BACKSET(专用>REF(专用,1),2); DDDS6:IF(K2,专用,DRAWNULL),COLORMAGENTA,LINETHICK3; DDDS8:=BACKSET(专用<REF(专用,1),2); DDDS7:IF(DDDS8,专用,DRAWNULL),COLORBLUE,LINETHICK3; DRAWTEXT(CROSS(指标公式,20),20,''),COLORRED,LINETHICK3;
|