请老师帮忙把通达信副图“找低”指标改写成选股公式。出现“低”的位置 SJV:=FINANCE(34);{ÿ1é¾»×ê2ú} êD¾»Âê:C/SJV,NODRAW,COLOR00FF00; ÿ1éË°oóàûèó:=(FINANCE(1)/FINANCE(29)); êDóˉÂê:C/FINANCE(33),NODRAW,COLORFFFF00; DIF:=EMA(CLOSE,10)-EMA(CLOSE,22); DE:=EMA(DIF,7.5); MACDA:=2*(DIF-DE),; HZL:=CROSS(MACDA,0); LZH:=CROSS(0,MACDA); BC:=BARSLAST(HZL OR LZH)+1; ZGHZ:=IF(MACDA>0,HHV(MACDA,BC),0); ZGLZ:=IF(MACDA<0,LLV(MACDA,BC),0); DRAWBAND(ZGHZ,RGB(105,77,77),0,RGB(77,77,77)); DRAWBAND(ZGLZ,RGB(80,0,0),0,RGB(66,88,66)); DIFF:EMA(CLOSE,10)-EMA(CLOSE,22),COLORFFFFFF; DEA:EMA(DIFF,7.5),COLOR00FFFF; MACD:2*(DIFF-DEA), COLORSTICK,LINETHICK0; STICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,1.5,1),COLORRED; STICKLINE(MACD>0 AND MACDREF(MACD,1),0,MACD,1.5,0),COLORFFAAFF; ¡ü:TROUGHBARS(3,3,1),COLOR0000FF,NODRAW; ¡y:PEAKBARS(3,3,1),COLOR00FF00,NODRAW; μí:IF(¡ü=0,DIFF,IF(¡y<¡ü,TROUGH(3,3,1),REF(TROUGH(3,3,1),1))),COLOR00FFFF,NODRAW; ¸ß:IF(¡y=0,DIFF,IF(¡ü<¡y,PEAK(3,3,1),REF(PEAK(3,3,1),1))),COLOR00FF00,NODRAW; STICKLINE(¡ü=0 AND DIFF<0 and diff0 AND DIFF>DEA,DIFF,0,0,0),COLOR00FF00; DRAWTEXT(¡ü=0 AND DIFF<0 and diff0 AND DIFF>DEA,DIFF,'¸ß'),COLOR00FF00; μíλ½e2æ:=CROSS(DIFF,DEA) AND DIFF<-0.1; JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); ¶t′νe2æ:=CROSS(DIFF,DEA) AND DEA<0 and count(jccount=2,21)=1;AA1:=BARSLAST(REF(CROSS(DIFF,DEA),1));μ×±3àë:=(REF(L,AA1+1)>L OR REF(C,AA1+1)>C) AND (L,DIFF)>REF((L,DIFF),AA1+1) AND CROSS(DIFF,DEA); DRAWLINE(AA1=0,DEA,μ×±3àë,DEA,0),COLOR0000FF,LINETHICK1; AA2:=BARSLAST(REF(CROSS(DEA,DIFF),1)); ¶¥±3àë:=(REF(C,AA2+1)(H,DIFF) AND CROSS(DEA,DIFF); DRAWLINE(AA2=0,DEA,¶¥±3àë,DEA,0),COLORGREEN,LINETHICK1; DRAWICON(CROSS(DIFF,DEA) AND DIFF>0,DEA,36); DRAWICON(CROSS(DEA,DIFF) AND DIFF>0,DEA,37); DRAWICON(CROSS(DIFF,DEA) AND DIFF<0,DEA,1); DRAWICON(¶t′νe2æ,DEA*0.9,36) ; ½aÅì1:=CONST(IF(MACD>0,1,0)); ½aÅì2:=CONST(IF(MACD<0,1,0)); ½aÅìA:=IF(½aÅì1=1,'¡¾¾«»a8¸ö×Ö ÂòD¡ÂôD¡£¬Ëõí·Ëõ½Å¡¿ μ±1é¼Ûò»2¨±èò»2¨¸ßê±£¬·′¶øoìÖùμĶÑ£¬ ò»¶Ñ±èò»¶ÑD¡£¬Ö¤Ã÷2úéúá˶¥±3àëÏÖÏó£¬ó|¸Ã¼°ê±Âô3ö', IF(½aÅì2=1,'¡¾¾«»a8¸ö×Ö ÂòD¡ÂôD¡£¬Ëõí·Ëõ½Å¡¿ μ±1é¼Ûò»2¨±èò»2¨μíê±£¬ ·′¶øÂìÖùμĶÑò»¶Ñ±èò»¶ÑD¡£¬Ö¤Ã÷2úéúáËμ×±3à룬ó|¸ÃÂò½ø', DRAWNULL)); DRAWTEXT_FIX((½aÅì1=1 OR ½aÅì2=1),0.16,0,0,½aÅìA),COLORFFEE00;
公式模块:
diff:=ema(c,10)-ema(c,22);
dea:=ema(diff,7.5); troughbars(3,3,1)=0 and diff<0 and diff<dea;