DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY1:=REF(EMA(V1,3),1);
多空趋势:=(MA((CLOSE - HY1) * 10,2))*0.1;
操盘4:STICKLINE(多空趋势>=0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORRED;
减仓4:STICKLINE(多空趋势>=0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0), COLORRED;
反弹4:STICKLINE(多空趋势<0 AND 多空趋势>=REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;
寻底4:STICKLINE(多空趋势<0 AND 多空趋势< REF(多空趋势,1),6.5,6.5+多空趋势,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(多空趋势>=0,6,6.3),' 多空'),COLORWHITE;
换手:=V*100/CAPITAL;
主力:=MA(换手,4);
大户:=MA(换手,9);
散户:=MA(换手,34);
均量:=(主力+大户+散户)/4;
成交量:V,COLORWHITE,NODRAW;
主力能量:(主力-均量)COLORMAGENTA,NODRAW;
大户能量:(大户-均量)COLORYELLOW,NODRAW;
散户能量:(散户-均量)COLORBLUE,NODRAW;
操盘:STICKLINE(主力能量>=0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORYELLOW;
减仓:STICKLINE(主力能量>=0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORRED;
反弹:STICKLINE(主力能量<0 AND 主力能量>=REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;
寻底:STICKLINE(主力能量<0 AND 主力能量< REF(主力能量,1),4.5,4.5+主力能量,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(主力能量>=0,4.2,4.8),' 机构'),COLORMAGENTA;
操盘1:STICKLINE(大户能量>=0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORWHITE;
减仓1:STICKLINE(大户能量>=0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORRED;
反弹1:STICKLINE(大户能量<0 AND 大户能量>=REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;
寻底1:STICKLINE(大户能量<0 AND 大户能量< REF(大户能量,1),3,3+大户能量,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(大户能量>=0,2.7,3.3),' 大户'),COLORYELLOW;
操盘3:STICKLINE(散户能量>=0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORRED;
减仓3:STICKLINE(散户能量>=0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORRED;
反弹3:STICKLINE(散户能量<0 AND 散户能量>=REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;
寻底3:STICKLINE(散户能量<0 AND 散户能量< REF(散户能量,1),0,散户能量,1.5,0),COLORGREEN;
DRAWTEXT(ISLASTBAR=1,IF(散户能量>=0,-0.3,0.3),' 散户'),COLORBLUE;
JZ:=V/(ABS(主力能量)+ABS(大户能量)+ABS(散户能量));
ZLCJ:=JZ*ABS(主力能量);
DHCJ:=JZ*ABS(大户能量);
SHCJ:=JZ*ABS(散户能量);
{时空旋涡副图源码事下}
DRAWGBK(CLOSE>0,RGB(0,108,108),RGB(88,0,0),0,5,0);XA_1:=REF(CLOSE,3)/REF(CLOSE,4)>1.09;
XA_2:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,3),1.1,0.91) AND LOW1.09 AND REF(HIGH,2)/MAX(REF(CLOSE,2),REF(OPEN,2))>1.07) AND NOT(REF(CLOSE,2)1.09);
XA_3:=XA_1 AND XA_2;
XA_4:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);
XA_5:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,4),1.1,0.91) AND LOW
XA_6:=NOT(REF(OPEN,3)/REF(CLOSE,3)>1.07 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)
XA_7:=XA_4 AND XA_5 AND XA_6;
XA_8:=REF(CLOSE,5)/REF(CLOSE,6)>1.09 AND REF(CLOSE,5)=REF(HIGH,5);
XA_9:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,5),1.1,0.91) AND LOW1.05 AND REF(HIGH,4)/MAX(REF(CLOSE,4),REF(OPEN,4))>1.07) AND NOT(REF(LOW,4)/REF(CLOSE,5)>1.02 AND REF(CLOSE,4)1.03 AND REF(OPEN,1)1.07 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)1.09);
XA_10:=XA_8 AND XA_9;
XA_11:=REF(CLOSE,3)/REF(CLOSE,4)>1.09;
XA_12:=CLOSE/REF(CLOSE,1)>=1.031 AND BETWEEN(OPEN/REF(OPEN,3),1.1,0.91) AND LOWMA(CLOSE,10),4) AND BETWEEN(REF(OPEN,1)/REF(MA(CLOSE,5),1),1.01,0.99);
XA_13:=XA_11 AND XA_12;
XA_14:=XA_3 OR XA_7 OR XA_10 OR XA_13;
XA_15:=REF(CLOSE,4)/REF(CLOSE,5)>1.09 AND REF(CLOSE,4)=REF(HIGH,4);
XA_16:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)REF(MA(CLOSE,10),1),2);
XA_17:=REF(HIGH,1)>REF(CLOSE,1);
XA_18:=NOT(REF(CLOSE,1)>REF(OPEN,1) AND REF(CLOSE,1)/REF(OPEN,1)>1.03);
XA_19:=XA_15 AND XA_16 AND XA_17 AND XA_18;
XA_20:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);
XA_21:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)REF(MA(CLOSE,10),1),2);
XA_22:=REF(HIGH,1)>REF(CLOSE,1);
XA_23:=XA_20 AND XA_21 AND XA_22;
XA_24:=REF(CLOSE,3)/REF(CLOSE,4)>1.09 AND REF(CLOSE,3)=REF(HIGH,3);
XA_25:=CLOSE/REF(CLOSE,1)>=1.031 AND REF(CLOSE,1)REF(MA(CLOSE,10),1),3);
XA_26:=REF(HIGH,1)>REF(CLOSE,1);
XA_27:=XA_24 AND XA_25 AND XA_26{2};
XA_28:=NOT(REF(CLOSE,4)/REF(CLOSE,5)>1.095 AND REF(CLOSE,3)/REF(CLOSE,4)<0.92 AND REF(OPEN,3)>REF(CLOSE,4) AND REF(CLOSE,3)
XA_29:=XA_19 OR XA_23 OR XA_27 AND XA_28;
XA_30:=IF(NAMELIKE(2),0,1) AND IF(NAMELIKE(3),0,1);
XA_31:=IF(CODELIKE(1),0,1);
时空旋涡:=XA_14 OR XA_29 AND XA_30 AND XA_31,COLORRED,LINETHICK2;
STICKLINE(时空旋涡,0,2,3,1),COLORYELLOW;
STICKLINE(时空旋涡,9,11,3,1),COLORYELLOW;
DRAWTEXT(时空旋涡,8,' 时空旋涡'),COLORYELLOW;
DRAWICON(时空旋涡,1,9);
DRAWICON(时空旋涡,2,2);
DRAWICON(时空旋涡,3,1);
DRAWICON(时空旋涡,4,1);
DRAWICON(时空旋涡,5,1);
DRAWICON(时空旋涡,6,1);
DRAWICON(时空旋涡,7,28);
DRAWICON(时空旋涡,8,1);
DRAWICON(时空旋涡,9,1);
DRAWICON(时空旋涡,10,9);
DRAWICON(时空旋涡,11,1);