//期货多空
主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), coloryellow,LINETHICK1;
爆发线:80,colorliblue,LINETHICK1;
STICKLINE(C>0,20,20.1,8,0),colormagenta;
LA:=REF(CLOSE,1);
LB:=((SMA(MAX((CLOSE - LA),0),5,1) / SMA(ABS((CLOSE - LA)),5,1)) * 100);
LC:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
LE:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);
LF:=SUM(IF(((LC > 0) AND (LC > LD)),LC,0),5);
LG:=SUM(IF(((LD > 0) AND (LD > LC)),LD,0),5);
LH:=((LF * 100) / LE);
LI:=((LG * 100) / LE);
LJ:=MA(((ABS((LI - LH)) / (LI + LH)) * 100),5);
AV:=(LB + LJ);
LK:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
LL:=(LB - LK);
LM:=(AV + LL);
LO:=((((2 * CLOSE) + HIGH) + LOW) / 4);
LP:=LLV(LOW,34);
LQ:=HHV(HIGH,34);
LR:=EMA((((LO - LP) / (LQ - LP)) * 100),13);
LS:=EMA(((0.667 * REF(LR,1)) + (0.333 * LR)),2);
STICKLINE(((LR-LS)>0),LR,LS,9,1),colorred;
STICKLINE(((LR-LS)<0),LR,LS,9,1),colorgreen;
DRAWICON(CROSS(LR,主力资金),主力资金+30,2);
DRAWICON(CROSS(主力资金,LR),主力资金-20,1);
DRAWICON(主力资金>爆发线,爆发线,1);