断桥发财线 主图源码
顶:=92;
中:=55;
底:=21;
VAR1:=HHV(HIGH,7)-LLV(LOW,7);
VAR2:=HHV(HIGH,7)-CLOSE;
VAR3:=CLOSE-LLV(LOW,7);
VAR4:=VAR2/VAR1*92-72;
VAR5:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
VAR6:=(2*CLOSE+HIGH+LOW)/4;
VAR7:=SMA(VAR3/VAR1*92,3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VARA:=IF(VAR9>92,VAR9-92,0);
VARB:=HHV(HIGH,34);
AA:= VARA*2;
BB:= EMA((VAR6-VAR8)/(VARB-VAR8)*92,13);
VARC:=EMA(0.665*REF(BB,1)+0.333*BB,2);
CC:SMA(VAR5,20,1),COLORRED;
CC1:SMA(CC,5,1),COLORGREEN;
STICKLINE(CC>CC1,CC,CC1,1,0),COLORRED;
STICKLINE(CC1>CC,CC,CC1,1,0),COLORGREEN;
出击:IF((CROSS(CC,CC1) AND (CC1 < 顶) ),80,0),COLORRED;
{跑}
DRAWICON(CC < REF(CC,1) AND REF(CC,1) < REF(CC,2) AND CC > CC1,92,2);
DRAWICON(CROSS(CC1,CC),92,15);
断桥发财分水岭
MA5:MA(CLOSE,5),POINTDOT,COLOR000000,LINETHICK1;
MA21:=EMA(CLOSE,21);
MID:MA(CLOSE,21),COLOR000000,LINETHICK0;
断桥黄金风险线: MA(CLOSE,13),LINETHICK3,COLORGREEN;
断桥黄金止损线: MA(CLOSE,27),LINETHICK0,COLOREE00EE;
UPPER:MID + 2*STD(C,20),LINETHICK0,COLORFFFFFF;
LOWER:MID - 2*STD(C,20),LINETHICK0,COLORFFFFFF;
H1:=EMA(SLOPE(CLOSE,34)*20+CLOSE,75);
H2:=EMA(CLOSE,8);
VAR1D:=H2-H1;
A:=(3*C+L+O+H)/6;
B:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
D:=MA(B,10);
STICKLINE((MA21 > REF(MA21,1)),MA21,MA21,5,6),LINETHICK2,COLOR00FFFF;
STICKLINE(C>=MID AND C>=O,C,O,5,0),COLORRED;
STICKLINE(C>=MID AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=MID AND C<O,C,O,5,1),COLORRED;
STICKLINE(C>=MID AND C<O,O,H,0,0),COLORRED;
STICKLINE(C>=MID AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<MID AND C>O,C,O,5,1),COLORFFFF00;
STICKLINE(C<MID AND C<=O,C,O,5,1),COLORFFFF00;
STICKLINE(C<MID AND C<=O,H,L,0,1),COLORFFFF00;
STICKLINE(C<MID AND C>O,C,H,0,1),COLORFFFF00;
STICKLINE(C<MID AND C>O,O,L,0,1),COLORFFFF00;
牛熊线:EMA(C,250),CIRCLEDOT,COLOR999999;
界:MA(CLOSE,21),POINTDOT,COLOR000000,LINETHICK0;
VAR1:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR2:=(100 - ((90 * (HHV(HIGH,21) - CLOSE)) / (HHV(HIGH,21) - LLV(LOW,21))));
VAR3:=(100 - MA(((100 * (HHV(HIGH,6) - CLOSE)) / (HHV(HIGH,6) - LLV(LOW,6))),34));
DRAWICON(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.95),4),LINETHICK3;
DRAWICON(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.05),5),LINETHICK3;
DRAWTEXT(CROSS(VAR2,MA(VAR3,6)),(LOW * 0.988),'b'),COLORYELLOW,LINETHICK3;
DRAWTEXT(CROSS(MA(VAR3,6),VAR1),(HIGH * 1.02),'s'),COLORFFFF34,LINETHICK3;
STICKLINE(C>=界 AND C>=O,C,O,5,0),COLORRED;
STICKLINE(C>=界 AND C>=O,H,L,0,0),COLORRED;
STICKLINE(C>=界 AND C<O,C,O,5,1),COLORRED;
STICKLINE(C>=界 AND C<O,O,H,0,0),COLORRED;
STICKLINE(C>=界 AND C<O,C,L,0,0),COLORRED;
STICKLINE(C<界 AND C>O,C,O,5,1),COLORFFFF00;
STICKLINE(C<界 AND C<=O,C,O,5,1),COLORFFFF00;
STICKLINE(C<界 AND C<=O,H,L,0,1),COLORFFFF00;
STICKLINE(C<界 AND C>O,C,H,0,1),COLORFFFF00;
STICKLINE(C<界 AND C>O,O,L,0,1),COLORFFFF00;
DRAWTEXT(CROSS(MA5,界),(LOW * 0.90),'◇底背离'),COLORWHITE;
VAR11:=(ZIG(3,10) < REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1) > REF(ZIG(3,10),2));
VAR22:=(ZIG(3,10) > REF(ZIG(3,10),1)) AND (REF(ZIG(3,10),1) < REF(ZIG(3,10),2));
DRAWTEXT(VAR11,HIGH*1.05,'断桥出点'),COLORYELLOW;
DRAWTEXT(VAR22 AND (DATE < 107201112),LOW*0.97,'断桥进点'),COLORFF00FF;
STICKLINE(VAR11 AND (DATE < 107201112),CLOSE,OPEN,5,0),COLORYELLOW;
STICKLINE(VAR11 AND (DATE <107200012),HIGH,LOW,0.5,0),COLORYELLOW;
STICKLINE(VAR22 AND (DATE < 107201112),CLOSE,OPEN,5,0),COLORFF00FF;
STICKLINE(VAR22 AND (DATE < 107201112),HIGH,LOW,0.5,0),COLORFF00FF;
代理编写(对转)通达信 飞狐 同花顺 大智慧 文华财经 博易大师 依天财经等软件指标!
- 上一篇:没有啦
- 上一篇:快速选牛股指标 2014/11/1
- 下一篇:不看后悔 不回更后悔 逃顶指标绝无未来 2014/11/1