gspt1:=DATE>=1220816;
gspt2:=0<=1260607;
gspt3:=gspt1 AND gspt2;
gspt4:=LLV(LOW,34);
gspt5:=HHV(HIGH,30);
gspt6:=EMA((CLOSE-gspt4)/(gspt5-gspt4)*4,4)*25;
gspt7:=(gspt6-LLV(gspt6,21))/(HHV(gspt6,21)-LLV(gspt6,21))*4*25;
gspt8:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
gspt9:=SMA(gspt8,3,1);
gspt10:=SMA(gspt9,3,1);
gspt11:=SMA(gspt10,3,1);
gspt12:=gspt10 AND gspt3;
gspt13:=gspt11;
gspt14:=CROSS(gspt11,gspt10) AND gspt10>80;
STICKLINE(FILTER(gspt14,5)=1 AND gspt3,0,70,1,0),COLORLIGREEN;
DRAWTEXT(FILTER(gspt14,5)=1 AND gspt3,50,1),COLORFFCC66;
gspt15:=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) AND gspt3;
gspt16:=CROSS(gspt9,gspt10) AND gspt10>80 AND gspt10>gspt11;
gspt17:=CROSS(gspt15,gspt9) AND gspt15<20 AND gspt15<gspt13;
分批卖出:STICKLINE(gspt16 AND gspt3,50,90,1,0),COLOR008360;
分批买入:STICKLINE(gspt17 AND gspt3,40,0,1,0),COLOR000080;
NOTEXT1:90,DOTLINE,COLORGRAY;
gspt18:=0;
gspt19:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);
gspt20:=(HHV(HIGH,25)-LLV(LOW,25))/EMA(CLOSE-LLV(LOW,25),5);
gspt21:=CROSS(gspt20,gspt19);
gspt22:=REF(gspt20,2)<REF(gspt20,1) AND gspt20<REF(gspt20,1);
gspt23:=COUNT(gspt21,7)>0 AND gspt22;
gspt24:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
gspt25:=SMA(ABS(LOW-gspt24),13,1)/SMA(MAX(LOW-gspt24,0),10,1);
gspt26:=EMA(gspt25,10);
gspt27:=EMA(CLOSE,5);
gspt28:=LLV(LOW,33);
gspt29:=EMA(IF(LOW<=gspt28,gspt27,0),3)*40;
gspt30:=IF(gspt29>100,gspt29*0.312,gspt29);
异动起飞选股:1=1,COLORLIMAGENTA;
资金入场:gspt20 AND gspt3,COLORRED;
gspt31:=REF(LOW,1);
gspt32:=SMA(ABS(LOW-gspt31),13,1)/SMA(MAX(LOW-gspt31,0),13,1)*4;
gspt33:=EMA(gspt32,13);
gspt34:=LLV(LOW,34);
gspt35:=EMA(IF(LOW<=gspt34,gspt33,0),3);
gspt36:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
gspt37:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
gspt38:=gspt36<REF(gspt37,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
散户:STICKLINE(gspt35>REF(gspt35,1) AND gspt3,0,gspt35,0.5,0),COLORGREEN;
STICKLINE(gspt38 AND COUNT(gspt38,30)=1 AND gspt3,0,18,0.5,0),COLORBLUE;
STICKLINE(gspt38 AND COUNT(gspt38,30)=1 AND gspt3,18,36,0.5,0),COLORFF7700;
STICKLINE(gspt38 AND COUNT(gspt38,30)=1 AND gspt3,36,60,1,0),COLORYELLOW;
DRAWTEXT(gspt38 AND COUNT(gspt38,30)=1 AND gspt3,80,2),COLORYELLOW;
gspt39:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
gspt40:=(HIGH+LOW+CLOSE)/3;
gspt41:=(gspt40-MA(gspt40,14))/(0.015*AVEDEV(gspt40,14));
gspt42:=(gspt40-MA(gspt40,70))/(0.015*AVEDEV(gspt40,70));
gspt43:=IF(gspt41>=150 AND gspt41<200 AND gspt42>=150 AND gspt42<200,10,0);
gspt44:=IF(gspt41<=(-150) AND gspt41>(-200) AND gspt42<=(-150) AND gspt42>(-200),(-10),gspt43);
gspt45:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
gspt46:=100-ABS(gspt45);
gspt47:=IF(gspt46<90,gspt46,100);
gspt48:=IF(gspt39>0,gspt39,0);
gspt49:=IF(gspt42>=200 AND gspt41>=150,15,IF(gspt42<=(-200) AND gspt41<=(-150),(-15),gspt44))+60;
DRAWTEXT_FIX(1,0.980,20,1,'公式平台,公式源码 http://www.gspt.com'),COLOR333333;
gspt50:=gspt48>48 AND gspt49>60 AND gspt47<100;
DRAWTEXT(gspt50 AND COUNT(gspt50,25)=1 AND gspt3,80,3),COLORFFCC66;
STICKLINE(gspt50 AND COUNT(gspt50,25)=1 AND gspt3,90,60,0.5,0),COLORFFCC66;
gspt51:=IF(CLOSE>REF(CLOSE,1),88,0);
gspt52:=IF(CLOSE/REF(CLOSE,1)>1.05 AND HIGH/CLOSE<1.01 AND gspt51>0,91,0);
gspt53:=FILTER(gspt52>90,45) AND gspt3;
STICKLINE(gspt53 AND gspt3,35,0,1.5,0),COLOR000099;
STICKLINE(gspt53 AND gspt3,35,0,1.5,0),COLOR0000BB;
STICKLINE(gspt53 AND gspt3,35,0,1.5,0),COLOR0000DD;
STICKLINE(gspt53 AND gspt3,35,0,0.9,0),COLORRED;
DRAWTEXT(gspt53>0 AND gspt3,23,4),COLOR00C5FF;
gspt54:=9;
gspt55:=3;
gspt56:=(CLOSE-LLV(LOW,gspt54))/(HHV(HIGH,gspt54)-LLV(LOW,gspt54))*100;
gspt57:=SMA(gspt56,5,1);
gspt58:=SMA(gspt57,gspt55,1);
gspt59:=3*gspt57-2*gspt58;
gspt60:=(gspt56/2+22)*1;
gspt61:=EMA(VOL,13);
gspt62:=EMA(AMOUNT,13);
gspt63:=gspt62/gspt61/100;
gspt64:=(CLOSE-gspt63)/gspt63*100;
gspt65:=gspt64<0 AND ZXNH;
gspt66:=IF(gspt65 AND gspt56<gspt60-2,50,0);
高卖Q:IF(gspt65 AND gspt56>gspt60,80,120),COLORGREEN,LINETHICK2;
gspt67:=25;
STICKLINE(gspt66 AND gspt3,0,25,2,0),COLORYELLOW;
DRAWTEXT(gspt66/50 AND gspt3,30,5),COLORMAGENTA;
gspt68:=LLV(LOW,10);
gspt69:=HHV(HIGH,25);
gspt70:=EMA((CLOSE-gspt68)/(gspt69-gspt68)*4,4);
趋势:MA(gspt70,2)*30;
IF(趋势>REF(趋势,1) AND gspt3,趋势,DRAWNULL),COLORRED;
IF(趋势<REF(趋势,1) AND gspt3,趋势,DRAWNULL),COLORBLUE;
STICKLINE(趋势>REF(趋势,1) AND gspt3,趋势,REF(趋势,1),1,0),COLORRED;
STICKLINE(趋势<=REF(趋势,1) AND gspt3,趋势,REF(趋势,1),1,0),COLORGREEN;
gspt71:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*1000;
gspt72:=gspt71-LLV(gspt71,10);
gspt73:=(MA(gspt72,2)*3+gspt72*13)/16;
gspt74:=IF(gspt73>13,MA(gspt73,2),gspt73)/6;
gspt75:=MACD.DIF>MACD.DEA AND MACD.DIF<0.2 AND MACD.DIF>0;
短线出击:IF(CROSS(gspt74,1) AND gspt74<30 AND gspt75 AND gspt3,20,0);
DRAWTEXT(短线出击/20 AND gspt3,22,6),COLORCYAN;
gspt76:=MA(AMOUNT,5)/MA(VOL,5)/100;
gspt77:=(gspt76-MA(AMOUNT,125)/MA(VOL,125)/100)/gspt76;
gspt78:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,3);
gspt79:=CLOSE/MA(CLOSE,60)-1;
gspt80:=IF(CROSS((-5),gspt78) AND gspt77<(-0.4),(-0.01),(-1));
gspt81:=IF(CROSS((-5),gspt78) AND gspt77<(-0.25) AND gspt77>(-0.4),(-0.3),(-1));
gspt82:=IF(CROSS((-5),gspt78) AND gspt77<(-0.15) AND gspt77>(-0.25),(-0.6),(-1));
gspt83:=IF(CROSS(gspt78,(-95)) AND gspt79<0.2 AND gspt79>=0.1,0.6,1);
gspt84:=IF(CROSS(gspt78,(-95)) AND gspt79<0.35 AND gspt79>=0.2,0.3,1);
gspt85:=IF(CROSS(gspt78,(-95)) AND gspt79>=0.35,0,1);
gspt86:=VOL>MA(VOL,89);
gspt87:=EXPMA(CLOSE,5);
gspt88:=EXPMA(CLOSE,29);
gspt89:=gspt87>gspt88;
gspt90:=REF(CLOSE,1);
gspt91:=SMA(MAX(CLOSE-gspt90,0),12,1)/SMA(ABS(CLOSE-gspt90),12,1)*100;
gspt92:=SMA(MAX(CLOSE-gspt90,0),56,1)/SMA(ABS(CLOSE-gspt90),56,1)*100;
gspt93:=gspt91>gspt92 AND gspt89 AND gspt86;
gspt94:=HHV(HIGH,30);
gspt95:=LLV(LOW,30);
gspt96:=REF((gspt94/gspt95-1)*100<=30,1);
gspt97:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
gspt98:=DMA((2.15*CLOSE+LOW+HIGH)/4,gspt97);
gspt99:=EMA(gspt98,200)*1.1;
妖股:CROSS(CLOSE,gspt99) AND REF(CLOSE*1.097,1)<CLOSE AND gspt93 AND gspt96;
IF(妖股 AND gspt3,35,0),COLORMAGENTA,LINETHICK3;
DRAWTEXT(妖股 AND gspt3,22,7),COLORYELLOW;
gspt100:=(MA(CLOSE,30)-LOW)/MA(CLOSE,60)*200;
gspt101:=SMA(MAX(CLOSE-REF(CLOSE,1),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
gspt102:=FILTER(REF(gspt101,1)<20 AND gspt101>REF(gspt101,1),5);
gspt103:=CLOSE/MA(CLOSE,40)<0.74;
gspt104:=EMA(EMA(CLOSE,5),5);
gspt105:=EMA(CLOSE,5)-REF(EMA(CLOSE,5),1);
gspt106:=gspt104-REF(gspt104,1);
gspt107:=ABS(EMA(CLOSE,5)-gspt104);
gspt108:=(HIGH-LOW)/REF(CLOSE,1)>0.05;
gspt109:=(gspt105+gspt106)/2;
gspt110:=POW(gspt107,1)*POW(gspt109,3);
gspt111:=gspt110/HHV(ABS(gspt110),5*3);
gspt112:=COUNT(gspt108,5)>1;
gspt113:=gspt103 AND gspt108 AND gspt112;
gspt114:=CROSS(gspt111,(-0.9));
gspt115:=FILTER(gspt102 AND gspt100>20 OR CLOSE>REF(CLOSE,1) AND REF(gspt113,1),10);
gspt116:=FILTER(REF(gspt113,1) AND (gspt114 OR CLOSE>REF(CLOSE,1)) AND MACD.MACD>(-1.5),10);
妖底确定:(COUNT(gspt116,13)>=1 AND gspt115)*10;
DRAWTEXT(妖底确定/10,7,8),COLORRED;
gspt117:=REF(CLOSE,4)>REF(CLOSE,3);
gspt118:=REF(CLOSE,3)>REF(CLOSE,2);
gspt119:=REF(CLOSE,2)>REF(CLOSE,1);
gspt120:=gspt117 AND gspt118 AND gspt119;
gspt121:=BARSLAST(CLOSE/REF(CLOSE,1)>1.065);
gspt122:=gspt121>6 AND CLOSE>REF(CLOSE,1)*1.03;
gspt123:=EMA(MAX(CLOSE-REF(CLOSE,1),0),5)/EMA(ABS(CLOSE-REF(CLOSE,1)),5)*100;
gspt124:=EMA(MAX(CLOSE-REF(CLOSE,1),0),8)/EMA(ABS(CLOSE-REF(CLOSE,1)),8)*100;
gspt125:=REF(CLOSE,3)>REF(CLOSE,2) AND REF(CLOSE,2)>REF(CLOSE,1) AND REF(CLOSE,4)>REF(CLOSE,3);
gspt126:=CROSS(gspt123,20) AND CROSS(gspt123,gspt124);
gspt127:=gspt120 AND gspt122 AND gspt126;
gspt128:=CLOSE/REF(CLOSE,1)<MA(CLOSE,24);
gspt129:=CROSS(CLOSE,MA(CLOSE,24)) AND VOL/REF(MA(VOL,5),1)>1.016;
gspt130:=gspt128 AND gspt129 AND RANGE(MA(CLOSE,24),LOW,CLOSE);
超牛:(gspt130 AND gspt127)*10;
DRAWTEXT(超牛/10 AND gspt3,9,9),COLORWHITE;
gspt131:=(HIGH*18+REF(HIGH,1)*17+REF(HIGH,2)*16+REF(HIGH,3)*15+REF(HIGH,4)*14+REF(HIGH,5)*13+REF(HIGH,6)*12+REF(HIGH,7)*11+REF(HIGH,8)*10+REF(HIGH,9)*9+REF(HIGH,10)*8+REF(HIGH,11)*7+REF(HIGH,12)*6+REF(HIGH,13)*5+REF(HIGH,14)*4+REF(HIGH,15)*3+REF(HIGH,16)*2+REF(HIGH,17)*1)/171;
gspt132:=(LOW*18+REF(LOW,1)*17+REF(LOW,2)*16+REF(LOW,3)*15+REF(LOW,4)*14+REF(LOW,5)*13+REF(LOW,6)*12+REF(LOW,7)*11+REF(LOW,8)*10+REF(LOW,9)*9+REF(LOW,10)*8+REF(LOW,11)*7+REF(LOW,12)*6+REF(LOW,13)*5+REF(LOW,14)*4+REF(LOW,15)*3+REF(LOW,16)*2+REF(LOW,17)*1)/171;
gspt133:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
gspt134:=DMA((2.15*CLOSE+LOW+HIGH)/4,gspt133);
gspt135:=EMA(gspt134,200)*1.118;
gspt136:=EMA(gspt134,200)*1.118;
gspt137:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>8;
gspt138:=CROSS(CLOSE,gspt135) AND gspt137;
黑马启动:gspt138*11,LINETHICK2;
DRAWTEXT(gspt138 AND gspt3,7,10),COLORRED;
DRAWICON(gspt138,5,11);
DRAWTEXT_FIX(1,0.06,0.08,0,'70822.com'),COLOR666666;