黄金分割六线主图,修改自估界文老师(源码)
-
相关简介:自己做主修改了下估界文老师的主图,在这里感谢各位老师提供的很好的指标!! 【分割六线】中加入了黄金分割线,每条分割线既是支撑,也是阻力!大家好好把握吧 【六线主图】中加入了支撑与阻力线,本想在【分割六线】中加入的,但是主图有点压缩所以就分成2个图吧~ 注:【六线主图】中有画线未来函数,本想去除掉的~呵呵,但是短线游子老师给了我答复~ 【分割六线】 估:=(2*CLOSE+LOW+HIGH)/4; 界:=SLOPE(CLOSE,21)*20+CLOSE; 文:=EMA(估,40)*0.85; 风险
-
文章来源:择股网作者:股海网发布时间:2009-07-27浏览次数:
自己做主修改了下估界文老师的主图,在这里感谢各位老师提供的很好的指标!!
【分割六线】中加入了黄金分割线,每条分割线既是支撑,也是阻力!大家好好把握吧
【六线主图】中加入了支撑与阻力线,本想在【分割六线】中加入的,但是主图有点压缩……所以就分成2个图吧~
注:【六线主图】中有画线未来函数,本想去除掉的~呵呵,但是短线游子老师给了我答复~
【分割六线】
估:=(2*CLOSE+LOW+HIGH)/4;
界:=SLOPE(CLOSE,21)*20+CLOSE;
文:=EMA(估,40)*0.85;
风险线:EMA(估,40)*1.15,POINTDOT,COLORFF33FF;
必卖线:EMA(估,55)*1.3,CIRCLEDOT,COLORYELLOW;
捞钱线:EMA(估,55),COLORWHITE,POINTDOT;
保本线:(捞钱线+文)/2,CIRCLEDOT,COLOR00FF33;
STICKLINE(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,OPEN,CLOSE,8,0),COLORRED;
STICKLINE(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,LOW,HIGH,0.5,0),COLORRED;
STICKLINE(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),LOW,HIGH,0.5,0),COLORYELLOW;
STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),OPEN,CLOSE,8,0),COLORGREEN;
STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),LOW,HIGH,0.5,0),COLORGREEN;
DRAWICON(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,保本线*0.97,4);
DRAWICON(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),LOW*0.97,8);
DRAWICON(FILTER(CROSS(必卖线,CLOSE),3),HIGH*1.03,5);
DRAWICON(FILTER(CROSS(风险线,CLOSE),2),HIGH*1.01,9);
DRAWTEXT((SYSPARAM(2) = BARPOS),CLOSE,('版块:' + BLKNAME)),ALIGN4,colorfffff;
Var1:=LLV(LOW,1095);
Var2:=HHV(HIGH,1095);
Var3:=Var2-Var1;
DRAWTEXT(BARPOS=SYSPARAM(3),Var2,'最高价 : '+NUMTOSTR(Var2,2)),ALIGN2,COLORFFFF00;
DRAWTEXT(BARPOS=SYSPARAM(3),Var1,'最低价 : '+NUMTOSTR(Var1,2)),ALIGN2,COLORFFFF00;
H191:Var3*0.191+Var1,linethick2,COLORYELLOW;
DRAWTEXT(BARPOS=SYSPARAM(3),H191,'19.1% : '+NUMTOSTR(H191,2)),ALIGN2,COLORFFFF00;
H382: Var3*0.382+Var1,COLORGREEN;
DRAWTEXT(BARPOS=SYSPARAM(3),H382,'38.2% : '+NUMTOSTR(H382,2)),ALIGN2,COLORFFFF00;
H050: Var3*0.5+Var1,linethick2,COLORRED;
DRAWTEXT(BARPOS=SYSPARAM(3),H050,'50.0% : '+NUMTOSTR(H050,2)),ALIGN2,COLORFFFF00;
H618: Var3*0.618+Var1,COLORMAGENTA;
DRAWTEXT(BARPOS=SYSPARAM(3),H618,'61.8% : '+NUMTOSTR(H618,2)),ALIGN2,COLORFFFF00;
H809: Var3*0.809+Var1,linethick2,COLORYELLOW;
DRAWTEXT(BARPOS=SYSPARAM(3),H809,'80.9% : '+NUMTOSTR(H809,2)),ALIGN2,COLORFFFF00;
低价: Var1,COLORRED,linethick2;
高价: Var2,COLORRED,linethick2;
【六线主图】
估:=(2*CLOSE+LOW+HIGH)/4;
界:=SLOPE(CLOSE,21)*20+CLOSE;
文:=EMA(估,40)*0.85;
快线:EMA(CLOSE,3),COLORDDDDDD;
慢线:EMA(界,55),COLOR3300FF;
风险线:EMA(估,40)*1.15,POINTDOT,COLORFF33FF;
必卖线:EMA(估,55)*1.3,CIRCLEDOT,COLORYELLOW;
捞钱线:EMA(估,55),COLORWHITE,POINTDOT;
保本线:(捞钱线+文)/2,CIRCLEDOT,COLOR00FF33;
STICKLINE(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,OPEN,CLOSE,8,0),COLORRED;
STICKLINE(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,LOW,HIGH,0.5,0),COLORRED;
STICKLINE(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),LOW,HIGH,0.5,0),COLORYELLOW;
STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),OPEN,CLOSE,8,0),COLORGREEN;
STICKLINE(FILTER(CROSS(必卖线,CLOSE),3),LOW,HIGH,0.5,0),COLORGREEN;
DRAWICON(CLOSE>=保本线 AND REF(CLOSE,1)<保本线 AND REF(CLOSE,2)>保本线,保本线*0.97,4);
DRAWICON(FILTER(CLOSE>=捞钱线 AND LOW<捞钱线,2),LOW*0.97,8);
DRAWICON(FILTER(CROSS(必卖线,CLOSE),3),HIGH*1.03,5);
DRAWICON(FILTER(CROSS(风险线,CLOSE),2),HIGH*1.01,9);
DRAWICON(CROSS(快线,慢线),LOW*0.97,6);
DRAWICON(CROSS(慢线,快线),HIGH*1.01,7);
DRAWTEXT((SYSPARAM(2) = BARPOS),CLOSE,('版块:' + BLKNAME)),ALIGN4;
BB:=BARPOS=SYSPARAM(1);
VAR1:=BACKSET(REF(HIGH,2)=HHV(HIGH,5),3);
VAR2:=CROSS(VAR1,0.9);
VAR3:=BACKSET(REF(LOW,2)=LLV(LOW,5),3);
VAR4:=CROSS(VAR3,0.9);
压力:REF(HIGH,BARSLAST(VAR2)),POINTDOT,colorEA91B5;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(VAR2)),REF(HIGH,BARSLAST(VAR2)),5,0),LINETHICK0,colorFF00;
支撑:REF(LOW,BARSLAST(VAR4)),POINTDOT,color3791B5;
STICKLINE(CLOSE,REF(LOW,BARSLAST(VAR4)),REF(LOW,BARSLAST(VAR4)),5,0),LINETHICK0,colorFFFF;
DRAWTEXT(VAR2,HIGH+0.0818,'压力');
DRAWTEXT(VAR4,LOW-0.0818,'支撑');
|