{主力建仓}
V1:=(C*2+H+L)/4*10;
V2:=Ema(V1,13)-ema(V1,34);
V4:=2*(V2-EMA(V2,5))*5.5;
主力撤:IF(V4<=0,V4,0),COLORCYAN;
主力进:IF(V4>=0,V4,0),COLORWHITE,LINETHICK3;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大资金进场:IF(VB>=0,VB*2,0),COLORBLUE,LINETHICK3;
大资金撤走:IF(VB<=0,VB,0),COLORRED;
{V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:=EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金: STICKLINE(趋势线<=13,0,20,2,0),COLORCC9900;
AA:=(趋势线<=13) AND FILTER((趋势线<=13),15);
DRAWTEXT (AA,30,'准备现金'),COLORCC9900;
买入股票: STICKLINE(趋势线<=13 AND V12>13,0,18,2,0),COLOR0099FF;
BB:= (趋势线<=13 AND V12>13) AND FILTER((趋势线<=13 AND V12>13),10) ;
DRAWTEXT (BB,30,'买入股票'),COLOR0099FF;
见顶清仓: STICKLINE(趋势线>=90 AND V12,0,10,2,0),COLORBROWN;
CC:=(趋势线>=90 AND V12) AND FILTER((趋势线>=90 AND V12),10);
DRAWTEXT (CC,40,'见顶清仓'),COLORBROWN;}
主力进A:=IF(V4>=0,-10,DRAWNULL),COLORWHITE,LINETHICK2;
大盘资金进场A:=IF(VB>=0,-20,DRAWNULL),COLORBLUE,LINETHICK2;
AKPA1:=主力进-REF(主力进,1);
DRAWICON (AKPA1>0,主力进,1);
BKPA1:=大资金进场-REF(大资金进场,1);
DRAWICON (BKPA1>0,大资金进场,1);
{}
{超跌底部}
VAR1:=MA(HHV(HIGH,485),17);
VAR2:=MA(HHV(HIGH,222),17);
VAR3:=MA(HHV(HIGH,96),17);
VAR4:=MA(LLV(LOW,485),17);
VAR5:=MA(LLV(LOW,222),17);
VAR6:=MA(LLV(LOW,96),17);
VAR7:=MA(((VAR4)*(0.96)+(VAR5)*(0.96)+(VAR6)*(0.96)+(VAR1)*(0.558)+(VAR2)*(0.558)+(VAR3)*(0.558))/(6),17);
VAR8:=MA(((VAR4)*(1.25)+(VAR5)*(1.23)+(VAR6)*(1.2)+(VAR1)*(0.55)+(VAR2)*(0.55)+(VAR3)*(0.65))/(6),17);
VAR9:=MA(((VAR4)*(1.3)+(VAR5)*(1.3)+(VAR6)*(1.3)+(VAR1)*(0.68)+(VAR2)*(0.68)+(VAR3)*(0.68))/(6),17);
VARA:=MA((((VAR7)*(3)+(VAR8)*(2)+VAR9)/(6))*(1.738),17);
VARB:=IF((DATE<=1341231),VARA,(VARA)*(DAY));
VARE:=((SMA(Abs(LOW-REF(LOW,1)),3,1))/(SMA(MAX(LOW-REF(LOW,1),0),3,1)))*(100);
VARF:=MA(IF(((CLOSE)*(1.35)<=VARB),(VARE)*(10),(VARE)/(10)),3);
超跌底部:=IF((DATE<=1341231),MA(IF((LOW<=LLV(LOW,30)),(VARF+(HHV(VARF,30))*(2))/(2),0),3),100000000),COLORFF00FF;
该出手时就出手:=EMA(IF(LOW<=VARE,(REF(LOW,1)+VARF*2)/2,0),3)/618*LLV(LOW,30);
DRAWTEXT(REF(超跌底部,1)>REF(超跌底部,2) AND 超跌底部<REF(超跌底部,1),主力撤,'底'),COLORBLUE;
DRAWTEXT(REF(该出手时就出手,1)>REF(该出手时就出手,2) AND 该出手时就出手<REF(该出手时就出手,1),大资金撤走,'出手'),COLORRED;