300万外汇交易指标通达信指标公式源码

合集下载

通达信指标公式源码大全

通达信指标公式源码大全

【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOTLINETHICK2 ;魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1 、05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0 、618*REF(A,1)+0 、382*REF(A,2)+0 、236*REF(A,3)+0146*REF(A,4))/2 、382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A, 2),32))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5) +4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0 、5,1),COLOR4440FF;STICKLINE(KX1,O,L,0 、5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0 、5,0),COLOR4440FF;STICKLINE(KX2,C,L,0 、5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0 、5,1),COLORFFFF33;STICKLINE(KX3,O,L,0 、5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0 、5,0),COLORFFFF33;STICKLINE(KX4,C,L,0 、5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:= 上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND( 上攻周期,RGB(255,120,120),3,RGB(0,0,0)); DRAWBAND(JSC,RGB(0,0,255),0 、5,RGB(0,0,0));STICKLINE(COUNT( 上攻周期>3,5)>=3 AND SG,0, 上攻周期,1 、5,0),COLORRED;XG: COUNT(COUNT( 上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K 线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100; VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ; STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0 、5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR6>VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0 、5,1),COLORGREEN ,; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 AND VAR6>VAR4,VAR2,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0 、5,1), COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0 、5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5* REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3; DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0)); 短线:VAR1,COLORWHITE; 中线:VAR6,COLORYELLOW; 金叉:短线>中线AND REF( 短线,1)=REF( 中线,1),NODRAW; 下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1; 立桩量 )),REF(LOW,BARSLAST( 立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2 、5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1 、5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0 、5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2 、5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1 、5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,05,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(Y 量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST (CLOSE>REF(HIGH,1),1,IF(BARSLAST(CLOSE>REF(HIGH,2),1,IF(BARSLAST(CLOSE>REF(HIGH,3),1,0))); 突立桩量)=1 AND立桩量)=2 AND立桩量)=3 AND立桩 立桩破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(量 )),REF(HIGH,BARSLAST( 立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(EAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10,LINETHICK2;【通达信】牛准反弹(快线、慢线)- 指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA( 快线,M1,1);ELI 空:=SMA( 慢线,M2,1);ELI 牛股:=IF(BARSLAST(CROSS( 慢线,ELI 空))<P AND CROSS( 慢线,ELI 空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4 、1,1)/SMA(ABS(CLOSE-LC),4 、1,1)*100; 牛准反弹:=CROSS(RSI,11)*80;XG: 牛准反弹OR ELI 牛股;【通达信】启动提示(平台线、启动线)- 指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10 、158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10 、158,4),COLORFF00FF; 平台线:LLV(SUM( EMA((C+L)/2,2),5)/10 、158,10),COLORFFFFFF; 强弱线:EMA( 启动线,21),COLORYELLOW;STICKLINE( 平台线<启动线,启动线,平台线,0 、1,0),COLORFFCCAA; STICKLINE( 平衡线<启动线,启动线,平衡线,0 、1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1 、1,13)-EMA((C+L)/2,3)-((C+L)/2)*0 、1; VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5, 2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8), 强弱线,强弱线+0、2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0 、35,' 注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA( 灵,13,8);仙:=CEILING(SMA( 石,13,8));编著:=SMA( 圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE( 仙-编著>75,AABB,AABB*0 、99,15,1),COLOR0000FF;VARZT:=BARSLAST( 平台启动);DRAWTEXT(VARZT=1,0 、99*(AABB+AABB*0 、98)/2,' 平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)- 指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2 、5,1 、5),LINETHICK2,COLORRED;牛线:3*M2-2* 分水岭,LINETHICK2,COLORFF00FF ;熊线:4* 分水岭-3*M2,LINETHICK2,COLORGREEN;通达信指标公式源码大全IF (牛线<= 熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1), 熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA( 股道*C/100+ 基础,3),COLORGRAY,LINETHICK1;。

通达信指标公式源码 卖出 买入 长期趋势

通达信指标公式源码 卖出 买入 长期趋势

VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,20)*(1+80/1000),POINTDOT,COLORGREEN,LINETHICK5;买入:XMA(VAR1,32)*(1-100/1000),POINTDOT,COLORMAGENTA,LINETHICK5; 幅度:=100*(卖出-买入)/买入,NODRAW;菩提:=买入+(卖出-买入)*2/3;{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};般:=XMA(CLOSE,7);若:=MEMA(CLOSE,3);DRAWICON(LONGCROSS(若,般,3) AND H>菩提,H*1.02,15);DRAWICON(BARSLAST(LONGCROSS(若,般,3) AND H>菩提)=1,H*1.02,14); 全绿K:=LONGCROSS(若,般,3) AND H>菩提;{主力雷达白金}DF:=3;N1:=12;RSVL:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100;KL:=SMA(RSVL,DF,1);DL:=SMA(KL,DF,1);KKL:=SMA(RSVL,DF,1);DD:=SMA(KL,DF,1);NL:=KKL+DD;买入L:=DRAWICON(CROSS(NL,50),50,1),COLORRED;卖出L:=DRAWICON(CROSS(160,NL),160,2),COLORGREEN;卖出K:=CROSS(160,NL);{股市狂升指标}TM:=(CLOSE*1.0+LOW*0.0+HIGH*0.0);T1M:=V;SL1M:=(TM/REF(TM,1)-1)*1000;趋势5:=XMA(XMA(XMA(SL1M,20),20),20),COLORYELLOW;趋势6:=XMA(XMA(XMA(SL1M,10),10),10),COLORMAGENTA;QA9:=趋势6-趋势5;QA10:=EMA(QA9,89);买入M:=(QA9-QA10)*2,COLORSTICK;{DRAWICON(买入M>=0,L,1);}{牛熊区间背景}M5:EMA(C,5);M13:EMA(C,13),LINETHICK1;M34:EMA(C,34),LINETHICK1; MC1:=EMA(C,55);MC2:=EMA(C,89);MA4:=EMA(C,144);VAR1A1H:=(REF(CLOSE,1)-REF(ATR,1));{买线BJ:=EMA(C,3);}卖线A:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;买线1:=REF(EMA(C,14),1)COLORWHITE,LINETHICK3;卖线1:=IF(MC1>MAX(MC2,MA4),MC1,IF(MC1<MIN(MC2,MA4),MC2,MA4)),COLOR FF00CC,LINETHICK3;高1:=REF(HHV(H,150),3);低1:=REF(LLV(L,150),3);STICKLINE(买线1>=卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR001050;STICKLINE(买线1<卖线1,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,6,0)COLOR404050;STICKLINE(买入M>=0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORRED;STICKLINE(买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.98,2,1)COLORGREEN;STICKLINE(买入L,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORYELLOW;STICKLINE(卖出K AND 买入M<0,REFDATE(低1,DATE),REFDATE(低1,DATE)*0.96,2,0)COLORCYAN;多空趋势彩带:=DRAWBAND(SMA(C,6.5,1),RGB(255,97,0),SMA(C,13.5,1),RGB(0,128,0)); 中线:=(卖出+买入)/2,POINTDOT,COLORWHITE,LINETHICK4;MA5:=MA(C,5),COLOR000099;MA10:=MA(C,10),COLOR006600;MA20:=MA(C,20),COLOR005555;ZB1:=EMA(C,34);{ 原为55或65 }长期趋势:EMA(ZB1,13),COLORRED,LINETHICK3;{原为34或55}STICKLINE(C>=REF(C,1),O,C,3,1),COLOR000000;STICKLINE(C<REF(C,1),O,C,3,1),COLOR000000;AA3:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9) AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14); AA2:= EMA(CLOSE,14)>EMA(CLOSE,15)AND EMA(CLOSE,15)>EMA(CLOSE,20) AND EMA(CLOSE,20)>EMA(CLOSE,30) AND EMA(CLOSE,30)>EMA(CLOSE,60) AND EMA(CLOSE,60)>EMA(CLOSE,90) AND EMA(CLOSE,90)>EMA(CLOSE,120) ANDEMA(CLOSE,120)>EMA(CLOSE,250);A1:= AA2 AND AA3;A2:=EMA(CLOSE,5)>EMA(CLOSE,6) AND EMA(CLOSE,6)>EMA(CLOSE,7) AND EMA(CLOSE,7)>EMA(CLOSE,8) AND EMA(CLOSE,8)>EMA(CLOSE,9)AND EMA(CLOSE,9)>EMA(CLOSE,10) AND EMA(CLOSE,10)>EMA(CLOSE,11) AND EMA(CLOSE,11)>EMA(CLOSE,12)AND EMA(CLOSE,12)>EMA(CLOSE,13) AND EMA(CLOSE,13)>EMA(CLOSE,14); B1:=IF(A1,1,2);VAR1MZ:=((CLOSE > REF(CLOSE,1)) AND (CLOSE > REF(CLOSE,2)));VAR2MZ:=((REF(VAR1MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR3MZ:=((REF(VAR2MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR4MZ:=((REF(VAR3MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR5MZ:=((REF(VAR4MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR6MZ:=((REF(VAR5MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR7MZ:=((REF(VAR6MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR8MZ:=((REF(VAR7MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR9MZ:=((REF(VAR8MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARAMZ:=((REF(VAR9MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VARBMZ:=((REF(VARAMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARCMZ:=((REF(VARBMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));{红K}STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) ORVAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),L,H,0,0),COLOR0000DD;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),3,0),COLOR000099;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),2,0),COLOR0000BB;STICKLINE((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),C,REF(C,1),1,0),COLOR0000DD;VARDMZ:=((CLOSE < REF(CLOSE,1)) AND (CLOSE < REF(CLOSE,2))); VAREMZ:=((REF(VARDMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VARFMZ:=((REF(VAREMZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR10MZ:=((REF(VARFMZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR11MZ:=((REF(VAR10MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR12MZ:=((REF(VAR11MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR13MZ:=((REF(VAR12MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR14MZ:=((REF(VAR13MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR15MZ:=((REF(VAR14MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR16MZ:=((REF(VAR15MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));VAR17MZ:=((REF(VAR16MZ,1) AND (CLOSE <= REF(CLOSE,1))) AND (CLOSE >= REF(CLOSE,2)));VAR18MZ:=((REF(VAR17MZ,1) AND (CLOSE >= REF(CLOSE,1))) AND (CLOSE <= REF(CLOSE,2)));{绿K}STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),3 ,0 ),COLOR00BB00; STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),2 ,0 ),COLOR00DD00; STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),C,REF(C,1),1 ,0 ),COLOR00FF00;STICKLINE((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),H,L,0,0 ),COLOR00DD00;VAR19MZ:=(REF((((((((((((VARDMZ OR VAREMZ) OR VARFMZ) OR VAR10MZ) OR VAR11MZ) OR VAR12MZ) OR VAR13MZ) OR VAR14MZ) OR VAR15MZ) OR VAR16MZ) OR VAR17MZ) OR VAR18MZ),1) AND VAR1MZ);VAR1AMZ:=(REF((((((((((((VAR1MZ OR VAR2MZ) OR VAR3MZ) OR VAR4MZ) OR VAR5MZ) OR VAR6MZ) OR VAR7MZ) OR VAR8MZ) OR VAR9MZ) OR VARAMZ) OR VARBMZ) OR VARCMZ),1) AND VARDMZ);{粉红}STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),3 ,0 ),COLORFF11FF; STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),2 ,0 ),COLORFF44FF; STICKLINE(VAR19MZ,REF(CLOSE,1),REF(CLOSE,2),1 ,0 ),COLORFF66FF; {黄色}STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),3,0),COLOR00AAFF; STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),2,0),COLOR00CCFF; STICKLINE(VAR1AMZ,REF(CLOSE,1),REF(CLOSE,2),1,0),COLOR00EEFF;{双信号"全仓"选股原码}FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);TTJ:=CROSS(FF,MA15);上:=EMA(C,3),COLORBLUE,LINETHICK1;中:=EMA(C,5),COLORWHITE,LINETHICK1;下:=EMA(中,5),COLOR00FF00,LINETHICK1;QQ:= C<中;MM:=上>REF(上,1) AND REF(上,1)<REF(上,2) ;V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);V2:=(1-7/100)*(DMA(CLOSE,V1));V3:=(1+7/100)*(DMA(CLOSE,V1));V5:=MA((LOW+HIGH+CLOSE)/3,5);MA1Q:=MEMA(CLOSE,5);MA2Q:=ATAN((MA1Q/REF(MA1Q,1)-1)*100)*180/3.1416;MA3Q:=IF(MA2Q>0,MA2Q,MA2Q);MA5Q:=MA(CLOSE,5),COLOR888899;MA13:=MA(CLOSE,13),COLORFF00F0,LINETHICK2;VAR01:=CLOSE=HHV(C,4) AND (REF(C,1)>=REF(C,2) ORREF(C,1)>=REF(C,3))OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) ANDC>=REF(C,1) AND C>=REF(C,2);{收盘价=4日内收盘价的最高值AND 昨收>=2日前的收盘价}VAR02:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4);{收盘价=4日内收盘价的最高值AND 昨收=4日内收盘价的最低值}VAR03:=CLOSE=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3))ORREF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) ANDREF(C,1)=HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) ANDC<REF(C,1) AND C<REF(C,2);{收盘价=4日内收盘价的最低值AND (昨收<2日前的收盘价}VAR04:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);{昨收=4日内收盘价的最低值AND 收盘价>=2日前的收盘价}VAR05:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);{昨收=4日内收盘价的最高值AND 收盘价<2日前的收盘价}VAR06:=V5>REF(V5,1) AND REF(V5,1)<REF(V5,2);{今日V5向上形成拐点}VAR07:=LOW<HHV(V5,13) AND HIGH>HHV(V5,13) AND CLOSE>REF(C,1) AND CLOSE>OPEN;VAR08:=VAR07 AND COUNT(VAR06,2);VAR09:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR10:=EMA(MA(C,13),13);VAR11:=FILTER((LLV(VAR09,2)=LLV(VAR09,7) AND COUNT(VAR09<0,2) ANDCROSS(VAR09,MA(VAR09,2)))=1,5);VAR12:=FILTER((HHV(VAR09,2)=HHV(VAR09,7) AND COUNT(VAR09>50,2) ANDCROSS(MA(VAR09,2),VAR09))=1,1);VAR13:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10;VAR14:=FILTER(((CROSS(VAR13,0) OR CROSS(C,VAR10)) AND VAR11)=1,3); VAR15:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18));VAR16:=VAR08 AND NOT(REF(VAR08,1));RSVQ:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSVQ,3,1);D:=SMA(K,3,1);J:=3*K-2*D;金叉:=CROSS(J,D);死叉:=CROSS(D,J);买1:=(VAR14 OR VAR15) AND VAR11;买2:=(VAR14 OR VAR15) AND VAR04;买3:=(VAR14 OR VAR15) AND VAR02;买4:=(VAR02 AND VAR11) OR (VAR04 AND VAR11);买5:=(金叉AND VAR04) OR (金叉AND VAR02) OR (金叉AND VAR11); TTJ0:=VAR16;TTJ1:=买1 OR 买2 OR 买3 OR 买4 OR 买5 AND MM;XG0:=TTJ AND TTJ0;XG1:=TTJ AND TTJ1;XG11:=XG0 OR XG1;{以下波浪理论浪底重叠"买底"选股原码}PL5:=ZIG(3,5);EN1:=ZIG(3,5)>REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)<=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3);EX1:=ZIG(3,5)<REF(ZIG(3,5),1) AND REF(ZIG(3,5),1)>=REF(ZIG(3,5),2) AND REF(ZIG(3,5),2)>=REF(ZIG(3,5),3);PL10:=ZIG(3,10);EN2:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)<=REF(ZIG(3,10),3);EX2:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>=REF(ZIG(3,10),2) AND REF(ZIG(3,10),2)>=REF(ZIG(3,10),3);PL20:=ZIG(3,20);EN3:=ZIG(3,20)>REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)<=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)<=REF(ZIG(3,20),3);EX3:=ZIG(3,20)<REF(ZIG(3,20),1) AND REF(ZIG(3,20),1)>=REF(ZIG(3,20),2) AND REF(ZIG(3,20),2)>=REF(ZIG(3,20),3);PL40:=ZIG(3,40);走强1:=BARSLAST(PL5<REF(PL5,1));走弱1:=BARSLAST(PL5>REF(PL5,1));走强2:=BARSLAST(PL10<REF(PL10,1));走弱2:=BARSLAST(PL10>REF(PL10,1));走强3:=BARSLAST(PL20<REF(PL20,1));走弱3:=BARSLAST(PL20>REF(PL20,1));ZTJZ5:=IF(PL10>REF(PL10,1),COUNT(EN1,走强2),0);ZTJD5:=IF(PL10>REF(PL10,1),COUNT(EX1,走强2),0);DTJZ5:=IF(PL10<REF(PL10,1),COUNT(EN1,走弱2),0);DTJD5:=IF(PL10<REF(PL10,1),COUNT(EX1,走弱2),0);ZTJZ10:=IF(PL20>REF(PL20,1),COUNT(EN2,走强3),0);ZTJD10:=IF(PL20>REF(PL20,1),COUNT(EX2,走强3),0);DTJZ10:=IF(PL20<REF(PL20,1),COUNT(EN2,走弱3),0);DTJD10:=IF(PL20<REF(PL20,1),COUNT(EX2,走弱3),0);TJ11:=EN2 AND ZTJZ5=1;TJ22:=EN1 AND PL10>REF(PL10,1) AND ZTJZ5=2;TJ33:=EN2 AND DTJZ10=1;TJ44:=EN3 AND ZTJZ10=1;TJ55:=EN2 AND PL20>REF(PL20,1) AND ZTJZ10=2;XG22:=TJ11 OR TJ22 OR TJ33 OR TJ44 OR TJ55;{以下二者结合共同选股}XGQ:=XG11 OR XG22;W18:=EXIST(XGQ,1);DRAWTEXT(XGQ,L-0.1,'●放心买'),COLORRED;{㊣MACD超准㊣}SQX:=(C-MA(CLOSE,13))*100;DIFF:=EMA(MA(SQX,7),1),COLORWHITE;DEA:=EMA(DIFF,7),COLORYELLOW;MACD:=(DIFF-DEA)*2,COLORSTICK;奉献理想专用:=IF((CROSS(DIFF,DEA) ANDDIFF<-0.1) ,L-0.2,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;低位金叉:=IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,15,DRAWNULL),COLORMAGENTA,LINETHICK9,CROSSDOT;IF(CROSS(DIFF,DEA) ANDDIFF<-0.1,L-0.2,DRAWNULL),COLORYELLOW,LINETHICK4,POINTDOT;{再上N均线N 10 1 100 1}MA1:=MA(C,5);MA2:=MA(C,10);MA3:=MA(C,21);破N:=REF(MA1,1)<REF(MA2,1)AND MA2>REF(MA2,1);试摸N:=C>MA(C,10) OR H>=MA2;再上N:=C>O AND REF(C,1)< MA(C,10) AND 试摸N AND 破N ANDMA(C,21)<MA(C,10);有行情:=再上N AND (CROSS(C,长期趋势) OR CROSS(L,长期趋势) OR CROSS(H,长期趋势));DRAWTEXT(有行情,LOW-0.2,'●有行情'),COLORGREEN;{操盘线雷达买入点}VAR10B:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);VAR11B:=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);VAR12B:=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);VAR13B:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14B:=ZIG(3,22)<REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)>=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);VAR15B:=ZIG(3,51)>REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)<=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)<=REF(ZIG(3,51),3);VAR16B:=ZIG(3,51)<REF(ZIG(3,51),1) ANDREF(ZIG(3,51),1)>=REF(ZIG(3,51),2) ANDREF(ZIG(3,51),2)>=REF(ZIG(3,51),3);VAR17B:=ZIG(3,72)>REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)<=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)<=REF(ZIG(3,72),3);VAR18B:=ZIG(3,72)<REF(ZIG(3,72),1) ANDREF(ZIG(3,72),1)>=REF(ZIG(3,72),2) ANDREF(ZIG(3,72),2)>=REF(ZIG(3,72),3);VAR19B:=EMA(CLOSE,2)-EMA(CLOSE,150);买1B:=VAR10B;买2B:=(VAR11B+VAR13B+VAR15B+VAR17B);BB:=IF(买1B>0 OR 买2B>0 ,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; {DRAWTEXT(CROSS(BB,买1B),L,'←买'),COLORRED,LINETHICK1;}红买绿卖:IF(CROSS(BB,买1B),LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK5,COLORWHITE;牛节点:=CROSS(EMA(C,5),EMA(C,30))AND CROSS(EMA(C,10),EMA(C,20)); DRAWICON(牛节点,L-0.1,13);{天下第一买}CSAR:=SAR(10,2,20);持币:=IF(CSAR>=H,CSAR,0),CIRCLEDOT,COLORGREEN{持币};持股:=IF(CSAR<=L,CSAR,0),CIRCLEDOT,COLORRED{持股};生命线2:=EMA(SLOPE(C,21)*20+C,42),LINETHICK2,COLORYELLOW;{股价在上持,在下空仓}止损:=EMA(C,5),COLORYELLOW,LINETHICK1;{红持股绿持币黄观望}菩提B:=XMA(H,20);{此函数仅做参考线,为提前趋势预测线,上涨途中向下见顶,下跌途中向上见底};参买:=IF(止损>=REF(止损,1),止损,DRAWNULL),LINETHICK2,COLORRED;{持股前提}DRAWICON(CROSS(L,CSAR) AND 参买>0 AND H<菩提B AND 持股>0 AND H>长期趋势,(LOW- 0.1),5);{趋势底};{大牛浮水}VVAR1D:=((((OPEN + LOW) + HIGH) + CLOSE) / 4);短底:=EMA(VVAR1D,5);支撑:=HHV(短底,60);MAN:=(SMA(HIGH,21,2) * 1.05);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); 中D:=(((((3 * CLOSE) + HIGH) + LOW) + OPEN) / 6);X1D:=EMA(中D,10);RSVD:=SMA(下档线,3,1);K大:=SMA(RSVD,3,1);D大:=((3 * RSVD) - (2 * K大));J12:=(((CLOSE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100); RSV24:=SMA(J12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力位:=IF(CROSS(D24,D大),HIGH,REF(HIGH,BARSLAST(CROSS(D24,D 大)))),COLORFFFFFF;大牛浮水:=CROSS(CLOSE,MA20) AND HIGH < 压力位AND OPEN < MA20 AND HIGH < 支撑AND MAN - REF(MAN,1) > 0 AND X1D - REF(X1D,1)>0ANDD大< 63 AND MA20 - REF(MA20,1) > 0,COLORWHITE;DRAWTEXT(大牛浮水,L,'●牛浮面'),COLORWHITE;CO:=(C-O);绿K:=(卖出>LOW AND 卖出<HIGH) OR (卖出>MIN(C,O) AND 卖出<MAX(C,O))OR 卖出<LOW;{全绿K}全绿K2:=C>卖出OR (H>卖出AND O>C);STICKLINE(全绿K2,C,O,3,0),COLOR00BB00;STICKLINE(全绿K2,C,O,2,0),COLOR00DD00;STICKLINE(全绿K2,C,O,1,0),COLOR00FF00;TY:=DYNAINFO(8)>0;GG:=V=LLV(V,100) AND TY;DRAWICON(GG,LOW*0.96,1);DRAWICON(GG,LOW*0.95,17);NN1:=5;N2:=7;PP:=(HIGH+LOW+OPEN+2*CLOSE)/5;PE:=(PP-MA(PP,2*N2))*100/(1.5*AVEDEV(PP,2*N2));E1:=100*SLOPE(EMA(CLOSE,NN1),2),COLORWHITE;E2:=100*SLOPE(CLOSE,N2),COLORFFFF00;PN:=E1-E2;KK2:=0;DRAWTEXT(CROSS(PN,KK2) AND PE<-100,REF(L,1)-0.5,'◣' ),COLOR0000FF; DRAWTEXT(CROSS(KK2,PN) AND PE>100,REF(H,1)+0.5,'▼' ),COLORFF0000;。

通达信公式指标源码

通达信公式指标源码

通达信公式指标源码S:=REF(CLOSE,1);。

MA6:MA(CLOSE,6);。

MA12:MA(CLOSE,12);。

MA20:MA(CLOSE,20);。

MA60:MA(CLOSE,60);。

MA120:MA(CLOSE,120);。

DIF:EMA(CLOSE,12)-EMA(CLOSE,26);。

DEA:EMA(DIF,9);。

MACD:2*(DIF-DEA),COLORFF00FF;。

IF(MA6>MA12ANDMA12>MA20ANDMA20>MA60ANDMA60>MA120ANDC>O,1,0)A ND(C>REF(C,1)ANDC>REF(C,2)ANDC>REF(C,3))AND(CROSS(DIF,DEA)OR(DIF >=DEAANDDIF>0))THEN。

收盘价高于昨日收盘价,且周期长短均有上涨趋势,并且DIF大于DEA且DIF高于零,以及DIF和DEA发生金叉,可判断出多头排列,此时可以进行多头开仓,获取股票中期涨价的潜力。

}。

ELSEIF(MA6<MA12ANDMA12<MA20ANDMA20<MA60ANDMA60<MA120ANDC<O,1 ,0)AND(C<REF(C,1)ANDC<REF(C,2)ANDC<REF(C,3))AND(CROSS(DEA,DIF)OR (DIF<=DEAANDDIF<0))THEN。

收盘价低于昨日收盘价,且各周期均呈下跌趋势,并且DIF小于DEA 且DIF低于零,以及DEA和DIF发生死叉,可判断出空头排列,此时可以进行空头开仓,获取股票中期跌价的潜力。

}。

ELSE。

此时股票走势无法判断,不建议进行交易。

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标

通达信三个公式源码准确率90%以上超级指标精准买卖绝世指标1 超级指标指标公式:买卖提示非常明显(适合通达信)指标源码如下:M:3 100 60N 3 100 30散户线: 100*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VA R7;VAR9:=IF(VAR8>100,100,VAR8);吸筹:STICKLINE(VAR9>-120,0,VAR9,2,5),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5,13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注: STICKLINE(走势-AA6<-65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,4);卖观注: STICKLINE(走势-AA6>85,98,90,15,1),COLORFFFF00;DRAWICON(FILTER(J<REF(J,1)AND 走势<=REF(走势,1)AND J>85 ,5),J,5);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);2 精准买卖支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00;阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK2;VAR1:=EMA(CLOSE,12)-EMA(CLOSE,26);VAR2:=EMA(VAR1,9);VAR3:=(CLOSE*2.5/100+CLOSE);VAR4:EMA(C,3);VAR5:=LLV(HIGH,240);VAR6:=100*(CLOSE-VAR5)/VAR5;VAR7:=REF(LLV(CLOSE,480),1);VAR8:=REF(HHV(CLOSE,480),1);VAR9:=100*(CLOSE-VAR7)/(VAR8-VAR7);VARA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;VARB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;VARC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;VARD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;VARE:=VARC>98.5 OR VARD>98.5;VARF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;VAR13:=VARA=0 AND VARC=0 AND VAR6<0;VAR14:=VARA=100 AND VARC=100;VAR15:=VARB=0 OR VARD=0 AND VAR9<0;VAR16:=VARB=100 AND VARD=100;VAR17:=VAR6<0 AND VAR9<0;VAR18:=VAR13 AND VAR15;VAR19:=VAR14 AND VAR16;VAR1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;VAR1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;VAR1D:=BARSCOUNT(CLOSE);VAR1E:=VAR1B<20 AND VAR1C<23 AND VAR1D>35;VAR1F:=VAR1E AND COUNT(VAR1E,1)=1;VAR20:=REF(CLOSE,1);VAR21:=SMA(MAX(CLOSE-VAR20,0),34,1)/SMA(ABS(CLOSE-VAR20),7,1)*100;VAR22:=SMA(MAX(CLOSE-VAR20,0),13,1)/SMA(ABS(CLOSE-VAR20),13,1)*100;VAR23:=BARSCOUNT(CLOSE);VAR24:=VAR21<20 AND VAR22<23 AND VAR23>35;VAR25:=VARA=0 AND VARF<1.2 AND VAR17;VAR27:=VAR18 AND VARF<1.2 AND VAR17;VAR29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;VAR2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;VAR2B:=CROSS(VAR29,69) AND CROSS(VAR2A,80)<150;VAR2C:=VAR24 AND VAR1F AND COUNT(VAR24,30)=1;买点:=VAR25 AND VAR2B;绝对卖点:=(VAR19 OR VARA)AND VARF>23 OR VARE ;VAR2D:=VAR1F AND VAR2C AND VAR25;股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 ANDCLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;DRAWICON(买点>0,L,4);DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;DRAWTEXT(VARF<0.7 AND VAR27 AND VAR25>0,L,'万元'),COLORYELLOW;STICKLINE(VAR2D>0,O,C,10,0), COLORRED;DRAWTEXT(VAR2D>0,L,'大方神针'),COLORRED;DRAWICON(COUNT(REF(VAR4,1)<REF(VAR4,2),5)=5 AND VAR4>REF(VAR4,1),L*0.98,5);DRAWICON(FILTER(COUNT(VAR6<0,5)ANDCROSS(VAR6,0)AND VARF>REF(VARF,1)AND C>O,3),L,1);DRAWICON(FILTER(REF(VAR4,1)>REF(VAR4,2)ANDVAR4<REF(VAR4,1)AND VARF>17 AND VAR1>VAR2,5),H,2);DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,VAR3)AND C<O,H*1.02,15);DIF1:=EMA(CLOSE,7)-EMA(CLOSE,19),COLORWHITE;DEA1:=EMA(DIF1,9);MACD1:=(DIF1-DEA1)*100,COLORSTICK;STICKLINE(MACD1>REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORRED;STICKLINE(MACD1<=REF(MACD1,1) AND MACD1>0,0,MACD1,0,0),COLORYELLOW;STICKLINE(MACD1<REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLOR00FF00;STICKLINE(MACD1>=REF(MACD1,1) AND MACD1<0,0,MACD1,0,0),COLORMAGENTA;STICKLINE(C>0,0,0,50,1),COLORBLUE;RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K日:SMA(RSV1,3,1),COLORWHITE;D日:SMA(K日,3,1),COLORYELLOW;J日:3*K日-2*D日,COLORFF00FF;底部:0,COLORF00FF0,LINETHICK2;DRAWICON(CROSS(J日,底部),底部,1);3 绝世指标GLL:-4;顶:80,COLORFFA500;大顶:100,COLORBLUE;VAR1:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*80;VAR2:=SMA(VAR1,10,1);慢速:SMA(VAR2,5,1),COLORRED;RSV:= ((HHV(HIGH,9)-CLOSE)/(HHV(HIGH,9)-LLV(LOW,9))*100)-70;RSV1:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;FATK:=SMA(RSV1,3,1);形态:SMA(FATK,3,1),COLORBB24DB;VARA:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VARB:=SMA(VARA,3,1);VARC:=SMA(VARB,3,1);加速: EMA(3*VARB-2*VARC,3),COLORYELLOW;底:6,COLOR00BF00;大底:-6,COLOR007300;VAR11:=LLV(LOW,5)=LLV(LOW,45) AND CLOSE>=OPEN*1.04;VAR22:=CLOSE>(REF(HIGH,1)+REF(LOW,1))/2;买入:=VAR11 AND VAR22,STICK,LINETHICK2,COLORRED;VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;卖出:=CROSS(80,VAR4),STICK,LINETHICK2,COLORGREEN;{波段介入点}A1:=REF(CLOSE,2);A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100;波段介入点:IF(A2<19,19,0)COLORWHITE;。

通达信编程公式源码

通达信编程公式源码

[通达信]通达信函数总表一,行情函数1,HIGH 最高价返回该周期最高价。

用法:HIGH2,H 最高价返回该周期最高价。

用法:H3,LOW 最低价返回该周期最低价。

用法:LOW4,L 最低价返回该周期最低价。

用法:L5,CLOSE 收盘价返回该周期收盘价。

用法:CLOSE6,C 收盘价返回该周期收盘价。

用法:C7,VOL 成交量返回该周期成交量。

用法:VOL8,V 成交量返回该周期成交量。

用法:V9,OPEN 开盘价返回该周期开盘价。

用法:OPEN10, O:开盘价返回该周期开盘价。

用法:O11, ADVANCE 上涨家数返回该周期上涨家数。

用法:ADVANCE(本函数仅对大盘有效) 热点推荐物欲横流·心...抢在时间前面的7条捷径一些经济类的好网址在闷棍中成长——我的思...看盘技巧:怎样看开盘烹饪用法之-----盐韩国辣白菜的做法!!合同范文目录索引(3)音画你让我感动家庭医生的健康12, DECLINE 下跌家数返回该周期下跌家数。

用法:DECLINE(本函数仅对大盘有效)13, AMOUNT 成交额返回该周期成交额。

用法:AMOUNT14, ASKPRICE 委卖价返回委卖1--委卖3价格。

用法:ASKPRICE(N)N取1—3。

(本函数仅个股在分笔成交分析周期有效)15, ASKVOL 委卖量返回委卖1--委卖3量。

用法:ASKVOL(N)N取1—3。

(本函数仅个股在分笔成交分析周期有效)16, BIDPRICE 委买价返回委买1--委买3价格。

用法:BIDPRICE(N)N取1—3。

(本函数仅个股在分笔成交分析周期有效)17, BIDVOL 委买量返回委买1--委买3量。

用法:BIDVOL(N)N取1—3。

(本函数仅个股在分笔成交分析周期有效)18, BUYVOL 主动性买盘返回主动性买单量。

用法:BUYVOL当本笔成交为主动性买盘时,其数值等于成交量,否则为0。

(本函数仅个股在分笔成交分析周期有效)19, SELLVOL 主动性卖盘返回主动性卖单量。

通达信指标公式源码大全

通达信指标公式源码大全

通达信指标公式源码大全Profit: EMA(EMA(EMA(High,5),5)*1.15.Color=ffffff。

LineThickness=1;Risk: EMA(EMA(High,5),5)*1.1.Color=yellow;Drawdown:EMA(MA(EMA(High,5),5),5)*1.05.Color=00FF00;Balance: EMA(EMA(EMA(High,5),5)。

Color=FF00FF。

LineThickness=1;Rebound: MA(MA(MA(High,5),5)*0.95.Color=gray。

LineThickness=1;Oversold: MA(MA(MA(Close,5),5)*0.9.Color=blue。

LineThickness=1;VAR3:=LLV(High,240);VAR4:=100*(Close-VAR3)/VAR3;VAR5:=(Close-LLV(Low,528))/(HHV(High,528)-LLV(Low,528))*100;VAR6:=(Close-LLV(Close,530))/(HHV(Close,530)-LLV(Close,530))*100;VAR7:=0;VAR8:=SMA(Max(Close-REF(Close,1),34,1)/SMA(ABS(Close-REF(Close,1)),7,1)*100;VAR9:=SMA(Max(Close-REF(Close,1),13,1)/SMA(ABS(Close-REF(Close,1)),13,1)*100;VAR10:=IF(Cross(3,16,1)=0 AND High>Low+0.04,4,0);VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) ANDREF(ZIG(3,6),1)<=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)<=REF(ZIG(3,6),3);VAR12:=ZIG(3,6)=REF(ZIG(3,6),2) ANDREF(ZIG(3,6),2)>=REF(ZIG(3,6),3);VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) ANDREF(ZIG(3,22),1)<=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)<=REF(ZIG(3,22),3);VAR14:=ZIG(3,22)=REF(ZIG(3,22),2) ANDREF(ZIG(3,22),2)>=REF(ZIG(3,22),3);Rewritten:The profit ___ (EMA) of the high price over 5 ds。

通达信 指标公式

通达信 指标公式

通达信指标公式
通达信指标公式是一个函数图表,用于计算和显示数据系列中的一些值。

它们通常用于股票、期货和外汇交易等金融市场。

以下是一些通达信指标公式:
均线指标公式:MA(close,12),其中close是收盘价,12是周期,一般周期越长,敏感度越高。

成交量指标公式:volume(close),其中close是收盘价,表示当天的成交量。

相对强弱指标公式:relative_strength(close,12),其中close是收盘价,12是周期,表示最近12天的相对强弱。

布林线指标公式:bollinger_bands(close,12,26,26),其中close 是收盘价,12是周期,26是布林带宽,26是标准差。

移动平均线指标公式:ma(close,9),其中close是收盘价,9是周期。

这些指标公式可以帮助交易者分析市场趋势和价格动态,从而制定交易策略。

需要注意的是,这些指标公式只是提供一些指导,实际交易时需要根据市场情况和个人经验进行调整。

精选经典通达信指标公式源码.doc

精选经典通达信指标公式源码.doc

自用kdj, MACD看透主力,散户看盘,均线变色自动画线指标,该指标自己使用1年以上, 没有未来函数非常稳定,东西是不错的,就看怎样使用了。

指标只是辅助,具体交易要结合大盘和个股情况来看。

{四哥趋势-变色均线和趋势画线主图}{ N:l,100,8 P:0,l,0}ZGD:=HHV(H z60);ZGD2:=CONST(ZGD);ZDD:=LLV(L,60);ZDD2:=CONST(ZDD);GJ:=(C+H+L+O)/4;明日阻力:=L+(GJ・L)+(C・L);明日支撑:=L+(C-GJ);KOH:=L>REF(H,1);KOL:=H<REF(L,1);HIF:=L>REF(H,BARSLAST(KOH)+1);NHIF:=L<=REF(H,BARSLAST(KOH)+1);LIF:=H<REF(L,BARSLAST(KOL)+1);NLIF:=H>=REF(L,BARSLAST(KOL)+1);下档线:=(((CLOSE - LLV(LOW,13)) / (HHV(HIGH,13) - LLV(LOW,13))) * 100); RRRSV:=SMA(下档线,3,1);KKK:=SMA(RRRSV,3,1);DDDDD:=((3 * RRRSV) - (2 * KKK));JJ12:=(((CL0SE - LLV(LOW,55)) / (HHV(HIGH,55) - LLV(LOW,55))) * 100);RSV24:=SMA(JJ12,3,1);K24:=SMA(RSV24,3,1);D24:=((3 * RSV24) - (2 * K24));压力2:=IF(CROSS(D24,DDDDD),HIGH,REF(HIGH,BARSLAST(CROSS(D24,DDDDD)))),COLORF FFFFF;底部:=LLV(HIGH,30),COLOROOFFOO;AA:=REF(H,N)=HHV(H,2*N+1); AA1:=REF(L Z N)=LLV(L,2*N+1);QY:=BACKSET(AA,N+1); QY1:=BACKSET(AA1,N+1);CC:=FILTER(QY Z N) AND H=HHV(H,N+1); CC1:=FILTER(QY1,N) AND L=LLV(L,N+1); DDD: = BARSLAST(CC); DD1:=BARSLAST(CC1);GDTS:=IF(CC z CURRBARSCOUNT z O); DDTS:=IF(CC1Z CURRBARSCOUNT,0); DINGBUTS:=IF(DDD,REF(GDTS Z DDD),GDTS); DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS); GDCS1:=CONST(DINGBUTS); DDCS1:=CONST(DDTS1);GDCS13:=CONST(REF(HIGH,GDCS1-1)); DDCS13:=CONST(REF(L,DDCS1-1)); DINGBUTS1: = REF(DINGBUTS,DDD+1); DDTS2:=REF(DDTS1,DD1+1);GDCS2:=CONST(DINGBUTS1); DDCS2:=CONST(DDTS2);GDCS23:=CONST(REF(HIGH Z DINGBUTS1-1)); DDCS23:=CONST(REF(L,DDTS2-1));XG1: = BACKSET(ISLASTBAR,GDCS 1); XD1:=BACKSET(ISLASTBAR Z DDCS1);XG2: = BACKSET(ISU\STBAR,DINGBUTS1); XD2: = BACKSET(ISLASTBAR,DDTS2); XDD:=IF(DDCS13<=DDCS23,XD1,XD2);BCG:=SUM(XG1,O); BCD:=SUM(XDD,0);今口阻力:REF(明日阻力,1),NODRAW;今日支撑:REF(明日支撑,1),NODRAW;压力位:IF(ISLASTBAR,压力2,DRAWNULL),NODRAW;底部位:IF(ISLASTBAR,底部,DRAWNULL),NODRAW;高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1) ,COLORGRE EN,LINETHICK2;低点支撑:DRAWLINE(CURRBARSCOUNT=DDCS2,L,CURRBARSCOUNT=DDCS1,L,1),COLORBLUE, LINETHICK2;高:=CONST(MAX(MAX(MAX(ZGD2,高点压力),GDCS13),GDCS23));低:=CONST(MIN(MIN(MIN(ZDD2,DDCS23),DDCSC3),低点支撑));ZGSTAR:=(高点压力+低点支撑)/2;ZGEND:=CONST((高点压力+低点支撑)/2);STARDAY:=IF(DDCS2<GDCS2,DDCS2,GDCS2);中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLOR555555,LINETHICK2;M:=INTPART(3*N/5);AAA:=REF(H,M)=HHV(H,2*M+1);QYY :=BACKSET(AAA, M+l);CCC:=FILTER(QYY,M) AND H=HHV(H,M+1);DDDD:=BARSLAST(CCC),NODRAW;GDTSS: =IF(CCC,CURRBARSCOUNT,0);DINGBUTSS:=IF(DDDD,REF(GDTSS,DDDD)Z GDTSS);GDCS11:=CONST(DINGBUTSS);DINGBUTS11:=REF(DINGBUTSS,DDDD+1);GDCS22:=CONST(DINGBUTS11);上缺匚l:=p=0 AND HIF AND BARSU\ST(KOH)<BARSLAST(NHIF)AND BARSLAST(HIF)<BARSLAST(NHIF);HG:=IF(上缺口,REF(H,BARSLAST(KOH)+1),DRAWNULL);STICKLINE(上缺口,HG,HG*1.001,10,0),COLOR888888;下缺口:=p=0 AND LIF AND BARSU\ST(KOL)<BARSLAST(NLIF) AND BARS成ST(LIF) vBARSLAST(NLIF);LG:=IF( F缺口Z REF(L,BARSLAST(KOL)+1),DRAWNULL);STICKLINE(下缺口,LG,LG*0.999,10,0),COLOR888888;高点压力M:DRAWLINE(CURRBARSCOUNT=GDCS22,H,CURRBARSCOUNT=GDCS11,H,1),COLORRE D Z LINETHICK1;AA11:=REF(L,M)=LLV(L Z2*M+1);QY11:=BACKSET(AA11,M+1);CC11:=FILTER(QY11Z M) AND L=LLV(L,M+1);DDU:=BARSLAST(CC11);DDTSS:=IF(CCll,CURRBARSCOUNT z O);DDTS11:=IF(DD11,REF(DDTSS,DD11),DDTSS);DDCS11:=CONST(DDTS11);DDTS22:=REF(DDTS11,DD11+1);DDCS22:=CONST(DDTS22);低点支撑M:DRAWLINE(CURRBARSCOUNT=DDCS22,L,CURRBARSCOUNT=DDCS11,L,1) COLORRED,LINETHICK1;STICKLINE(XG2,GDCS23,GDCS23,0.5,l),COLORWHITE;STICKLINE(XG1,GDCS13,GDCS13,0.5,1),COLORYELLOW;STICKLINE(XD2,DDCS23,DDCS23,0.5,l),COLORMAGENTA;STICKLINE(XD1,DDCS13,DDCS13,0.5,1),COLORCYAN;STICKLINE(ISLASTBAR AND C>=今日阻力,今口阻力,今口阻力,10,1),COLOROOOOFF; STICKLINE(ISU\STBAR AND Cv今日阻力,今日阻力,今日阻力,10,1),COLOROOFFOO; STICKLINE(ISLASTBAR AND C>=今日支撑,今Fl 支撑,今日支撑,10,1),COLORFFOOFF; STICKLINE(ISU\STBAR AND Cv今日支撑,今日支撑,今日支撑Z10,1),COLORFF8800; STICKLINE(ISLASTBAR,压力位,压力位,120,0),COLORFFFFFF;STICKLINE(ISLASTBAR,底部位,底部位,iOO z O),COLOROOFFOO;MA5:MA(C,5),COLORWHITE;MA30:MA(C,30);DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOROOFFOO;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,l)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF (X,6)+ 13*REF(X,7)+12*REF(X,8)+ll*REF(X,9)+10*REF(X,10)+9*REF(X,ll)+8*REF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFFOOFF,LINETHICK1;DD: = ^空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLORBLUE,LINETHICK3;A:=(MA5 > 多空线);IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT;Al:=(MA5v 多空线);IF(A1,多空线Z DRAWNULL),COLORWHITE;V1:=CLOSE*VOL;V2:=EMA(V1,13)/EMA(VOL Z13);CYS:=(EMA((CLOSE-V2)/V2,1)*100);AAAA:=CYS;MIDD:=MA(CYS,20);CCCC:=MIDD+0.85*STD(CYS,10);TM6:=AAAA>CCCC;IF(TM6,MA5,DRAWNULL),COLORRED,LINETHICK2;{天翼KDJ指标}N:=9;Ml:=3;M2:=3;低吸区:20,LINETHICK0;STICKLINE(C,19,20,1,0),COLORGREEN;风险区:80,LINETHICK0;STICKLINE(C,79,80,1,0),COLORYELLOW;RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L z N))*100;K:SMA(RSV,M1,1),COLORRED,LINETHICK3;D:SMA(K Z M2,1),COLORWHITE Z LINETHICK3;J:3*K-2*D,COLORMAGENTA;DRAWBAND(K/RGB(255z0,0),D,DRAWNULL);吸筹:D<20,COLORYELLOW;STICKLINE(Dv20,D,20,2,0),COLORYELLOW;高抛:D>80,COLORDA8E3D;STICKLINE(D>80,D,80,2,0),COLORDA8E3D;DRAWTEXT(FILTER(吸筹=1,15),35/吸筹'),COLORDA8E3D;DRAWTEXT(FILTER(高抛=1,15),95;高抛'),COLORYELLOW;DRAWICON(CROSS(K,D),D*0.98Z1);DRAWICON(CROSS(D,K),K*1.02,2);{MACD看透主力}VA:=IF(CLOSE>REF(CLOSE,1),VOL 广VOL);OBV1:=SUM(IF(CLOSE=REF(CLOSE/1),0,VA),0);OBV2:=EMA(OBV1,3)・MA(OBV1,9);OBV3:=EMA(IF(OBV2>0,OBV2,0),3);MAC3:=MA(C,3);SHORT: = 12;LONG:=26;MID:=9;DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG)COLORYELLOW ;DEA:EMA(DIF,MID)COLORFF9900 ;主力买:IF(DIF>REF(DIF,1),DIF/0),NODRAW;主力卖:IF(DIFvREF(DIF,l),DIF,0),NODRAW;MACD:=(DIF-DEA)*2;STICKLINE(OBV3>REF(OBV3Z1) AND MAC3>REF(MAC3,1),0,MACD,1.2,0),COLORYELLOW; 吸:=MACDvO AND MACD>REF(MACD,1);拉:=MACD>0 AND MACD>REF(MACD Z1);派:=MACD>0 AND MACD<REF(MACD Z1);落:=MACDvO AND MACD<REF(MACD,1);STICKLINE(吸,0,MACD,0.5,0),COLORRED;STICKLINE(拉,0,MACD,0.5,0),COLORRED;STICKLINE(派,0,MACD,0.5,0),COLORGREEN;STICKLINE(落QMACD,0.5,0),COLORWHITE;主力吸筹:吸,COLORYELLOW,NODRAW;主力拉升:拉,COLORRED,NODRAW;主力派送:派,COLORGREEN,NODRAW;主力砸盘:落Z COLORFFAAOO,NODRAW;JCCOUNT:=COUNT(CROSS(DIF,DEA),BARSLAST(DEA>=0));低位金叉:CROSS(DIF,DEA) AND DIF<-0.1,COLORWHITE,NODRAW;二次金叉:CROSS(DIF,DEA) AND DEA<0 ANDCOUNT(JCCOUNT=2,21)=1,COLORRED,NODRAW;STICKLINE(低位金叉,0,0.08,2,0),COLORFFOOFF;DRAWTEXT(低位金叉,0. 16;低位金叉'),COLORWHITE;A1:=BARSLAST(REF(CROSS(DIF,DEA)Z1));A2:=BARSLAST(REF(CROSS(DEA,DIF),1));底背离:REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) ANDCROSS(DIF Z DEA),COLORGREEN,NODRAW;STICKLINE(底背离,0,0.03,2,0),COLOROOFFOO;DRAWTEXT(底背离,0.12;底背离)COLORFFOOFF;双金叉:低位金叉AND二次金叉,COLORFFOOFF,NODRAW;三全项:低位金又AND二次金又AND底背离,COLORWHITE ,NODRAW;顶背离:=REF(CLOSE,A2+l)vCLOSE AND REF(DIF,A2+1)>DIF AND CROSS(DEA,DIF); STICKLINE(二次金叉,0,0.06,2,0),COLORFFCCOO;DRAWICON(二次金叉,DEA*0.9,l);DRAWTEXT(二次金叉,0.2,'二次金叉*),COLORYELLOW;DRAWTEXT(低位金又AND二次金又AND底背离,0.25;三全项'),COLOROOOOFF,LINETHICK2;IF(DIF>REF(DIF,1),DIF,DRAWNULL),COLORRED,LINETHICK2;IF(DIFvREF(DIF,l),DIF,DRAWNULL),COLORGREEN,UNETHICK2;{散户看盘}散户线:100*(HHV(HIGH,M)・CLOSE)/(HHV(HIGH,M)・LLV(LOW,M));RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;K:=SMA(RSV,5Z1);D:=SMA(K,3,1);J:=3*K.2*D;主力线:EMA(J,6),COLORYELLOW;VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),34)*100;VAR4: = EMA(IF(CLOSE*1.3,VAR3*10,VAR3/10),3);VAR5:=LLV(LOW,30);VAR6:=HHV(VAR4,30);VAR7:=IF(MA(CLOSE,58),1,0);VAR8:=EMA(IF(LOWv=VAR5,(VAR4+VAR6*2)/2,0),3)/618*VAR7;VAR9:=IF(VAR8>100z100,VAR8);吸筹:STICKLINE(VAR9>・120,0,VAR9,6,1),COLORMAGENTA;AA3:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW Z21))*100-10;AA4:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;AA5:=SMA(AA4,13,8);走势:CEILING(SMA(AA5Z13,8)),COLORRED,LINETHICK2;AA6:=SMA(AA3,21,8);买观注:STICKLINE(走势-AA6v・65,0,7,15,1);DRAWICON(FILTER(J>REF(J,1)AND 走势>=REF(走势,1)AND 走势<25 ,5),走势,1); 卖观注:STICKLINE(走势・AA6>85,98,90,15,1),COLORFFFFOO;DRAWICON(FILTER(JvREF(J,l)AND 走势v=REF(走势,1)AND J>85 ,5),J,2);。

通达信指标公式源码大全

通达信指标公式源码大全

【通达信】魔鬼操盘(主图)-指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上:均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOTLINETHICK2 ;魔鬼通道下:均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2; VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1 、05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图)-指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0 、618*REF(A,1)+0 、382*REF(A,2)+0 、236*REF(A,3)+0146*REF(A,4))/2 、382;YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32))/4;YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A, 2),32))/4;SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5) +4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0 、5,1),COLOR4440FF;STICKLINE(KX1,O,L,0 、5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0 、5,0),COLOR4440FF;STICKLINE(KX2,C,L,0 、5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0 、5,1),COLORFFFF33;STICKLINE(KX3,O,L,0 、5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0 、5,0),COLORFFFF33;STICKLINE(KX4,C,L,0 、5,0),COLORFFFF33;【通达信】牛劲十足(副图)-指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:= 上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAND( 上攻周期,RGB(255,120,120),3,RGB(0,0,0)); DRAWBAND(JSC,RGB(0,0,255),0 、5,RGB(0,0,0));STICKLINE(COUNT( 上攻周期>3,5)>=3 AND SG,0, 上攻周期,1 、5,0),COLORRED;XG: COUNT(COUNT( 上攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K 线(副图)-指标公式源码VAR1:=REF(OPEN,1);VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100VAR3:=REF(CLOSE,1);VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1);VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100; VAR7:=REF(LOW,1);VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ; STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8>VAR4,VAR4,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR8<VAR4,VAR4,VAR6,0 、5,1),COLORRED ,;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6<VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 ANDVAR6>VAR2,VAR2,VAR8,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8<VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0 、5,1),COLORRED , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR6>VAR4,VAR4,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0 、5,1),COLORGREEN ,; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 AND VAR6>VAR4,VAR2,VAR8,0 、5,1),COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0 、5,1), COLORGREEN , ; STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0 、5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线)-指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5* REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3; DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0)); 短线:VAR1,COLORWHITE; 中线:VAR6,COLORYELLOW; 金叉:短线>中线AND REF( 短线,1)=REF( 中线,1),NODRAW; 下跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)AND VOL>2*REF(VOL,1)AND CLOSE>VAR1; 立桩量 )),REF(LOW,BARSLAST( 立桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C>=O,C,O,2 、5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1 、5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;STICKLINE(C>=O,C,O,0 、5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2 、5,0),COLOR454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1 、5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,05,0),COLOR858500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(Y 量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST (CLOSE>REF(HIGH,1),1,IF(BARSLAST(CLOSE>REF(HIGH,2),1,IF(BARSLAST(CLOSE>REF(HIGH,3),1,0))); 突立桩量)=1 AND立桩量)=2 AND立桩量)=3 AND立桩 立桩破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSLAST(量 )),REF(HIGH,BARSLAST( 立桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLAST(EAR-1992)*365+INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(MONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=BARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3)+T3,NODRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODRAW;周10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10,LINETHICK2;【通达信】牛准反弹(快线、慢线)- 指标公式源码N:=9;M1:=3;M2:=3;P:=9;快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;慢线:=SMA( 快线,M1,1);ELI 空:=SMA( 慢线,M2,1);ELI 牛股:=IF(BARSLAST(CROSS( 慢线,ELI 空))<P AND CROSS( 慢线,ELI 空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4 、1,1)/SMA(ABS(CLOSE-LC),4 、1,1)*100; 牛准反弹:=CROSS(RSI,11)*80;XG: 牛准反弹OR ELI 牛股;【通达信】启动提示(平台线、启动线)- 指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10 、158,COLORRED;平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10 、158,4),COLORFF00FF; 平台线:LLV(SUM( EMA((C+L)/2,2),5)/10 、158,10),COLORFFFFFF; 强弱线:EMA( 启动线,21),COLORYELLOW;STICKLINE( 平台线<启动线,启动线,平台线,0 、1,0),COLORFFCCAA; STICKLINE( 平衡线<启动线,启动线,平衡线,0 、1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1 、1,13)-EMA((C+L)/2,3)-((C+L)/2)*0 、1; VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5, 2)/10,-1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8), 强弱线,强弱线+0、2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8),强弱线+0 、35,' 注意控制'),LINETHICK3,COLORFFAACC;【通达信】平台启动(主图)-指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;石:=SMA( 灵,13,8);仙:=CEILING(SMA( 石,13,8));编著:=SMA( 圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE( 仙-编著>75,AABB,AABB*0 、99,15,1),COLOR0000FF;VARZT:=BARSLAST( 平台启动);DRAWTEXT(VARZT=1,0 、99*(AABB+AABB*0 、98)/2,' 平台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点)- 指标公式源码JJ:=(CLOSE+HIGH+LOW)/3;A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2 、5,1 、5),LINETHICK2,COLORRED;牛线:3*M2-2* 分水岭,LINETHICK2,COLORFF00FF ;熊线:4* 分水岭-3*M2,LINETHICK2,COLORGREEN;通达信指标公式源码大全IF (牛线<= 熊线,牛线,熊线),COLORGREEN,LINETHICK2;IF (分水岭<=熊线,分水岭,熊线),COLORGREEN,LINETHICK2;IF(牛线>REF(熊线,1), 熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1;股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA( 股道*C/100+ 基础,3),COLORGRAY,LINETHICK1;。

通达信资金指标公式源码

通达信资金指标公式源码

通达信资金指标总亿:AMOUNT/100000000,COLORFF00FF,NODRAW;VAR1:=AMOUNT/((HIGH-LOW)*2-ABS(CLOSE-OPEN));流入亿:IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+ (CLOSE-LOW)),AMOUNT/2))/100000000,COLORRED,NODRAW;流出亿:IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-AMOUNT/2))/100000000,COLOR00FF00, NODRAW;额亿:流入亿+流出亿,COLORFFFF00,NODRAW;{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}YUWEI:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;{量:(线),VOLSTICK;}分界:0;STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR0D0C6A; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0D06AA; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.5,0)COLOR2108C1; STICKLINE(YUWEI>0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR9F5DFF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR22736F; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR22AAD5; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR10C7BF; STICKLINE(YUWEI>0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR80FFFF; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,4,0)COLOR1B7411; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,3,0)COLOR17A715; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,1.5,0)COLOR08D306; STICKLINE(YUWEI<0 AND YUWEI<REF(YUWEI,1),0,YUWEI,0.5,0)COLOR40FF00; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,4,0)COLOR080E71; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,3,0)COLOR0B0E8C; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,1.52,0)COLOR0905B0; STICKLINE(YUWEI<0 AND YUWEI>REF(YUWEI,1),0,YUWEI,0.5,0)COLOR0204F2; DRAWTEXT(CROSS(0,YUWEI),0,'空');DRAWTEXT(CROSS(YUWEI,0),0,'买');{趋势}主力:=(CLOSE*2+HIGH+LOW+O)/4;散户:=EMA(主力,11)-EMA(主力,22);量比:=EMA(散户,5);量: (-2)*(散户-量比)*5,COLOR00FF00,LINETHICK5;量1: 2*(散户-量比)*5,COLOR0000FF,LINETHICK5;轴:0;。

