大道七线 日线(优化版) Z1:=STRCAT(HYBLOCK,''); Z2:=STRCAT(Z1,DYBLOCK); Z3:=STRCAT(Z2,''); Z4:DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),COLORRED; DRAWTEXT_FIX(ISLASTBAR,0.001,0.050,0,GNBLOCK),COLORCYAN;{概念}; DRAWTEXT_FIX(ISLASTBAR,0.002,0.1,0,ZDBLOCK); {涨停做记号} CM:=REF(C,1); 涨停:=IF((C-CM)*100/CM>=9.9,1,0); STICKLINE(涨停,OPEN,CLOSE,3.8,0),COLORMAGENTA; STICKLINE(涨停,H,L,0,0),COLORLIRED; {跌停做记号} 跌停:=IF((C-CM)*100/CM<=-9.9,1,0); STICKLINE(跌停,OPEN,CLOSE,3.8,0),COLORGREEN; STICKLINE(跌停,H,L,0,0),COLORGREEN; 通线17:MA(C,17),LINETHICK1,COLORMAGENTA ; 子线26:MA(C,26),LINETHICK1,COLORLIBLUE; 午线100:MA(C,100),LINETHICK1,COLORRED ; 辰线145:MA(C,145),LINETHICK1,COLORYELLOW ; 年线250:MA(C,250),DOTLINE,LINETHICK1,COLORLIRED; 申线320:MA(C,320),LINETHICK1,COLORWHITE; 卯线455:MA(C,455),LINETHICK1,COLORGREEN; 亥线732:MA(C,732),LINETHICK1,COLORBLUE ; AA1:=AMOUNT/V; BB1:=L<AA1*0.9; CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L<MA(C,5)*0.921; EE1:=V<MA(V,5)*1.5; FF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,LOW*0.96,'★老鼠仓'),COLORYELLOW; (注:怎样把均线由实线改为虚线? 公式源码稍微修改一下,可能各交易软件不一样。通达信的,加函数 ,dotline; 即可 例如 MA20:MA(CLOSE,20),DOTLINE;)
(子穿午线,大牛初现,子破午线,大熊初现。) 通子金叉和通子死叉口诀:通子金叉,短线强;通子死叉,先观望。 大道通子线关系是:金叉,意味着机会显现;死叉,意味着机会渺茫。 周线设置:大道七线 周三号线32:MA(C,32),LINETHICK1,COLORGREEN; 周九号线90:MA(C,90),LINETHICK1,COLORWHITE; 周一号线180:MA(C,180),LINETHICK1,COLORMAGENTA; 周二号线270:MA(C,270),LINETHICK1,COLORLIRED; 周七号线710:MA(C,710),LINETHICK1,COLORCYAN;
月二号线21:MA(C,21),LINETHICK1,COLORGREEN; 月四号线41:MA(C,41),LINETHICK1,COLORWHITE; 月六号线61:MA(C,61),LINETHICK1,COLORMAGENTA; 月八号线81:MA(C,81),LINETHICK1,COLORLIRED; 月一号线101:MA(C,101),LINETHICK1,COLORCYAN; 21月线(二号线), 分时设置 (5,15,30,60分钟) :大道七线 全线19:MA(C,19),LINETHICK1,COLORYELLOW; 三号线31:MA(C,31),LINETHICK1,COLORGREEN; 五号线56:MA(C,56),LINETHICK1,COLORWHITE; 一号线105:MA(C,105),LINETHICK1,COLORMAGENTA; 四号线455:MA(C,455),LINETHICK1,COLORLIRED; 八号线890:MA(C,890),LINETHICK1,COLORCYAN;
|
|