
能量异动
v0:=vol/capital*1000;
v1:=ref(sum(v0,5),1);
v3:=v0 and v0>v1;
v4:=v3 and count(v3,50)=1;
stickline(v>0,0,v0,10,0),colorgray;{V>0这一个条件看似没有用,但还是有用处的,去掉它有些数据显示就不正确,具体为什么我没仔细研究}
DMA(v4/1000 and c>=o and count(L<ema(c,240),10)>0,1),COLORwhite,linethick3;
DMA(v4 and c>o and count(L<ema(c,240),10)<=0,1),COLORGREEN,linethick3;
DMA(v4 and c<o and count(L<ema(c,240),10)<=0,1),COLORgreen,linethick3;
v5:=hhv(v0,38);
RSV:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;
Var1:=SMA(RSV,3,1);
Var2:=SMA(Var1,3,1);
buy1:=count(Var1<16 and Var2<21,3)=1 ;
drawtext(buy1 and count(buy1,15)=1,v5,'●'),colorred;
drawtext(buy1 and count(buy1,15)=1,v5*1.5,'买入点'),colorwhite;