通达信指标——成本主图(主图)
成本分布指标 通达信指标公式源码
成本分布指标(主图源码说明)成本分布指标对于分析支撑和阻力位置很有用,很直观.但使用系统自带的指标时,要用鼠标点击一下才能切换到那个界面,很麻烦.论坛上也曾经有在主图中迭加的成本分布指标,用以简化操作.但可惜不准确,与系统自带的指标差异较大,缺乏使用价值,而且使主图界面复杂,影响对K线的观察和分析.本贴发布的这个指标原理正确,精度够用,与系统自带的指标基本一致.而且只在当天的K线区显示一个兰色的矩形条,矩形条中有一些横线,用以反应当天的成本分布状态.这样便既能方便地看到当天的正确的成本分布情况,又基本上不对主图界面构成影响.完全没必要去看系统自带的指标了.指标的原理为:兰色的矩形条由底到顶对应于从0.1%到99.9%的筹码分布区间,每二条横线间的区间均为2%的筹码,横线越密集说明筹码越集中,最密集的地方就是筹码峰所在地.有一条横线是兰色的,对应50%筹码处.本指标只反应当天的成本分布情况,不能看历史的成本分布情况.指标的精度处决于对矩形的等分数,越多越精确,但代码行数就越多,电脑运行就越慢.综合权衡精度和速度后,本指标设置为50等分.本指标成本分布区间为0.1%到99.9%,不是0到100%,这是因为设置为0到100%后那个兰色矩形就不显示了,其原因应该是系统的成本分布函数取值范围限定不能为0和100所致.这对指标的正确性和精度都不构成影响.大家只需把下载的代码中最后一句不要,其余的全部复制后粘贴在你常用的主图指标代码的最前面即可.(一定要放在最前面,否则兰色的矩形条会挡住当天的K线和指标线的.)几张附图为与系统成本分布指标对照结果.成本100:=COST(99.9);成本98:=COST(98);成本96:=COST(96);成本94:=COST(94);成本92:=COST(92);成本90:=COST(90);成本88:=COST(88);成本86:=COST(86);成本84:=COST(84);成本82:=COST(82);成本80:=COST(80);成本78:=COST(78);成本76:=COST(76);成本74:=COST(74);成本72:=COST(72);成本70:=COST(70);成本68:=COST(68);成本66:=COST(66);成本64:=COST(64);成本62:=COST(62);成本60:=COST(60);成本58:=COST(58);成本56:=COST(56);成本54:=COST(54);成本52:=COST(52);成本50:=COST(50);成本48:=COST(48);成本46:=COST(46);成本44:=COST(44);成本42:=COST(42);成本40:=COST(40);成本38:=COST(38);成本36:=COST(36);成本34:=COST(34);成本32:=COST(32);成本30:=COST(30);成本28:=COST(28);成本26:=COST(26);成本24:=COST(24);成本22:=COST(22);成本20:=COST(20);成本18:=COST(18);成本16:=COST(16);成本14:=COST(14);成本12:=COST(12);成本10:=COST(10);成本8:=COST(8);成本6:=COST(6);成本4:=COST(4);成本2:=COST(2);成本0:=COST(0.1);STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本0,成本100,12,0),COLORFF0000; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本98,成本98,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本96,成本96,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本94,成本94,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本92,成本92,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本90,成本90,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本88,成本88,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本86,成本86,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本84,成本84,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本82,成本82,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本80,成本80,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本78,成本78,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本76,成本76,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本74,成本74,12,0),COLOR888888;STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本72,成本72,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本70,成本70,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本68,成本68,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本66,成本66,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本64,成本64,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本62,成本62,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本60,成本60,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本58,成本58,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本56,成本56,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本54,成本54,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本52,成本52,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本50,成本50,12,0),COLORFFFF00; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本48,成本48,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本46,成本46,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本44,成本44,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本42,成本42,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本40,成本40,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本38,成本38,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本36,成本36,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本34,成本34,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本32,成本32,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本30,成本30,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本28,成本28,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本26,成本26,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本24,成本24,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本22,成本22,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本20,成本20,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本18,成本18,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本16,成本16,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本14,成本14,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本12,成本12,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本10,成本10,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本8,成本8,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本6,成本6,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本4,成本4,12,0),COLOR888888; STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,成本2,成本2,12,0),COLOR888888; DRAWKLINE(H,O,L,C);。
通达信CYC成本均线主图源码 贴图
通达信CYC成本均线主图源码贴图PC:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYN AINFO(8),DYNAINFO(3));DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);JJJT:=IF(DDD,1,(JJJ<(DYNAINFO(5)+0.01)&& JJJ>(DYNAINFO(6)-0.01)));CYC5:IF(JJJT,0.01*EXPMA(AMOUNT,5)/EXPMA(AMOU NT/(100*PC),5),EMA((HIGH+LOW+CLOSE)/3,5));CYC13:IF(JJJT,0.01*EXPMA(AMOUNT,13)/EXPMA(AMO UNT/(100*PC),13),EMA((HIGH+LOW+CLOSE)/3,13));CYC34:IF(JJJT,0.01*EXPMA(AMOUNT,34)/EXPMA(AMO UNT/(100*PC),34),EMA((HIGH+LOW+CLOSE)/3,34));CYC500:IF(JJJT,0.01*EXPMA(AMOUNT,500)/EXPMA(A MOUNT/(100*PC),500),EMA((HIGH+LOW+CLOSE)/3,500 )),COLORRED;CYC∞:IF(JJJT,DMA(PC,100*VOL/FINANCE(7)),EMA((HIG H+LOW+CLOSE)/3,120)),COLORGREEN;倍量:=VOL>=REF(V,1)*1.91 AND C>O;缩量:=REF(V,1)>=VOL*1.91 AND C<O; STICKLINE(倍量,OPEN,CLOSE,2,0),COLORRED; STICKLINE(缩量,OPEN,CLOSE,2,0),COLORGREEN;C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;筹码峰值均价:SSRP.SSRP,COLOR40408F,LINETHICK1,COLORYE LLOW,CROSSDOT; DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLOR0000FF;DRAWTEXT_FIX(1,0.07,0.00,0,EXTERNSTR(0,1))COLO R0000FF;DRAWTEXT_FIX(1,0.00,0.08,0,'主营业务:'),COLORMAGENTA;DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,2)),COLO RMAGENTA;DRAWTEXT_FIX(C>0,0.00,0.16,0,STRCAT('所属概念:',GNBLOCK)),COLORYELLOW;DRAWTEXT_FIX(C>0,0.00,0.24,0,STRCAT('所属行业:',HYBLOCK)),COLORYELLOW; GJ:=(C+H+L+O)/4;明阻:=L+(GJ-L)+(C-L)+0.03;明撑:=L+(C-GJ)+0.01;今阻:REF(明阻, 1),NODRAW;今撑:REF(明撑, 1),NODRAW;KLH:=IF( PERIOD=5,0.015,0);前天均价:=REF(AMOUNT,1)/REF(VOL*100,1),LINETHICK0;STICKLINE(CURRBARSCOUNT=1,今阻+KLH,今阻,6,0),COLORGREEN;STICKLINE(CURRBARSCOUNT=1,今撑,今撑-KLH,6,0),COLORRED;。
通达信控盘成本画线主图指标公式
通达信控盘成本画线主图指标公式X_1:=FROMOPEN<240;X_2:=X_1<=0;X_3:=1;X_4:=1281210;X_5:=IF(DATE>X_4,X_2,X_3);X_6:=IF(DATE>X_4,0,1);X_7:=IF(DATE>X_4,1,0);CLOSE;DRAWGBK(OPEN>CLOSE,RGB(1,88,92),RGB(1,22,28),0,7,0);X_8:=1 AND X_6;X_9:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);X_10:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;X_11:=X_8*(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.2+XMA(XMA(HIGH,60),60);X_12:=X_8*XMA(XMA(LOW,60),60)-(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*2.8;X_13:=X_8*(X_9+X_11)/2;X_14:=X_8*(X_10+X_12)/2;DRAWBAND(X_13,RGB(0,100,0),X_11,RGB(0,100,0));DRAWBAND(X_14,RGB(150,0,150),X_12,RGB(150,0,150));收盘价:CLOSE,NODRAW,COLORWHITE;涨跌幅:(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,NODRAW,COLORYELLOW;最新价:IF(CLOSE,CONST(CLOSE),DRAWNULL),DOTLINE,COLORRED;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);X_15:=(HIGH+LOW)/2;X_16:=X_15;X_17:=XMA(X_15,3);X_18:=XMA(X_15,5);X_19:=XMA(X_15,10);X_20:=XMA(X_15,15);X_21:=XMA(X_15,20);X_22:=XMA(X_15,25);X_23:=XMA(X_15,30);X_24:=XMA(X_15,35);X_25:=XMA(X_15,40);X_26:=XMA(X_15,45);X_27:=XMA(X_15,50);X_28:=XMA(X_15,55);X_29:=XMA(X_15,60);X_30:=(X_17+X_18+X_19+X_20+X_21+X_22+X_23+X_24+X_ 25+X_26+X_27+X_28+X_29)/13;X_31:=(X_16+X_17+X_18)/3;X_32:=PLOYLINE(2>1,X_30);X_33:=X_16>X_17 AND X_16>X_18 AND X_16>X_19 AND X_16>X_20 AND X_16>X_21 AND X_16>X_22 AND X_16>X_23 AND X_16>X_24 AND X_16>X_25 AND X_16>X_26 AND X_16>X_27 AND X_16>X_28 AND X_16>X_29 AND X_17>X_18 AND X_17>X_19 AND X_17>X_20 AND X_17>X_21 AND X_17>X_22 AND X_17>X_23;X_34:=X_17>X_24 AND X_17>X_25 AND X_17>X_26 AND X_17>X_27 AND X_17>X_28 AND X_17>X_29 AND X_18>X_19 AND X_18>X_20 AND X_18>X_21 AND X_18>X_22 AND X_18>X_23 AND X_18>X_24 AND X_18>X_25 AND X_18>X_26 AND X_18>X_27 AND X_18>X_28 AND X_18>X_29 ANDX_19>X_20 AND X_19>X_21 AND X_19>X_22 AND X_19>X_23 AND X_19>X_24 AND X_19>X_25 AND X_19>X_26 AND X_19>X_27 AND X_19>X_28 AND X_19>X_29;X_35:=X_20>X_21 AND X_20>X_22 AND X_20>X_23 AND X_20>X_24 AND X_20>X_25 AND X_20>X_26 AND X_20>X_27 AND X_20>X_28 AND X_20>X_29 AND X_21>X_22 AND X_21>X_23 AND X_21>X_24 AND X_21>X_25 AND X_21>X_26 AND X_21>X_27 AND X_21>X_28 AND X_21>X_29 AND X_22>X_23 AND X_22>X_24 AND X_22>X_25 AND X_22>X_26 AND X_22>X_27 AND X_22>X_28 AND X_22>X_29 AND X_23>X_24 AND X_23>X_25;X_36:=X_23>X_26 AND X_23>X_27 AND X_23>X_28 AND X_23>X_29 AND X_24>X_25 AND X_24>X_26 AND X_24>X_27 AND X_24>X_28 AND X_24>X_29 AND X_25>X_26 AND X_25>X_27 AND X_25>X_28 AND X_25>X_29 AND X_26>X_27 AND X_26>X_28 AND X_26>X_29 AND X_27>X_28 AND X_27>X_29 AND X_28>X_29;X_37:=X_33 AND X_34 AND X_35 AND X_36;X_38:=X_16<X_17 AND X_16<X_18 AND X_16<X_19 AND X_16<X_20 AND X_16<X_21 AND X_16<X_22 AND X_16<X_23 AND X_16<X_24 AND X_16<X_25 AND X_16<X_26 AND X_16<X_27 AND X_16<X_28 AND X_16<X_29 AND X_17<X_18 AND X_17<X_19 AND X_17<X_20 AND X_17<X_21 AND X_17<X_22 AND X_17<X_23;X_39:=X_17<X_24 AND X_17<X_25 AND X_17<X_26 AND X_17<X_27 AND X_17<X_28 AND X_17<X_29 AND X_18<X_19 AND X_18<X_20 AND X_18<X_21 AND X_18<X_22 AND X_18<X_23 AND X_18<X_24 AND X_18<X_25 AND X_18<X_26 AND X_18<X_27 AND X_18<X_28 AND X_18<X_29 AND X_19<X_20 AND X_19<X_21;X_40:=X_19<X_22 AND X_19<X_23 AND X_19<X_24 AND X_19<X_25 AND X_19<X_26 AND X_19<X_27 AND X_19<X_28 AND X_19<X_29 AND X_20<X_21 AND X_20<X_22 AND X_20<X_23 AND X_20<X_24 AND X_20<X_25 AND X_20<X_26 AND X_20<X_27 AND X_20<X_28 AND X_20<X_29 AND X_21<X_22;X_41:=X_21<X_23 AND X_21<X_24 AND X_21<X_25 AND X_21<X_26 AND X_21<X_27 AND X_21<X_28 AND X_21<X_29 AND X_22<X_23 AND X_22<X_24 AND X_22<X_25 AND X_22<X_26 AND X_22<X_27 AND X_22<X_28 AND X_22<X_29 AND X_23<X_24 AND X_23<X_25 AND X_23<X_26 AND X_23<X_27;X_42:=X_23<X_28 AND X_23<X_29 AND X_24<X_25 AND X_24<X_26 AND X_24<X_27 AND X_24<X_28 AND X_24<X_29 AND X_25<X_26 AND X_25<X_27 AND X_25<X_28 AND X_25<X_29 AND X_26<X_27 AND X_26<X_28 AND X_26<X_29 AND X_27<X_28 AND X_27<X_29 AND X_28<X_29;X_43:=X_38 AND X_39 AND X_40 AND X_41 AND X_42;X_44:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;X_45:=SMA(X_14,3,1);X_46:=SMA(X_45,3,1);X_47:=SMA(X_46,3,1);X_48:=X_46;X_49:=X_47;X_50:=X_46<20;X_51:=X_46>80;X_52:=X_50 OR X_51;STICKLINE(X_37 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,HIGH,LOW,0.6,0),COLORRED;STICKLINE(X_37 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,CLOSE,OPEN,3,0),COLORRED;STICKLINE(X_43 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,HIGH,LOW,0.6,0),COLORRED;STICKLINE(X_43 AND CLOSE>=OPEN AND CLOSE<X_13*1.1 AND X_52,CLOSE,OPEN,3,0),COLORRED;STICKLINE(X_37 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,HIGH,LOW,0.6,0),COLORGREEN;STICKLINE(X_37 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,CLOSE,OPEN,3,0),COLORGREEN;STICKLINE(X_43 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,HIGH,LOW,0.6,0),COLORGREEN;STICKLINE(X_43 AND CLOSE<OPEN AND CLOSE<X_14*1.1 AND X_52,CLOSE,OPEN,3,0),COLORGREEN;X_53:=(HIGH+XMA(HIGH,3)+XMA(HIGH,5)+XMA(HIGH,10) +XMA(HIGH,15)+XMA(HIGH,20)+XMA(HIGH,25)+XMA(HIGH,30 )+XMA(HIGH,35)+XMA(HIGH,40)+XMA(HIGH,45)+XMA(HIGH,5 0)+XMA(HIGH,55)+XMA(HIGH,60))/14;X_54:=(LOW+XMA(LOW,3)+XMA(LOW,5)+XMA(LOW,10)+X MA(LOW,15)+XMA(LOW,20)+XMA(LOW,25)+XMA(LOW,30)+XM A(LOW,35)+XMA(LOW,40)+XMA(LOW,45)+XMA(LOW,50)+XMA( LOW,55)+XMA(LOW,60))/14;X_55:=X_20>X_21 AND X_20>X_22 AND X_20>X_23 AND X_20>X_24 AND X_20>X_25 AND X_20>X_26 AND X_20>X_27 AND X_20>X_28 AND X_20>X_29 AND X_21>X_22 AND X_21>X_23 AND X_21>X_24 AND X_21>X_25 AND X_21>X_26 AND X_21>X_27 AND X_21>X_28 AND X_21>X_29 AND X_22>X_23 AND X_22>X_24 AND X_22>X_25 AND X_22>X_26 AND X_22>X_27 AND X_22>X_28 AND X_22>X_29 AND X_23>X_24 AND X_23>X_25 AND X_23>X_26 AND X_23>X_27AND X_23>X_28 AND X_23>X_29 AND X_24>X_25 AND X_24>X_26 AND X_24>X_27 AND X_24>X_28 AND X_24>X_29 AND X_25>X_26 AND X_25>X_27 AND X_25>X_28 AND X_25>X_29 AND X_26>X_27 AND X_26>X_28 AND X_26>X_29 AND X_27>X_28 AND X_27>X_29 AND X_28>X_29;X_56:=X_20<X_21 AND X_20<X_22 AND X_20<X_23 AND X_20<X_24 AND X_20<X_25 AND X_20<X_26 AND X_20<X_27 AND X_20<X_28 AND X_20<X_29 AND X_21<X_22 AND X_21<X_23 AND X_21<X_24 AND X_21<X_25 AND X_21<X_26 AND X_21<X_27 AND X_21<X_28 AND X_21<X_29 AND X_22<X_23 AND X_22<X_24 AND X_22<X_25 AND X_22<X_26 AND X_22<X_27 AND X_22<X_28 AND X_22<X_29 AND X_23<X_24 AND X_23<X_25 AND X_23<X_26 AND X_23<X_27 AND X_23<X_28 AND X_23<X_29 AND X_24<X_25 AND X_24<X_26 AND X_24<X_27 AND X_24<X_28 AND X_24<X_29 AND X_25<X_26 AND X_25<X_27 AND X_25<X_28 AND X_25<X_29 AND X_26<X_27 AND X_26<X_28 AND X_26<X_29 AND X_27<X_28 AND X_27<X_29 AND X_28<X_29;X_57:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30),10);X_58:=XMA(X_54/X_53*X_30-(X_30-X_54/X_53*X_30),10);X_59:=IF(REF(X_30,1)<X_30 AND NOT(X_55),X_57,DRAWNULL);X_60:=IF(REF(X_30,1)>X_30 AND NOT(X_56),X_58,DRAWNULL);X_61:=XMA(X_53/X_54*X_30+(X_53/X_54*X_30-X_30)/2,10);X_62:=XMA(X_54/X_53*X_30-0.5*(X_30-X_54/X_53*X_30),10);X_63:=IF(REF(X_30,1)>X_30,X_61,DRAWNULL);X_64:=IF(REF(X_30,1)<X_30,X_62,DRAWNULL);X_65:=X_53/X_54*X_30+(X_53/X_54*X_30-X_30)*1.5;X_66:=X_54/X_53*X_30-1.5*(X_30-X_54/X_53*X_30);X_67:=PLOYLINE(2>1,X_65);X_68:=PLOYLINE(2>1,X_66);X_69:=IF(REF(X_30,1)<X_30 AND X_55,X_65,DRAWNULL);X_70:=IF(REF(X_30,1)>X_30 AND X_56,X_66,DRAWNULL);X_71:=IF(X_37,X_65,DRAWNULL);X_72:=IF(X_43,X_66,DRAWNULL);交时1:=FROMOPEN<240;交时2:=交时1<=0;交时3:=1;DAYN1:=1281210;定时1:=IF(DATE>DAYN1,交时2,交时3);定时2:=IF(DATE>DAYN1,0,1);定时3:=IF(DATE>DAYN1,1,0);所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【地域】',DYBLOCK)),STRCAT('【概念】',GNBLOCK)));DRAWTEXT_FIX(ISLASTBAR,0,0,0,所属板块),COLORYELLOW;DRAWTEXT_FIX(1 AND 定时3,0.30,0.75,0,'如果看到这些文字,说明【印钞机3代】指标公式试用已到期,如果认为对你炒股,炒原油,炒外汇黄金'),COLORYELLOW;DRAWTEXT_FIX(1 AND 定时3,0.30,0.81,0,'等期货有用,请加设计编写QQ:2679426676,或者到股票公式指标群重新下载,(**号:303313976)'),COLORYELLOW;DRAWTEXT_FIX(1 AND 定时3,0.30,0.87,0,'【印钞机3代】必须与副图的【印钞机副图3】MACD背离指标同步使用,则神效更准,高胜算率。
【指标公式源码下载】通达信《就要涨停智能选股系统》主力成本主图指标公式
通达信《就要涨停智能选股系统》主力成本主图指标公式涨幅:=9;高度:=20;跨度:=10;短线成本:EMA(CLOSE,17),LINETHICK2,COLORWHITE;A:=(3*C+L+O+H)/6;X:=(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;中线成本:EMA(X,13),LINETHICK2,COLORFF00FF;KKA:=EMA(C,5);KKB:=EMA(KKA,8);KKC:=EMA(KKB,13);长线成本:EMA(KKC,50),LINETHICK2, COLORGREEN;N1:=5;N4:=34;CQ:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));SAT:=(AMOUNT/C)/(HHV(AMOUNT,N4)/HHV(C,N4));饱和度:=IF(SAT>1,1,SAT)*100;KAAA:=饱和度>=97 AND CQ>90;KBBB:=EXIST(KAAA,20);牛熊线:IF(KBBB,REF(L,BARSLAST(KAAA)+1),REF(L,BARSLAST(KAAA)+1)),LINETHICK3,C OLORYELLOW;A60:MA(C,60),COLORBLUE;A120:MA(C,120),COLORGRAY;A250:MA(C,250),COLORLICYAN;行情线:=EMA(A,1);STICKLINE(行情线<中线成本,H,L,0,1),COLORGREEN;STICKLINE(行情线<中线成本,C,O,2,1),COLORGREEN;STICKLINE(行情线>=中线成本,H,L,0,1),COLORRED;STICKLINE(行情线>=中线成本,C,O,2,1),COLORRED;AA:=CLOSE/REF(CLOSE,1)>=1.09;STICKLINE(AA,OPEN,CLOSE,1,0),COLORYELLOW;DRAWICON(CROSS(行情线,中线成本),LOW,1);DRAWICON(CROSS(中线成本,行情线),HIGH,2);持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SM A((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);支撑:=LLV(持股,3);中期线:=MA(持股,12);VAR1:=1;VAR2:=LLV(LOW,10);VAR3:=HHV(HIGH,25);短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;AAA:=(3*C+L+O+H)/6;C2:=EMA(AAA,6);C3:=EMA(AAA,5);中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));KDDE:=REF(中期,1)<1 AND 中期>1;KAAA1:=EXIST(KDDE,3);KBBB1:=C/REF(C,1)>1+0.01*涨幅;KAAA2:=支撑>中期线AND 持股=支撑;KBBB2:=CROSS(C2,C3);KCCC2:=EXIST(C/REF(C,1)>1+0.01*涨幅,跨度);KDDD2:=BARSLAST(中期线>短期线)<跨度;KAAA3:=REF(C,1)<REF(中线成本,1) AND C>中线成本;KBBB3:=C/REF(C,1)>1+0.01*涨幅;KCCC3:=中线成本/长线成本<1+0.01*高度;超级资金1:=KAAA1 AND KBBB1;超级资金2:=KAAA2 AND KBBB2 AND KCCC2;超级资金3:=KAAA3 AND KBBB3 AND KCCC3;KJJJA:=超级资金1 OR 超级资金2 OR 超级资金3;DRAWICON(KJJJA,L*0.98,9);DRAWTEXT(KJJJA,L*0.98,'超级资金'),C OLORRED;。
通达信指标公式源码 成本分布 插入主图使用
HB:=COST(99.9); LB:=COST(0.1); B3:=(HB-LB)/50; B31:=HB-B3;B32:=HB-2*B3; B33:=HB-3*B3; B34:=HB-4*B3; B35:=HB-5*B3; B36:=HB-6*B3; B37:=HB-7*B3; B38:=HB-8*B3; B39:=HB-9*B3; B310:=HB-10*B3; B311:=HB-11*B3; B312:=HB-12*B3; B313:=HB-13*B3; B314:=HB-14*B3; B315:=HB-15*B3; B316:=HB-16*B3; B317:=HB-17*B3; B318:=HB-18*B3; B319:=HB-19*B3; B320:=HB-20*B3; B321:=HB-21*B3; B322:=HB-22*B3; B323:=HB-23*B3; B324:=HB-24*B3; B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100;A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100; A11:=WINNER(B310)*100-WINNER(B311)*100; A12:=WINNER(B311)*100-WINNER(B312)*100; A13:=WINNER(B312)*100-WINNER(B313)*100; A14:=WINNER(B313)*100-WINNER(B314)*100; A15:=WINNER(B314)*100-WINNER(B315)*100; A16:=WINNER(B315)*100-WINNER(B316)*100; A17:=WINNER(B316)*100-WINNER(B317)*100; A18:=WINNER(B317)*100-WINNER(B318)*100; A19:=WINNER(B318)*100-WINNER(B319)*100; A20:=WINNER(B319)*100-WINNER(B320)*100;A21:=WINNER(B320)*100-WINNER(B321)*100;A22:=WINNER(B321)*100-WINNER(B322)*100;A23:=WINNER(B322)*100-WINNER(B323)*100;A24:=WINNER(B323)*100-WINNER(B324)*100;A25:=WINNER(B324)*100-WINNER(B325)*100;A26:=WINNER(B325)*100-WINNER(B326)*100;A27:=WINNER(B326)*100-WINNER(B327)*100;A28:=WINNER(B327)*100-WINNER(B328)*100;A29:=WINNER(B328)*100-WINNER(B329)*100;A30:=WINNER(B329)*100-WINNER(B330)*100;A31:=WINNER(B330)*100-WINNER(B331)*100;A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100;STICKLINE(ISLASTBAR,HB ,HB ,A1*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B31 ,B31 ,A1*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B32 ,B32 ,A2*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B33 ,B33 ,A3*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B34 ,B34 ,A4*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B35 ,B35 ,A5*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B36 ,B36 ,A6*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B37 ,B37 ,A7*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B38 ,B38 ,A8*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B39 ,B39 ,A9*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B310 ,B310 ,A10*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B312 ,B312 ,A12*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B313 ,B313 ,A13*50 ,0 ),COLORYELLOW;STICKLINE(ISLASTBAR,B314 ,B314 ,A14*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B315 ,B315 ,A15*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B316 ,B316 ,A16*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B317 ,B317 ,A17*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B318 ,B318 ,A18*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B319 ,B319 ,A19*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B320 ,B320 ,A20*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B321 ,B321 ,A21*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B322 ,B322 ,A22*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B323 ,B323 ,A23*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B324 ,B324 ,A24*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B325 ,B325 ,A25*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B326 ,B326 ,A26*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B327 ,B327 ,A27*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B328 ,B328 ,A28*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B329 ,B329 ,A29*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B330 ,B330 ,A30*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B331 ,B331 ,A31*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B332 ,B332 ,A32*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B333 ,B333 ,A33*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B334 ,B334 ,A34*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B335 ,B335 ,A35*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B336 ,B336 ,A36*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B337 ,B337 ,A37*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B338 ,B338 ,A38*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B339 ,B339 ,A39*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B340 ,B340 ,A40*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B341 ,B341 ,A41*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B342 ,B342 ,A42*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B343 ,B343 ,A43*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B344 ,B344 ,A44*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B345 ,B345 ,A45*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B346 ,B346 ,A46*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B347 ,B347 ,A47*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,B348 ,B348 ,A48*50 ,0 ),COLORYELLOW; STICKLINE(ISLASTBAR,LB ,LB ,A50*50 ,0 ),COLORYELLOW;。
通达信真实筹码成本分布主图源码
通达信真实筹码成本分布主图源码以下是通达信真实筹码成本分布主图源码(无源码的请下载附件导入)通达信真实筹码成本分布主图源码{成本分布}HB:=COST(99.9);LB:=COST(0.1);B3:=(HB-LB)/50;B31:=HB-B3;B32:=HB-2*B3;B33:=HB-3*B3;B34:=HB-4*B3;B35:=HB-5*B3;B36:=HB-6*B3;B37:=HB-7*B3;B38:=HB-8*B3;B39:=HB-9*B3;B310:=HB-10*B3;B311:=HB-11*B3;B312:=HB-12*B3;B313:=HB-13*B3;B314:=HB-14*B3;B315:=HB-15*B3;B316:=HB-16*B3;B317:=HB-17*B3;B318:=HB-18*B3;B319:=HB-19*B3;B320:=HB-20*B3;B321:=HB-21*B3;B322:=HB-22*B3;B323:=HB-23*B3;B324:=HB-24*B3;B325:=HB-25*B3;B326:=HB-26*B3;B327:=HB-27*B3;B328:=HB-28*B3;B329:=HB-29*B3;B330:=HB-30*B3;B331:=HB-31*B3;B332:=HB-32*B3;B333:=HB-33*B3;B334:=HB-34*B3;B335:=HB-35*B3;B336:=HB-36*B3;B337:=HB-37*B3;B338:=HB-38*B3;B339:=HB-39*B3;B340:=HB-40*B3;B341:=HB-41*B3;B342:=HB-42*B3;B343:=HB-43*B3;B344:=HB-44*B3;B345:=HB-45*B3;B346:=HB-46*B3;B347:=HB-47*B3;B348:=HB-48*B3;B349:=HB-49*B3;A1:=WINNER(HB)*100-WINNER(B31)*100; A2:=WINNER(B31)*100-WINNER(B32)*100;A3:=WINNER(B32)*100-WINNER(B33)*100;A4:=WINNER(B33)*100-WINNER(B34)*100;A5:=WINNER(B34)*100-WINNER(B35)*100;A6:=WINNER(B35)*100-WINNER(B36)*100;A7:=WINNER(B36)*100-WINNER(B37)*100;A8:=WINNER(B37)*100-WINNER(B38)*100;A9:=WINNER(B38)*100-WINNER(B39)*100;A10:=WINNER(B39)*100-WINNER(B310)*100; A11:=WINNER(B310)*100-WINNER(B311)*100; A12:=WINNER(B311)*100-WINNER(B312)*100; A13:=WINNER(B312)*100-WINNER(B313)*100; A14:=WINNER(B313)*100-WINNER(B314)*100; A15:=WINNER(B314)*100-WINNER(B315)*100; A16:=WINNER(B315)*100-WINNER(B316)*100; A17:=WINNER(B316)*100-WINNER(B317)*100; A18:=WINNER(B317)*100-WINNER(B318)*100; A19:=WINNER(B318)*100-WINNER(B319)*100; A20:=WINNER(B319)*100-WINNER(B320)*100; A21:=WINNER(B320)*100-WINNER(B321)*100; A22:=WINNER(B321)*100-WINNER(B322)*100; A23:=WINNER(B322)*100-WINNER(B323)*100; A24:=WINNER(B323)*100-WINNER(B324)*100; A25:=WINNER(B324)*100-WINNER(B325)*100; A26:=WINNER(B325)*100-WINNER(B326)*100; A27:=WINNER(B326)*100-WINNER(B327)*100; A28:=WINNER(B327)*100-WINNER(B328)*100; A29:=WINNER(B328)*100-WINNER(B329)*100; A30:=WINNER(B329)*100-WINNER(B330)*100; A31:=WINNER(B330)*100-WINNER(B331)*100; A32:=WINNER(B331)*100-WINNER(B332)*100;A33:=WINNER(B332)*100-WINNER(B333)*100;A34:=WINNER(B333)*100-WINNER(B334)*100;A35:=WINNER(B334)*100-WINNER(B335)*100;A36:=WINNER(B335)*100-WINNER(B336)*100;A37:=WINNER(B336)*100-WINNER(B337)*100;A38:=WINNER(B337)*100-WINNER(B338)*100;A39:=WINNER(B338)*100-WINNER(B339)*100;A40:=WINNER(B339)*100-WINNER(B340)*100;A41:=WINNER(B340)*100-WINNER(B341)*100;A42:=WINNER(B341)*100-WINNER(B342)*100;A43:=WINNER(B342)*100-WINNER(B343)*100;A44:=WINNER(B343)*100-WINNER(B344)*100;A45:=WINNER(B344)*100-WINNER(B345)*100;A46:=WINNER(B345)*100-WINNER(B346)*100;A47:=WINNER(B346)*100-WINNER(B347)*100;A48:=WINNER(B347)*100-WINNER(B348)*100;A49:=WINNER(B348)*100-WINNER(B349)*100;A50:=WINNER(B349)*100-WINNER(LB)*100; STICKLINE(ISLASTBAR,HB ,HB ,A1*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B31 ,B31 ,A1*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B32 ,B32 ,A2*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B33 ,B33 ,A3*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B34 ,B34 ,A4*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B35 ,B35 ,A5*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B36 ,B36 ,A6*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B37 ,B37 ,A7*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B38 ,B38 ,A8*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B39 ,B39 ,A9*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B310 ,B310 ,A10*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B311 ,B311 ,A11*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B313 ,B313 ,A13*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B314 ,B314 ,A14*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B315 ,B315 ,A15*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B316 ,B316 ,A16*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B317 ,B317 ,A17*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B318 ,B318 ,A18*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B319 ,B319 ,A19*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B320 ,B320 ,A20*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B321 ,B321 ,A21*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B322 ,B322 ,A22*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B323 ,B323 ,A23*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B324 ,B324 ,A24*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B325 ,B325 ,A25*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B326 ,B326 ,A26*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B327 ,B327 ,A27*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B328 ,B328 ,A28*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B329 ,B329 ,A29*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B330 ,B330 ,A30*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B331 ,B331 ,A31*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B332 ,B332 ,A32*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B333 ,B333 ,A33*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B334 ,B334 ,A34*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B335 ,B335 ,A35*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B336 ,B336 ,A36*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B337 ,B337 ,A37*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B338 ,B338 ,A38*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B339 ,B339 ,A39*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B340 ,B340 ,A40*50 ,0 ),COLORGRAY; STICKLINE(ISLASTBAR,B341 ,B341 ,A41*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B343 ,B343 ,A43*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B344 ,B344 ,A44*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B345 ,B345 ,A45*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B346 ,B346 ,A46*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B347 ,B347 ,A47*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,B348 ,B348 ,A48*50 ,0 ),COLORGRAY;STICKLINE(ISLASTBAR,LB ,LB ,A50*50 ,0 ),COLORGRAY;当前获利筹码:IF(WINNER(CLOSE),WINNER(CLOSE)*100,0),NODRAW;•安装步骤说明:(查看动画演示)安装后找不到网文摘手?请点击这里>>注意一:如果浏览器的收藏栏未打开,可能会导致安装的网文摘手不显示;在电脑键盘上按下“Ctrl+B”,即看到浏览器收藏栏中的“网文摘手”注意二:如果收藏栏添加的网址过多,网文摘手可能会被隐藏。
通达信2指标——1号主图(主图)
{布林}布林:=HHV(HHV(L,14),60);阻力区:=EMA(EMA(布林,16)-2*STD(布林,16),3);阻力区1:=EMA(EMA(布林,14)+2*STD(布林,14),18);DRAWBAND(阻力区,RGB(99,99,99),阻力区1,RGB(99,99,99));{四线开花}【4】:MA(CLOSE,250),COLORBLUE,LINETHICK3;【3】:MA(CLOSE,120),COLORCY AN,LINETHICK3;【2】:MA(CLOSE,60),COLORGREEN,LINETHICK3;【1】:MA(CLOSE,20),COLORLIRED,LINETHICK3;{神秘线}V0:=VOL*(O+C+H+L)/4;SM:EMA(V0,21)/EMA(VOL,21),COLOR987654,LINETHICK0;{量能平台突破}PT:IF(HHVBARS(V,35),REF(C,HHVBARS(V,35)),C),COLOR7F017F,LINETHICK0;{N日涨幅}N1:=BARSLAST(CROSS(C,MA(C,6)));N2:=BARSLAST(CROSS(MA(C,6),C));N:IF(N1<N2,N1+1,0),COLORBLUE,NODRAW;ZF%:(C-REF(C,N))/REF(C,N)*100,COLORRED,NODRAW;{三色K线}STICKLINE(C>=SM AND C>=O,OPEN,CLOSE,3,1),COLORRED;STICKLINE(C>=SM AND C>=O,LOW,MIN(O,C),0,1),COLORRED;STICKLINE(C>=SM AND C>=O,MAX(O,C),HIGH,0,1),COLORRED;STICKLINE(C>=SM AND C<O,C,O,3,0),COLORCY AN;STICKLINE(C>=SM AND C<O,C,O,1,0),COLORCY AN;STICKLINE(C>=SM AND C<O,L,HIGH,0,1),COLORCY AN;STICKLINE(C<SM AND C>=O,OPEN,CLOSE,3,1),COLORWHITE;STICKLINE(C<SM AND C>=O,LOW,MIN(O,C),0,1),COLORWHITE;STICKLINE(C<SM AND C>=O,MAX(O,C),HIGH,0,1),COLORWHITE;STICKLINE(C<SM AND C<O,C,O,3,0),COLORWHITE;STICKLINE(C<SM AND C<O,C,O,1,0),COLORWHITE;STICKLINE(C<SM AND C<O,L,HIGH,0,1),COLORWHITE;{立桩量}V2:=IF(CURRBARSCOUNT=1,VOL*240/FROMOPEN/REF(VOL,1)-1,VOL/REF(VOL,1)-1); STICKLINE(V2>=1 AND OPEN<CLOSE,OPEN,CLOSE,5,1),COLORYELLOW; STICKLINE(V2>=1 AND OPEN>CLOSE,OPEN,CLOSE,5,0),COLORCYAN;{涨跌停K线}涨跌:=REF(C,1);涨停:=IF((C-涨跌)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;STICKLINE(涨停,H,L,0,0),COLORRED;跌停:=IF((涨跌-C)*100/涨跌>=(10-0.01*100/涨跌),1,0);STICKLINE(跌停,OPEN,CLOSE,4,0),COLORBLUE;STICKLINE(跌停,H,L,0,1),COLORBLUE;{立桩量金箍}STICKLINE(V2>=1,O,(C+O)/2,6,0),COLOR003333;STICKLINE(V2>=1,O,(C+O)/2,5,0),COLOR116666;STICKLINE(V2>=1,O,(C+O)/2,4,0),COLOR229999;STICKLINE(V2>=1,O,(C+O)/2,3,0),COLOR33CCCC;STICKLINE(V2>=1,O,(C+O)/2,2,0),COLOR44FFFF;MA10:MA(CLOSE,10),COLORYELLOW,LINETHICK1;MA5:MA(CLOSE,5),COLORWHITE,LINETHICK1;{信号系统}买入1:DRAWICON(CROSS(【1】,【2】),【2】*0.98,5);买入2:DRAWICON(CROSS(【1】,【3】),【3】*0.98,5);买入3:DRAWICON(CROSS(【1】,【4】),【4】*0.98,5);买入4:DRAWICON(CROSS(【2】,【3】),【3】*0.98,9);买入5:DRAWICON(CROSS(【2】,【4】),【4】*0.98,9);买入6:DRAWICON(CROSS(【3】,【4】),【4】*0.98,135);{买入7:DRAWICON(CROSS(MA5,MA10),MA10*0.98,1);买入8:DRAWICON(CROSS(MA5,【1】),【1】*0.976,1);买入9:DRAWICON(CROSS(MA5,【2】),【2】*0.972,1);买入10:DRAWICON(CROSS(MA5,【3】),【3】*0.968,1);买入11:DRAWICON(CROSS(MA5,【4】),【4】*0.964,1);};。
通达信指标公式源码成本计算主图指标公式
通达信成本计算主图指标公式源码不错,好玩。
但设计不方便,有时间的同学可以改进。
用法:源码里面有股票代码、时间、价格、数量,可以将你买入的股票相应的数据填入,过几天就可以方便的看到你的收益情况。
{成本计算(主图)}上18H:WMA(SMA(HHV(HIGH,18),9/2,1),3),COLOR00FFFF,LINETHICK1;下18L:WMA(SMA(LLV(LOW,18),9/2,1),3),COLORFFFFFF,LINETHICK1;{第一只个股,填入代码、买入时间、价位及股数}代码1:=CODELIKE('0');买入时间1:=YEAR{年}=0 AND MONTH{月}=0 AND DAY{日}=0;买入价位1:=15.62;买入股数1:=1200;天数1:=BARSLAST(买入时间1);{第二只个股,填入代码、买入时间、价位及股数}代码2:=CODELIKE('0');{在[0]位置处填写个股代码}买入时间2:=YEAR{年}=0 AND MONTH {月}=0 AND DAY{日}=0;买入价位2:=0;买入股数2:=0;天数2:=BARSLAST(买入时间2);{第三只个股,填入代码、买入时间、价位及股数}代码3:=CODELIKE('0');买入时间3:=YEAR{年}=0 AND MONTH{月}=0 AND DAY{日}=0;买入价位3:=0;买入股数3:=0;天数3:=BARSLAST(买入时间3);{第四只个股,填入代码、买入时间、价位及股数}代码4:=CODELIKE('0');买入时间4:=YEAR{年}=0 AND MONTH{月}=0 AND DAY{日}=0;买入价位4:=0;买入股数4:=0;天数4:=BARSLAST(买入时间4);{第五只个股,填入代码、买入时间、价位及股数}代码5:=CODELIKE('0');买入时间5:=YEAR{年}=0 AND MONTH{月}=0 AND DAY{日}=0;买入价位5:=0;买入股数5:=0;天数5:=BARSLAST(买入时间5);{第六只个股,填入代码、买入时间、价位及股数}代码6:=CODELIKE('0');买入时间6:=YEAR{年}=0 AND MONTH{月}=0 AND DAY{日}=0;买入价位6:=0;买入股数6:=0;天数6:=BARSLAST(买入时间6);{--------------------------------------------------------------------------------}{1}买入个股时间1:=IF(代码1,买入时间1,0);买入价格1:=IF(买入个股时间1,买入价位1,0);买入价1:=REF(买入价位1,BARSLAST(买入个股时间1));现价1:=IF(BARSLAST(买入个股时间1)+1>=1,CONST(C),0);最高价条件1:=IF(BARSLAST(买入个股时间1)+1>=1,H=HHV(H,BARSLAST(买入个股时间1)+1),0);最高价横线1:=IF(BARSLAST(最高价条件1)>=0 AND BARSLAST(买入个股时间1)+1>=1,CONST(REF(H,BARSLAST(最高价条件1))),0);最低价条件1:=IF(BARSLAST(买入个股时间1)+1>=1,L=LLV(L,BARSLAST(买入个股时间1)+1),0);最低价横线1:=IF(BARSLAST(最低价条件1)+1>=1 AND BARSLAST(买入个股时间1)+1>=1,CONST(REF(L,BARSLAST(最低价条件1))),0);{2}买入个股时间2:=IF(代码2,买入时间2,0);买入价格2:=IF(买入个股时间2,买入价位2,0);买入价2:=REF(买入价位2,BARSLAST(买入个股时间2));现价2:=IF(BARSLAST(买入个股时间2)+1>=1,CONST(C),0);最高价条件2:=IF(BARSLAST(买入个股时间2)+1>=1,H=HHV(H,BARSLAST(买入个股时间2)+1),0);最高价横线2:=IF(BARSLAST(最高价条件2)+1>=1 AND BARSLAST(买入个股时间2)+1>=1,CONST(REF(H,BARSLAST(最高价条件2))),0);最低价条件2:=IF(BARSLAST(买入个股时间2)+1>=1,L=LLV(L,BARSLAST(买入个股时间2)+1),0);最低价横线2:=IF(BARSLAST(最低价条件2)+1>=1 AND BARSLAST(买入个股时间2)+1>=1,CONST(REF(L,BARSLAST(最低价条件2))),0);{3}买入个股时间3:=IF(代码3,买入时间3,0);买入价格3:=IF(买入个股时间3,买入价位3,0);买入价3:=REF(买入价位3,BARSLAST(买入个股时间3));现价3:=IF(BARSLAST(买入个股时间3)+1>=1,CONST(C),0);最高价条件3:=IF(BARSLAST(买入个股时间3)+1>=1,H=HHV(H,BARSLAST(买入个股时间3)+1),0);最高价横线3:=IF(BARSLAST(最高价条件3)+1>=1 AND BARSLAST(买入个股时间3)>=0,CONST(REF(H,BARSLAST(最高价条件3))),0);最低价条件3:=IF(BARSLAST(买入个股时间3)+1>=1,L=LLV(L,BARSLAST(买入个股时间3)+1),0);最低价横线3:=IF(BARSLAST(最低价条件3)+1>=1 AND BARSLAST(买入个股时间3)+1>=1,CONST(REF(L,BARSLAST(最低价条件3))),0);{4}买入个股时间4:=IF(代码4,买入时间4,0);买入价格4:=IF(买入个股时间4,买入价位4,0);买入价4:=REF(买入价位4,BARSLAST(买入个股时间4));现价4:=IF(BARSLAST(买入个股时间4)+1>=1,CONST(C),0);最高价条件4:=IF(BARSLAST(买入个股时间4)+1>=1,H=HHV(H,BARSLAST(买入个股时间4)+1),0);最高价横线4:=IF(BARSLAST(最高价条件4)+1>=1 AND BARSLAST(买入个股时间4)>=0,CONST(REF(H,BARSLAST(最高价条件4))),0);最低价条件4:=IF(BARSLAST(买入个股时间4)+1>=1,L=LLV(L,BARSLAST(买入个股时间4)+1),0);最低价横线4:=IF(BARSLAST(最低价条件4)+1>=1 AND BARSLAST(买入个股时间4)+1>=1,CONST(REF(L,BARSLAST(最低价条件4))),0);{5}买入个股时间5:=IF(代码5,买入时间5,0);买入价格5:=IF(买入个股时间5,买入价位5,0);买入价5:=REF(买入价位5,BARSLAST(买入个股时间5));现价5:=IF(BARSLAST(买入个股时间5)+1>=1,CONST(C),0);最高价条件5:=IF(BARSLAST(买入个股时间5)+1>=1,H=HHV(H,BARSLAST(买入个股时间5)+1),0);最高价横线5:=IF(BARSLAST(最高价条件5)>=0 AND BARSLAST(买入个股时间5)+1>=1,CONST(REF(H,BARSLAST(最高价条件5))),0);最低价条件5:=IF(BARSLAST(买入个股时间5)+1>=1,L=LLV(L,BARSLAST(买入个股时间5)+1),0);最低价横线5:=IF(BARSLAST(最低价条件5)+1>=1 AND BARSLAST(买入个股时间5)+1>=1,CONST(REF(L,BARSLAST(最低价条件5))),0);{6}买入个股时间6:=IF(代码6,买入时间6,0);买入价格6:=IF(买入个股时间6,买入价位6,0);买入价6:=REF(买入价位6,BARSLAST(买入个股时间6));现价6:=IF(BARSLAST(买入个股时间6)+1>=1,CONST(C),0);最高价条件6:=IF(BARSLAST(买入个股时间6)+1>=1,H=HHV(H,BARSLAST(买入个股时间6)+1),0);最高价横线6:=IF(BARSLAST(最高价条件6)+1>=1 AND BARSLAST(买入个股时间6)+1>=1,CONST(REF(H,BARSLAST(最高价条件6))),0);最低价条件6:=IF(BARSLAST(买入个股时间6)+1>=1,L=LLV(L,BARSLAST(买入个股时间6)+1),0);最低价横线6:=IF(BARSLAST(最低价条件6)+1>=1 AND BARSLAST(买入个股时间6)+1>=1,CONST(REF(L,BARSLAST(最低价条件6))),0);{---------------------------------------------------------------------------------};持股数量【股】:IF(代码1,买入股数1,IF(代码2,买入股数2,IF(代码3,买入股数3,IF(代码4,买入股数4,IF(代码5,买入股数5,IF(代码6,买入股数6,DRAWNULL)))))),NODRAW;持股天数:IF(代码1,天数1,IF(代码2,天数2,IF(代码3,天数3,IF(代码4,天数4,IF(代码5,天数5,IF(代码6,天数6,DRAWNULL)))))),NODRAW; 最高价:IF(代码1,最高价横线1,IF(代码2,最高价横线2,IF(代码3,最高价横线3, IF(代码4,最高价横线4,IF(代码5,最高价横线5,IF(代码6,最高价横线6,DRAWNULL)))))),COLOR00009B;最低价:IF(代码1,最低价横线1,IF(代码2,最低价横线2,IF(代码3,最低价横线3, IF(代码4,最低价横线4,IF(代码5,最低价横线5,IF(代码6,最低价横线6,DRAWNULL)))))),COLOR009B00;买入价:IF(代码1,买入价1,IF(代码2,买入价2,IF(代码3,买入价3,IF(代码4,买入价4,IF(代码5,买入价5,IF(代码6,买入价6,DRAWNULL)))))),COLORGREEN;现价:IF(代码1,现价1,IF(代码2,现价2,IF(代码3,现价3,IF(代码4,现价4,IF(代码5,现价5,IF(代码6,现价6,DRAWNULL)))))),COLORMAGENTA;买入时间:=IF(代码1,买入时间1,IF(代码2,买入时间2,IF(代码3,买入时间3, IF(代码4,买入时间4,IF(代码5,买入时间5,IF(代码6,买入时间6,DRAWNULL))))));股数:=IF(代码1,买入股数1,IF(代码2,买入股数2,IF(代码3,买入股数3,IF(代码4,买入股数4,IF(代码5,买入股数5,IF(代码6,买入股数6,DRAWNULL))))));STICKLINE(CROSS(买入时间,0.5),IF(现价>买入价,现价,买入价),最高价,0,0),COLOR00009B;STICKLINE(ISLASTBAR,IF(现价>买入价,现价,买入价),最高价,0,0),COLOR00009B;STICKLINE(CROSS(买入时间,0.5),IF(现价<买入价,现价,买入价),最低价,0,0),COLOR009B00;STICKLINE(ISLASTBAR,IF(现价<买入价,现价,买入价),最低价,0,0),COLOR009B00;DRAWBAND(现价,RGB(155,0,0),买入价,RGB(0,155,0));DRAWBAND(买入价,RGB(0,255,0),买入价,RGB(0,255,0));DRAWBAND(现价,RGB(255,0,255),现价,RGB(255,0,255));DRAWKLINE(HIGH,OPEN,LOW,CLOSE);D1:=YEAR AND MONTH AND DAY;AA1:=STRCAT(CON2STR(YEAR,0),'年');AA2:=STRCAT(CON2STR(MONTH,0),'月');AA3:=STRCAT(CON2STR(DAY,0),'日');AA4:=STRCAT('【',IF(WEEKDAY=1,'一',IF(WEEKDAY=2,'二',IF(WEEKDAY=3,'三',IF(WEEKDAY=4,'四',IF(WEEKDAY=5,'五',IF(WEEKDAY=6,'六','日'))))))); AA:=STRCAT(STRCAT(STRCAT(AA1,AA2),STRCAT(AA3,AA4)),'】'); DRAWTEXT_FIX(D1,0,1,0,AA),COLORGREEN;现赢利:=(现价-买入价)/买入价*100;曾浮赢:=(最高价-买入价)/买入价*100;曾浮亏:=(最低价-买入价)/买入价*100;金额:=买入价*现赢利*股数/100;WW1:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('【','曾浮赢'),'】'),':'),CON2STR(曾浮赢,2)),'﹪');WW2:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('【','曾浮亏'),'】'),':'),CON2STR(曾浮亏,2)),'﹪');WW3:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('【','现赢利'),'】'),':'),CON2STR(现赢利,2)),'﹪');WW4:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('【','现亏损'),'】'),':'),CON2STR(现赢利,2)),'﹪');WW5:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('【','利润'),'】'),':'),CON2STR(金额,0)),'元');WW6:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT('【','亏损'),'】'),':'),CON2STR(金额,0)),'元');DRAWTEXT_FIX(HHV(H,80)=最高价,0.8,0,0,WW1),COLOR00009B; DRAWTEXT_FIX(ISLASTBAR AND (HHV(H,80)>最高价OR HHV(H,80)<最高价) AND 最高价>0,0.81,0.01,0,WW1),COLORFF99FF;DRAWTEXT_FIX(HHV(H,80)=最高价,0.64,0,0,WW2),COLOR009B00; DRAWTEXT_FIX(ISLASTBAR AND (HHV(H,80)>最高价OR HHV(H,80)<最高价) AND 最高价>0,0.65,0.01,0,WW2),COLOR00FF00;DRAWTEXT_FIX(HHV(H,80)=最高价AND 现价>=买入价,0.64,1,0,WW3),COLORRED;DRAWTEXT_FIX(ISLASTBAR AND (HHV(H,80)>最高价OR HHV(H,80)<最高价) AND 最高价>0 AND现价>=买入价,0.67,1,0,WW3),COLORRED;DRAWTEXT_FIX(HHV(H,80)=最高价AND 现价<买入价,0.64,1,0,WW4),COLORGREEN;DRAWTEXT_FIX(ISLASTBAR AND (HHV(H,80)>最高价OR HHV(H,80)<最高价) AND 最高价>0 AND现价<买入价,0.67,1,0,WW4),COLORGREEN;DRAWTEXT_FIX(HHV(H,80)=最高价AND 现价>=买入价,0.8,1,0,WW5),COLORYELLOW;DRAWTEXT_FIX(ISLASTBAR AND (HHV(H,80)>最高价OR HHV(H,80)<最高价) AND 最高价>0 AND现价>=买入价,0.83,1,0,WW5),COLORYELLOW;DRAWTEXT_FIX(HHV(H,80)=最高价AND 现价<买入价,0.8,1,0,WW6),COLORWHITE;DRAWTEXT_FIX(ISLASTBAR AND (HHV(H,80)>最高价OR HHV(H,80)<最高价)AND 最高价>0 AND现价<买入价,0.83,1,0,WW6),COLORWHITE;。
【通达信】主力成本短期底部指标公式(附图)
【通达信】主力成本短期底部指标公式(附图)A:=(3*C+L+O+H)/6;X:=(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;RCC:=DYNAINFO(3);S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);STICKLINE(DK>0,RCC,RCC+DK,0,1),COLORRED;STICKLINE(DK<0,RCC,RCC+DK,0,1),COLORCYAN;主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;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;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF;DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0); DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF; VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW;图。
通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】
通达信超好的抓牛主图指标公式【主力成本、短期底部、红牛、牛窝、老鼠仓、大胆搏、加仓、逃顶】A:=(3*C+L+O+H)/6;X:=(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;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:=2*(S2-S6);主力成本:EMA(X,13),COLORFF00FF,LINETHICK0;短期底部:LLV(HIGH,30),LINETHICK2,COLORFFCC00;IF(MA(C,3),MA(C,3),DRAWNULL),COLORYELLOW,LINETHICK2;IF(MA(C,9),MA(C,9),DRAWNULL),COLORMAGENTA,LINETHICK2;IF(MA(C,23.5),MA(C,23.5),DRAWNULL),COLORWHITE;DRAWKLINE(HIGH,OPEN,LOW,CLOSE);MA5:=MA(C,5);MA10:=MA(C,10);MA30:=MA(C,30);FA:=BARSLAST(CROSS(MA10,MA5)) AND CROSS(MA5,MA10);FB:=FA AND MA5>MA30 AND MA10>MA30 AND MA10>REF(MA10,1);DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;V1:=EMA(CLOSE,5);V2:=EMA(EMA(CLOSE,90)*1.01,10);DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;VAR1:=LLV(LOW,21);VAR2:=HHV(HIGH,21);AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);AB:=CROSS(AK1,AK);DRAWTEXT((AB = 1),(LOW * 0.99),'○牛窝'),COLORYELLOW;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;老鼠仓:=BB1 AND CC1 AND DD1 AND EE1,LINETHICK0,COLOR0099FF; DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (VAR3AA>0),91,0);DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF; DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF; A1AA:=9;A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;VAR6:=REF(C,1);VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW;。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
CB:DMA(((2*C+H+L)/4+(2*H+L+C)/4+(2*L+C+H)/4)/3*90,HSL/90)/90,COLORRED,CIRCLE DOT;
长底:CB*0.618,COLORWHITE;
中底:CB*0.809,COLORGREEN ;
警示:CB*1.191,COLORLIBLUE;
脱离:CB*1.382,COLORMAGENTA;
EMA((2*C+H+L)/4,240)COLORBLUE;
IF(EMA((2*C+H+L)/4,240)>REF(EMA((2*C+H+L)/4,240),1),EMA((2*C+H+L)/4,240),DRAW NULL)COLORYELLOW,CIRCLEDOT;
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)< BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)> BARSLAST(LD) AND NOT(LD);
波浪顶:IF(T1,A,A),COLORFF00FF,POINTDOT,LINETHICK1;
STICKLINE(T1,A,A,9,0),COLORFF00FF;
波浪底:IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
V AR10:=IF(TROUGH(3,16,1)= 0 AND H> L+0.04,4,0);
V AR11:=ZIG(3,6)> REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<= REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<= REF(ZIG(3,6),3);
V AR12:=ZIG(3,6) AND REF(ZIG(3,6),1)>= REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>= REF(ZIG(3,6),3);
V AR13:=ZIG(3,22)> REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<= REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<= REF(ZIG(3,22),3);
V AR14:=ZIG(3,22) AND REF(ZIG(3,22),1)>= REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>= REF(ZIG(3,22),3);
V AR15:=ZIG(3,51)> REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<= REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<= REF(ZIG(3,51),3);
V AR16:=ZIG(3,51) AND REF(ZIG(3,51),1)>= REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>= REF(ZIG(3,51),3);
V AR17:=ZIG(3,72)> REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<= REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<= REF(ZIG(3,72),3);
V AR18:=ZIG(3,72) AND REF(ZIG(3,72),1)>= REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>= REF(ZIG(3,72),3);
买点1:=V AR10;
买点2:=(VAR11+V AR13+V AR15+V AR17);
卖点1:=(VAR12+V AR14+V AR16+VAR18),LINETHICK2;
DRAWTEXT(买点1> 0,L-0.01,'▲'),COLORRED;
DRAWTEXT(买点2> 0,L-0.01,'▲'),COLORFF00FF;
DRAWTEXT(卖点1> 0,H+0.1,'▼'),
COLOR33FF33;。