源码
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这一个条件看似没有用,但还是有用处的,去掉它有些数据显示就不正确,具体为什么我没仔细研究}
VERTLINE(v4/1000 and c>=o and count(L<ema(c,240),10)>0,1),COLORwhite,linethick3;;
VERTLINE(v4 and c>o and count(L<ema(c,240),10)<=0,1),COLORcyan,linethick3;
VERTLINE(v4 and c<o and count(L<ema(c,240),10)<=0,1),COLORgreen,linethick3;
v5:=hhv(v0,38);
partline(v5,v5 and v5=ref(v5,1) ),colorwhite,linethick2{这句只是用来画成交量变化的阶梯图形};
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,align1;
drawtext(buy1 and count(buy1,15)=1,v5*1.5,'买入点'),colorwhite;