首页 > 编程语言 >通达信九转主图指标公式源码主图

通达信九转主图指标公式源码主图

时间:2024-03-10 11:14:56浏览次数:27  
标签:VAR1 VAR2 主图 MID 通达信 源码 LJL07 CLOSE REF

{ 通达信九转主图指标公式源码主图 }

买线:=EMA(C,1);
卖线:=EMA(SLOPE(C,10)*10+C,20);
STICKLINE(买线>=卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR442233;
STICKLINE(买线<卖线,REFDATE(HHV(H,0),DATE),REFDATE(LLV(L,0),DATE),6,0),COLOR224056;
DRAWKLINE(H,O,L,C);{波段红青k线}
STICKLINE(买线>=卖线,L,H,0,0),COLOR2F2FFF;
STICKLINE(买线>=卖线,C,O,3.1,0),COLOR000033;
STICKLINE(买线>=卖线,C,O,2.1,0),COLOR000099;
STICKLINE(买线>=卖线,C,O,1.5,0),COLOR0000CC;
STICKLINE(买线>=卖线,C,O,0.3,0),COLOR0000FF;{立体红颜色};
STICKLINE(买线<卖线,L,H,0,0 ),COLORFFFF00;
STICKLINE(买线<卖线,C,O,3.1,0 ),COLOR000000;
STICKLINE(买线<卖线,C,O,2.1,0 ),COLOR6A6A00;
STICKLINE(买线<卖线,C,O,1.5,0 ),COLORDDDD00;
STICKLINE(买线<卖线,C,O,0.3,0),COLORFFFF00;{立体青色};
ME2:=EMA(CLOSE,6);
五天:=expma(CLOSE,5),COLORRED;
超短线:=EMA(ME2,11),COLORGREEN; LJL07:=(3*C+L+O+H)/6;
牛线:=(20*LJL07+19*REF(LJL07,1)+18*REF(LJL07,2)+17*REF(LJL07,3)+16*REF(LJL07,4)+15*REF(LJL07,5)+14*REF(LJL07,6)+13*REF(LJL07,7)+12*REF(LJL07,8)+11*REF(LJL07,9)+10*REF(LJL07,10)+9*REF(LJL07,11)+8*REF(LJL07,12)+7*REF(LJL07,13)+6*REF(LJL07,14)+5*REF(LJL07,15)+4*REF(LJL07,16)+3*REF(LJL07,17)+2*REF(LJL07,18)+REF(LJL07,20))/210,COLORRED;
熊线:=MA(牛线,5),COLORYELLOW,LINETHICK4,POINTDOT;
持股:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE;
{趋势}
赚了:=IF(EMA(CLOSE,3)>超短线,超短线,DRAWNULL),COLORRED;
持股角度:=ATAN((持股/REF(持股,1)-1)*100)*180/3.1416,COLORRED,NODRAW;
月线:=EMA(持股,30),COLORYELLOW,DOTLINE;
双月线:=EMA(持股,60),COLORCYAN,DOTLINE;
操作线20日:EMA(C,20),DOTLINE,COLOR0000FF;
红升:IF(操作线20日>REF(操作线20日,1),操作线20日,DRAWNULL),COLOR0000FF,LINETHICK3;
绿降:IF(操作线20日<ref(操作线20日,1),操作线20日,drawnull),dotline,color0000ff;
趋势线:EXPMA(C,5),DOTLINE,COLORYELLOW;
KK1:=趋势线<ref(趋势线,1);
IF(KK1,趋势线,DRAWNULL),DOTLINE,COLORYELLOW;
DD1:=趋势线>REF(趋势线,1);
IF(DD1,趋势线,DRAWNULL),COLOR00FFFF,LINETHICK2;
均价:=(3*C+H+L+O)/6;
VAR1:=(8*均价+7*REF(均价,1)+6*REF(均价,2)+5*REF(均价,3)+
4*REF(均价,4)+3*REF(均价,5)+2*REF(均价,6)+REF(均价,8))/36;
VAR2:=(LLV(VAR1,2)+LLV(VAR1,4)+LLV(VAR1,6))/3;
SZ1:=REF(VAR1,1)=REF(VAR2,1) AND VAR1>VAR2 AND CLOSE>VAR1;
SZ2:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND H/VAR1<1.1 AND L>VAR2 AND CLOSE>VAR1;
SZ3:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>=REF(VAR2,1) AND H/VAR1>1.1;
SZ4:=VAR1>VAR2 AND VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1)
AND CLOSE>VAR2 AND CLOSE<var1;
SZ5:=(VAR1>VAR2 AND VAR2>REF(VAR2,1) AND VAR1<>REF(VAR1,1)
AND CLOSE<var2) or="" (var1="">VAR2 AND VAR1<ref(var1,1)
AND VAR2<ref(var2,1) and="" close<var2);<br=""> SZ6:=REF(VAR1,1)>REF(VAR2,1) AND VAR1=VAR2 AND CLOSE<var2;
XD1:=VAR1=VAR2 AND CLOSE AND REF(VAR1,1)=REF(VAR2,1) AND CLOSE<var2);
XD2:=VAR1=VAR2 AND CLOSE>VAR1;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:=IF(SAT>1,1,SAT)*100;
J5:MA(C,5)NODRAW;
J10:MA(C,10)NODRAW;
J30:MA(C,30)NODRAW;
J60:MA(C,60)NODRAW;
J120:MA(C,120)NODRAW;
J250:MA(C,250)NODRAW;
JXDT:=J10>J30 AND J30>J60 AND J60>J250 AND J30>J120;
FGA:=O<ma(c,5) and="" o<ma(c,10)="" c="">MA(C,5) AND C>MA(C,10);
SL:=V<ma(v,40) and="" v<ma(v,135);<br=""> DL:=L=LLV(V,10);
CS1:=JXDT AND COUNT(SL,4)>=1;
CS2:=JXDT AND COUNT(DL,4)>=1;
CS:=CS1 OR CS2;
JS:=CS AND FGA;
DRAWICON(JS,L*0.98,23);
ENTERLONG:DRAWICON(crOSS(买线,卖线),L,42);
EXITLONG:DRAWICON(CROSS(卖线,买线),H,43);
DRAWTEXT_FIX(1,0.0,0.0,0,GNBLOCK)COLORYELLOW;
DRAWTEXT_FIX(1,0.96,0.99,0,HYBLOCK),COLORYELLOW;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VARR1:=(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210;
VARR2:=MA(VARR1,17);
A1:=C>REF(C,4);
A2:=BArslASTCOUNT(A1);
A3:=REF(A2,1)=8 AND A2>REF(A2,1);
A4:=REF(BETWEEN(A2,5,8),1) AND A2< REF(A2,1);
A5:=ISLASTBAR AND BETWEEN(A2,1,8);
A6:=(BacKSET(A3>0,9) OR BACKSET(A4>0,A2+1)*0 OR BACKSET(A5>0,A2))*A2;
DRAWTEXT(A6>0,H+H*0.005,VAR2STR(A6,0)),COLOR00FFFF;
DRAWTEXT(A2=9,H+H*0.005,'9'),COLORGREEN;
B1:=C< REF(C,4);
B2:=BARSLASTCOUNT(B1);
B3:=REF(B2,1)=8 AND B2>REF(B2,1);
B4:=REF(BETWEEN(B2,5,8),1) AND B2< REF(B2,1);
B5:=ISLASTBAR AND BETWEEN(B2,1,8);
B6:=(BACKSET(B3>0,9) OR BACKSET(B4>0,B2+1)*0 OR BACKSET(B5>0,B2))*B2;
DRAWTEXT(B6>0,L-L*0.005,VAR2STR(B6,0)),COLORGREEN;
DRAWTEXT(B2=9,L-L*0.005,'9'),COLORRED;

 

标签:VAR1,VAR2,主图,MID,通达信,源码,LJL07,CLOSE,REF
From: https://www.cnblogs.com/zhibiao/p/18063857

相关文章

  • 通达信平台支撑线主图指标公式源码
    {通达信平台支撑线主图指标公式源码}N日平台:=20;所属板块:=STRCAT('【所属板块】',STRCAT(STRCAT(STRCAT('【行业】',HYBLOCK),STRCAT('【概念】',GNBLOCK)),STRCAT('【地区】',DYBLOCK)));DRAWTEXT_FIX(ISLASTBAR,0.00,0.0,0,所属板块),COLORBLUE;MA5:MA(CLOSE,5),COLORD......
  • 通达信突破追涨副图指标公式
    {通达信突破追涨副图指标公式}T1:=BARSLAST(EMA(CLOSE,5)<ref(ema(close,5),1))=1;<br="">C1:=MAX(C,O);GAO1:=MAX(REF(C1,1),REF(C1,2));GAO2:=MAX(GAO1,REF(C1,3));GAO3:=MAX(GAO2,REF(C1,4));GAO4:=MAX(GAO3,REF(C1,5));GAO5:=MAX(GAO4,REF(C1,6));GAO6......
  • 通达信三线合一主图,抓住老鼠仓源码
    {通达信三线合一主图,抓住老鼠仓源码}源码参数数量:2参数1:N,最小:0,最大:1000,缺省:6参数2:M,最小:0,最大:1000,缺省:3公式类型:技术指标公式-其他类型画线方法:主图叠加公式版本:0显示小数:缺省位数坐标线位置:自动额外Y轴分界:无参......
  • 通达信牛股平台突破,副图指标公式
    {通达信牛股平台突破,副图指标公式}MA10A:=MA(CLOSE,10);MA54A:=MA(CLOSE,54);HJ_8:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;HJ_9:=FILTER(HJ_8,10);HJ_10:=BArslAST(HJ_9);HJ_11:=REF(HIGH,HJ_10+2);HJ_12:=REF(HIGH,HJ_10+1);HJ_13:=REF(HIGH,HJ_10);HJ_14:=MAX(......
  • 通达信涨停阴阳绝杀主图源码
    {通达信涨停阴阳绝杀主图源码} DRAWGBK(C>0,RGB(20,10,60),RGB(350,60,150),0,'1',0);DRAWKLINE(H,O,L,C);涨停:=IF((C-REF(C,1))/REF(C,1)>0.097,1,0);STICKLINE(涨停,OPEN,CLOSE,3,0),COLORMAGENTA;BL:=MA(CLOSE,10);UB:=BL+2*STD(CLOSE,10);LB:=BL-2*STD(CLOSE,......
  • 通达信精进3号主图,清楚显示支撑压力位置源码
    {通达信精进3号主图,清楚显示支撑压力位置源码}清楚显示支撑压力位置用法:1、当天进出价位均用白色线显示,(只显示当天和变盘的那一天),其余时间表示趋势未变。向上突破白色线进入,向下破位白色线必出,必须严格执行;2、当天发生变盘分别用黄K线和绿色K线提示;3、进出价位分别用红......
  • 通达信发现庄家主图指标公式源码
    {通达信发现庄家主图指标公式源码}支撑线:EMA((O+C)/2,20),DOTLINE,COLORCYAN;妖股起爆:MA(CLOSE,25)+MA(CLOSE,25)*20/100*0.35,COLORRED,LINETHICK2;Z1:=STRCAT(HYBLOCK,'');Z2:=STRCAT(Z1,DYBLOCK);Z3:=STRCAT(Z2,'');DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNB......
  • 通达信海龟升级版指标很好的短线主图
    {通达信海龟升级版指标很好的短线主图}N1:=55;N2:=20;LC:=REF(CLOSE,1);WTR:=MAX((HIGH-LOW),MAX((HIGH-LC),(LC-LOW)));ATR:=SMA(WTR,20,1);AA:=(HHV(HIGH,N1)-(2*ATR));BB:=CROSS(CLOSE,REF(HHV(HIGH,55),1));SSS:=CROSS(MIN(MA(CLOSE,13),AA),CLOSE);BBB......
  • 通达信神舟一号选股指标公式源码副图选股
    {通达信神舟一号选股指标公式源码副图选股}QQ:=REF(LLV(LOW,30),1);DD:=REF(HHV(HIGH,30),1);ZZ:=REF(MA(V,3),1);VV:=((DD-QQ)/QQ)<10;BB:=V>=1.5*ZZ;CC:=(C-REF(C,1))/REF(C,1)>=0.05ANDDD/C<1.03;QQ1:=LLV(LOW,18);DD1:=HHV(HIGH,18);ZZ1:=MA(V,3);VV1:=((DD1......
  • 通达信黑马天龙出击指标公式源码
    {通达信黑马天龙出击指标公式源码}A18:=(EMA(CLOSE,2));A19:=(EMA((((SLOPE(CLOSE,21))*20)+CLOSE),42));A20:=(HHV((MA(HIGH,13)),13));A21:=(LLV((MA(HIGH,13)),1));A22:=(EMA(CLOSE,4));A23:=((((A18>=A19)AND(A21=A20))AND(A18>A22))AND(CLOSE>A21))AND((REF......