通达信指标源码公式短线利器指标公式.docx

通达信指标源码公式短线利器指标公式.docx

通达信短线利器指标公式短线利器系列•让人吃惊的超准主图黄金K线,图片展示威力A:=AMOUNT/V/100;VARA:=EMA((((A-EMA(A,13))/EMA(A Z13))*(0-100)),5);QQ:=EMA(((VARA/10)+EMA(A,13))z0);行情线: = MA(A,1);重心:=(C+0.618*REF(C,l)+0.382*REF(C,l)+0.236*REF(C z3)+0.146*REF(C z4))/2.382;【操盘线】:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW丄INETHICK4; 【黄金线】:IF(重心>=【操盘线】,【操盘线】,DRAWNULL),COLORRED丄INETHICK2;【空仓线】:IF(重心v【操盘线】,【操盘线】,DRAWNULL),COLOR238E23丄INETHICK2;变盘:EMA(CLOSE Z5),LINETHICK2Z COLORBLUE;白金:IF(变盘>REF(变盘,1),变盘,DRAWNULL),COLORRED 丄INETHICK2; 空仓:IF(变盘vREF(变盘,1),变盘QRAWNULL),COLORGREEN 丄INETHICK2;AA05:MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05Z1))/REF(AA05/1),3)*100,3,1);加速度5:EMA((速度5・REF(速度5,1)),3),NODRAW;IF(BB05>30 AND AA05>REF(AA05z l), AA05,DRAWNULL);AA10:=MA(C,10);AA20: = MA(C z20);BB10:=ATAN((AA10/REF(AA10z l)-l)*100)*180/3.1416;IF(BB05<0 AND AA05<REF(AA05,l), AA05,DRAWNULL); AA30:=MA(C,30);三拾日乖离率:(C-AA30)/AA30*100,NODRAW;VARl:=(AA20-AA30)>REF((AA20-AA30)z l) AND AA20>REF(AA20z l) ANDAA30>REF(AA30,l);VAR2:=(AA30-AA20)<REF((AA30-AA20),l) AND AA30<REF(AA30,l);BB30:=ATAN((AA30/REF(AA30,l)-l)*100)*180/3.1416;IF(BB30>15 AND AA30>REF(AA30,l), AA30,DRAWNULL);强势狙击: = FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10); 加仓: = FILTER(COUNT(CROSS(BB05,30),5)> = 1 AND AA05>REF(AA05,l) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,l)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10);清仓: = FILTER(COUNT(CROSS(30,BB05),5)> = 1 AND (C>AA30 OR O>AA30)AND AA05<REF(AA05z l) AND AA10<REF(AA10,l)z10);DRAWTEXT(加仓Z LOW*0.98,'-加仓'),COLORRED;JC:=CROSS(0,五日乖离率)AND三拾日乖离率<REF(AA10,l);减仓:=FILTER(JC,10);MR:=COUNT(CROSS(五日乖离率,0),3)> = 1 AND三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,l) AND (C/REF(C,l)-l)*100>5 AND REF(C,l)<AA30; 买入:=FILTER(MR,10);DRAWTEXT(减仓,HIGH*l・02J-减仓COLORCYAN;DRAWTEXT(买入丄OW*0・98J-买入'),COLORYELLOW;DRAWTEXT(清仓,HIGH*l・02J-清仓COLORGREEN;DRAWTEXT(强势狙击丄OW*0・98,-强势狙击 *),COLORYELLOW;VAR21:=MAX(ABS(HIGH-AMOUNT/VOL/100),ABS(AMOUNT/VOL/100-LOW)); VAR3:=ABS((OPEN+CLOSE)/2-AMOUNT/VOL/100);MV:=(VAR21+VAR3)/AMOUNT*VOL*100*50;DRAWTEXT(MV>6 AND Lv=LLV(L,10)丄*0.95异动J’COLORCYAN;。

通达信指标公式源码资金显示 主图指标

通达信指标公式源码资金显示 主图指标

资金显示主图指标{资金显示}DRAWRECTREL(0,500,147,999.4,IF(120,RGB(10,0,0),0));超B:=L2_AMO(0,2)/10000.0;大B:=L2_AMO(1,2)/10000.0;中B:=L2_AMO(2,2)/10000.0;小B:=L2_AMO(3,2)/10000.0;超S:=L2_AMO(0,3)/10000.0;大S:=L2_AMO(1,3)/10000.0;中S:=L2_AMO(2,3)/10000.0;小S:=L2_AMO(3,3)/10000.0;TESTSKIP(NOT(超B OR 大B OR 中B OR 小B OR 超S OR 大S OR 中S OR 小S)!=0);大宗进:=(超B)+(大B),NODRAW;大宗出:=(超S)+(大S),NODRAW;非大宗进:=(中B)+(小B),NODRAW;非大宗出:=(中S)+(小S),NODRAW;大宗进限制:=IF((超B+大B)=0,0,大宗进);大宗出限制:=IF((超S+大S)=0,0,大宗出);非大宗进限制:=IF(中B+小B=0,0,非大宗进);非大宗出限制:=IF(中S+小S=0,0,非大宗出);主力净流入:=(超B+大B)-(超S+大S),COLORRED,NODRAW;散户净流入:=(中B+小B)-(中S+小S),COLORRED,NODRAW;净流入:=(超B+大B+中B+小B)-(超S+大S+中S+小S),COLORRED,NODRAW; 大单流入:=(超B+大B)/(超B+大B+超S+大S)*100,NODRAW;大单流入限制:=IF((超B+大B+超S+大S)=0,0,大单流入);大单流出比:=(超S+大S)/(超B+大B+超S+大S)*100,NODRAW;大单流出限制:=IF((超B+大B+超S+大S)=0,0,大单流出比);总流入比:=(超B+大B+中B+小B)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;总流出比:=(超S+大S+中S+小S)/(超B+大B+中B+小B+超S+大S+中S+小S)*100,NODRAW;成交总量:=(超B+大B+中B+小B+超S+大S+中S+小S),NODRAW;机构参与度:=(超B+超S+大B+大S)/成交总量*100,COLORYELLOW,NODRAW; 大单强度:=(超B+大B-超S-大S)/成交总量*100,COLORYELLOW,NODRAW;大单强度限制:=IF(大单强度=0,-100,大单强度);大单强度比:=IF(大单强度>=0,(大单强度限制+100)/2,100-ABS((大单强度限制-100)/2)),NODRAW;超单强度:=(超B-超S)/(超B+超S)*100,COLORYELLOW,NODRAW;超单强度限制:=IF(超单强度=0,-100,超单强度);超单强度比:=IF(超单强度>0,(超单强度限制+100)/2,IF(超单强度<0,100-ABS((超单强度限制-100)/2),0)),NODRAW;DAZHIV:=CONST(MAX(ABS(大宗进),MAX(ABS(大宗出),MAX(ABS(非大宗进),ABS(非大宗出))))),NODRAW;DRAWRECTREL(0,CONST(930-(ABS(大宗进)*250/DAZHIV)),35,950,IF(CONST(大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(37,CONST(930-(ABS(大宗出)*250/DAZHIV)),72,950,IF(CONST(大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(75,CONST(930-(ABS(非大宗进)*250/DAZHIV)),110,950,IF(CONST(非大宗进>0),RGB(255,0,0),RGB(23,125,255)));DRAWRECTREL(112,CONST(930-(ABS(非大宗出)*250/DAZHIV)),147,950,IF(CONST(非大宗出>0),RGB(23,125,255),RGB(255,0,0)));DRAWRECTREL(150,CONST(940-(ABS(净流入)*250/DAZHIV))-20,190,950,IF(CONST(净流入>0),RGB(200,0,0),RGB(0,125,50)));DRAWTEXT_FIX(CURRBARSCOUNT=1,0.0001,0.9,0,STRCAT('',CON2STR(大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.036,0.9,0,STRCAT('',CON2STR(大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.074,0.9,0,STRCAT('',CON2STR(非大宗进/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.111,0.9,0,STRCAT('',CON2STR(非大宗出/1,0))),COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.150,0.9,0,STRCAT('',CON2STR(净流入/1,0))),COLORYELLOW;DRAWTEXT_FIX(1,0.000,0.99,0,STRCAT(STRCAT('主力',CON2STR(主力净流入,0)),'万')),COLORMAGENTA;DRAWTEXT_FIX(1,0.078,0.99,0,STRCAT(STRCAT('散户',CON2STR(散户净流入,0)),'万')),COLORCYAN;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.145,0.99,0,'净流入:(万)'),COLORYELLOW;主力买力度:=LARGEINTRDVOL*1000/VOL;主力卖力度:=LARGEOUTTRDVOL*1000/VOL;AAD:=CONST(MAX(ABS(主力买力度),ABS(主力卖力度)))*4,NODRAW; DRAWRECTREL(0,515,CONST(ABS(主力买力度)*560/AAD),568,IF(CONST(主力买力度)>0,RGB(255,0,0),RGB(0,50,0)));DRAWRECTREL(0,570,CONST(ABS(主力卖力度)*560/AAD),623,IF(CONST(主力卖力度)>0,RGB(0,50,0),RGB(255,0,0)));DRAWTEXT_FIX(1,0,0.524,0,STRCAT('主买力度:',CON2STR(主力买力度,0))),COLORYELLOW;DRAWTEXT_FIX(1,0,0.576,0,STRCAT('主卖力度:',CON2STR(主力卖力度,0))),COLORYELLOW;上涨家数:INDEXADV,COLOR0080FF,NODRAW;下跌家数:INDEXDEC,COLORGREEN,NODRAW;{DDE显示}DDX:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*1000/FINANCE(7);DDY:=IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0); DDZ:=IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM *100,0);DRAWRECTREL(150,500,192,540,IF(CONST(DDX)>0,RGB(255,0,0),RGB(0,50, 0)));DRAWRECTREL(150,545,192,585,IF(CONST(DDY)>0,RGB(255,0,0),RGB(0,50, 0)));DRAWRECTREL(150,590,192,630,IF(CONST(DDZ)>0,RGB(255,0,0),RGB(0,50, 0)));DRAWTEXT_FIX(1,0.153,0.500,0,STRCAT('DDX:',CON2STR(DDX,0))),COLORY ELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.548,0,STRCAT('DDY:',CON2STR(DDY,0))),COLORY ELLOW,COLORWHITE;DRAWTEXT_FIX(1,0.153,0.596,0,STRCAT('DDZ:',CON2STR(DDZ,0))),COLORY ELLOW,COLORWHITE;。

【通达信】精确买卖指标公式源码

【通达信】精确买卖指标公式源码

【通达信】精确买卖指标公式源码DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); {选股设JC=10即可} DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);W底选股:IF(SSS-SSB=2 AND SSS>REF(SSS,1),-22,0),LINETHICK2,COLORFFFF00;IF(SSS-SSB=2 AND SSS>REF(SSS,1),-12,0),LINETHICK2,COLORFFFF00;DRAWTEXT(A1,-10,'W底'),COLORYELLOW;N:=20;MID:=MA(C,N);VART1:=POW((C-MID),2);VART2:=MA(VART1,N);VART3:=SQRT(VART2);UPPER:=MID+2*VART3;LOWER:=MID-2*VART3;BOLL:=REF(MID,1);UB:=REF(UPPER,1);LB:=REF(LOWER,1);LOWER1:=MID-VART3;LB1:=REF(LOWER1,1);股价线:(C-LB1)/(UB-LB)*100,COLORGREEN, LINETHICK1;趋势线:MA(股价线,6),COLORRED, LINETHICK3;90,COLORGREEN, LINETHICK1;50,COLORWHITE, LINETHICK1;0,COLORWHITE, LINETHICK1;VARC:=SMA(ABS(L-REF(L,1)),3,1)/SMA(MAX(L-REF(L,1),0),3,1);准备建仓:EMA(IF(L<= LLV(L,30),VARC,0),3),COLORFF00FF,LINETHICK2;VARO5:=LLV(LOW,27);VARO6:=HHV(HIGH,34);VARO7:=EMA((CLOSE-VARO5)/(VARO6-VARO5)*4,4)*25;建仓区: IF((VARO7<10),80,100) ,COLORFFFF00,LINETHICK3;IF((VARO7<10),85,100) ,COLORBLACK,LINETHICK2;下单: IF(CROSS(3*SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100,5,1),3,1),10),38,0),STICK ,COLORYELLOW, LINETHICK4;DRAWTEXT(下单,40,'下单'),COLORGREEN;BIAS1:=(C-MA(C,6))/MA(C,6)*100;BIAS2:=(C-MA(C,12))/MA(C,12)*100;BIAS3:=(C-MA(C,24))/MA(C,24)*100;BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;乖离1:=MA(BIAS,3);低买:IF(CROSS(BIAS,乖离1) AND 乖离1<-9,28,0),COLORRED,LINETHICK2;IF(CROSS(BIAS,乖离1) AND 乖离1<-9,18,0),COLORRED,LINETHICK2;STICKLINE(CROSS(BIAS,乖离1) AND 乖离1<-9,-12,0,8,0),COLORYELLOW;DRAWTEXT(低买,33,'低买'),COLORRED;TTR:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),5);HD:=(HIGH - REF(HIGH,1));LD:=(REF(LOW,1) - LOW);DMP:=(SUM(IF(((HD > 0) AND (HD > LD)),HD,0),5) );DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),5);神偷线:=(((DMP ) * 100) /TTR);辅助线:=((DMM * 100) /TTR);动向趋势线:=(MA(((ABS((辅助线 - 神偷线)) / (辅助线 + 神偷线)) * 100),3));ADXR:=((动向趋势线 + REF(动向趋势线,3)) / 2);VAR3:=MA(CLOSE,2);VAR7:=REF(VAR3,1);【强弱】:=((SMA(MAX((VAR3 - VAR7),0),5,1) / SMA(ABS((VAR3 - VAR7)),5,1)) * 100);准备:(IF(((动向趋势线> 88) AND (神偷线< 5.8)),68,0)),LINETHICK1,COLORFF00FF;(IF(((动向趋势线> 88) AND (神偷线< 5.8)),48,0)),LINETHICK1,COLORFF00FF;DRAWTEXT(准备,60,'准备'),COLORFF00FF;TYP := (HIGH + LOW + CLOSE)/3;CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*500-250;K:=SMA(RSV,3,1);LC := REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*500-250;X:CROSS(CCI,-100) AND K<-100 ;X改成:CROSS(CCI,-100) AND K<-100 AND CROSS(RSI1,-90);MA2:=EMA(C,2);MA5:=EMA(C,5);MA13:=EMA(C,13);MA34:=EMA(C,34);MA55:=EMA(C,55);YCX:=MA5>=REF(MA5,1);H1:=MAX(MAX(MA5,MA13),MA34);L1:=MIN(MIN(MA5,MA13),MA34);一阳穿三线:= H1<C AND O<L1 AND YCX AND MA2>REF(MA2,1);满仓选股:IF(一阳穿三线,88,0),COLORFFFF00,LINETHICK2;IF(一阳穿三线,58,0),COLORFFFF00,LINETHICK2;DRAWTEXT(一阳穿三线,88,'满仓'),COLORYELLOW;VAR2:=0.0001*AMOUNT,;MA1:=0.0001*MA(AMOUNT,5);M2:=0.0001*MA(AMOUNT,10);百日地量:(VAR2,100)=VAR2,STICK,COLORRED,LINETHICK0;DRAWTEXT(百日地量,-12,'地量'),COLORRED;VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,73);SD:= EMA(SK,2);买点选股:(CROSS(SK,SD) AND SK<-0.04 AND (C-REF(C,1))/REF(C,1)>=0.03)OR (CROSS(SK,SD) AND SK<=-0.14 ) OR (CROSS(SK,SD) AND SK<=0.05AND (V/MA(V,5)>2 OR C/REF(C,1)>0.035));IF(买点选股,28,0),COLORYELLOW,LINETHICK2;IF(买点选股,18,0),COLORYELLOW,LINETHICK2;DRAWTEXT(买点选股,28,'买点'),COLORYELLOW;AA05:=MA(C,5);五日乖离率:=(C-AA05)/AA05*100;BB05:=ATAN((AA05/REF(AA05,1)-1)*100)*180/3.1416;速度5:=SMA(EMA((AA05-REF(AA05,1))/REF(AA05,1),3)*100,3,1);加速度5:=EMA((速度5-REF(速度5,1)),3);AA10:=MA(C,10);AA20:=MA(C,20);BB10:=ATAN((AA10/REF(AA10,1)-1)*100)*180/3.1416;AA30:=MA(C,30);三拾日乖离率:=(C-AA30)/AA30*100;(AA20-AA30)>REF((AA20-AA30),1) AND AA20>REF(AA20,1) AND AA30>REF(AA30,1);(AA30-AA20)<REF((AA30-AA20),1) AND AA20<REF(AA20,1) AND AA30<REF(AA30,1);BB30:=ATAN((AA30/REF(AA30,1)-1)*100)*180/3.1416;强势狙击选股:FILTER(BB30>30 AND BB10>45 AND CROSS(BB05,60),10);加仓:=FILTER(COUNT(CROSS(BB05,30),5)>=1 AND AA05>REF(AA05,1) AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA10>REF(AA10,1)AND 加速度5>REF(加速度5,1) AND 速度5>REF(速度5,1) ,10) ;MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;青云直上选股:IF(FILTER(MR,10),30,0),COLORGREEN,LINETHICK2;IF(FILTER(MR,10),20,0),COLORGREEN,LINETHICK2;DRAWTEXT(青云直上选股,30,'青云直上'),COLORGREEN;QUANCLOSE:=(DMA(CLOSE,VOL/SUM(VOL,13)))/DMA(CLO SE,VOL/SUM(VOL,13))*100<=-28 AND (CLOSE-DMA(CLOSE,VOL/SUM(VOL,34)))/DMA(CLOSE,VOL/SUM(VOL,34 ))*100<=-19AND C/REF(C,25)<=1.1 AND IF((((HIGH > (LOW * 1.051)) AND (COUNT((HIGH > (LOW * 1.051)),5) > 1)) AND ((((CLOSE / MA(CLOSE,40)) * 100) < 78) OR(((CLOSE / MA(CLOSE,60)) * 100) < 74))),2,0) AND(SMA(MAX(C-REF(C,2),0),7,1)/SMA(ABS(C-REF(C,2)),7,1)*100)<15 AND IF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)>REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)AND REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),1)<REF(SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1),2)AND SMA((CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100,2,1)<23 ,1.5,0) AND FILTER((C/MA(C,48))<0.75 AND (C/MA(C,70))<0.70 AND((C-L)/C>0.02 OR C>REF(C,1)*1.01) AND V<REF(V,1)*2.8 AND (COUNT(C<O*0.93,2)=2 OR COUNT(H/L>1.1,5)>3),3) ;DRAWTEXT(QUANCLOSE,88,'弱市百发百中'),COLORFFFF00;IF(QUANCLOSE,88,0),COLORFFFF00,LINETHICK2;IF(QUANCLOSE,60,0),COLORFFFF00,LINETHICK2;AA:=1;BB:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;CC:=IF(AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100>100,1 00,AMOUNT/C/HHV(AMOUNT,9)/HHV(C,9)*100);DD:=CC/BB;量异动:IF(AA,DD/REF(DD,1),0);STICKLINE(量异动>=0,0,量异动,8,0);STICKLINE(量异动>=0,0,量异动,4,0);选股:DD/REF(DD,1);CROSS(-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)),-45)AND CLOSE>SMA(CLOSE,60,5) AND SMA(CLOSE,23,5)>REF(SMA(CLOSE,23,5),1)AND SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1)>REF(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1),1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;逃顶:CROSS(80,RSI)*88,LINETHICK2 ,COLORGREEN;CROSS(80,RSI)*58,LINETHICK2 ,COLORGREEN;DRAWTEXT(CROSS(80,RSI),88,'逃顶 '),COLORGREEN;CROSS(-100*(HHV(HIGH,55)-CLOSE)/(HHV(HIGH,55)-LLV(LOW,55)),-45)AND CLOSE>SMA(CLOSE,60,5) AND SMA(CLOSE,23,5)>REF(SMA(CLOSE,23,5),1)AND SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1)>REF(SMA(SMA((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100,13,1),23,1),1)COLORBLUE,LINETHICK2;{W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));W4 AND COUNT(W4,5)=1; };。

