指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:发个改进版的数浪公式 飞狐公式改进版指标 源码
这个公式的原码是我在理想论坛里看到的,但是看完后眼花,就改进了一下,希望方便大家:
get:zig(3,5),colorblack;
pl5:=zig(3,5);
en1:=pl5>ref(pl5,1) and ref(pl5,1)<=ref(pl5,2) and ref(pl5,2)<=ref(pl5,3);
ex1:=pl5<ref(pl5,1) and ref(pl5,1)>=ref(pl5,2) and ref(pl5,2)>=ref(pl5,3);
pl10:=zig(3,10);
en2:=pl10>ref(pl10,1) and ref(pl10,1)<=ref(pl10,2) and ref(pl10,2)<=ref(pl10,3);
ex2:=pl10<ref(pl10,1) and ref(pl10,1)>=ref(pl10,2) and ref(pl10,2)>=ref(pl10,3);
pl20:=zig(3,20);
en3:=pl20>ref(pl20,1) and ref(pl20,1)<=ref(pl20,2) and ref(pl20,2)<=ref(pl20,3);
ex3:=pl20<ref(pl20,1) and ref(pl20,1)>=ref(pl20,2) and ref(pl20,2)>=ref(pl20,3);
走强1:=barslast(pl5<ref(pl5,1));
走弱1:=barslast(pl5>ref(pl5,1));
走强2:=barslast(pl10<ref(pl10,1));
走弱2:=barslast(pl10>ref(pl10,1));
走强3:=barslast(pl20<ref(pl20,1));
走弱3:=barslast(pl20>ref(pl20,1));
ztjz5:=if(pl10>ref(pl10,1),count(en1,走强2),0);
ztjd5:=if(pl10>ref(pl10,1),count(ex1,走强2),0);
dtjz5:=if(pl10<ref(pl10,1),count(en1,走弱2),0);
dtjd5:=if(pl10<ref(pl10,1),count(ex1,走弱2),0);
ztjz10:=if(pl20>ref(pl20,1),count(en2,走强3),0);
ztjd10:=if(pl20>ref(pl20,1),count(ex2,走强3),0);
dtjz10:=if(pl20<ref(pl20,1),count(en2,走弱3),0);
dtjd10:=if(pl20<ref(pl20,1),count(ex2,走弱3),0);
drawtext(en1 and dtjz5=1,l*0.98,'㈠'),colorligray;
drawtext(ex1 and dtjd5=2,h*1.02,'㈡'),colorligray;
drawtext(en2 and ztjz5=1,l*0.98,'㈢'),colorred;
drawtext(ex1 and pl10>ref(pl10,1) and ztjd5=1,h*1.02,'⑴'),colorligray;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=2,l*0.98,'⑵'),color0000ff;
drawtext(ex1 and pl10>ref(pl10,1) and ztjz5=2,h*1.02,'⑶'),color0000ff;
drawtext(en1 and pl10>ref(pl10,1) and ztjz5=3,l*0.98,'⑷'),color0000ff;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.02,'⑸'),colorligray;
drawtext(en2 and dtjz10=1,l*0.9,'ⅰ'),colorwhite;
drawtext(ex2 and dtjd10=2,h*0.9,'ⅱ'),colorligray;
drawtext(en3 and ztjz10=1,l*0.9,'ⅲ'),colorred;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=1,h*1.06,'①'),linethick3,colorligray;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=2,l*0.94,'②'),linethick3,colorred;
drawtext(ex2 and pl20>ref(pl20,1) and ztjd10=2 or (ztjd10=0 or ztjd10=2) and ex2,h*1.06,'③'),linethick3,colorligray;
drawtext(en2 and pl20>ref(pl20,1) and ztjz10=3,l*0.94,'④'),linethick3,colorred;
>>>使用本站搜索工具可以找到更多“发个改进版的数浪公式 飞狐公式改进版指标 源码”