同花顺顶底公式副图指标
源码
MA1:EMA(CLOSE,6),COLOR00FF00;
MA2:EMA(CLOSE,25),colorred ;
顶:MA(CLOSE,20) + 2*STD(CLOSE,55), coloryellow,POINTDOT, LINETHICK2 ;
底:MA(CLOSE,20) - 2*STD(CLOSE,55) ,coloryellow ,POINTDOT, LINETHICK2;
STICKLINE(MA1>MA2,MA1,MA2,9,0),COLORFF66FF ;
STICKLINE(MA2>MA1,MA1,MA2,9,0),COLORFF6600 ;
DRAWICON(MA2-MA1>0 AND MA1/LOW>1.15,LOW,1);
DRAWICON(MA1-MA2>0 AND HIGH/MA1>1.15,HIGH,2);
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORFFCC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORFFDD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLORFFEE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORFFFF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000BB;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000DD;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;