以下是安全博弈指标改进版
ddkp:=ema((winner(close) * 70),3);
wwkp:=ema(((winner((close * 1.1)) – winner((close * 0.9))) * 80),3);
控盘:=((ddkp / (ddkp + wwkp)) * 100);
均价:=amount/vul*100;
{利多:=close<ref(close,1) and 控盘>ref(控盘,1);
利空:=close>ref(v,1) and 控盘<ref(控盘,1);}
利多:=均价<ref(均价,1) and 控盘>ref(控盘,1);
利空:=均价>ref(均价,1) and 控盘<ref(控盘,1);
stickline(利多 and 控盘>20,0,10,0,0),colorred;
stickline(利空 and 控盘>20,0,10,0,0),colorgreen;
stickline(利多 and 控盘<30,0,10,2,0),colorred;
stickline(利多 and 控盘<20,10,20,2,0),coloryellow;
stickline(利多 and 控盘<10,20,30,2,0),colorwhite;
趋势减缓:=abs(控盘-ref(控盘,1))<abs(ref(控盘,1)-ref(控盘,2));
stickline(利空 and 控盘>=50 ,0,8,2,0),colorgreen;
控盘80:=控盘>=80 or ref(控盘,1)>=80;
stickline(控盘80 and 趋势减缓,0,5,2,0),colorgreen;
stickline(控盘80 and (控盘<ref(控盘,1) or 利空),0,10,2,0),colorgreen;
stickline(控盘80 and (控盘<ref(控盘,1) or 利空),10,20,2,0),colorblue;
stickline(控盘80 and 控盘<ref(控盘,1) and not(趋势减缓),20,30,2,0),colorliblue;
主力控盘:控盘,linethick2,colorwhite;
顶:90, linethick2 ,colorred;
风险:80,,coloryellow; 平衡:50,colorgreen;
安全:20,colorblue;
底:0, linethick2 ,colorwhite;
评论(0)