RPY:=(open-LLV(C,90))/(HHV(C,90)-LLV(C,90))*100;
RPY90:=if(rpy<65,1,0);
LWL:=EMA(MA(LOW,30)*0.82,5);
PL:=100*(low-LWL)/LWL;
ma5:=ma(close,5);
ma10:=ma(close,10);
ma30:=ma(close,30);
slp10:=100*slope(ma10,5);
slp:=if(slp10>-1,1,0);
m0:=if(ma5
m4:=ref(m0,4);
m6:=ref(m0,6);
m8:=ref(m0,8);
m10:=ref(m0,10);
MAY30:=if(m2=1 and m4=1 and m6=1 and m8=1 and m10=1,1,0);
py0:=if(pl<12,1,0);
py1:=ref(py0,1);
py2:=ref(py0,2);
py3:=ref(py0,3);
py4:=ref(py0,4);
py5:=ref(py0,5);
py6:=ref(py0,6);
py7:=ref(py0,7);
py8:=ref(py0,8);
py9:=ref(py0,9);
py10:=ref(py0,10);
py11:=ref(py0,11);
py12:=ref(py0,12);
py13:=ref(py0,13);
py14:=ref(py0,14);
py15:=ref(py0,15);
py16:=ref(py0,16);
py17:=ref(py0,17);
py18:=ref(py0,18);
py19:=ref(py0,19);
py20:=ref(py0,20);
pyA:=if(py0+py1+py2+py3+py4+py5+py6+py7+py8+py9+py10>=4,1,0);
{ _大智慧股票指标公式}
pyB:=if(py11+py12+py13+py14+py15+py16+py17+py18+py19+py20>=4,1,0);
py:=if(pyA=1 or pyB=1,1,0);
tp0:=if(close>ma30 and open<1.05*ma30,1,0);
tp1:=ref(tp0,1);
tp2:=ref(tp0,2);
tpA:=if(100*(high-ma30)/ma30>1.5 and open<1.05*ma30,1,0);
tpB:=if(tp0+tp1+tp2>=2,1,0);
tp:=if(tpA=1 or tpB=1,1,0);
WIN20:=100*winner(ma30);
cyq20:=100*winner(ma30*1.2);
DCYQ20:=cyq20-win20;
抛压:dcyq20;
dcyq:=if(dcyq20<40,1,0);
买入价:1.015*ma30;
捕捉主升段:if(slp=1 and may30=1 and py=1 and tp=1 and dcyq=1 and rpy90=1,100,0);