指标公式详细说明
好公式网(www.goodgongshi.com)告诉您:当前正要下载:高低射线公式 射线指标源码
高低射线’改成飞狐公式
{高低射线}
{1.射线}
x:=barslast(dispstatus=1)+1;
ah:=hhvall(hhv(h,x));
al:=llvall(llv(l,x));
nnl:=dispstatus=2;
drawline(h>=ah,ah,ah,ah,1),color0000ff,linethick2;
drawline(h>=ah,ah,al>=l,al,1),color9999ff,linethick2;
drawline(h>=ah,ah,ah,ah*0.999,1);
drawline(h>=ah,ah,ah,ah*0.997,1);
drawline(h>=ah,ah,ah,ah*0.995,1);
drawline(h>=ah,ah,ah,ah*0.993,1);
drawline(h>=ah,ah,ah,ah*0.991,1);
drawline(h>=ah,ah,ah,ah*0.989,1);
drawline(h>=ah,ah,ah,ah*0.987,1);
drawline(h>=ah,ah,ah,ah*0.984,1);
drawline(h>=ah,ah,ah,ah*0.981,1);
drawline(h>=ah,ah,ah,ah*0.976,1);
drawline( al>=l,al,al , al,1),color00ff00,linethick2;
drawline(al>=l,al,nnl ,ah,1),color00ffff,linethick2;
drawline( al>=l,al,al ,al*1.15,1);
drawline( al>=l,al,al ,al*1.09,1);
drawline( al>=l,al,al ,al*1.06,1);
drawline( al>=l,al,al ,al*1.04,1);
drawline( al>=l,al,al ,al*1.03,1);
drawline( al>=l,al,al ,al*1.025,1);
drawline( al>=l,al,al ,al*1.02,1);
drawline( al>=l,al,al ,al*1.015,1);
drawline( al>=l,al,al ,al*1.011,1);
drawline( al>=l,al,al ,al*1.007,1);
drawline( al>=l,al,al ,al*1.003,1);
{2.黄金比}
ahl:=ah-al;
q191:=al+ahl*0.191;
q382:=al+ahl*0.382;
q500:=al+ahl*0.500;
q618:=al+ahl*0.618;
q809:=al+ahl*0.809;
drawtext(nnl,ah,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align1,color0000ff;
drawtext(nnl,q809,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align1,colorddaa00;
drawtext(nnl,q618,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align1,colorddaa00;
drawtext(nnl,q500,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align1,colorff00ff;
drawtext(nnl,q382,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align1,colorddaa00;
drawtext(nnl,q191,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align1,colorddaa00;
drawtext(nnl,al,' ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄'),align1,color00ff00;
drawtext(nnl,ah*0.998,'最高价:'+ah+'元'),align0,color0047ff,linethick2;
drawtext(nnl,q809,'80.9%:' +q809+'元'),align0,color00ffff,linethick2;
drawtext(nnl,q618,'61.8%:'+q618+'元'),align0,color0047ff,linethick2;
drawtext(nnl,q500,'50%:'+q500+'元'),align0,color00ffff,linethick2;
drawtext(nnl,q382,'38.2%:'+q382+'元'),align0,color0047ff,linethick2;
drawtext(nnl,q191,'19.1%:'+q191+'元'),align0,color00ffff,linethick2;
drawtext(nnl,al*1.01,'最低价:'+al+'元'),align0,valign2,color0047ff,linethick2;
{4.注解}
获利盘:winner(close)*100,linethick0;
drawtextrel(5,700,'■获利比例: '+获利盘+'%'),color00ffff,linethick3;
涨幅:(c-al)/al*100,linethick0;
drawtextrel(5,750,'■最低点至今天涨幅为: '+numtostrn(涨幅,1)+' %.'),color00ff00,linethick3;
涨:(c-al)/(ah-al)*100,linethick0;
drawtextrel(5,800,'■黄金比(最高,最低)为: '+numtostrn(涨,1)+' %.'),color00ffff,linethick3;
hh:=hhv(h,5)*0.95;
drawtextrel(5,850,'■止损=买入价*0.95;'),color00ff00,linethick3;;
drawtextrel(5,950,'■止盈(五日内最高价*0.95)='+numtostrn(hh,2)+'元'),color0000ff,linethick3;
drawtextrel(5,900,'■(五日内最高价='+numtostrn(hhv(h,5),2)+'元'),color0099ff,linethick3;
{5.k线}
stickline(open>=close ,close ,open,0,0 ),color00ff00;
stickline(open>=close ,close ,open,7,0 ),color009900;
stickline(open>=close ,close ,open,5,0 ),color00bb00;
stickline(open>=close ,close ,open,3,0 ),color00dd00;
stickline(open>=close ,close ,open,1,0 ),color00ff00;
stickline(close>open,close,open,0,0) ,colorffbbff;
stickline(close>open,close,open,7,0) ,colorff22ff;
stickline(close>open,close,open,5,0) ,colorff66ff;
stickline(close>open,close,open,3,0) ,colorff99ff;
stickline(close>open,close,open,1,0) ,colorffbbff;
[
本帖最后由 harvey668 于 2008-11-6 23:57 编辑 ]
>>>使用本站搜索工具可以找到更多“高低射线公式 射线指标源码”