四方多空趋势 通达信指标公式源码
通达信指标公式源码 多空PK 主图源码
指标源码;今日保护价:(REF(C,1)+REF(C,2)+O)/3,NODRAW;多:(SUM(((2*CLOSE+OPEN+HIGH+LOW)/5)*(VOL),8))/(SUM(VOL,8)),COLOR00FFFF,LIN ETHICK0;空:LLV(多,8),LINETHICK0,COLORFFFF00;DRAWBAND(多,RGB(140,0,140),空,RGB(0,0,0));DRAWKLINE(H,O,L,C);DRAWICON(REF(多,1)=REF(空,1) AND 多>空,LOW*0.98,13);DRAWTEXT(REF(多,1)=REF(空,1) AND 多>空,LOW*0.97,'*关注'),COLOR00FFFF;C1:=C>=多;C2:=C<多;AA:=C1>=C2 ;BB:=C2>C1 ;STICKLINE(AA,C,O,3.2,0),COLORRED;STICKLINE(AA,H,L,0,0),COLORRED;STICKLINE(BB,C,O,3.2,0),COLORFFFF00;STICKLINE(BB,H,L,0,0),COLORFFFF00;STICKLINE(AA,CLOSE,OPEN,3.2,0),COLOR000099;STICKLINE(AA,CLOSE,OPEN,2.6,0),COLOR0000AA;STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(AA,CLOSE,OPEN,1.8,0),COLOR0000DD;STICKLINE(AA,CLOSE,OPEN,1.3,0),COLOR0000FF;STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;STICKLINE(BB,CLOSE,OPEN,3.2,0),COLOR777700;STICKLINE(BB,CLOSE,OPEN,2.6,0),COLORAAAA00;STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORBBBB00;STICKLINE(BB,CLOSE,OPEN,1.8,0),COLORDDDD00;STICKLINE(BB,CLOSE,OPEN,1.3,0),COLOREEFF00;STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN;SJ:=WMA((C-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);ZJ:=WMA(0.667*REF(SJ,1)+0.333*SJ,2);DRAWTEXT(CROSS(SJ,ZJ) AND SJ<30,L-0.05,'←买入'),COLOR00FF00; DRAWTEXT(CROSS(ZJ,SJ) AND SJ>70,H+0.05,'←卖出'),COLORFFFF00; RC:=DYNAINFO(3);SA:=SMA(C,3,1);SB:=SMA(C,5,1);DK:=2*(SA-SB);STICKLINE(DK>0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLOR0000BB; STICKLINE(DK>0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLOR00BBBB; STICKLINE(DK<0 AND DK>=REF(DK,1),RC,RC+DK,0.1,0),COLORBB00BB; STICKLINE(DK<0 AND DK<REF(DK,1),RC,RC+DK,0.1,0),COLORBBBB00;。
通达信指标公式源码 多空对比副图+选股公式源码
多空对比副图:N= 1 100 5MA30:=EMA(CLOSE,30);H1:=MAX(DYNAINFO(3),DYNAINFO(5));L1:=MIN(DYNAINFO(3),DYNAINFO(6));P1:=H1-L1;阻力:L1+P1*7/8,COLORFFFFFF,DOTLINE;支撑:L1+P1*0.5/8,COLOR0080FF,DOTLINE;VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10; VAR2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;VAR3:=SMA(VAR2,13,8);高抛:100, POINTDOT,COLOR7D7D7D;低吸: 0, POINTDOT;做多能量: SMA(VAR3,13,8),COLOR000000;做空能量: SMA(VAR1,21,8),COLORD2D200,LINETHICK1;强弱分界: 50;主力资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3),COLOR000000; 即将爆发线: 65,COLOR000000;爆发线:80,COLOR000000,LINETHICK1;DRAWTEXT(CROSS(主力资金,爆发线),主力资金,'★爆点'),COLOR00FFFF;爆发警戒线: 50,COLOR000000;★买:20,COLOR000000;DRAWTEXT(CROSS(主力资金,抄底),主力资金,'★买'),COLOR00FFFF; DRAWTEXT(CROSS(主力资金,爆发警戒线),主力资金,'★加'),COLOR00FFFF; DRAWTEXT(CROSS(主力资金,即将爆发线),主力资金,'★加'),COLOR00FFFF; DRAWTEXT(CROSS(爆发线,主力资金),爆发线,'★减'),COLOR00FF00;短期:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE,LINETHICK1;长期:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR0000FF,LINETHICK3; 20,POINTDOT,COLOR00F000;50,POINTDOT,COLORD0D0FF,LINETHICK2;80,POINTDOT,COLOR7D7D7D;底:短期<6 AND 长期<6,STICK,COLORFF00FF,LINETHICK2; DRAWTEXT(底>0,0.1,'底'),COLORFF0000;针:短期<20 AND 长期>60,STICK,COLOR4080FF,LINETHICK2; DRAWTEXT(针>0,18.1,'针'),COLOR4080FF;Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;Q3:=SMA(Q2, 9, 1);跨越:=EMA(Q3, 3);VAR12:=(HHV(HIGH,36)-CLOSE)/(HHV(HIGH,36)-LLV(LOW,36))*100;机构做空能量线:=SMA(VAR12,3,1);大底:=0;★强势区:IF(CROSS(跨越,机构做空能量线) ,大底+35,0),COLOR000000,STICK,LINETHICK1;DRAWTEXT(★强势区>0,35.6,'★强势区'),COLOR00FFFF;A0:=(L+H+C*2)/4;A1:=EMA(A0,N);A1X:=(A1-REF(A1,1))/REF(A1,1)*100;☆:IF(A1X<0 AND REF(A1X,1)>=0 ,5,0),STICK,COLOR000000; DRAWTEXT(☆>0,95.6,'☆'),COLOR00FF00;★:IF(A1X>=0 AND REF(A1X,1)<0,3,0),STICK,COLOR0000FF; DRAWTEXT(★>0,0.6,'★'),COLORFF00FF;选股公式单针下20买入★阴线买★短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));XG1:短期<20 AND 长期>60;选股公式四线归一★次日买★下跌中抄底短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));XG1:短期<6 AND 中期<6 AND 中长期<6 AND 长期<6;。
通达信指标公式源码 趋势指标+多空对比
RSV:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*100;短多:SMA(RSV,3,1),COLORRED,LINETHICK1;短空:SMA(短多,3,1),COLORYELLOW,LINETHICK1;RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100;中多:SMA(RSV1,5,1),COLORFF00FF,LINETHICK1;中空:SMA(中多,10,1),COLORGREEN,LINETHICK1;DRAWBAND(中多,RGB(055,50,34),中空,RGB(100,100,50)); DRAWBAND(短多,RGB(255,50,34),短空,RGB(0,91,0));短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),COLORYELLOW;中长期:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),COLORMAGENTA;长期:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2; 长强势区:=IF((EVERY(短多>=REF(短多,1),1)AND 短多<短空),5,0)COLOR0000FF,LINETHICK3;低买:IF((CROSS(长强势区,0.1)),10,0),COLORWHITE,LINETHICK3;长强势区1:=IF((EVERY(中多>=REF(中多,1),1)AND 中多<18),5,0)COLOR0000FF,LINETHICK3;低买1:IF((CROSS(长强势区1,0.1)),5,0),COLORGREEN,LINETHICK3;长强势区11:=IF((EVERY(中多<=REF(中多,1),1)AND 中多>85),5,0)COLOR0000FF,LINETHICK3;高卖11:IF((CROSS(长强势区11,0.1)),105,110),COLORGREEN,LINETHICK3; 长强势区2:=IF((EVERY(短多<=REF(短多,1),1)AND 短多>短空),5,0)COLOR0000FF,LINETHICK3;低买2:IF((CROSS(长强势区2,0.1)),100,110),COLOR00FFFF,LINETHICK3;短期2:100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLORWHITE;中期2:100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10)),DOTLINE,COLORGRAY; 中长期2:100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20)),DOTLINE,COLORGRAY;长期2:100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLORRED,LINETHICK2;。
通达信指标公式源码 多空乾坤线主图指标
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.8,1,0,'今天,你打新股了吗?')COLORYELLOW;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.8,0.87,0,'今天,你打新股了吗?')COLORWHITE;DRAWTEXT_FIX(CURRBARSCOUNT=1,0.8,0.8,0,'今天,你打新股了吗?')COLORRED;M:=60; N:=30;乾坤线:EMA(CLOSE,M),COLORYELLOW;操盘线:=EMA(CLOSE,N);多线:IFF(操盘线>乾坤线,操盘线,DRAWNULL),COLORRED,LINETHICK1.8;线上选股:CROSS(C,多线) OR (O<多线AND C>多线),COLORWHITE,NODRAW; 空线:IFF(操盘线<=乾坤线,操盘线,DRAWNULL),COLORCYAN,LINETHICK1.8; 买信号:=REF(操盘线,1)<=REF(乾坤线,1) AND 操盘线>乾坤线;卖信号:=REF(操盘线,1)>=REF(乾坤线,1) AND 操盘线<乾坤线; DRAWICON(买信号,乾坤线,1);DRAWICON(卖信号,操盘线,2);转强:空线>REF(空线,1) AND 乾坤线>REF(乾坤线,1),NODRAW,COLORMAGENTA;STICKLINE(转强,空线*0.998,空线*1.002,1,1),COLORMAGENTA;转强XG: 转强AND REF(转强,1)=0,NODRAW,COLORRED;金叉:CROSS(操盘线,乾坤线),NODRAW,COLORYELLOW;LC:=REF(CLOSE,1);操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;卖:=CROSS(90,操作线);DRAWICON(卖,H*1.02,43);。
通达信指标公式源码分时多空指标
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);VAR1E:=EMA(VAR1D,30);VAR1F:=2*(VAR1D-VAR1E)*10;VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);VAR25:=IF(YEAR<2058 AND VAR1F>0.015,VAR20,0)/45/4;JJ :=(C*2+H+L)/4;SKK :( EMA(JJ,7) - EMA(JJ,13))*180,COLORRED;SDD : EMA(SKK,2),COLORYELLOW;多方:(SKK-SDD)*0.000000001,COLORRED,LINETHICK0;空方:-1*(SKK-SDD)*0.000000001,COLORGREEN,LINETHICK0; RC:=DYNAINFO(3);RC,COLORWHITE;MAV:=(2*C+H+L)/4;SK:(SLOPE(EMA(MAV,2),7)*15+MAV)*0.8*0.0001,COLORRED; SD:EMA(SK,2),COLORGREEN;SJ:2.8*SK-1.8*SD,COLORYELLOW;S2:=SMA(C,3,1);S6:=SMA(C,5,1);DK:2*(S2-S6)*15*4*1.5, COLORSTICK;STICKLINE(SK>SD AND DK<RC OR DK=RC,RC,RC+DK,0.01,0),COLORFF00FF;STICKLINE(DK>0 AND SK>SD ,RC,RC+DK,0.01,0),COLOR0000FF;STICKLINE(DK>0 AND SK<SD ,RC,RC+DK,0.01,0),COLORFFFF00;STICKLINE(DK>0 AND 多方<空方,RC,RC+DK,0.01,0),COLOR00FF00;STICKLINE(CROSS(多方,空方),RC,RC+DK,2,0),COLOR00FFFF;STICKLINE(CROSS(空方,多方),RC,RC+DK,2,0),COLORFF0000;STICKLINE(DK<0 AND 多方<空方AND SK<SD,RC,RC+DK,0.01,0),COLOR00FF00;VAR2:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;VAR3:=SMA(SMA(VAR2,3,1),3,1)/28.57;VAR4:=EMA(VAR3,5);操盘:=3*VAR3-2*VAR4;A1:=CROSS(操盘,VAR3) AND VAR3<2.1 AND C>O;STICKLINE(A1,8,0,4,0),COLOR0000FF;AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;CC:=EMA(AA,2);DD:=EMA(BB,5);TJ0:=CROSS(CC,DD);上:=EMA(C,3);中:=EMA(C,5);下:=EMA(中,5);TJ1:=CROSS(上,中);TJ2:=上>REF(上,1);X1:=(C+L+H)/3;BB5:=ATAN(EMA(X1,5)-REF(EMA(X1,5),1))*3.1416*10;EMA3:=EMA(C,3);TJ3:=BB5>1 AND EMA(X1,5)>REF(EMA(X1,3),1);STICKLINE(TJ1 AND TJ2 AND TJ0 AND TJ3,0,8,8,0)COLOR00FFFF;DRAWICON(TJ1 AND TJ2 AND TJ0 AND TJ3,0,15);DRAWBAND(SKK,RGB(200,50,55),SDD,RGB(50,100,10));持:IF(SKK>=SDD,SKK,DRAWNULL),COLORRED;观:IF(SDD>=SKK,SDD,DRAWNULL),COLORFF9900;股:IF(SKK>=SDD,SDD,DRAWNULL),COLOR00FFFF;望:IF(SDD>=SKK,SKK,DRAWNULL),COLOR00FF00;FT1:=FILTER(CROSS(SKK,SDD),5) AND SKK<0 AND SKK>REF(SKK,1) AND REF(SKK,1)>REF(SKK,2); DRAWICON(FT1,SKK,26);FT2:=FILTER(CROSS(SKK,0) AND 多方,8);DRAWICON(FT2,0,23);DRAWICON(FILTER(CROSS(SDD,SKK) AND SDD>10,3),SDD,19);。
通达信指标公式源码 主力多空 副图指标
天之:=(AV + NEWVOL);
天天选股:IF(CROSS(天之,0),0.5,0),COLORFFFFFF;
批注本地保存成功开通会员云端永久保存去开通
VAR1:=(CLOSE*2+HIGH+LOW)/4;
VAR2:=EMA(VAR1,13)-EMA(VAR1,34);
VAR3:=EMA(VAR2,5);
中轴:0,COLORWHITE,POINTDOT;
主力做多:2*(VAR2-VAR3)*3.8,LINETHICK1,COLORRED;
主力做空:(-2)*(VAR2-VAR3)*3.8,LINETHICK1,COLORGREEN;
波线:=SMA(主力做多,50,5),LINETHICK2,COLORFFFF00;
STICKLINE(REF(主力做空,2)<主力做空,主力做空,REF(主力做空,2),5,1),COLOR898989;
量价配合选股:IF(TJ3 AND TJ4,0.5,0),STICK,LINETHICK3,COLORFF00FF;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TR1:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
STICKLINE(REF(主力做多,1)<主力做多,主力做多,REF(主力做多,1),5,1),COLOR0000FF;
TJ1:=VOL>=HHV(VOL,20);
通达信指标公式源码 量化交易多空概率系统
n 1 100 4 m 1 100 4NK:=O#YEAR;NS:=C#YEAR;STICKLINE(NS>=NK,NS,NK,8,0),COLOR000099;STICKLINE(NS<NK,NS,NK,8,0),COLORLICYAN;QQ1:=VOL/((DHIGH-DLOW)*2-ABS(DCLOSE-DOPEN));主买:=IF(DCLOSE>DOPEN,QQ1*(DHIGH-DLOW),IF(DCLOSE<DOPEN,QQ1*((D HIGH-DOPEN)+(DCLOSE-DLOW)),VOL/2));主卖:=IF(DCLOSE>DOPEN,0-QQ1*((DHIGH-DCLOSE)+(DOPEN-DLOW)),IF(DCL OSE<DOPEN,0-QQ1*(DHIGH-DLOW),0-VOL/2));DD:=(主买+主卖)/10000;DDX1:=EMA(DD,60)*60;DDX2:=MA(DDX1,N);DDX3:=MA(DDX1,M);STICKLINE(DDX1<DDX3,H,L,0,0),COLORGREEN;STICKLINE(DDX1<DDX3,C,O,4,0),COLOR00B500;STICKLINE(DDX1<DDX3,C,O,3,0),COLOR00C600;STICKLINE(DDX1<DDX3,C,O,2,0),COLOR00D500;STICKLINE(DDX1<DDX3,C,O,1,0),COLOR00E600;STICKLINE(DDX1>DDX3,H,L,0,0),COLOR106FFF;STICKLINE(DDX1>DDX3,C,O,4,0),COLOR0000C8;STICKLINE(DDX1>DDX3,C,O,3,0),COLOR0000D7;STICKLINE(DDX1>DDX3,C,O,2,0),COLOR0000EA;STICKLINE(DDX1>DDX3,C,O,1,0),COLOR0000FF;STICKLINE(DDX1<DDX2 AND DDX1>DDX3,H,L,0,0),COLORFF5D10; STICKLINE(DDX1<DDX2 AND DDX1>DDX3,C,O,4,0),COLORFF5D10; STICKLINE(DDX1<DDX2 AND DDX1>DDX3,C,O,3,0),COLORFF7710; STICKLINE(DDX1<DDX2 AND DDX1>DDX3,C,O,2,0),COLORFF9910; STICKLINE(DDX1>DDX2 AND DDX1<DDX3,H,L,0,0),COLORFF00FF;STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,4,0),COLORD000D0; STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,3,0),COLORE600E6; STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,2,0),COLORF900F9; STICKLINE(DDX1>DDX2 AND DDX1<DDX3,C,O,1,0),COLORFF09FF; JRH:=HHV(CLOSE,2);JRL:=LLV(CLOSE,2);MA3:=MA(CLOSE,3);YTSL:=(3*CLOSE+LOW+OPEN+HIGH)/6;VAR1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2));VAR2:=(REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR3:=(REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR4:=(REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR5:=(REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR6:=(REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR7:=(REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR8:=(REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR9:=(REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VARA:=(REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARB:=(REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VARC:=(REF(VARB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VARD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); { M} VARE:=(REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VARF:=(REF(VARE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR10:=(REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR11:=(REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR12:=(REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));VAR13:=(REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));VAR14:=(REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR15:=(REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR16:=(REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR17:=(REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2));VAR18:=(REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2));VAR19:=((REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1); VAR1A:=((REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD);红色持股:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,COLOR0000FF,NODRAW;离场:=IF(红色持股,JRL,DRAWNULL);明离场价:离场,COLORFF99FF,NODRAW;今离场价:REF(离场,1)COLOR0000FF,NODRAW;青色观望:=VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,NODRAW;进:=IF(青色观望,JRH,DRAWNULL);明进场价:进,COLOR33AACC,NODRAW;今进场价:REF(明进场价,1),COLOR00FF00,NODRAW;短买:=VAR19,COLOR33AACC,NODRAW;品红离场:=VAR1A,COLORFF99FF,NODRAW;急速超跌:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100<-14,COLORFFFFFF,NODRA W;STICKLINE(ISLASTBAR AND (红色持股OR REF(红色持股,1)=1),今离场价,今离场价,30,1),COLOR0000FF;STICKLINE(ISLASTBAR AND (青色观望OR REF(青色观望,1)=1),今进场价,今进场价,30,1),COLOR00FF00;CO:=(C-O);STICKLINE(短买,O,O+CO/3,2.8,0),COLOR335555;STICKLINE(短买,O,O+CO/3,2,0),COLOR338888;STICKLINE(短买,O,O+CO/3,1.5,0),COLOR33AAAA;STICKLINE(短买,O,O+CO/3,1,0),COLOR33CCCC;STICKLINE(短买,O,O+CO/3,0,0),COLOR33EEEE;STICKLINE(品红离场,O,O+CO/3,2.8,0),COLOR550055;STICKLINE(品红离场,O,O+CO/3,2,0),COLOR880088;STICKLINE(品红离场,O,O+CO/3,1.5,0),COLORAA00AA;STICKLINE(品红离场,O,O+CO/3,1,0),COLORCC00CC;STICKLINE(品红离场,O,O+CO/3,0.5,0),COLOREE00EE;ZC:=DCLOSE#WEEK;ZO:=DOPEN#WEEK;ZH:=DHIGH#WEEK;ZL:=DLOW#WEEK;ZJ:=(ZC+ZO+ZH+ZL)/4;做空68:ZJ*(1+0.068),COLORRED; 做空95:ZJ*(1+0.136),COLORBLUE; 做多68:ZJ*(1-0.068),COLORGREEN; 做多95:ZJ*(1-0.136),COLOR8409FF;。
通达信指标公式源码 多空潜伏精品副图+选股指标
{趋向指标}{N 2 90 14 M 2 60 6}MTR:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE ,1)-LOW)),N);HD :=HIGH-REF(HIGH,1);LD :=REF(LOW,1)-LOW;DMP:=SUM(IF(HD>0&&HD>LD,HD,0),N);DMM:=SUM(IF(LD>0&&LD>HD,LD,0),N);PDI: DMP*100/MTR;MDI: DMM*100/MTR;ADX: MA(ABS(MDI-PDI)/(MDI+PDI)*100,M);ADXR:(ADX+REF(ADX,M))/2;看多线:20,DOTLINE,COLORRED;MA5:=MA(C,5);MA10:=MA(C,10);MA20:=MA(C,20);MA30:=MA(C,30);MA60:= MA(C,60);MAX1:=MAX(MA5,MA10);MAX2:=MAX(MAX1,MA20);MAX3:=MAX(MAX2,MA30);MAXH:=MAX(MAX3,MA60);MIN1B:=MIN(MA5,MA10);MIN2:=MIN(MIN1B,MA20);MIN3:=MIN(MIN2,MA30);MINL:=MIN(MIN3,MA60);粘合度:=(MAXH-MINL)/MINL*100;多头发散:=MA5>REF(MA5,1) AND MA5>MA10 AND MA10>=REF(MA10,1) AND MA10>MA20 AND MA20>=REF(MA20,1) AND MA20>MA30 ANDMA30>=REF(MA30,1) AND MA30>MA60 AND MA60>=REF(MA60,1);选股:BARSLASTCOUNT(粘合度<=5)=2 AND 多头发散;DRAWTEXT(CROSS(PDI,MDI) AND EXIST(粘合度<=8,5) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2)AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1),38,'多'),COLORRED;DRAWTEXT(CROSS(PDI,MDI) AND EXIST(粘合度<=8,5) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2)AND MA(C,5)>REF(MA(C,5),1) AND MA(C,10)>REF(MA(C,10),1),48,'看'),COLORRED;DRAWTEXT(CROSS(MDI,PDI),38,'看'),COLORGREEN;DRAWTEXT(CROSS(MDI,PDI),26,'空'),COLORGREEN;DRAWTEXT(CROSS(PDI,MDI) AND ADX>20 AND ADXR>20 ANDMA(C,10)>REF(MA(C,10),1),28,'主'),COLORRED;DRAWTEXT(CROSS(PDI,MDI) AND ADX>20 AND ADXR>20 ANDMA(C,10)>REF(MA(C,10),1),18,'升'),COLORRED;DRAWTEXT(CROSS(PDI,ADX) AND CROSS(PDI,ADXR) AND MDI<REF(MDI,1) AND ADX>REF(ADX,1) AND ADXR>REF(ADXR,1)AND ATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45,58,'走'),COLORRED;DRAWTEXT(CROSS(PDI,ADX) AND CROSS(PDI,ADXR) AND MDI<REF(MDI,1) AND ADX>REF(ADX,1) AND ADXR>REF(ADXR,1)AND ATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45,48,'牛'),COLORRED;升1:=CROSS(ADXR,20) ANDATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60;升2:=CROSS(ADX,20) AND ATAN((ADX/REF(ADX,1)-1)*100)*180/3.1416>60; 升3:=CROSS(PDI,20) AND ATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60; 升4:=CROSS(20,MDI) ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45;反降:=MDI<REF(MDI,1) ANDATAN(((2*REF(MDI,1)-MDI)/REF(MDI,1)-1)*100)*180/3.1416>45;升:=升1 OR 升2 OR 升3 OR 升4;{好}DRAWTEXT(升AND 反降AND ADX>20 AND ADXR>20 AND PDI>20 ANDADX>REF(ADX,1) AND PDI>=REF(PDI,1) AND MA(C,5)>REF(MA(C,5),1),46,'升'),COLORRED;DRAWTEXT(升AND 反降AND ADX>20 AND ADXR>20 AND PDI>20 AND ADX>REF(ADX,1) AND PDI>=REF(PDI,1) AND MA(C,5)>REF(MA(C,5),1),36,'势'),COLORRED;DRAWTEXT(ADX<REF(ADX,1) AND ADXR<REF(ADXR,1) AND PDI<REF(PDI,1) AND MDI>REF(MDI,1)AND MA(C,5)<REF(MA(C,5),1),44,'降'),COLORGREEN;DRAWICON(CROSS(PDI,MDI),PDI,1);DRAWICON(CROSS(MDI,PDI),MDI,2);DRAWTEXT(CROSS(PDI,ADXR) ANDATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 AND MDI<=REF(MDI,1) AND MA(C,5)>REF(MA(C,5),1) AND PDI>MDI,22,'短'),COLORRED; DRAWTEXT(CROSS(PDI,ADXR) ANDATAN((PDI/REF(PDI,1)-1)*100)*180/3.1416>60 AND MDI<=REF(MDI,1) AND MA(C,5)>REF(MA(C,5),1) AND PDI>MDI,18,'升'),COLORRED;{黄金坑}RR1:=MA(CLOSE,27);RR2:=(CLOSE-RR1)/RR1*100;RRA:=MA(RR2,2);RRB:=BARSLAST(CROSS(-10,RRA)=1);RRD:=RRA<-10 AND RRB>3;黄金坑:=IF(RRD,-120,0);{CCI}TYP:=(HIGH+LOW+CLOSE)/3;CCI:=(TYP-MA(TYP,NC))/(0.015*AVEDEV(TYP,NC));DRAWTEXT(CROSS(CCI,0),66,'上'),COLORRED;DRAWTEXT(CROSS(0,CCI),66,'下'),COLORGREEN;DRAWTEXT(CROSS(CCI,100),56,'突'),COLORRED;DRAWTEXT(CROSS(100,CCI),56,'落'),COLORGREEN;DRAWTEXT(CROSS(100,CCI) AND MA(C,20)>REF(MA(C,20),1),60,'暂'),COLORGREEN;叉1:=CROSS(ADX,0) AND ATAN((ADX/REF(ADX,1)-1)*100)*180/3.1416>60; 叉2:=CROSS(ADXR,0) ANDATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60;叉3:=CROSS(20,PDI) ANDATAN(((2*REF(PDI,1)-PDI)/REF(PDI,1)-1)*100)*180/3.1416>45;叉4:=CROSS(MDI,20) AND ATAN((MDI/REF(MDI,1)-1)*100)*180/3.1416>45; 叉:=叉1 OR 叉2 OR 叉3 OR 叉4;逆势:=MDI>REF(MDI,1) ANDATAN((MDI/REF(MDI,1)-1)*100)*180/3.1416>45 AND MDI>20; DRAWTEXT(叉AND 逆势AND PDI<20 AND MDI>20 AND ADX>20 AND ADXR>20,54,'跌'),COLORGREEN;DRAWTEXT(叉AND 逆势AND PDI<20 AND MDI>20 AND ADX>20 ANDADXR>20,50,'势'),COLORGREEN;跌角1:=ATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60 ANDATAN((ADXR/REF(ADXR,1)-1)*100)*180/3.1416>60AND ATAN((MDI/REF(MDI,1)-1)*100)*180/3.1416>60 AND ADXR>20 AND ADX>20 AND MDI>20 AND MDI>REF(MDI,1);DRAWTEXT(跌角1 ANDATAN(((2*REF(PDI,1)-PDI)/REF(PDI,1)-1)*100)*180/3.1416>45 ANDMA(C,10)<REF(MA(C,10),1),34,'大'),COLORGREEN;DRAWTEXT(跌角1 ANDATAN(((2*REF(PDI,1)-PDI)/REF(PDI,1)-1)*100)*180/3.1416>45 ANDMA(C,10)<REF(MA(C,10),1),30,'跌'),COLORGREEN;潜伏:=CROSS(PDI,MDI) AND MA(C,5)>REF(MA(C,5),1) ANDMA(C,10)>REF(MA(C,10),1) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2) AND EXIST(粘合度<=8,5);潜伏2:=CROSS(PDI,MDI) AND MA(C,5)>REF(MA(C,5),1) ANDMA(C,10)>REF(MA(C,10),1) ANDMA(C,20)-REF(MA(C,20),1)>REF(MA(C,20),1)-REF(MA(C,20),2) AND EXIST(粘合度<=8,5) AND EXIST(黄金坑,10);DRAWTEXT(潜伏,14,'潜'),COLORYELLOW;DRAWTEXT(潜伏,10,'伏'),COLORYELLOW;DRAWTEXT(潜伏2,6,'潜'),COLORRED;DRAWTEXT(潜伏2,2,'伏'),COLORRED;。
通达信副图指标多空博弈(附源码)
注:平台目前更新的有关公式源码,部分可直接导入使用(全部支持电脑手机),有些提示编码错误的,可以及时联系我们这边,帮忙处理(捡漏勿扰,会有收费)喜欢加关注,感谢点赞支持,后市若有可期,希望越来越好!
平台目前更新的有关公式源码部分可直接导入使用全部支持电脑手机有些提示编码错误的可以及时联系我们这边帮忙处理捡漏勿扰会有收费喜欢加关注感谢点赞支持后市若有可期希望越来越好
通达信副图指标多空博弈(附源码)
通达信副图指标多空博弈(附源码)
VAR1:=(HHV(HIGH,21)-C)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
VAR2:=(C-LLV(LOW,21))/(HHV(HIGH,21)-LVAR2,13,8);
多方: SMA(VAR3,13,8),OLORRED;
空方: SMA(VAR1,21,8),COLORGREEN;
高位:90,POINTDOT;
中位:45,;
通达信指标公式源码 多空压力线主图指标
多空压力线主图指标源码通达信贴图用法:黄托底买进,绿压顶卖出,简单实用,一目了然。
来自老师的源码,初来驾到,喜欢的点个赞,不喜勿喷。
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);支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;VAR1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);VAR2:=REF(VAR1,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR3:=REF(VAR2,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR4:=REF(VAR3,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR5:=REF(VAR4,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR6:=REF(VAR5,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR7:=REF(VAR6,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR8:=REF(VAR7,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR9:=REF(VAR8,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARA:=REF(VAR9,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARB:=REF(VARA,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARC:=REF(VARB,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VARD:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);VARE:=REF(VARD,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VARF:=REF(VARE,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR10:=REF(VARF,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR11:=REF(VAR10,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR12:=REF(VAR11,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR13:=REF(VAR12,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR14:=REF(VAR13,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR15:=REF(VAR14,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR16:=REF(VAR15,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR17:=REF(VAR16,1) AND CLOSE<=REF(CLOSE,1) ANDCLOSE>=REF(CLOSE,2);VAR18:=REF(VAR17,1) AND CLOSE>=REF(CLOSE,1) ANDCLOSE<=REF(CLOSE,2);VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 ORVAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1) AND VAR1; STICKLINE(VAR19,L,L*0.98,3,0),COLORYELLOW;VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 ORVAR8 OR VAR9 OR VARA OR VARB OR VARC,1) AND VARD;STICKLINE(VAR1A,H*1.01,H,3,0),COLOR00FF00{98FD};MA3:MA(C,3);MA5:MA(C,5),COLORWHITE;MA10:=MA(C,10),NODRAW;MA30:MA(C,34),NODRAW;五日乖离率:=(C-MA5)/MA5*100;BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416;IF(BB5>30 AND MA5>REF(MA5,1),MA5,DRAWNULL),LINETHICK1,COLORRED;BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416;IF(BB5<0 AND MA5<REF(MA5,1),MA5,DRAWNULL),LINETHICK1,COLORGREEN;DD5:=MA5<REF(MA5,1);IF(DD5,MA5,DRAWNULL),COLOR00FF00;X:=(3*C+L+O+H)/6;多空线:(20*X+19*REF(X,1)+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)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*R EF(X,12)+7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*RE F(X,18)+REF(X,20))/210,COLORFF00FF,LINETHICK1;DD:=多空线<REF(多空线,1);IF(DD,多空线,DRAWNULL),COLORBLUE,LINETHICK2;A:=(MA5>多空线);IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT;A1:=(MA5<多空线);IF(A1,多空线,DRAWNULL),COLORWHITE;A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5)-2*EMA((C-LLV(L,30 ))/(HHV(H,30)-LLV(L,30))*100,5);A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;A5:=EMA(CLOSE,2)-EMA(CLOSE,13);{12,26,改成2,13,}A6:=EMA(A5,9);下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH, 3),1),LINETHICK2;STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,; DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));。
【股票指标公式下载】-【通达信】多空分界(分界点、空方防守价、趋势)
【通达信】多空分界(分界点、空方防守价、趋势)-指标公式源码{多空分界(现)}空方防守价:=EMA(HIGH,4);多方防守价:=EMA(LOW,5);B1:=IF(CROSS(CLOSE,空方防守价),1,IF(CROSS(多方防守价,CLOSE),-1,0)); B2:=REF(B1,BARSLAST(B1));B3:=IF(B2=1,多方防守价,IF(B2=-1,空方防守价,0));分界点:B3,NODRAW,COLORFF00FF;MA1:=B3;C1:=(ABS(CLOSE-MA1))/CLOSE;J:=(HHV(C1,160)+LLV(C1,160))/1.7;CC:=IF(C1<=J-J/2,1,IF(C1<=J-J/3 AND C1>J-J/2,2,IF(C1<=J+J/3 ANDC1>J-J/3,3,IF(C1<=2*J AND C1>J+J/3,4,IF(C1>2*J,5,0))))); STICKLINE(CLOSE>MA1,0,CC,3,0),COLORFFFFFF;STICKLINE(CLOSE>MA1,0,CC,2,0),COLOR0000FF;STICKLINE(CLOSE>MA1 AND CC>3,3,CC,3,0),COLORFFFF00;STICKLINE(CLOSE<MA1,0,-CC,3,0),COLORFFFFFF;STICKLINE(CLOSE<MA1,0,-CC,2,0),COLORFF3333;STICKLINE(CLOSE<MA1 AND CC>3,-3,-CC,3,0),COLORFF00FF;DRAWTEXT(CLOSE>=MA1 AND ISLASTBAR=1,1,'←多↑'),COLOR0000FF; DRAWTEXT(CLOSE<MA1 AND ISLASTBAR=1,-1,'←空↓'),COLOR00FF00; {PARTLINE(1,0);}VAR6:=(2*CLOSE+HIGH+LOW)/4;VAR8:=LLV(LOW,34);VARB:=HHV(HIGH,34);BB:=EMA((VAR6-VAR8)/(VARB-VAR8)*100,9);趋势:EMA(0.667*REF(BB,1)+0.333*BB,2),NODRAW,COLORFFFF00;Q:=(2*CLOSE+HIGH+LOW)/4;A1:=LLV(LOW,24);A2:=HHV(HIGH,24);A:=EMA((Q-A1)/(A2-A1)*100,13);B:=EMA(0.667*REF(A,1)+0.333*A,3);力道:A-B,NODRAW,COLOR00FFFF;【通达信】多空分界(分界点、空方防守价、趋势)-指标公式效果图(文档来源:若水财经社区)。