日线锁定:=(PERIOD==4);
日期锁定:=DATE>=1100104;
JE:=vol;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
主力流入:=(QJ0*(JJ-MIN(CLOSE,OPEN)));
主力流出:=(QJ0*(MIN(OPEN,CLOSE)-LOW));
主力净买:=(主力流入-主力流出)/10000;
P01:=SUM(主力净买,1)>0;
P02:=SUM(主力净买,2)>0;
P03:=SUM(主力净买,3)>0;
P04:=SUM(主力净买,4)>0;
P05:=SUM(主力净买,5)>0;
SUM11:=SUM(主力净买,11);
SUM12:=SUM(主力净买,12);
SUM13:=SUM(主力净买,13);
SUM14:=SUM(主力净买,14);
SUM15:=SUM(主力净买,15);
SUM16:=SUM(主力净买,16);
SUM17:=SUM(主力净买,17);
SUM18:=SUM(主力净买,18);
SUM19:=SUM(主力净买,19);
SUM20:=SUM(主力净买,20);
P11:=SUM11>0 AND SUM11>REF(SUM11,1);
P12:=SUM12>0 AND SUM12>REF(SUM12,1);
P13:=SUM13>0 AND SUM13>REF(SUM13,1);
P14:=SUM14>0 AND SUM14>REF(SUM14,1);
P15:=SUM15>0 AND SUM15>REF(SUM15,1);
P16:=SUM16>0 AND SUM16>REF(SUM16,1);
P17:=SUM17>0 AND SUM17>REF(SUM17,1);
P18:=SUM18>0 AND SUM18>REF(SUM18,1);
P19:=SUM19>0 AND SUM19>REF(SUM19,1);
P20:=SUM20>0 AND SUM20>REF(SUM20,1);
MAZJ05:=MA(主力净买,5);
MAZJ10:=MA(主力净买,10);
MAZJ15:=MA(主力净买,15);
MAZJ20:=MA(主力净买,20);
MA01:=MAZJ05>MAZJ10;
MA02:=MAZJ05>MAZJ15;
MA03:=MAZJ05>MAZJ20;
MA04:=MAZJ10>MAZJ15;
MA05:=MAZJ10>MAZJ20;
MA06:=MAZJ15>MAZJ20;
基准线1:=EMA(EMA(EMA(EMA(IFF(主力净买>=0,主力净买,0),20),2),2),2);
基准线6:=基准线1*6;
ZJDL10:=IFF(主力净买>基准线6,10,IFF(主力净买<=基准线6 AND 主力净买>0,10*主力净买/基准线6,0));
短线资金:=SUM(主力净买,3);
短线资金10:=EMA(短线资金,10);
短线资金60:=EMA(短线资金,60);
短线资金20:=EMA(短线资金,20);
短线资金30:=EMA(短线资金,30);
CZD01:=短线资金>短线资金10;
CZD02:=短线资金20>短线资金30;
CZD03:=短线资金10>短线资金60;
总权:=53;
量化资金:EMA(EMA(100*(P01*2+P02*2+P03*5+P04*2+P05*2+P11*1+P12*1+P13*1+P14*1+P15*1+P16*1+P17*1+P18*1+P19*1+P20*1+
MA01*2+MA02*2+MA03*1+MA04*1+MA05*1+MA06*1+ZJDL10+CZD01*5+CZD02*4+CZD03*3)/总权,2),2),NODRAW,COLORRED;
▲35线:35,COLORGREEN;
▲50线:50,COLORYELLOW;
▲80线:80,COLORRED;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,3,0),COLORRED;
STICKLINE(量化资金
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,3,0),COLOR0000FF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,2.7.5,0),COLOR001BFF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,2.4,0),COLOR0035FF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,2.1,0),COLOR0050FF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,1.8,0),COLOR0062FF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,1.5,0),COLOR007AFF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,1.2,0),COLOR0089FF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,0.9,0),COLOR009CFF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,0.6,0),COLOR00C0FF;
STICKLINE(量化资金>=REF(量化资金,1),0,量化资金,0.3,0),COLOR00EAFF;