中线.alg
名称: 中线 类别:技术指标
说明: 短线泰斗之中线之鹰
公式组: !B.~~短线泰斗
股价波动线:MA(HIGH,2),colorFFFFFF;
股价警戒线:MA(EMA(HIGH,2),2),colorFFFF;
STICKLINE(股价波动线>股价警戒线,股价波动线,股价警戒线,8,0),colorCC00FF;
STICKLINE(股价波动线<股价警戒线,股价波动线,股价警戒线,8,0),colorFF00;
DRAWTEXT(VOL>MA(VOL,N) AND CLOSE>OPEN*(1+X/100) AND CLOSE<MA(CLOSE,30)*1.3,LOW*0.95,'选股1');
VAR1:=1;
VAR2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100*VAR1;
VAR3:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100*VAR1;
VAR4:=VOL/MA(VOL,5)*VAR1;
VAR5:=WINNER(CLOSE)*100;
VAR6:=VOL/CAPITAL*100*VAR1;
VAR7:=LLVBARS(LOW,50)*VAR1;
VAR8:=SUM(VOL,VAR7)*VAR1;
VAR9:=HHVBARS(HIGH,50)*VAR1;
VAR10:=SUM(VOL,VAR9)*VAR1;
VAR11:=(CLOSE-REF(OPEN,VAR9))/REF(OPEN,VAR9)*100*VAR1;
VAR12:=VAR10/CAPITAL*100*VAR1;
VAR13:=(CLOSE-REF(OPEN,VAR7))/REF(OPEN,VAR7)*100*VAR1;
VAR14:=VAR8/CAPITAL*100*VAR1;
VAR15:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;
VAR16:=SMA(VAR15,3,1);
VAR17:=SMA(VAR16,3,1);
VAR18:=3*VAR16-2*VAR17;
VAR19:=CLOSE<REF(CLOSE,1);
VAR20:=OPEN<REF(CLOSE,1);
VAR21:=VAR17<N2 AND VAR3<N3 AND VAR2>N4;
DRAWTEXT(VAR21 OR (COUNT(VAR21,N) AND VAR19 OR COUNT(VAR21,N) AND VAR20)*VAR1,LOW*0.95,'选股2');
DRAWTEXT(VOL/120>MA(VOL,25)/120 AND CLOSE>OPEN*(1+9/100) AND CLOSE<MA(CLOSE,28)*1.3,LOW*0.95,'选股3');
A:=OPEN<EMA(CLOSE,3) AND CLOSE=HIGH AND CLOSE/OPEN>=1.1095 AND VOL/CAPITAL>=0.02 AND VOL/CAPITAL<=0.2;
DRAWTEXT(A AND COUNT(A,3)=1,LOW*0.95,'选股4');
VAR0:=-100*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
DRAWTEXT(CROSS(VAR0,-87) AND OPEN<MA(CLOSE,5) AND CLOSE>=1.099*REF(CLOSE,1) AND INDEXC>0.98*REF(INDEXC,1) AND CLOSE<=1.47*LLV(CLOSE,100),LOW*0.95,'选股5');
A:=OPEN<EMA(CLOSE,3) AND WINNER(CLOSE)>=90/100 AND CLOSE=HIGH AND CLOSE/OPEN>=1.105 AND VOL/CAPITAL>=0.02 AND VOL/CAPITAL<=0.2;
DRAWTEXT(A AND COUNT(A,3)=1,LOW*0.95,'选股6');
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VAR2:=SMA(VAR1,3,1);
VAR3:=SMA(VAR2,3,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=VAR2+VAR3;
VAR6:=VAR5<55;
VAR7:=VAR5<60;
VAR8:=CROSS(MA(CLOSE,10),MA(CLOSE,15));
VAR9:=CROSS(MA(CLOSE,10),MA(CLOSE,19));
VARA:=REF(VAR6,3) AND (REF(VAR6,18) OR REF(VAR6,27) OR REF(VAR6,76) OR REF(VAR6,87) OR REF(VAR6,99) OR REF(VAR6,212));
VARB:=REF(VAR6,23) AND (REF(VAR6,78) OR REF(VAR6,132));
VARC:=SARTURN(2,3,30)=1;
VARD:=REF(VAR6,8) AND (REF(VAR6,132) OR REF(VAR6,76));
VARE:=REF(VAR7,18) AND REF(VAR7,88) AND REF(VAR7,90);
VARF:=CLOSE/REF(CLOSE,1)>=1.099;
VAR10:=OPEN=LOW AND HIGH=CLOSE;
VAR11:=VOL<MA(VOL,5) AND VOL<REF(VOL,1);
VAR12:=VARF AND VAR10 AND VAR11 AND (COUNT(VARF AND VAR10 AND VAR11,20))=1;
DRAWTEXT(VAR12 AND (VAR8 OR VAR9 OR VARA OR VARB OR VARC OR VARD OR VARE OR VAR5<38),LOW*0.95,'选股7');
VAR1:=EMA(WINNER(CLOSE)*70,3);
VAR2:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
VAR3:=CLOSE/MA(CLOSE,40)*100<76;
VAR4:=CLOSE/MA(CLOSE,60)*100<74;
VAR5:=HIGH>LOW*1.051;
VAR6:=VAR5 AND COUNT(VAR5,5)>1;
DRAWTEXT(VAR6 AND (VAR3 OR VAR4) AND VAR2<20 AND VAR1<20 AND (WINNER(CLOSE*125/100)-WINNER(CLOSE))*100<7.5,LOW*0.95,'选股8');
VAR1:=(REF(CLOSE,2)-REF(CLOSE,1))/REF(CLOSE,2)>0.05;
VAR2:=(REF(CLOSE,3)-REF(CLOSE,2))/REF(CLOSE,3)>0.05;
VAR3:=REF(HIGH,2)-REF(HIGH,1);
VAR4:=REF(HIGH,1)-VAR3;
VAR5:=VOL/CAPITAL*100;
DRAWTEXT(VAR5<15 AND (HIGH-LOW)/CLOSE>0.045 AND CLOSE>VAR4 AND VAR1 AND VAR2 AND CLOSE>OPEN AND MA(CLOSE,60)-MA(CLOSE,9)/2.68>CLOSE,LOW*0.95,'选股9');
VAR1:=IF(DATE<1031231,1,0);
VAR2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
VAR3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
VAR4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
VAR5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
VAR6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
VAR7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
VAR8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6;
VARA:=EMA(VAR9,3);
VARB:=ABS(VAR6-VAR8);
VARC:=(VAR9+VARB)/2;
VARD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VARE:=VARD+VARC;
VARF:=IF(VAR2>0 AND VARE<0,200,0);
VAR10:=IF(VARC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);
VAR11:=IF(VARE<0 AND VAR10=-50,100,0);
VAR12:=MA(CLOSE,3);
VAR13:=REF(CLOSE,2)*0.865;
VAR14:=REF(CLOSE,13)*0.772;
VAR15:=MIN(VAR13,VAR14);
VAR16:=100*VOL/CAPITAL;
VAR17:=MA(CLOSE,13);
VAR18:=(IF((CLOSE-VAR15)/CLOSE<0.03 AND SUM(VAR16,5)/5<1.8,1,0))*VAR1;
VAR19:=IF(VAR18>0 AND (VAR10<0 OR VAR2>0),100,0);
VAR1A:=VAR19*VAR1;
VAR1B:=IF(VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0) AND (VAR10<0 OR VAR2>0) AND VAR19<10,50,0);
VAR1C:=(VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0) AND (VAR10<0 OR VAR2>0);
VAR1D:=VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;
VAR1E:=VAR1C OR VAR1D;
DRAWTEXT(VAR1E,LOW*0.95,'选股10');
VAR2:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,50,0);
VAR3:=(-100)*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34))+100;
VAR4:=(-100)*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50))+100;
VAR5:=(-100)*(HHV(HIGH,70)-CLOSE)/(HHV(HIGH,70)-LLV(LOW,70))+100;
VAR6:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;
VAR7:=((CLOSE-MA(CLOSE,50))/MA(CLOSE,50)*100+10)*5;
VAR8:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;
VAR9:=(VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/6;
VARA:=EMA(VAR9,3);
VARB:=ABS(VAR6-VAR8);
VARC:=(VAR9+VARB)/2;
VARD:=(-1)*(EMA(100*(1-WINNER(CLOSE)),1)-50)+50;
VARE:=VARD+VARC;
VARF:=IF(VAR2>0 AND VARE<0,200,0);
VAR10:=IF(VARC<0 AND CLOSE=LLV(CLOSE,5) AND CLOSE/REF(CLOSE,1)>0.905 AND CLOSE/REF(CLOSE,1)<1.05 AND VOL/CAPITAL*100<5,-50,0);
VAR11:=IF(VARE<0 AND VAR10=-50,100,0);
VAR12:=MA(CLOSE,3);
VAR13:=REF(CLOSE,2)*0.865;
VAR14:=REF(CLOSE,13)*0.772;
VAR15:=MIN(VAR13,VAR14);
VAR16:=100*VOL/CAPITAL;
VAR17:=MA(CLOSE,13);
VAR18:=IF((CLOSE-VAR15)/CLOSE<0.03 AND SUM(VAR16,5)/5<1.8,1,0);
VAR19:=IF(VAR18>0 AND (VAR10<0 OR VAR2>0),100,0);
VAR1A:=VAR19;
VAR1B:=IF(VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902 OR (VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0) AND (VAR10<0 OR VAR2>0) AND VAR19<10,50,0);
VAR1C:=(VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0) AND (VAR10<0 OR VAR2>0);
VAR1D:=VARF>0 AND VAR11>0 AND SUM(VOL/CAPITAL*100,5)/5<1 OR VAR18>0 AND REF(CLOSE,1)/REF(CLOSE,2)>0.902;
DRAWTEXT((VAR1C OR VAR1D)*3=3,LOW*0.9,'超跌');
DRAWTEXT(CLOSE/REF(CLOSE,1)>=1.09 AND VOL<MA(VOL,5) AND VOL<REF(VOL,1) AND OPEN<CLOSE AND (HIGH-CLOSE+OPEN-LO |