BD1:=(3*CLOSE+LOW+OPEN+HIGH)/6;
BD2:=(20*BD1+19*REF(BD1,1)+18*REF(BD1,2)+17*REF(BD1,3)+16*REF(BD1,4)+15*REF(BD1,5)+
14*REF(BD1,6)+13*REF(BD1,7)+12*REF(BD1,8)+11*REF(BD1,9)+10*REF(BD1,10)+9*REF(BD1,11)+
8*REF(BD1,12)+7*REF(BD1,13)+6*REF(BD1,14)+5*REF(BD1,15)+4*REF(BD1,16)+3*REF(BD1,17)+
2*REF(BD1,18)+REF(BD1,20))/210;
BD3:=MA(BD2,6);
BD4:=V*100/CAPITAL;
BD5:=MA(BD4,5);
BD6:=MA(BD4,55);
BD7:=(BD5-BD6);
BD8:=(C-BD2);
BD9:=BD7+BD8;
BD10:=EMA(V,5);
BD11:=EMA(V,50);
obv:=SUM(IF(CLOSE>REF(CLOSE,1),vol,IF(CLOSEBD12:=EMA(OBV,5);
BD13:=EMA(OBV,50);
BD14:=(BD10-BD11)*0.00001;
BD15:=(BD12-BD13)*0.000001;
BD16:=BD14+BD15;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
DKX:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
BD17:=MA(DKX,6);
BD18:=(DKX-BD17)*1.2;
BD19:=(C*2+H+L)/4*10;
BD20:=EMA(BD19,6)-EMA(BD19,55);
BD21:=EMA(BD20,6);
BD22:=(BD20-BD21)*0.06;
BD23:=BD18+BD22;
BD24:=MA(C,5)>REF(MA(C,5),1);
BD25:=EMA(C,12)>REF(EMA(C,12),1);
BD26:=MA(C,20)>REF(MA(C,20),1);
BD27:=MA(C,30)>REF(MA(C,30),1);
BD28:=MA(C,60)>REF(MA(C,60),1);
BD29:=MA(C,120)>REF(MA(C,120),1);
BD30:=MA(C,250)>REF(MA(C,250),1);
BD31:=BD25 + BD26 + BD27 + BD28;
BD32:=C>BD2 AND BD9>0 AND BD16>0 AND BD23>0;
BD35:=C>MA(C,5) AND BD24 AND BD25 AND BD26 AND BD27 AND BD28 AND BD29;
三阳开泰:BD32 AND (REF(BD32=0,1) OR REF(BD32=1,1)) AND BD35 AND REF(BD35=0,1),COLORRED;