通达信公式指标大集合(源码)

通达信公式指标大集合(源码)

通达信公式指标大集合(源码)[通达信]拉升在即——《斜面推高》短线选股公式参数:N(1,100,15),P(1,20,9);A:=((C-REF(C,N))/REF(C,N))*100;EA:=CROSS(C>O,N)>N/2;EC:=MA(C,5)>MA(C,10);B:A<=P AND EA AND EC AND MIN(C,O)>MA(C,10);[通达信]主图指标——优化后的鳄鱼线{鳄鱼线}趋势:FORCAST(C,13),COLORFFFFFF,LINETHICK1;七:MA(C,7),COLOR00FFFF,LINETHICK2;涨:IF(MA(CLOSE,7)>REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAW NULL),COLORRED,LINETHICK2;平:IF(MA(CLOSE,7)=REF(MA(CLOSE,7),1),MA(CLOSE,7),DRAW NULL),COLOR00FFFF,LINETHICK3;跌:IF(MA(CLOSE,7) C3:=REF(C,1);涨停:=IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;乖离线:=((C-REF(COST(90),1))/20 250)*1.20;W1:=C=HHV(C,20);W2:=BARSLAST(W1);W3:=IF(W2>0,REF(C,W2),REF(C,W2));W4:=CROSS(C,REF(W3,1));突破盘整:=W4 AND COUNT(W4,5)=1;DRAWTEXT(突破盘整,L-0.10,1);VAR1:=(H L)/2;上唇:REF(SMA(VAR1,5,1),3),COLORGREEN,LINETHICK1;牙齿:REF(SMA(VAR1,8,1),5),COLORRED,LINETHICK1,CROSSDOT;下颚:REF(SMA(VAR1,13,1),8),COLORBLUE,LINETHICK4,POINTDOT;通达信指标公式:操盘手(超准!)EMA13:EMA(C,13),COLORWHITE;EMA21:EMA(C,21),COLORYELLOW;EMA34:EMA(C,34),COLORFF00FF;EMA120:EMA(C,120),COLORFFCCCC;EMA250:MA(C,250),COLORFFCC66;X1:=(C L H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);STICKLINE(X2>X3 AND C>EMA13,LOW,HIGH,0.1,1),COLORRED;STICKLINE(X2>X3 AND C>EMA13,CLOSE,OPEN,5,1),COLORRED;STICKLINE(X2 STICKLINE(X2 DRAWTEXT(CROSS(X2,X3),L-0.09,'关注'),COLORWHITE,LINETHICK2;GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5));GR2:=EMA13>EMA21 AND EMA21>EMA34 AND EMA13>REF(EMA13,1);GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,GR1),GR1);GR4:=H=HHV(H,GR1);GR5:="MACD.MACD"(12,26,9) GR6:=GR2 AND GR3 AND GR4;GR7:=GR2 AND GR3 AND GR4 AND GR5;GR8:=GR6 AND GR7;LC := REF(CLOSE,1);RSI6:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;BIAS5:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;换手:=100*V/CAPITAL;DRAWTEXT(FILTER(RSI6>95 AND 换手>=7,3) OR FILTER(BIAS5>9,3) OR GR8,H*1.04,'警惕'),COLOR00FF00,LINETHICK2;BB13:=ATAN(EMA13-REF(EMA13,1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA13>REF(EMA13,1),10),EMA8,'全仓进'),COLORWHITE,LINETHICK2;网上吹嘘要几千元的“涨停先锋Ⅲ(波段指标)”【通达信版】副图:A4:=MA(CLOSE,20);A5:=(CLOSE>MA(CLOSE,5));A6:=(MA(CL OSE,5)>MA(CLOSE,10));A7:=(CLOSE>MA(CLOSE,10));A8:=(MA(CLOSE,5)>MA(CLOSE ,20));A9:=(CLOSE>MA(CLOSE,20));A10:=REF(A4,1);A11:=(A4> A10);AVX:(((((IF(A5,10,(0 - 10)) IF(A6,10,(0 - 10))) IF(A7,10,(0 -10))) IF(A8,10,(0 - 10))) IF(A9,10,(0 - 10))) IF(A11,10,(0 -10))),COLOR0000FF;AVX零轴:0,COLOR00FFFF;实现利润最大化的法宝——波段操作指标(AVX)很多投资者都曾有过这样的苦恼:留不住好股票。

