一个副图公式,出现三角形就是买的信号。
源码:
TJ1:=REF(LOW,2)=LLV(LOW,5);
TJ2:=CROSS(TJ1,0.9);
TJ3:=TJ1 AND LOW>REF(LOW,1) AND H>REF(H,1);
DRAWTEXT(TJ2 AND CROSS(C,MA(C,5)),LOW*-0.01,’B’),COLORRED;
DRAWTEXT(CROSS(TJ3,0.9) AND CROSS(C,MA(C,5)),H+80,’坚定’);
DRAWTEXT_FIX(C>O,0.01,0.9,0,’SGZBK.TOP’),COLORYELLOW;
TJA:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1)+2SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1),15,1);
TJB:=100-3SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))100,20,1)+2SMA(SMA((OPEN- LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
要牛:TJA<REF(TJB,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(要牛 AND COUNT(要牛,18)=1,H+50,’要牛’);
牛B:=IF((CLOSE>REF(CLOSE,1)),88,0);
牛来了:IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (牛B>0),91,0);
指标仅供参考,不作投资依据。