D:=33;T:=29;N:=3;
AA:=SUMBARS(VOL,CAPITAL);
地量:=IF(CAPITAL=0,AMOUNT=LLV(AMOUNT,34),VOL<MA(VOL,AA)*D/100 AND VOL>0),NODRAW;
{DL: 地量 AND COUNT(地量,10)=1,NODRAW;}
DLZZ1:REF(MAX(C*1.025,H),BARSLAST(地量)),POINTDOT,COLORGREEN;
DLZZ2:REF(C,BARSLAST(地量)),COLORGREEN;
DLZZ3:REF(MIN(C*0.975,L),BARSLAST(地量)),POINTDOT,COLORGREEN;
STICKLINE(RANGE(C,DLZZ3,DLZZ1) OR RANGE(L,DLZZ3,DLZZ1),DLZZ3,DLZZ1,0.01,1),COLOR008800;
天量:IF(CAPITAL=0,AMOUNT=HHV(AMOUNT,34),VOL>MA(VOL,AA)*T/10 ),NODRAW;
TL: 天量 AND COUNT(天量,9)=1,NODRAW;
TLZZ1:REF(MAX(C*1.025,H),BARSLAST(TL)),POINTDOT,COLORRED;
TLZZ2:REF(C,BARSLAST(TL)),COLORRED;
TLZZ3:REF(MIN(L,C*0.975),BARSLAST(TL)),POINTDOT,COLORRED;
STICKLINE(RANGE(C,TLZZ3,TLZZ1) OR RANGE(L,TLZZ3,TLZZ1),TLZZ3,TLZZ1,0.01,1),COLOR0000FF;
{ 爱约股_通达信股票指标公式}
天量反弹区:RANGE(C,TLZZ3,TLZZ1) OR RANGE(L,TLZZ3,TLZZ1),NODRAW,COLORRED;
地量反弹区:RANGE(C,DLZZ3,DLZZ1) OR RANGE(L,DLZZ3,DLZZ1),NODRAW,COLORGREEN;
天地共反:COUNT(天量反弹区,3) AND COUNT(地量反弹区,3),NODRAW;
牛股:COUNT(天地共反,N),NODRAW;
DRAWICON((C/TLZZ2>1.03)&& COUNT(天量反弹区,3) ,C*1.03,18);
DRAWICON((C/DLZZ2>1.03)&& COUNT(地量反弹区,3) ,C*1.03,19);
DRAWICON(C/MIN(REF(C,1),MIN(TLZZ1,DLZZ1))>1.1&&COUNT(天地共反,2),C*1.05,23);
DRAWKLINE(H,O,L,C);
DRAWICON(COUNT(TL,34)>0 AND CROSS(C,DLZZ2),C*0.85,25);
DRAWICON(COUNT(地量,34)>0 AND CROSS(C,DLZZ2),C*0.95,26);