通达信指标公式源码 交易系统

通达信指标公式源码 交易系统

HJX:=MA(C,20);XHJX:=(MA(CLOSE,20)+MA(CLOSE,30))/2,COLORYELLOW;EXP1:=EXPMA(CLOSE,12);EXP2:=EXPMA(CLOSE,50);EXP3:=EXPMA(CLOSE,7);VAR20:=LLV(LOW,10);VAR30:=HHV(HIGH,25);动力线:= EMA((CLOSE-VAR20)/(VAR30-VAR20)*4,4);DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);BOLL:=MA(CLOSE,20);UPPER:=BOLL+2*STD(CLOSE,20);LOWER:=BOLL-2*STD(CLOSE,20);GK1:=EMA(CLOSE,13),COLORYELLOW;GK2:=EMA(CLOSE,21),COLORYELLOW;GK3:=EMA(CLOSE,34),COLORYELLOW;GK4:=EMA(CLOSE,55),COLORRED;GK5:=EMA(CLOSE,89),COLORRED;GK6:=EMA(CLOSE,144),COLORRED;GK7:=EMA(CLOSE,233);GK8:=EMA(CLOSE,377);GK9:=EMA(CLOSE,610);反弹阻力1:=MA(CLOSE,5) ;反弹阻力2:=MA(CLOSE,10) ;LC:=REF(CLOSE,1);RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; RSI2:=SMA(MAX(CLOSE-LC,0),12,1)/SMA(ABS(CLOSE-LC),12,1)*100; RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;BIAS:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;BIASMA:=MA(BIAS,6);MACD:=(DIF-DEA)*2;T1:=1;M3:=EMA(CLOSE,3);M8:=EMA(CLOSE,8);M13:=EMA(M8,13);M62:=EMA(M8,55);VAR1:=EMA(M13,62);M81:=EMA(M62,81);M144:=EMA(VAR1,144);M250:=EMA(VAR1,250);VAR2:=(CLOSE+HIGH+LOW)/(3);VAR3:=(EMA(VAR2,13))*(T1);VAR4:=(REF(VAR3,2))*(T1);VAR300:=(EMA(VAR2,12))*(T1);VAR400:=(REF(VAR300,1))*(T1);VAR3000:=(EMA(VAR2,13))*(T1);VAR4000:=(REF(VAR3000,1))*(T1);VAR310:=(EMA(VAR2,16))*(T1);VAR410:=(REF(VAR310,1))*(T1);DRAWTEXT((GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6 AND (REF(OPEN,1)<REF(C,2) OR REF(OPEN,2)<REF(C,3) OR OPEN<REF(C,1) OR C<OPEN) AND(REF(CLOSE,1)-REF(CLOSE,2))/REF(CLOSE,2)<0.09 AND(C-REF(C,1))/REF(C,1)<0.08 AND (CROSS(VAR3,VAR4) AND((REF(CLOSE,1)>GK1 AND REF(CLOSE,1)<GK2 AND LOW>GK1 ANDC>REF(C,1) AND (H-C)/C<0.015 OR (LOW<GK1 AND HIGH>GK3 AND CLOSE>REF(CLOSE,1) AND (HIGH-CLOSE)/CLOSE<0.015)) OR(REF(CLOSE,1)>GK2 AND REF(CLOSE,1)<GK3 AND LOW>GK2 ANDC>REF(C,1) AND (H-C)/C<0.015 OR (LOW<GK1 AND HIGH>GK3 AND CLOSE>REF(CLOSE,1) AND (HIGH-CLOSE)/CLOSE<0.015) ) OR(REF(CLOSE,1)>GK3 AND REF(CLOSE,1)<GK4 AND LOW>GK3 ANDC>REF(C,1) AND (H-C)/C<0.015 OR (LOW<GK1 AND HIGH>GK3 AND CLOSE>REF(CLOSE,1) AND (HIGH-CLOSE)/CLOSE<0.015)) OR ((OPEN-LOW)/OPEN<0.002 AND CLOSE>REF(CLOSE,1) AND(HIGH-CLOSE)/CLOSE<0.015 )) OR (CROSS(VAR3,VAR4) AND (CLOSE<REF(CLOSE,1) OR CLOSE<OPEN AND CLOSE>GK1))) OR (CROSS(VAR300,VAR400) AND(REF(CLOSE,2)-REF(LOW,2))/REF(CLOSE,2)<0.035 AND(CEILING(CLOSE)>FLOOR(GK1) OR CEILING(CLOSE)=FLOOR(GK1)) AND(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.035 AND GK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6)),LOW*0.98,'转'),COLORYELLOW ;DRAWTEXT((CROSS(VAR4,VAR3) OR (CROSS(VAR400,VAR300) ANDGK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6) AND TFILTER((CROSS(VAR4,VAR3)) OR (CROSS(VAR400,VAR300) AND GK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 ANDGK5>GK6) ,((CROSS(VAR4,VAR3)) OR (CROSS(VAR400,VAR300) ANDGK1>GK2 AND GK2>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6)),2)) OR (CROSS(VAR4000,VAR3000)),HIGH*1.02,'转'),COLORGREEN; DRAWTEXT(CROSS(VAR3000,VAR4000) && GK1>REF(GK1,1) &&((REF(C,1)<REF(C,2) OR REF(C,2)<REF(C,3) OR (GK1>GK2) OR (GK1<GK2 && GK2>GK3 && GK1>GK3) OR GK1<GK2) OR (EVERY(C>REF(C,1) && OPEN<CLOSE && C-O<REF(C,1)-REF(OPEN,1),2)) OR (CROSS(C,GK1) && CROSS(C,GK2) && O<GK1 && (EVERY(C>REF(C,1) && C>O ANDC-O>REF(C,1)-REF(O,1),2)) && GK1<GK2 && GK2<GK3)) && (H-C)/C<0.025 && C>REF(C,1) && ((O-REF(C,1))/REF(C,1)<0.01 OR((C-REF(C,1))/REF(C,1)>0.045 && GK1<GK4 && GK2<GK4 && GK3<GK4)) && ((GK4>GK5 && GK5>GK6) OR (GK4>GK6 && GK5<GK6) OR (GK4<GK5 && GK5>GK6) OR (GK4>GK5 && GK5<GK6)),LOW*0.98,'转'),COLORYELLOW; DRAWTEXT((CROSS(VAR310,VAR410) AND(OPEN-REF(CLOSE,1))/REF(CLOSE,1)<0.015 AND OPEN<CLOSE AND ((GK1>GK2 AND GK2>GK3 AND GK4<GK5 AND GK5<GK6) OR (GK1<GK2 AND GK2>GK3 AND GK4<GK5 AND GK5<GK6) OR (GK1<GK2 AND GK1>GK3 AND GK2>GK3 AND GK4<GK5 AND GK5<GK6))) OR (CLOSE>REF(CLOSE,1) AND LOW<GK1 AND CLOSE>GK3 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.04 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.05 AND GK1<GK2 ANDGK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6),LOW*0.98,'转'),COLORYELLOW;DRAWICON(SUM((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1),2)>0.1 AND J<0 AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)),LOW,25);DRAWICON(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),2)>0.07 ANDGK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK4>GK6 ANDGK5>GK6,HIGH,26);DRAWICON(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),4)>0.09 AND FILTER(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),4)>0.095 AND GK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK4<GK6 AND GK5>GK6,1)ANDGK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK4<GK6 ANDGK5>GK6,HIGH,26);DRAWICON(SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),3)>0.04 AND CLOSE<EXP3 AND C<GK1 AND C<GK2 AND C<GK3 AND C<GK4 AND C<GK5 AND C<GK6 AND GK1<GK2 AND GK2<GK3 AND GK4>GK5 AND GK4>GK6 AND GK5>GK6,HIGH,26);DRAWICON((CLOSE-LOW)/LOW>0.04 AND DOWNNDAY(CLOSE,3) ANDREF(CLOSE,3)>REF(CLOSE,4) AND J<20 AND CLOSE>OPEN ANDCLOSE<REF(CLOSE,1) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)) OR (REF(C,1)<REF(C,2) AND ABS(REF(C,1)-REF(O,1))/REF(C,1)<0.002 AND((REF(H,1)-REF(C,1))/REF(C,1)>0.003 OR(REF(C,1)-REF(L,1))/REF(L,1)>0.003) AND C<REF(C,1) AND C<REF(L,1) AND C<REF(L,2) AND REF(C,1)>REF(O,2) AND REF(L,1)>REF(O,2) ANDREF(H,1)<REF(H,2) AND REF(O,1)<REF(C,2) AND REF(O,1)>REF(O,2) AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK5<GK6),LOW,25); DRAWICON(ABS(GK3-CLOSE)/GK3<0.005 AND J>115 AND OPEN>CLOSE AND (OPEN-CLOSE)/OPEN<0.005 AND GK1<GK2 AND GK2<GK3 ANDGK1<GK3,HIGH,26);DRAWICON((DOWNNDAY(CLOSE,7) AND J<0 ANDSUM((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1),7)>0.07 AND (DOWNNDAY(J,2) OR J<-8) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3))) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)) ,LOW,25);DRAWICON(LAST(CLOSE>REF(CLOSE,1),2,0) AND LAST(OPEN<CLOSE,2,0) AND LAST((CLOSE-OPEN)<(REF(CLOSE,1)-REF(OPEN,1)),1,0) AND J>120 AND GK1>GK2 AND GK1>GK3 AND GK2<GK3,HIGH,26);DRAWICON(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.025) OR ((CLOSE-REF(CLOSE,2))/REF(CLOSE,2)>0.025) OR((CLOSE-REF(CLOSE,3))/REF(CLOSE,3)>0.025) AND ((GK1<GK2 ANDGK2<GK3 AND GK4>GK5 AND GK5>GK6 AND GK3<GK4 AND GK1<GK4 AND GK3>GK6 AND GK2<GK6) OR ((GK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK5<GK6 AND GK3>GK4)) AND ((GK1>GK4) OR (GK1>GK5) OR (GK1>GK6) OR (GK2>GK4) OR (GK2>GK5) OR (GK2>GK6) OR (GK3>GK4) OR (GK3>GK5) OR (GK3>GK6))),HIGH,26);DRAWICON(REF(J,3)<0 AND(REF(CLOSE,10)-REF(CLOSE,3))/REF(CLOSE,10)>0.07 ANDREF(CLOSE,9)<REF(CLOSE,10) AND REF(CLOSE,8)<REF(CLOSE,9) ANDREF(CLOSE,7)<REF(CLOSE,8) AND REF(CLOSE,6)<REF(CLOSE,7) ANDREF(CLOSE,5)<REF(CLOSE,6) AND REF(CLOSE,4)<REF(CLOSE,5) ANDREF(CLOSE,3)<REF(CLOSE,4) AND(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)>0.02 ANDREF(CLOSE,3)<REF(CLOSE,4) AND CLOSE<REF(CLOSE,1) AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6,HIGH,26); DRAWICON(DOWNNDAY(CLOSE,3) AND (HJX-CLOSE)/HJX>0.02 AND J<-4.7 AND (MA(CLOSE,5)-CLOSE)/MA(CLOSE,5)>0.015 ANDSUM((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1),4)>0.025 ANDREF(CLOSE,3)>REF(CLOSE,4) OR(DOWNNDAY(CLOSE,3) AND(CLOSE-LOW)/LOW>0.025 AND J>REF(J,1) AND CLOSE<OPEN )AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 ANDGK2>GK3)) ,LOW,25);DRAWICON(CROSS(GK6,GK3) AND CLOSE<REF(CLOSE,1) ANDREF(CLOSE,1)>REF(CLOSE,2) AND OPEN>MA(CLOSE,5) AND(REF(CLOSE,1)-REF(CLOSE,2))/REF(CLOSE,2)>0.01 AND GK1<GK2 ANDGK2<GK3 AND GK4<GK5 AND GK5>GK6 AND GK4>GK6,HIGH,26); DRAWICON(EVERY(ABS(CLOSE-OPEN)/CLOSE<0.008,4) ANDEVERY(ABS(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.008,4) ANDABS(CLOSE-REF(CLOSE,3))/REF(CLOSE,3)<0.008 AND REF(J,4)<0 AND CLOSE>REF(CLOSE,1) AND EVERY(GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6,10),HIGH,26);DRAWICON(HIGH>EXP3 AND CLOSE<EXP3 AND CLOSE<REF(CLOSE,1) AND (HIGH-EXP3)/HIGH<0.01 AND EVERY(GK1<REF(GK1,1),10) ANDREF(CLOSE,1)>REF(CLOSE,2) AND REF(CLOSE,1)<EXP3 ANDREF(HIGH,1)<EXP3 AND SUM((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),3)>0.02 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 ANDGK5<GK6,HIGH,26);DRAWICON(EVERY(HIGH>EXP3 AND CLOSE<EXP3 ANDCLOSE<REF(CLOSE,1),2) AND REF(CLOSE,2)>EXP3 ANDEVERY(CLOSE<GK1,3) AND REF(CLOSE,2)>REF(CLOSE,3) ANDABS(CLOSE-REF(LOW,1))/REF(LOW,1)<0.005 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6,HIGH,26);DRAWICON((DOWNNDAY(CLOSE,4) AND CLOSE<OPEN ANDABS(OPEN-CLOSE)<2 AND CLOSE<REF(LOW,1) AND J<2) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 ANDGK2>GK3)) ,LOW,25);DRAWICON(((REF(CLOSE,3)-REF(CLOSE,2))/REF(CLOSE,3)>0.015 AND (REF(CLOSE,1)-REF(CLOSE,2))/REF(CLOSE,2)<0.01 AND(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)>0.015 ANDREF(CLOSE,1)>REF(CLOSE,2) AND CLOSE<REF(LOW,1) AND J<0 AND K<25) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)) ,LOW,25);DRAWICON((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.05 ANDOPEN<REF(CLOSE,1) AND CLOSE<GK1 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6,HIGH,26);DRAWICON((DOWNNDAY(CLOSE,3) AND (CLOSE-LOW)/LOW>0.025 AND J>REF(J,1) AND CLOSE>OPEN AND CLOSE<REF(CLOSE,1) ANDABS(CLOSE-OPEN)<8) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)) OR (CROSS(GK7,CLOSE) AND (CROSS(GK4,GK1) OR CROSS(GK5,GK1) OR CROSS(GK6,GK1) ORCROSS(GK4,GK2) OR CROSS(GK5,GK2) OR CROSS(GK6,GK2) ORCROSS(GK4,GK3) OR CROSS(GK5,GK3) OR CROSS(GK6,GK3)) AND 动力线<0.55 AND CROSS(D,J) AND CROSS(D,K)) ,LOW,25);DRAWICON((CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.05 ANDOPEN<REF(CLOSE,1) AND CLOSE<GK1 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6,HIGH,26);DRAWICON(CROSS(MA(C,89),MA(C,21)) AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,2) AND J>K AND K>D AND GK1<GK2 AND GK2<GK3 AND GK1<GK3 AND GK4<REF(GK4,1) AND GK5<REF(GK5,1) ANDGK6<REF(GK6,1),HIGH,26);DRAWICON(REF(CLOSE,2)<REF(CLOSE,3) AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE<REF(CLOSE,1) AND C>REF(CLOSE,2) ANDREF(CLOSE,1)>REF(HIGH,2) AND HIGH>MA(C,10) AND CLOSE<MA(C,10) AND CLOSE<GK1 AND CLOSE<GK2 AND CLOSE<GK3 AND GK4>GK5 ANDGK5>GK6 AND GK1>GK4 AND GK2>GK4 AND GK3>GK4,HIGH,26); DRAWICON((CROSS(REF(MA(CLOSE,10),1),REF(MA(CLOSE,5),1)) AND OPEN<REF(CLOSE,1) AND OPEN>C AND J<-5 AND(OPEN-CLOSE)/OPEN<0.005 AND CLOSE<REF(CLOSE,1) AND(HIGH-OPEN)>0.003) AND (HIGH-OPEN)/OPEN>0.005 AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 ANDGK2>GK3)),LOW,25);DRAWICON((CROSS(MA(CLOSE,10),MA(CLOSE,5)) AND CLOSE>REF(CLOSE,1) AND J<5 AND (HIGH-LOW)/LOW>0.01) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)),LOW,25); DRAWICON(((HIGH-LOW)/LOW>0.06 AND REF(OPEN,1)-REF(CLOSE,1)<5 AND CLOSE>REF(CLOSE,1) AND J<25) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)),LOW,25); DRAWICON(OPEN>REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE<REF(CLOSE,1) AND(REF(CLOSE,1)-REF(CLOSE,2))/REF(CLOSE,2)>0.03 AND HIGH>XHJX AND OPEN<XHJX AND CLOSE<XHJX AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6,HIGH,26);DRAWICON((MIN(CLOSE,OPEN)-LOW)/(HIGH-LOW)>0.667 AND J<5 AND UPNDAY(J,2) AND (REF(CLOSE,1)-OPEN)/REF(CLOSE,1)>0.020OR((REF(CLOSE,1)-C)/REF(CLOSE,1)>0.05 AND J<5 AND K<20 AND D<20 AND RSI1<15) OR(CROSS(J,D) AND CROSS(K,D) AND CROSS(RSI1,RSI2) AND J<25 AND CLOSE>REF(CLOSE,1) AND OPEN<REF(CLOSE,1) ANDCLOSE>REF(OPEN,1) AND (CLOSE-REF(C,1))/REF(C,1)<0.03 )OR(ABS(CLOSE-GK6)/GK6<0.005 AND(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)<0.02 AND CLOSE<REF(CLOSE,1) AND (LOW<GK6 OR (LOW>GK6 AND LOW-GK6<1)) AND J<0 ) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 ANDGK2>GK3)),LOW,25);DRAWICON((CLOSE-REF(C,1))/REF(C,1)>0.044 AND O<REF(C,1) AND C<GK2 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 ANDGK5<GK6,HIGH,26);DRAWICON(EVERY(CLOSE<REF(CLOSE,1) AND OPEN<CLOSE AND(ABS(H-O)/O>0.01 OR ABS(O-LOW)>0.01) AND (C-O)/C<0.01 ANDOPEN>REF(L,1),2) AND REF(C,2)>REF(C,3) AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6,HIGH,26);DRAWICON(((REF(C,1)-C)/REF(C,1)>0.01 AND (C-L)/C<0.005 ANDREF(CLOSE,2)>REF(CLOSE,3) AND REF(CLOSE,1)>REF(CLOSE,2) AND (REF(CLOSE,1)-REF(OPEN,1))/REF(OPEN,1)<0.005 AND(REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)<0.005 ANDREF(CLOSE,1)>REF(OPEN,1) AND REF(CLOSE,2)>REF(OPEN,2) AND(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)>0.005 AND J<10 ANDCLOSE<REF(LOW,2) AND RSI1<RSI2 AND RSI2<RSI3 AND RSI1<RSI3 AND RSI1<20 AND RSI2<25 AND RSI3<35) AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3)),LOW,25);{}DRAWICON(UPNDAY(C,3) AND EVERY(C>O,3) AND(C-REF(C,3))/REF(C,3)>0.04 AND C<GK2 AND GK3<REF(GK3,1) ANDGK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 ANDGK5<GK6,HIGH,26);DRAWICON((ABS(REF(OPEN,3)-REF(CLOSE,3))<10 ANDABS(REF(CLOSE,2)-REF(CLOSE,2))<10 ANDABS(REF(CLOSE,3)-REF(CLOSE,2))<5 AND LAST(CLOSE<REF(CLOSE,1),1,0) AND J<0 AND RSI1<15 AND ((GK1<GK2 AND GK2<GK3 AND GK1<GK3) OR (GK1<GK2 AND GK1<GK3 AND GK2>GK3))) OR (LAST(C<REF(C,1),3,1) AND ABS(CLOSE-OPEN)<2 ANDSUM((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1),4)>0.02 AND J<5 AND CLOSE>OPEN AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK4>GK5 AND GK5>GK6 AND GK4>GK6 AND VAR3<VAR4) OR((CLOSE>EXP2 AND LOW<EXP2 AND (EXP2-LOW)/EXP2<0.005 AND J<0 AND(CLOSE-EXP2)/EXP2>0.01) OR (CLOSE>EXP2 AND LOW<EXP2 AND (CLOSE-EXP2)/EXP2>0.01 AND (EXP2-LOW)/EXP2<0.005 ANDCLOSE>REF(OPEN,1) AND CLOSE>REF(HIGH,1) ANDREF(CLOSE,1)<REF(CLOSE,2)) AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK4>GK5 AND GK5>GK6 AND GK4>GK6 AND VAR3<VAR4) OR (LAST(CLOSE<REF(CLOSE,1),1,0) ANDSUM((REF(CLOSE,1)-CLOSE)/REF(CLOSE,1),2)>0.1 AND(REF(C,1)-O)/REF(C,1)<0.01 AND J<0 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK4>GK5 AND GK5>GK6 AND GK4>GK6 AND VAR3<VAR4) OR (ABS(CLOSE-GK4)/GK4<0.005 AND ABS(CLOSE-GK3)/GK3>0.002 AND CLOSE>GK4 AND J<0 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK4>GK5 AND GK5>GK6 AND GK4>GK6 AND VAR3<VAR4),LOW,25); DRAWICON((ABS(CLOSE-GK3)/GK3<0.009 AND LOW<GK3 AND CLOSE>OPEN AND CLOSE<REF(CLOSE,1) AND J<0 AND GK1>GK2 AND GK2>GK3 ANDGK1>GK3 AND GK4>GK5 AND GK5<GK6 AND GK4>GK6 AND VAR3<VAR4) OR (GK4>GK5 AND GK5>GK6 AND GK4>GK6 AND CLOSE<GK6 ANDREF(CLOSE,1)>GK6 AND CLOSE<REF(CLOSE,1) AND 动力线<0.2 AND J<0) OR (J<0 AND CLOSE>GK6 AND LOW<GK6 AND (GK6-LOW)/GK6<0.009 ANDCLOSE<REF(CLOSE,1) AND REF(C,1)>REF(C,2) AND(REF(C,1)-C)/REF(C,1)>0.03 AND LOW<REF(LOW,2) AND J>REF(J,2) AND (REF(C,3)-REF(C,2))/REF(C,3)>0.03 AND GK4>GK5 AND GK5>GK6 ANDGK4>GK6 AND GK3>GK4) OR (REF(CLOSE,2)>REF(CLOSE,3) ANDREF(CLOSE,1)<MA(CLOSE,5) AND 动力线<0.4 AND J<15 AND RSI1<25 AND REF(HIGH,1)<REF(HIGH,2) AND REF(OPEN,1)>REF(OPEN,2) AND(REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)<REF(OPEN,1)) ANDREF(CLOSE,1)<REF(CLOSE,2) AND REF(CLOSE,1)>REF(OPEN,2) AND CLOSE<REF(CLOSE,1) AND (REF(C,1)-C)/REF(C,1)>0.01) OR(LAST(OPEN<CLOSE,1,0) AND CLOSE<REF(CLOSE,1) AND LAST(动力线<REF(动力线,1),1,0) AND 动力线<0.5 AND REF(J,1)<0 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3),LOW,25);DRAWICON((CROSS(GK3,CLOSE) AND OPEN>GK3 ANDREF(LOW,1)>REF(GK3,1) AND CLOSE<REF(CLOSE,1) AND(REF(OPEN,2)-REF(CLOSE,2))<(REF(OPEN,1)-REF(CLOSE,1)) AND(REF(OPEN,1)-REF(CLOSE,1)>(OPEN-CLOSE) AND(OPEN-CLOSE)>(REF(OPEN,2)-REF(CLOSE,2)) AND LAST(OPEN>CLOSE,2,0) AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK1>GK4 AND GK1>GK5 AND GK1>GK6 AND GK1>GK7 AND GK1>GK8 AND GK1>GK9 AND GK4>GK5 AND GK4>GK6 AND GK4>GK7 AND GK4>GK8 AND GK4>GK9 AND GK5>GK6 AND GK5>GK7 AND GK5>GK8 AND GK5>GK9 AND GK6>GK7 AND GK7>GK8 AND GK7>GK9 AND GK7>GK8 AND GK8>GK9)) OR (CROSS(GK7,CLOSE) AND CROSS(D,K) AND CROSS(D,J) AND LAST(CLOSE<REF(CLOSE,1),1,0) AND REF(LOW,1)>GK7 AND 动力线<0.55 AND CLOSE<REF(CLOSE,1) AND OPEN>CLOSE AND GK7>GK8 AND GK8>GK9 AND GK7>GK9 AND GK3>GK7) OR (CROSS(GK3,CLOSE) AND REF(LOW,1)>REF(GK3,1) ANDREF(CLOSE,1)<REF(CLOSE,2) AND (REF(C,1)-C)/REF(C,1)<0.09 AND J<-10 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK4>GK5 AND GK5>GK6 AND GK4>GK6 AND GK1>GK4 AND GK2>GK4 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6 AND GK6>GK7 AND GK7>GK8 AND GK8>GK9) OR (CROSS(GK3,CLOSE) AND OPEN<GK2 AND REF(CLOSE,1)>REF(CLOSE,2) AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)>0.01 AND J<-10 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK4<GK5 AND GK5<GK6 ANDGK4<GK6),LOW,25);DRAWICON(((CROSS(MA(CLOSE,144),CLOSE) ANDREF(OPEN,1)<REF(CLOSE,1) AND LAST(J<0,1,0) AND OPEN>CLOSE ANDJ<REF(J,1) ) AND GK4>GK5 AND GK5>GK6 AND VAR3<VAR4) OR ((REF(CLOSE,1)>MA(CLOSE,144) AND CROSS(MA(CLOSE,144),CLOSE) AND REF(CLOSE,1)<REF(CLOSE,2) AND REF(OPEN,1)>REF(CLOSE,1) AND OPEN>CLOSE AND REF(J,1)<8 AND J<0 AND (REF(C,2)>REF(C,3) ORREF(C,3)>REF(C,4))) AND VAR3<VAR4) OR (CROSS(GK6,CLOSE) AND CROSS(GK4,GK2) AND (CLOSE-LOWER)/LOWER<0.01 AND CLOSE>LOWER AND LOW<LOWER AND CLOSE<REF(CLOSE,1) AND OPEN>CLOSE ANDGK3>GK6) OR (LAST(CLOSE<REF(CLOSE,1) AND OPEN>CLOSE,2,0) ANDREF(CLOSE,3)>REF(OPEN,3) AND(REF(OPEN,2)-REF(CLOSE,2))<(REF(OPEN,1)-REF(CLOSE,1)) AND(REF(OPEN,1)-REF(CLOSE,1)>(OPEN-CLOSE) AND J>REF(J,1) ANDREF(J,1)<REF(J,2) AND J<15)) OR((REF(CLOSE,2)-REF(OPEN,2))/REF(OPEN,2)>0.005 AND CLOSE<REF(LOW,2) AND REF(OPEN,1)<REF(CLOSE,1) AND(REF(CLOSE,1)-REF(OPEN,1))/REF(OPEN,1)<0.005 ANDREF(OPEN,1)<REF(CLOSE,2) AND REF(CLOSE,1)<REF(CLOSE,2) ANDREF(CLOSE,1)>REF(OPEN,2) AND REF(OPEN,2)<REF(CLOSE,2) AND CLOSE<REF(CLOSE,1) AND OPEN>CLOSE AND (OPEN-CLOSE)/OPEN>0.02 AND J<50 AND GK1<GK2 AND GK2<GK3 AND GK1<GK3) ,LOW,25); DRAWICON(EVERY(CLOSE<REF(CLOSE,1),2) ANDEVERY(ABS(OPEN-CLOSE)/OPEN<0.01 AND (HIGH-CLOSE)/HIGH>0.005 AND (CLOSE-LOW)/CLOSE>0.002,2) AND(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)<0.005 AND J>REF(J,1) AND K>D AND K>REF(K,1) AND D>REF(D,1) AND 动力线<0.6 ,LOW,25);DRAWICON(((OPEN-REF(CLOSE,1))/REF(CLOSE,1)>0.04 AND CROSS(D,J) AND CROSS(D,K) AND CLOSE>REF(CLOSE,1) AND(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.02) OR (J>115 AND J>REF(J,1) AND RSI1>80 AND RSI1>REF(RSI1,1) AND 动力线>3.6 AND 动力线>REF(动力线,1)) OR(J>90 AND J<REF(J,1) AND REF(J,1)>100 ANDCLOSE<REF(CLOSE,1) AND CLOSE<OPEN AND K>90 AND K<REF(K,1) AND REF(K,1)>REF(K,2) AND D>90 AND REF(D,1)<D AND REF(D,1)>REF(D,2) AND REF(动力线,1)>3.8 AND REF(动力线,2)<REF(动力线,1) AND(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)>0.005) AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK3>GK4 AND GK4>GK5 AND GK5>GK6,HIGH,26); DRAWICON((ABS(REF(CLOSE,3)-REF(OPEN,3))/REF(CLOSE,3)<0.005 AND REF(RSI1,1)>85 AND ABS(REF(CLOSE,2)-REF(OPEN,2))/REF(CLOSE,2)<0.005 AND ABS(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)<0.005 AND CROSS(D,J) AND CROSS(D,K) ANDABS(REF(CLOSE,3)-REF(CLOSE,4))/REF(CLOSE,4)<0.01 ANDABS(REF(CLOSE,2)-REF(CLOSE,3))/REF(CLOSE,3)<0.01 ANDABS( REF(CLOSE,1)-REF(CLOSE,2))/REF(CLOSE,1)<0.01 AND(REF(CLOSE,1)-LOW)/REF(CLOSE,1)>0.01 AND(REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)>0.009 AND REF(K,1)>90 ANDREF(J,1)>90) OR (LAST(动力线>3.75,2,0) AND LAST(J>100,2,0) ANDABS(CLOSE-REF(CLOSE,2))/REF(CLOSE,2)<0.01) OR ((OPEN>REF(HIGH,1) AND CLOSE<REF(LOW,1) AND CLOSE<REF(CLOSE,1) ANDREF(CLOSE,1)>REF(CLOSE,2) AND(REF(CLOSE,1)-REF(OPEN,1))/REF(CLOSE,1)<0.01 AND CROSS(D,J) AND CROSS(D,K) AND CROSS(RSI3,RSI1) AND RSI3-RSI1>4)) OR(EVERY(ABS(HIGH-REF(HIGH,1))/REF(HIGH,1)<0.05,4) ANDREF(CLOSE,1)>REF(CLOSE,2) AND MA(CLOSE,5)>REF(MA(CLOSE,5),1) AND CLOSE<REF(LOW,3) AND CROSS(RSI3,RSI1) ANDCROSS(MA(CLOSE,5),CLOSE) AND RSI2-RSI3<1) OR ((REF(RSI1,1)>90 AND REF(动力线,1)>3.8 AND SUM((C-REF(C,1))/REF(C,1),4)>0.035 ANDO>REF(H,1) AND C<REF(L,1))OR(EVERY(ABS(H-REF(H,1))/REF(H,1)<0.005,4) AND CROSS(D,J) AND CROSS(D,K) AND CROSS(RSI2,RSI1) AND REF(J,1)>100 )) AND GK1>GK2 AND GK2>GK3 AND GK1>GK3,HIGH,26);DRAWICON((CLOSE<REF(CLOSE,1) AND REF(CLOSE,1)>REF(CLOSE,2) AND (REF(OPEN,2)-REF(CLOSE,3))/REF(CLOSE,3)>0.01 ANDREF(CLOSE,2)>REF(CLOSE,3) AND CLOSE<REF(OPEN,2) ANDCROSS(RSI3,RSI1) AND CROSS(RSI3,RSI2)) OR ((CLOSE-LOW)/LOW>0.01 AND CLOSE>REF(CLOSE,1) AND CLOSE<OPEN AND(CLOSE-OPEN)/OPEN<0.005 AND ABS(HIGH-OPEN)<3 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 ) OR (CLOSE<REF(CLOSE,1) ANDCLOSE<REF(OPEN,1) AND REF(CLOSE,1)>REF(CLOSE,2) ANDREF(CLOSE,1)-REF(OPEN,1)>10 AND REF(OPEN,1)-CLOSE<20 AND (CLOSE<REF(OPEN,1)) AND REF(OPEN,1)>REF(CLOSE,2) ANDREF(LOW,1)>REF(CLOSE,2) AND REF(MACD,1)>40) OR(CROSS(MA(CLOSE,5),MA(CLOSE,20)) AND CLOSE<REF(CLOSE,1) ANDREF(CLOSE,1)>REF(CLOSE,2) AND ABS(CLOSE-OPEN)/OPEN<0.005 AND OPEN<REF(CLOSE,1) AND CLOSE>REF(OPEN,1) AND GK1<GK2 ANDGK1<GK3 AND GK2<GK3 AND GK4<GK5 AND GK5<GK6 AND GK4<GK6 ) OR (ABS(GK6-HIGH)/GK6<0.05 AND REF(CLOSE,1)>REF(CLOSE,2) ANDCLOSE<REF(CLOSE,1) AND REF(动力线,1)>3.5 AND(OPEN-CLOSE)/(REF(CLOSE,1)-REF(OPEN,1))>0.7 AND GK1>GK2 ANDGK2<GK3 AND GK1<GK3 AND VAR2>VAR3) OR(LAST(CLOSE>REF(CLOSE,1),2,0) ANDLAST(ABS(CLOSE-OPEN)/OPEN<0.005,2,0) AND LAST(J<REF(J,1),1,0) AND动力线>3.7 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3),HIGH,26); DRAWICON((LAST(CLOSE>REF(CLOSE,1),2,0) AND LAST(OPEN<CLOSE,2,0) AND LAST((CLOSE-OPEN)<(REF(CLOSE,1)-REF(OPEN,1)),1,0) AND J>120 AND GK1>GK2 AND GK1>GK3 AND GK2<GK3) OR (CLOSE>REF(CLOSE,1) AND CROSS(MA(CLOSE,10),MA(CLOSE,5)) AND CROSS(K,D) AND CROSS(J,D) AND (MA(CLOSE,5)<REF(MA(CLOSE,5),1) OR OPEN>REF(CLOSE,1)) AND OPEN<CLOSE AND GK1>GK2 AND GK2>GK3 AND GK1>GK3 AND GK4>GK5 AND GK5>GK6 AND GK4>GK6 AND GK1>GK4) OR(REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE>REF(CLOSE,1) AND OPEN>CLOSE AND ABS(OPEN-CLOSE)/OPEN<0.005 AND HIGH>GK6 AND CLOSE<GK6 AND (GK6-CLOSE)/GK6<0.01 AND REF(CLOSE,1)<GK6 AND J>90 AND GK1>GK2 AND GK2>GK3 AND GK1>GK3),HIGH,26);DRAWICON((REF(C,2)>REF(C,3) AND REF(C,1)<REF(C,2) AND C>REF(C,1) AND L>REF(L,1) AND H>REF(H,1) AND J<10 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6 AND C<XHJX) OR (C<REF(C,1) AND (C-LOW)/C>0.015 AND O>C AND (O-C)/O>0.005 AND REF(C,1)<REF(C,2) AND REF(O,1)>REF(C,2) AND J>REF(J,1) AND J>0 AND GK4>GK5 ANDGK5>GK6) OR (C>REF(C,1) AND REF(C,1)<REF(C,2) AND (O-L)/L>0.02 AND C>O AND (C-L)/L>0.05 AND (H-C)/C<0.002 AND J<REF(J,1) AND J>K AND K>D) OR (EVERY(O>C,6) AND DOWNNDAY(C,6) AND REF(C,6)>REF(C,7) AND (REF(C,5)-C)/REF(C,1)>0.1 AND J>0 AND GK1<GK2 AND GK2<GK3 ANDGK3<GK4 AND GK4<GK5 AND GK5<GK6) OR (DOWNNDAY(C ,6) AND DOWNNDAY(J,6) AND XHJX>REF(XHJX,1) AND (REF(C,5)-C)/REF(C,5)>0.05 AND J<-10 AND C<XHJX) OR (DOWNNDAY(C,2) AND(REF(C,2)-C)/REF(C,2)>0.07 AND CROSS(GK5,C) AND J<0 AND(O-C)>REF(O,1)-REF(C,1) AND GK4>GK5 AND GK5>GK6 AND GK6>GK7 AND GK7>GK8 AND GK8>GK9) OR (DOWNNDAY(C,2) AND C>REF(L,1) ANDO>REF(C,1) AND O<REF(O,1) AND L>REF(L,1) AND J<REF(J,1) AND C<XHJX AND GK4<GK5 AND GK5<GK6) OR (EVERY(O<XHJX AND CLOSE>XHJX AND O<REF(C,1) AND XHJX>REF(XHJX,1),2)) OR (DOWNNDAY(C,4) AND CROSS(GK6,GK5)),LOW,25);DRAWICON(((O-REF(C,1))/REF(C,1)>0.05 AND (C-REF(C,1))/REF(C,1)>0.08 AND J>110) OR (H>REF(H,1) AND REF(H,1)<REF(XHJX,1) AND H>XHJX AND LOW<REF(L,1) AND C<REF(C,1) AND REF(C,1)>REF(C,2) AND C<XHJX AND XHJX>REF(XHJX,1)) OR (O>MA(C,10) AND C<MA(C,10) AND C<REF(C,1) AND REF(C,1)>REF(C,2) AND (C-L)/C>0.015 AND J>REF(J,1) AND GK1<GK2 AND GK2<GK3) OR ((HIGH-GK3)/GK3<0.005 AND CLOSE<GK3 AND J>110 AND REF(CLOSE,1)>REF(CLOSE,2) AND CLOSE<OPEN AND VAR3>VAR4 ANDGK4>GK5 AND GK4>GK6 AND GK5>GK6) OR (EVERY(HIGH>MA(C,21),2) AND C<MA(C,21) AND O>REF(C,1) AND ABS(C-REF(O,1))/REF(C,1)<0.005 AND REF(C,1)>REF(C,2) AND REF(C,1)>REF(O,1) AND GK1<GK2 AND GK2<GK3 AND GK4<GK5 AND GK4<GK6 AND GK3<GK4) OR(EVERY((H-L)/REF(C,1)>0.03 AND C>REF(C,1) AND O<C,2) ANDREF(C,2)<REF(C,3) AND (REF(C,2)-REF(O,1))/REF(C,1)>0.02 AND J>70 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6) OR ((H-O)/O>0.01 AND O>REF(C,1) AND C>REF(C,1) AND L=O AND(H-C)/C>0.005 AND (C-O)/O<0.01 AND C>O AND(O-REF(C,1))/REF(C,1)>0.0065 AND J>100),HIGH,26);DRAWICON((DOWNNDAY(C,4) AND EVERY(C<O,4) AND REF(J,1)>REF(K,1) AND REF(K,1)>REF(D,1) AND CROSS(D,K) AND CROSS(D,J) AND J<5 AND CROSS(K,J) AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6) OR (DOWNNDAY(C,3) AND ABS(O-C)/C<0.002 ANDABS(REF(C,3)-REF(O,3))/REF(C,3)<0.005 AND EVERY(C<O,4) AND(REF(C,3)-C)/REF(C,3)>0.04 AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 AND GK4<GK5 AND GK5<GK6) OR (EVERY(O<REF(C,1) AND C<REF(C,1) AND O>C AND (O-C)/O>0.002 ,4) AND EVERY(J<REF(J,1),3) AND J<0 ANDREF(C,4)>REF(C,5) AND GK1<GK2 AND GK2<GK3 AND GK3<GK4 ANDGK4<GK5 AND GK5<GK6) OR ((O-REF(C,1))/REF(C,1)>0.02 AND C<O AND L<REF(L,1) AND LOW<REF(O,1) AND REF(C,1)<REF(C,2) ANDREF(C,1)<REF(O,1) AND C>REF(C,1) AND GK1<GK2 AND GK2<GK3) OR (EVERY(C<REF(C,1) AND O>C,5) AND EVERY(J<REF(J,1),4) AND。

通达信_指标公式源码大全

通达信_指标公式源码大全

通达信】魔鬼操盘(主图)- 指标公式源码均5:MA(CLOSE,5) COLORYELLOW;均10:MA(CLOSE,10)COLORGREEN;均30: MA(CLOSE,30) COLORMAGENTA ;均60: MA(CLOSE, 60) COLORRED POINTDOT LINETHICK3;均250: MA(CLOSE, 250) COLORBLUE LINETHICK2 ;魔鬼通道上: 均30 + 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2 ; 魔鬼通道下: 均30 - 2*STD(CLOSE,60) COLORYELLOW POINTDOT LINETHICK2;VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;VAR2:=SMA(VAR1,3,1);VAR3:=SMA(VAR2,3,1);VAR4:=VAR1*1.05;VAR5:=MA(CLOSE,5);VAR6:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;VAR7:=SMA(VAR6,5,1);VAR8:=VOL>REF(VOL,1);VAR9:=MA(VOL/CAPITAL,30)*MA(VOL,60)/10000+MA(CLOSE,30);【通达信】平均价格(主图) - 指标公式源码A:=(3*C+H+L+O)/6;XJ:=(A+0.618*REF(A,1)+0.382*REF(A,2)+0.236*REF(A,3)+0.146*REF(A,4))/2 .382; YCZXH:=(MA(HHV(A,2),5)+MA(HHV(A,2),13)+MA(HHV(A,2),21)+MA(HHV(A,2),32 ))/4; YCZXL:=(MA(LLV(A,2),5)+MA(LLV(A,2),13)+MA(LLV(A,2),21)+MA(LLV(A,2),32 ))/4; SMH:EMA(YCZXH,21),COLOR004000;SML:EMA(YCZXL,21),COLOR004000;SMJ:(SML+SMH)/2,COLOR004000;PJ:=(10*A+9*REF(A,1)+8*REF(A,2)+7*REF(A,3)+6*REF(A,4)+5*REF(A,5)+4*REF(A,6)+3*REF(A,7)+2*REF(A,8)+REF(A,9))/55;A1:=EMA(PJ,3),COLOR004000;A2:=EMA(PJ,5),COLOR004000;A3:=EMA(PJ,7),COLOR004000;A4:=EMA(PJ,9),COLOR004000;A5:=EMA(PJ,11),COLOR004000;LX:=REF(XJ,1);ZD:=(SMA(MAX(XJ-LX,0),5,1)/SMA(ABS(XJ-LX),5,1))*100;KX1:=(CLOSE>=OPEN) AND ZD>=50;KX2:=(CLOSE<OPEN) AND ZD>=50;KX3:=(CLOSE>=OPEN) AND ZD<50;KX4:=(CLOSE<OPEN) AND ZD<50;IF(A5<REF(A5,1),A5,DRAWNULL),COLOR820000,LINETHICK2;IF(A5>REF(A5,1),A5,DRAWNULL),COLOR00005B,LINETHICK2;IF(A4<REF(A4,1),A4,DRAWNULL),COLOR8C0000,LINETHICK1;IF(A4>REF(A4,1),A4,DRAWNULL),COLOR000055,LINETHICK1;IF(A3<REF(A3,1),A3,DRAWNULL),COLOR9B0000,LINETHICK1;IF(A3>REF(A3,1),A3,DRAWNULL),COLOR00006C,LINETHICK1;IF(A2<REF(A2,1),A2,DRAWNULL),COLORBB0000,LINETHICK1;IF(A2>REF(A2,1),A2,DRAWNULL),COLOR00007D,LINETHICK1;IF(A1<REF(A1,1),A1,DRAWNULL),COLORCC0000,LINETHICK1;IF(A1>REF(A1,1),A1,DRAWNULL),COLOR00009B,LINETHICK1;STICKLINE(KX1,C,O,4,1),COLOR4440FF;STICKLINE(KX1,C,H,0.5,1),COLOR4440FF;STICKLINE(KX1,O,L,0.5,1),COLOR4440FF;STICKLINE(KX2,C,O,4,0),COLOR4440FF;STICKLINE(KX2,O,H,0.5,0),COLOR4440FF;STICKLINE(KX2,C,L,0.5,0),COLOR4440FF;STICKLINE(KX3,C,O,4,1),COLORFFFF33;STICKLINE(KX3,C,H,0.5,1),COLORFFFF33;STICKLINE(KX3,O,L,0.5,1),COLORFFFF33;STICKLINE(KX4,C,O,4,0),COLORFFFF33;STICKLINE(KX4,O,H,0.5,0),COLORFFFF33;STICKLINE(KX4,C,L,0.5,0),COLORFFFF33;【通达信】牛劲十足(副图) - 指标公式源码VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));ZM:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE<OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;ZM1:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-VAR1*(HIGH-LOW),0-VOL/2)),COLOR00FF00,POINTDOT;MMB:=(SUM(ZM,30)+SUM(ZM1,30))/10,COLORYELLOW;SG:=MMB>0 AND REF(MMB,1)<MMB;上攻周期:COUNT(SG,5),LINESTICK,COLORWHITE;JSC:=上攻周期<1;DBQD:=FILTER(COUNT(JSC,5)>3 AND NOT(JSC),10);DRAWICON(DBQD,2,1);DRAWBAN上D(攻周期,RGB(255,120,120),3,RGB(0,0,0));DRAWBAND(JSC,RGB(0,0,255),0.5,RGB(0,0,0));STICKLINE(COUNT上(攻周期>3,5)>=3 AND SG,0, 上攻周期,1.5,0),COLORRED; XG: COUNT(COUN上T(攻周期>3,5)>=3 AND SG,20)>4;【通达信】魔鬼K 线(副图) - 指标公式源码VAR1:=REF(OPEN,1); VAR2:=SMA(MAX(OPEN-VAR1,0),6,1)/SMA(ABS(OPEN-VAR1),6,1)*100;VAR3:=REF(CLOSE,1); VAR4:=SMA(MAX(CLOSE-VAR3,0),6,1)/SMA(ABS(CLOSE-VAR3),6,1)*100;VAR5:=REF(HIGH,1); VAR6:=SMA(MAX(HIGH-VAR5,0),6,1)/SMA(ABS(HIGH-VAR5),6,1)*100;VAR7:=REF(LOW,1); VAR8:=SMA(MAX(LOW-VAR7,0),6,1)/SMA(ABS(LOW-VAR7),6,1)*100; STICKLINE(VAR4<VAR2,VAR2,VAR4,5,0),COLORGREEN , ;STICKLINE(VAR4>VAR2,VAR2,VAR4,5,0),COLORRED , ; STICKLINE(VAR4>VAR2 ANDVAR6>VAR8 AND VAR8>VAR4,VAR4,VAR6,0.5,1),COLORRED , ;STICKLINE(VAR4>VAR2 AND VAR6>VAR8 AND VAR8<VAR4,VAR4,VAR6,0.5,1),COLORRED ,; STICKLINE(VAR4>VAR2 AND VAR6<VAR8 AND VAR6>VAR4,VAR4,VAR8,0.5,1),COLORRED , ; STICKLINE(VAR4>VAR2 AND VAR6>VAR8 AND VAR6<VAR2,VAR2,VAR8,0.5,1),COLORRED , ; STICKLINE(VAR4>VAR2 AND VAR6>VAR8 AND VAR6>VAR2,VAR2,VAR8,0.5,1),COLORRED , ; STICKLINE(VAR4>VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1),COLORRED , ; STICKLINE(VAR4>VAR2 AND VAR6<VAR8 AND VAR8>VAR2,VAR2,VAR6,0.5,1),COLORRED , ; STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8<VAR4,VAR4,VAR6,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR6>VAR4,VAR4,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6<VAR4,VAR2,VAR8,0.5,1),COLORGREEN ,;STICKLINE(VAR4<VAR2 AND VAR6>VAR8 ANDVAR6>VAR4,VAR2,VAR8,0.5,1),COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 AND VAR8<VAR2,VAR2,VAR6,0.5,1), COLORGREEN , ;STICKLINE(VAR4<VAR2 AND VAR6<VAR8 ANDVAR8>VAR2,VAR2,VAR6,0.5,1),COLORGREEN , ;【通达信】牛熊分界(立桩量、中线) - 指标公式源码AAA:=(3*C+H+L+O)/6;VAR1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;VAR2:=(HHV(VAR1,5)+HHV(VAR1,10)+HHV(VAR1,20))/3;VAR3:=(LLV(VAR1,5)+LLV(VAR1,10)+LLV(VAR1,20))/3;VAR4:=(HHV(VAR2,5)+HHV(VAR2,10)+HHV(VAR2,20))/3;VAR5:=(LLV(VAR3,5)+LLV(VAR3,10)+LLV(VAR3,20))/3;VAR6:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;DRAWBAND(VAR1,RGB(155,50,50),VAR6,RGB(250,250,0)); 短线:VAR1,COLORWHIT中E;线:VAR6,COLORYELLO金W叉; :短线>中线AND REF(短线,1)=REF(中线,1),NODRAW下;跌:IF(VAR1=VAR6,VAR6,DRAWNULL),COLORGREEN;TJ1:=VOL=HHV(VOL,10)ANDVOL>2*REF(VOL,1)AND CLOSE>VA立R1桩;量:=FILTER(TJ1,5);TJ2:=IF(BARSLAST( 立桩量)=1 ANDCLOSE>REF(HIGH,1),1,IF(BARSLAST立( 桩量)=2 ANDCLOSE>REF(HIGH,2),1,IF(BARSLAST立( 桩量)=3 ANDC LOSE>REF(HIGH,3),1,0))); 突破:TJ2=1,NODRAW;STICKLINE(CLOSE,REF(HIGH,BARSL立AS桩T(量)),REF(HIGH,BARSLAST立( 桩量)),1,0),COLORCYAN;STICKLINE(CLOSE,REF(LOW,BARSLA立ST桩(量)),REF(LOW,BARSLAST立( 桩量)),1,0),COLORYELLOW;STICKLINE(C>=O,C,O,3,0),COLOR000045;STICKLINE(C >=O,C,O,2.5,0),COLOR000065;STICKLINE(C>=O,C,O,2,0),COLOR000085;STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;STICKLINE(C>=O,C,O,1,0),COLOR0000C5;S TICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;STICKLINE(C>=O,H,L,0,0),COLOR0000F5;STICKLINE(C<O,C,O,3,0),COLOR353500;STICKLINE(C<O,C,O,2.5,0),COLOR 454500;STICKLINE(C<O,C,O,2,0),COLOR555500;STICKLINE(C<O,C,O,1.5,0),COLOR656500;STICKLINE(C<O,C,O,1,0),COLOR757500;STICKLINE(C<O,C,O,0.5,0) ,COLOR8 58500;STICKLINE(C<O,H,L,0,0),COLOR959500;ZRR:=(YEAR-1992)*365+ INTPART((YEAR-1989)/4)+IF(MONTH<=2,DAY+(MONTH-1)*31,DAY+INTPART(13*(M ONTH+1)/5)-7+(MONTH-1)*28+IF(INTPART(YEAR/4)=YEAR/4,1,0)),NODRAW;T:=B ARSLAST(ZRR-REF(ZRR,1)>WEEKDAY-REF(WEEKDAY,1))+1,NODRAW;T1:=REF(T,T)+T,NODRAW;T2:=REF(T,T1)+T1,NODRAW;T3:=REF(T,T2)+T2,NODRAW;T4:=REF(T,T3 )+T3,NO DRAW;T5:=REF(T,T4)+T4,NODRAW;T6:=REF(T,T5)+T5,NODRAW;T7:=REF(T,T6)+T6,NODRAW;T8:=REF(T,T7)+T7,NODR周AW;10:(REF(CLOSE,T)+REF(CLOSE,T1)+REF(CLOSE,T2)+REF(CLOSE,T3)+REF(CLOSE,T4)+REF(CLOSE,T5)+REF(CLOSE,T6)+REF(CLOSE,T7)+REF(CLOSE,T8)+CLOSE)/10 ,LINETH ICK2;通达信】牛准反弹(快线、慢线)- 指标公式源码N:=9;M1:=3;M2:=3;P:=9; 快线:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; 慢线:=SMA(快线,M1,1);ELI 空:=SMA(慢线,M2,1);ELI 牛股:=IF(BARSLAST(CROSS慢(线,ELI 空))<P AND CROSS慢( 线,ELI 空) AND 慢线<20,90,0);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; 牛准反弹:=CROSS(RSI,11)*80;XG:牛准反弹OR ELI 牛股;【通达信】启动提示(平台线、启动线) - 指标公式源码启动线:SUM(EMA((C+L)/2,2),5)/10.158,COLORRED; 平衡线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,4),COLORFF00FF; 平台线:LLV(SUM( EMA((C+L)/2,2),5)/10.158,10),COLORFFFFFF;强弱线:EMA(启动线,21),COLORYELLOW;STICKLINE(平台线<启动线, 启动线, 平台线,0.1,0),COLORFFCCAA; STICKLINE(平衡线<启动线, 启动线, 平衡线,0.1,0),COLORRED;VAR1:=2*MA(LLV((C+L)/2,8)*1.1,13)-EMA((C+L)/2,3)-((C+L)/2)*0.1;VAR2:=IF((EMA((C+L)/2,3)-VAR1)*5>0,POW((EMA((C+L)/2,3)-VAR1)*5,2)/10, -1*POW((EMA((C+L)/2,3)-VAR1)*5,2)/10);VAR3:=IF(VAR2>0,VAR2-0,0);STICKLINE(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8), 强弱线, 强弱线+0.2,4,0),COLORFFAACC;DRAWTEXT(VAR3>0 AND REF(VAR3,1)=0 AND (C+L)/2>MA((C+L)/2,8), 强弱线+0.35,' 注意控制'),LINETHICK3,COLORFFAACC;通达信】平台启动(主图)- 指标公式源码圣:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; 灵:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; 石:=SMA(灵,13,8);仙:=CEILING(SMA(石,13,8));编著:=SMA(圣,21,8);AABB:=IF(L,CONST(L),DRAWNULL);平台启动:STICKLINE(仙- 编著>75,AABB,AABB*0.99,15,1),COLOR0000FF; VARZT:=BARSLAS平T(台启动);DRAWTEXT(VARZT=1,0.99*(AABB+AABB*0.98)/2平,' 台启动'),COLORYELLOW;【通达信】牛熊线分水岭(中线强弱拐点) - 指标公式源码JJ:=(CLOSE+HIGH+LOW)/3; A:=EMA(JJ,10);B:=REF(A,1);M1:=EMA(CLOSE,3);M2:EMA(CLOSE,8);分水岭:SMA(M2,2.5,1.5),LINETHICK2,COLORRED; 牛线:3*M2-2* 分水岭,LINETHICK2,COLORFF00FF ; 熊线:4* 分水岭-3*M2,LINETHICK2,COLORGREEN;IF ( 牛线<=熊线, 牛线, 熊线),COLORGREEN,LINETHICK2;IF ( 分水岭<=熊线,分水岭, 熊线),COLORGREEN,LINETHICK2;IF( 牛线>REF(熊线,1), 熊线,DRAWNULL),COLORFF2200,LINETHICK2;M3:EMA(M2,13);M4:EMA(M2,55);VAR1:=EMA(M3,55);M5:EMA(M4,81), COLORRED,LINETHICK1; 股道:=(1-C/SMA(C,13,1))*100;基础:=EMA(C,43);中线强弱拐点:EMA(股道*C/100+基础,3),COLORGRAY,LINETHICK1;炒股入门口诀一、赢家重在观念正确1一年做一股!忠告,轻易不抛牛股,毕业。

