同花顺分时必买必卖公式
源码
必买:IF(TROUGHBARS(3,6,1)=0 AND HIGH>LOW+0.01,1,-6),COLOR30CC00,LINETHICK3 ;
必卖:IF(PEAKBARS(3,6,1)=0,60,84), COLOR0099FF ,LINETHICK2;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
长趋势:3*Q3-2*Q4,colormagenta ,LINETHICK2;
趋势线:EMA(Q3, 3), colorwhite ,LINETHICK3;
DRAWTEXT(CROSS(趋势线, 长趋势) AND REF(长趋势,1)>80, REF(长趋势,3), '* 顶'),coloryellow,LINETHICK5;
☆见底啦: DRAWTEXT(REF(CROSS(趋势线,长趋势),84) AND
趋势线>1.3*长趋势,长趋势,'☆←见底啦'), colorblue,LINETHICK1;
★低买: DRAWTEXT(REF(CROSS(长趋势,趋势线),1)
AND 长趋势>1.3*趋势线,趋势线,'★低买'), colorcyan ,LINETHICK2;