副图公式源码支持 手机/电脑
趋势线A:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) ,3,1),2,1),COLOR7F52AF ;
趋势线B:EMA(MA(趋势线A,5),3),COLOR7F52AF;
STICKLINE(趋势线A>=趋势线B,趋势线A,趋势线B,2,0),COLORRED;
STICKLINE(趋势线A<趋势线B,趋势线A,趋势线B,2,0),COLORLIGREEN;
STICKLINE(趋势线A>108 AND 趋势线A>=趋势线B,趋势线A,108,2,0),COLORBLUE;
STICKLINE(趋势线B>108 AND 趋势线A<趋势线B,趋势线B,108,2,0),COLORWHITE;
STICKLINE(趋势线A<0 AND 趋势线A<趋势线B,趋势线A,0,2,0),COLORF00FF0 ;
STICKLINE(趋势线B<0 AND 趋势线A>趋势线B,趋势线B,0,2,0),COLORF0F000;
波段买进:IF(CROSS(趋势线A,5),60,0),STICK,COLORYELLOW,LINETHICK3;
DRAWTEXT(CROSS(趋势线A,5),50, '波段买进'),COLORYELLOW;
顶线:108,COLORGREEN;
逃顶:IF(CROSS(顶线,趋势线A),1,0),STICK,COLORGREEN;
STICKLINE(CROSS(顶线,趋势线A),90,108,3,0),COLORGREEN;
选股公式源码
{选股公式:波段买进}
趋势线A:=5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) ,3,1),2,1),COLOR7F52AF ;
趋势线B:=EMA(MA(趋势线A,5),3),COLOR7F52AF;
波段买进:CROSS(趋势线A,5);
{卖出公式:逃顶}
趋势线A:=5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) -3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1) -SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1) ,3,1),2,1),COLOR7F52AF ;
顶线:=108,COLORGREEN;
逃顶:CROSS(顶线,趋势线A); |