自定义指标其实并不包含什么高深的理论,
所有原型都是对成交量等数据小小加工。
指标最终的目的是帮助自己制定一套行之有效的操盘纪律,谓之“军令如山”。机械化操作,严格执行
源代码:
var1=refBefore(low,1);
var2=sma(abs(low-var1),3,1)/sma(max(low-var1,0),3,1)*100;
var3=ema(ifelse(close*1.2,var2*10,var2/10),3);
var4=lowest(low,38);
var5=highest(var3,38);
var6=ifelse(lowest(low,90),1,0);
var7=ema(ifelse(low<=var4,(var3+var5*2)/2,0),3)/618*var6;
底部吸筹="";
drawStickBetweenIf(var7,0,var7,fill=false,linewidth=4,color="white");
v1=lowest(high,240);
飞鱼=100*(close-v1)/v1;
draw(飞鱼,color="red");
v2=highest(high,240);
海洋=100*(v2-close)/close;
draw(海洋,color="green");
v3=sum(vol,5)/capital();
cyf5=100-(100/(1+v3));