筛股:=1;
起始:=2;
金智量化1:=EMA(CLOSE,12)-EMA(CLOSE,25);
金智量化2:=EMA(金智量化1,6);
白色减仓:(金智量化2>=0)*金智量化2,COLORWHITE;
蓝色空仓:(金智量化1< 0)*金智量化1,COLORCYAN;
黄色观忘:(金智量化2< 0)*金智量化2,COLORYELLOW;
红色持仓:(金智量化1>=0)*金智量化1,COLORRED;
STICKLINE(金智量化2>=0,金智量化2,0,3.2,0),COLORAAAAAA;
STICKLINE(金智量化2>=0,金智量化2,0,2.9,0),COLOR777777;
STICKLINE(金智量化2>=0,金智量化2,0,2.4,0),COLOR999999;
STICKLINE(金智量化2>=0,金智量化2,0,1.8,0),COLORBBBBBB;
STICKLINE(金智量化2>=0,金智量化2,0,1.1,0),COLORDDDDDD;
STICKLINE(金智量化2>=0,金智量化2,0,0.3,0),COLORWHITE;
STICKLINE(金智量化2< 0,金智量化2,0,3.2,0),COLORFF5500;
STICKLINE(金智量化2< 0,金智量化2,0,2.9,0),COLORYELLOW;
STICKLINE(金智量化2< 0,金智量化2,0,2.4,0),COLORYELLOW;
STICKLINE(金智量化2< 0,金智量化2,0,1.8,0),COLORYELLOW;
STICKLINE(金智量化2< 0,金智量化2,0,1.1,0),COLORYELLOW;
STICKLINE(金智量化2< 0,金智量化2,0,0.3,0),COLORYELLOW;
STICKLINE(金智量化1< 0,金智量化1,0,3.2,0),COLORCC0066;
STICKLINE(金智量化1< 0,金智量化1,0,2.9,0),COLOREE0066;
STICKLINE(金智量化1< 0,金智量化1,0,1.8,0),COLORFF2266;
STICKLINE(金智量化1< 0,金智量化1,0,1.1,0),COLORFF4466;
STICKLINE(金智量化1< 0,金智量化1,0,0.3,0),COLORFF6666;
STICKLINE(金智量化1>=0,金智量化1,0,3.2,0),COLOR000055;
STICKLINE(金智量化1>=0,金智量化1,0,2.9,0),COLOR000077;
STICKLINE(金智量化1>=0,金智量化1,0,2.4,0),COLOR000099;
STICKLINE(金智量化1>=0,金智量化1,0,1.8,0),COLOR0000BB;
STICKLINE(金智量化1>=0,金智量化1,0,1.1,0),COLOR0000DD;
STICKLINE(金智量化1>=0,金智量化1,0,0.3,0),COLORRED;
金智量化3:=IF(NAMELIKE(1) OR NAMELIKE(2) OR CODELIKE(3) OR CODELIKE(4) OR CODELIKE(5),0,1);
金智量化4:=IF(筛股=0,1,金智量化3)*(DATE< 1251231);
金智量化5:=BARSLAST(DATE<=起始);
金智量化6:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
金智量化7:=AMOUNT/100000000-REF(金智量化6,1)*VOL/1000000;
金智量化8:=IF(DATE< 起始 OR DATE>1251231,0,金智量化7);
金智量化9:=SUM(金智量化8,金智量化5);
金智量化10:=IF(金智量化9< REF(金智量化9,1) AND REF(金智量化9,2)< REF(金智量化9,1),REF(金智量化9,1),0);
金智量化11:=HHV(金智量化10,金智量化5);
金智量化12:=IF(金智量化9>REF(金智量化9,1) AND REF(金智量化9,2)>REF(金智量化9,1),REF(金智量化9,1),0);
金智量化13:=LLV(金智量化12,金智量化5);
金智量化14:=金智量化11-金智量化13;
金智量化15:=金智量化9;
金智量化16:=金智量化14;
金智量化17:=REF(COST(99.999001),1);
金智量化18:=IF(金智量化17<=REF(金智量化17,1) AND REF(金智量化17,2)< REF(金智量化17,1),REF(金智量化17,1),0);
金智量化19:=LLV(金智量化17,50);
金智量化20:=CLOSE;
金智量化21:=金智量化19;
金智量化22:=AMOUNT/VOL/100;
金智量化23:=SUM(AMOUNT,100)/SUM(VOL,100)/100;
金智量化24:=金智量化22-金智量化23;
金智量化25:=SUM(ABS(金智量化24),100)/100;
金智量化26:=(金智量化24-金智量化25)/金智量化25*100;
金智量化27:=金智量化26;
金智量化28:=100;
金智量化29:=(金智量化15-金智量化16)/金智量化16*10;
金智量化30:=(金智量化20-金智量化21)/金智量化21*100;
金智量化31:=(金智量化27-金智量化28)/金智量化28*10;
金智量化32:=金智量化29>0 AND 金智量化30>0 AND 金智量化31>0;
金智量化33:=(金智量化29+金智量化30+金智量化31)/3;
金智量化34:=IF(金智量化32!=DRAWNULL AND 金智量化32=1,金智量化33,0);
金智量化35:=SUM(金智量化34>0,50);
主力线:金智量化33,COLORFF00FF;
均线:金智量化34,COLORYELLOW;
金智量化36:=12;
金智量化37:=26;
金智量化38:=200;
金智量化39:=9;
金智量化40:=34;
金智量化41:=1;
金智量化42:=1;
DRAWICON(CROSS( 主力线,均线),均线*1.002,9);
金智量化43:=EMA(CLOSE,金智量化3)-EMA(CLOSE,金智量化4);
金智量化44:=EMA(金智量化10,金智量化5);
金智量化45:=(金智量化10-金智量化11)*2*金智量化9;
金智量化46:=EMA(CLOSE,金智量化6)-EMA(CLOSE,金智量化7);
金智量化47:=EMA(金智量化13,200);
金智量化48:=(金智量化13-金智量化14)*2*金智量化9;
金智量化49:=MA(CLOSE,30);
金智量化50:=金智量化16+2*STD(CLOSE,30);