DRAWGBK(v>=0,COLORRGB(1,100,100),COLORRGB(18,19,51),0);
{--------------------均线组----------------}{18日收盘均价为安全生命线} EMA(close,18),ColorFFFF00,LINETHICK4; 安全生命线:EMA(close,18),ColorFFFFFF,LINETHICK2; MA1:ema(close,3),COLORRED,LINETHICK2; MA2:ema(close,5),Color230046; MA3:ema(close,8),Color3E007B; MA4:ema(close,10),Color5500AA; MA5:ema(close,12),Color7400E8; MA6:ema(close,15),ColorFF59FF;{股旁网-股票公式网站 www.gupang.com}MA7:ema(close,30),Color004200; MA8:ema(close,35),Color006000; MA9:ema(close,40),Color008800; MA10:ema(close,45),Color00BB00; MA11:ema(close,50),Color00F900; MA12:ema(close,60),Color6AFF6A;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-2 for 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-1
tj=0while j>=0 and tj=0if fh(j)>fh(k2) thenk3=jtj=1else j=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-2 for 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=1else j=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,ColorFF8000,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.92,'趋\n势\n买'),COLORMAGENTA;DRAWTEXT(转势,LOW*0.98,'搏\n短'),colorred;DRAWTEXT(cross(c,ma2) and cross(c,ma4),LOW*0.998,'短\n买'),Color00FF80;DRAWTEXT(cross(离场线,c),H*1.01,'离\n场'),ColorFF80FF;股票公式结合软件的应用属于进阶阶段的股票学了,我们整理网上提出的飞狐顾比均线趋势交易系统主图指标公式的问题一些解决方案仅供辅助你学习飞狐公式参考,具体内容可能需要具体解决或者找网上其他高手帮忙,也感谢文字和图片来源于股旁网的一些资源分享,帮助新手快速学习提高炒股技能。
声明:飞狐顾比均线趋势交易系统主图指标公式的文字和图片来源于网络,版权归原作者所有,仅代表个人观点,于本站无关。
随便说说