单阳:=C =O*(1+单阳涨幅/100) AND C REF(C,1) AND VOL REF(VOL,1)*(1+单阳量涨幅/100);
FT:=BARSLAST(单阳);
单阳L:=REF(L,FT);
单阳H:=REF(C,FT);
单阳V:=REF(V,FT);
ZF:=HHV(MAX(O,C),FT);
DF:=LLV(L,FT);
DV:=IF(FT=1,V*0.7,HHV(V,FT-1));
单阳不破:=ZF 单阳H*1.05 AND DF 单阳L AND FT 0 AND DV 单阳V AND FT
YTSL:=(3*C+L+O+H)/6;
火线:(20*YTSL+19*REF(YTSL,1)+18*REF(YTSL,2)+17*REF(YTSL,3)+16*REF(YTSL,4)
+15*REF(YTSL,5)+14*REF(YTSL,6)+13*REF(YTSL,7)+12*REF(YTSL,8)+11*REF(YTSL,9)
+10*REF(YTSL,10)+9*REF(YTSL,11)+8*REF(YTSL,12)+7*REF(YTSL,13)+6*REF(YTSL,14)
+5*REF(YTSL,15)+4*REF(YTSL,16)+3*REF(YTSL,17)+2*REF(YTSL,18)+
REF(YTSL,20))/211,COLORFFFF00,LINETHICK2;
缩量:=V 单阳V/2;
缩量2:=V 单阳V/3;
DYBP:IF(单阳不破 ,单阳L,DRAWNULL),COLOR00FFFF,LINETHICK2;
DRAWTEXT(单阳,LOW*0.98,'阳');
菩提:=MEMA(H,20);
般:=MEMA(CLOSE,7),COLORBROWN;
若:=MEMA(CLOSE,3),COLORLIBLUE;
DRAWICON(LONGCROSS(般,若,0.25) AND 菩提 H ,L*0.98,1),COLORRED;
YM:=(H+O+L+3*C)/6;
XM:=EMA(100-(100/(1+SUM(IF(YM REF(YM,1),YM*VOL,0),14)/SUM
(IF(YM REF(YM,1),YM*VOL,0),14))),5);
ZM:=DRAWLINE(XM =HHV(XM,4),XM,XM =LLV(XM,4),XM,1);
TJ1:=XM=ZM;
TJ2:=XM REF(XM,1);
DRAWTEXT(TJ1 AND TJ2,LOW*0.95,'买进'),COLORYELLOW;
趋势线:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1), , COLORBLUE;
DRAWTEXT(CROSS(趋势线,10),LOW*0.90,'底买'),COLORMAGENTA;
DRAWTEXT(TJ1 AND TJ2,LOW*0.95,ZM),COLORYELLOW;