开发人自称价值300万的指标源码-----一共三个指标,不要错过

开发人自称价值300万的指标源码-----一共三个指标,不要错过

开发人自称价值300万的指标源码-----一共三个指标,不要错过多:EMA(C,3),COLORYELLOW;空:EMA(C,5),COLOR00FF00;均衡:EMA(空,5),COLORWHITE,;VARF1:=COUNT(CROSS(多,均衡),2)=1;VARF2:=COUNT(CROSS(空,均衡),2)=1;ZAI:=FILTER(VARF1 AND VARF2,2);DRAWTEXT(ZAI,均衡,'主升↑'),COLORFF00FF;VV2:=REF(CLOSE,1);VV3:=SMA((CLOSE-VV2),6,1)/SMA(ABS(CLOSE-VV2),6,1)*100;DRAWICON(REF(VV3,1)>81 AND VV3<80,HIGH,2);DRAWTEXT(REF(VV3,1)>81 AND VV3<80,HIGH*1.03,'沽空↓'),COLORYELLOW;VF1:=MA(CLOSE,60)-MA(CLOSE,5)/3.2;DRAWTEXT(IF(CLOSE<VF1 AND VOL/240>MA(VOL,5)/240 AND CLOSE>=REF(CLOSE,1)*1.08 AND CLOSE<MA(CLOSE,13)*1.3,1,0),LOW,'☆'),COLORRED;VARA:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;VARB:=EMA(0.667*REF(VARA,1)+0.333*VARA,5);DRAWTEXT(IF(VOL>=1.3*MA(VOL,5) AND COUNT(VARA>=VARB AND VARA<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0),LOW,'★注意买入');VARR1:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;DRAWICON(CROSS(82,VARR1),HIGH,2);DRAWTEXT(CROSS(82,VARR1),HIGH,'短空↓'),COLORYELLOW;VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;VAR2:=REF(VAR1,1);VAR3:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;HY3:=IF(COUNT(VAR3<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);DRAWTEXT(HY3,LOW,'注意买入'),COLORRED;S:=MA(VOL,5)/MA(VOL,60),COLORRED,,LINETHICK2;A:=MA(S,5),COLORGREEN,,LINETHICK2;BIAS:=(CLOSE-MA(CLOSE,5))/MA(CLOSE,5)*100;F:=MA(S,121);RSV:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;K:=SMA(RSV,15,1);D:=SMA(K,15,1);J:=3*K-2*D;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;DRAWTEXT(CROSS(84,RSI) , HIGH*1.06,'逃顶!'),COLORYELLOW ;S1:=IF((J<11 AND BIAS>-11 AND CROSS( S,F) AND (S-F)>0.010),2,0),STICK,LINETHICK3,COLORGREEN;DRAWTEXT(S1=2,LOW,'关注'), COLORGREEN;中轨:HHV(MA(H,13),13),COLORRED,LINETHICK2;趋势:LLV(MA(H,13),1),COLORGREEN,LINETHICK2;2、[通达信] 非常实用的----买卖指标SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100> 100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);AA10:MA(CLOSE,8),COLOR0000FF;AA12:MA(CLOSE,12),COL OR0000FF;BB10:=((ATAN((AA10 - REF(AA10,1))) * 3.1416) * 10);BB12:=((ATAN((AA12 - REF(AA12,1))) * 3.1416) * 10);MA13:=MA(CLOSE,13);STICKLINE((((AA12 <= AA10) AND (BB12 >= 1)) AND (BB10 >= 1)),AA10,AA12,4,0),COLOR0080FF;STICKLINE((((AA12 >= AA10) AND (BB10 <= 1)) AND (BB10 <= 1)),AA10,AA12,4,0),COLOR00FF00;X1:=(C+L+H)/3;BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;EMA8:=EMA(C,8);DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45上升'),COLORWHITE;压力:MA(REF(HHV(C,30),1),2),COLOR9DFFFF;支撑:MA(REF(LLV(C,30),1),2),COLORABFF46; 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.99),'老鼠仓'),COLOR4080FF;A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1);黑马线:=EMA(A51,5);A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;趋势线:=(MA(3*SMA(A54,6,1)-2*SMA(SMA(A54,5,1),5,1),2));DRAWTEXT(CROSS(趋势线,0)AND 黑马线<40,(HIGH* 0.97),'▲大黑马'),COLORYELLOW;LC:=REF(CLOSE,1);RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(CRO SS(FF,MA15),(LOW * 0.99),'底背离'),COLORA6E500;DRAWTEXT(CROSS(88,RSI),(HIGH * 1.02),'顶背离'),COLOR1880FF;VAR2:=LLV(LOW,27);VAR3:=HHV(HIGH,34);VAR4:=EMA((CL OSE-VAR2)/(VAR3-VAR2)*4,4)*25;注意买:=IF((VAR4<10),80,100);RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;超跌:=IF(J<0,10,0);BDDD:=LLV(J,2)=LLV(J,8);买入:=IF(CROSS(J,REF(J+0.01,1)) AND BDDD AND J<20,30,0);DRAWTEXT(买入AND 注意买=100 AND 超跌=0,LOW,'短线'),COLOR8000FF;MTM:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6), 6);买:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);3、[通达信] 相当好的主图源码----天机均线天机均线:通达信源码。

外汇交易通达信指标公式源码

外汇交易通达信指标公式源码

外汇交易通达信指标公式源码本文档提供了用于外汇交易的通达信指标公式源码。

一、简介外汇交易通达信指标公式源码是用于通达信软件的指标公式代码,可以用于外汇交易分析和决策。

二、使用方法通达信软件是国内较为常用的股票和期货交易软件,支持自定义开发指标公式,并且有相应的编程语言支持。

要使用本文档提供的外汇交易通达信指标公式源码,可以按照以下步骤进行:1. 打开通达信软件,并进入指标公式编辑器界面。

2. 创建一个新的指标公式文件。

3. 将本文档中的指标公式源码复制到指标公式文件中。

4. 根据自己的需求和交易策略,对指标公式进行适当的修改和调整。

5. 编译和保存指标公式文件。

三、注意事项在使用外汇交易通达信指标公式源码时,需要注意以下事项:1. 本文档提供的指标公式源码仅作为参考,使用者需要根据自己的需求和交易策略进行相应调整。

2. 在编写和调试指标公式时,建议先使用模拟交易账户进行测试,确保指标的准确性和有效性。

3. 外汇交易涉及风险,请使用者根据自身的风险承受能力进行交易决策,并合理控制风险。

四、附录以下是外汇交易通达信指标公式源码的示例:// 示例指标公式代码公式名称:移动均线输入:收盘价(CLOSE), 天数(N)输出:移动均线(MA)变量:累加和(SUM), 计数(COUNT)IF BARSLAST < N THENCOUNT := BARSLAST;ELSECOUNT := N;ENDIFSUM := SUM + CLOSE - VALUEWHEN(COUNT, CLOSE);MA := SUM / COUNT;五、总结本文档提供了外汇交易通达信指标公式源码和使用方法,帮助交易者在通达信软件中进行外汇交易分析和决策。

使用者在使用指标公式时应注意适当地调整和测试,并根据个人风险承受能力进行交易决策。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

300万外汇交易指标通达信指标公式源码
简介
本文档提供了用于外汇交易的通达信指标公式源码,涵盖了300万种不同的指标算法。

这些指标的源码可以帮助交易者自定义和开发自己的交易策略,从而更好地进行外汇交易。

目录结构
本文档中的源码按照以下结构进行分类和组织:
1. 价格指标:这些指标主要根据市场价格数据进行计算,包括移动平均线、相对强弱指标等。

2. 成交量指标:这些指标主要根据成交量数据进行计算,包括成交量变动率、成交量加权移动平均线等。

3. 动力指标:这些指标主要根据市场价格和成交量数据进行计算,包括相对强弱指标、随机指标等。

4. 波动指标:这些指标主要根据市场价格波动性进行计算,包括布林带、平均真实波幅等。

5. 趋势指标:这些指标主要用于判断市场趋势的方向,包括趋势线、动态趋势指标等。

6. 量价指标:这些指标主要根据市场价格和成交量的关系进行计算,包括相对强弱指标、开盘-收盘价差等。

使用方法
要使用这些指标源码,您需要在通达信软件中创建一个自定义指标,并将源码粘贴到指标公式编辑器中。

之后,您可以自由地调整指标参数或添加其他逻辑来满足您的交易策略需求。

在指标公式编辑器中,您还可以对指标进行回测和优化,以验证其有效性。

免责声明
请注意,本文档所提供的指标源码仅供参考和研究使用。

使用这些指标源码进行实际交易前,请确保您已经充分理解其逻辑和原理,并自行承担交易风险。

作者对使用这些指标源码所导致的任何损失概不负责。

结论
300万外汇交易指标通达信指标公式源码提供了丰富的指标算法,可以帮助交易者自定义和开发交易策略。

使用这些源码,交易者可以更好地理解市场动态,并基于自己的分析和判断进行决策,从而提高交易的准确性和效率。

相关文档
最新文档