//DRAWGBK(1,COLORRGB(240,240,240),COLORRGB(240,240,240),0);
{--------------------均线组----------------}{18日收盘均价为安全生命线}EMA(close,18),COLOR006600,LINETHICK4;安全生命线:EMA(close,18),COLOR00CC00,LINETHICK2;MA1:ema(close,3),COLORRED,LINETHICK2;MA2:ema(close,5),color009900;MA3:ema(close,8),color00aa00;MA4:ema(close,10),COLOR00bb00;MA5:ema(close,12),COLOR00CC00;MA6:ema(close,15),COLOR00DD00;MA7:ema(close,30),COLOR990099;MA8:ema(close,35),COLORAA00AA;MA9:ema(close,40),COLORBB00BB;MA10:ema(close,45),COLORCC00CC;MA11:ema(close,50),COLORDD00DD;MA12:ema(close,60),COLOREE00EE;eMA(close,3),COLORYELLOW,LINETHICK1;{-------顾比倒数------------}ff:=l;fhf:=h;fgf:=h;ftf:=l;fdf:=l;zdtf:=c;zqf:=c;zqtf:=c;{顾比倒数进场}<%f=ffl.vardata("ff")fh=ffl.vardata("fhf")fg=ffl.vardata("fgf")ft=ffl.vardata("ftf")fd=ffl.vardata("fdf")zq=ffl.vardata("zqf")zqt=ffl.vardata("zqtf")zdt=ffl.vardata("zdtf")zq(1)=0zq(2)=0zqt(1)=0zqt(2)=0tj=0n=ubound(f)for i=2 to nk1=0k2=0k3=0ii=i-2for j=ii to 2 step -1if f(j)<f(j-1) and f(j)<f(j-2) and f(j)<f(j+1) and f(j)<f(j+2) thenk1=jexit forend ifnextj=k1-1while j>=0 and tj=0if fh(j)>fh(k1) thenk2=jtj=1elsej=j-1end ifwendj=k2-1tj=0while j>=0 and tj=0if fh(j)>fh(k2) thenk3=jtj=1elsej=j-1end ifwendif k3>0 thenfg(i)=fh(k3)zq(i)=k3elsefg(i)=fg(i-1)zq(i)=zq(i-1)+1end ifnextffl.vardata("fgf")=fgffl.vardata("zqf")=zq'止损线'for i=2 to nk1=0k2=0k3=0ii=i-2for j=ii to 2 step -1if fh(j)>fh(j-1) and fh(j)>fh(j-2) and fh(j)>fh(j+1) and fh(j)>fh(j+2) thenk1=jexit forend ifnexttj=0j=k1-1while j>=0 and tj=0if fh(j)<fh(k1) thenk2=jtj=1elsej=j-1end ifwendif k2>0 thenfd(i)=fh(k2)zdt(i)=k2elsefd(i)=fd(i-1)zdt(i)=zdt(i-1)+1end ifj=k2-1tj=0while j>0 and tj=0if fh(j)<fh(k2) thenk3=jtj=1elsej=j-1end ifwendif k3>0 thenft(i)=fh(k3)zqt(i)=k3elseft(i)=ft(i-1)zq(i)=zqt(i-1)+1end if nextffl.vardata("ftf")=ftffl.vardata("fdf")=fdffl.vardata("zqtf")=zqtffl.vardata("zdtf")=zdt%>离场线:ftf,linethick1,COLORWHITE,LINEDOT;//如果想把止损位提高,可选第二根K线做参考线,把ftf改成fdf就可以了;顾比倒数:fgf,COLOR0066FF,LINEDOT;{-----------------------------立体K线--------------------------------------}KC:=close;KO:=ref(close,1);STICKLINE(ko<kc,HIGH,LOW,0.5,0 ),COLOR0000CC;STICKLINE(ko>=kc,LOW,HIGH,0.5 ,0 ),COLOR999900;STICKLINE(ko>=kc ,CLOSE ,OPEN,7,0 ),COLOR665500;STICKLINE(ko>=kc ,CLOSE ,OPEN,5,0 ),COLOR999900;STICKLINE(ko<kc,CLOSE,OPEN,7,0 ),COLOR000066;STICKLINE(ko<kc,CLOSE,OPEN,5,0 ),COLOR0000CC;{-----------买卖点----------------------}Eee:=IF(cross(c,ma4) and cross(c,安全生命线),1,0);短3:=EMA(CLOSE,3);长30:=EMA(CLOSE,30) ,COLORRED;K60:=EMA(CLOSE,60) ,COLORGREEN;VV:=CROSS(短3,K60) AND K60>REF(K60,1);VV1:=CROSS(短3,长30) AND 长30>REF(长30,1);XG2:=IF(VV,1,0);XG1:=IF(VV1,1,0);转势:=(XG2 OR XG1);DRAWTEXT(转势 and Eee and CROSS(CLOSE,顾比倒数),LOW*0.95,'趋势买'),COLORMAGENTA;DRAWTEXT(转势,LOW*0.92,'搏短'),colorred;//DRAWTEXT(cross(c,ma2) and cross(c,ma4),LOW*0.92,'短买'),colorred;//DRAWTEXT(cross(离场线,c),H*1.05,'离场'),colorred;股票公式结合软件的应用属于进阶阶段的股票学了,我们整理网上提出的飞狐顾比K线主图指标公式的问题一些解决方案仅供辅助你学习飞狐公式参考,具体内容可能需要具体解决或者找网上其他高手帮忙,也感谢文字和图片来源于股旁网的一些资源分享,帮助新手快速学习提高炒股技能。
声明:飞狐顾比K线主图指标公式的文字和图片来源于网络,版权归原作者所有,仅代表个人观点,于本站无关。
随便说说