以下是通达信精品合一主图公式源码和截图
通达信精品合一主图公式源码:
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;
A1:=2*((EMA(CLOSE,2)-EMA(CLOSE,89))-EMA((EMA(CLOSE,2)-EMA(CLOSE,89)),30))*10;
A2:=2*((EMA(CLOSE,2)-EMA(CLOSE,150))-EMA((EMA(CLOSE,2)-EMA(CLOSE,150)),100));
A3:=(POW(A1,3)*0.1+POW(A1,2))/45+(POW(A2,3)*0.1+POW(A2,1))*5,COLORRED;
A4:=CROSS(C,EMA(C,14))ANDEMA(C,14) REF(EMA(C,14),2);
AA:=MAX(MAX(MAX(MA(C,5),MA(C,10)),MAX(MA(C,30),MA(C,60))),MA(C,120));
AB:=MIN(MIN(MIN(MA(C,5),MA(C,10)),MIN(MA(C,30),MA(C,60))),MA(C,120));
AC:=O =ABANDC
A4ANDCROSS(A3,EMA(A3,5))ANDJ 30ANDAC;
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),COLOR656500;
STICKLINE(C O,C,O,2.5,0),COLOR757500;
STICKLINE(C O,C,O,2,0),COLOR858500;
STICKLINE(C O,C,O,1.5,0),COLOR959500;
STICKLINE(C O,C,O,1,0),COLORA5A500;
STICKLINE(C O,C,O,0.5,0),COLORB5B500;
STICKLINE(C O,H,L,0,0),COLORC5C500;
AA:=MA(CLOSE,18)+ABS(MA(CLOSE,18)-REF(MA(CLOSE,18),1)),COLORGREEN,LINETHICK2;
BB:MA(CLOSE,18)+MA(CLOSE,18)-REF(MA(CLOSE,18),1),COLORGREEN,LINETHICK2;
CC:IF(MA(CLOSE,18) BB,BB,MA(CLOSE,18)),COLORRED,LINETHICK2;
AAM:=MA(CLOSE,2);
AM4:=MA(CLOSE,4),COLORFFFFF0;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8 0,2)ANDCROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖买进'),COLORGREEN;
AAA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:=AAA*102/100,COLORFF00FF;
通道2:=AAA*(200-102)/100,COLORFF00FF;
XG:=IF(CROSS(C,MA(CLOSE,18)),1,0),COLOR00FFFF,LINETHICK3;
分位:=(O+C)/2;
昨位:=REF(分位,1);
STICKLINE(ISLASTBAR,昨位,昨位,50,0),COLOR00FF00;
DRAWNUMBER(ISLASTBAR,昨位,昨位);
DRAWTEXT(ISLASTBAR,昨位,'FF');
龙:=MA(CLOSE,33),COLOR00FF00,LINETHICK2;
C1:=REF(C,1);
ZT:=(C-C1)/C1 =0.1-0.01/C1AND(C=H);
STICKLINE(ZT,C,O,3,0),COLOR00FFFF;
STICKLINE(ZT,C,L,0,0),COLOR00FFFF;
STICKLINE(ZT,C-(C-O)/2,C-(C-O)/2,100,0),COLOR00FFFF;
{2.跌停公式:}
DT:=(C1-C)/C1 =0.1-0.01/C1AND(C=L);
STICKLINE(DT,C,O,3,0),COLORFC0200;
STICKLINE(DT,O,L,0,0),COLORFC0200;
STICKLINE(DT,C-(C-O)/2,C-(C-O)/2,100,0),COLORFC0200;
MA1:=MA(CLOSE,5);
拐点:=MA1 REF(MA1,1);
XGG:=拐点{ANDNOT(REF(拐点,1))ANDREF(MA1,1) REF(MA1,2)ANDREF(MA1,2) REF(MA1,3)};
Z:=IF(CURRBARSCOUNT=1,C,DRAWNULL);
收盘线:IF(CURRBARSCOUNT 3600,REFDATE(Z,DATE),DRAWNULL),COLORC0C0C0,DOTLINE;
DRAWICON(XG,{MA1*0.98}收盘线*0.8,9);
DRAWICON(FILTER(买=1,5),收盘线*0.8,1),COLORGREEN;
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,25))/4;
UPR:=BBI+3*STD(BBI,13),LINETHICK2;
DWN:=BBI-3*STD(BBI,13);
安全:=MA(CLOSE,55),LINETHICK2;
LC:=REF(CLOSE,1);
RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
{Z:=IF(CURRBARSCOUNT=1,C,DRAWNULL);}
Z线:IF(CURRBARSCOUNT 3600,REFDATE(Z,DATE),DRAWNULL),COLORC0C0C0,DOTLINE;
A77:=(3*C+L+O+H)/6;
操作:=MA(A77,5),COLORBLUE,LINETHICK2;
VAR1:LLV(A77,21),COLORCCFF89,LINETHICK1;
VAR2:HHV(A77,21),COLORRED,LINETHICK1;
高卖:=IF((CROSS(VAR2*0.999,A77)),3,0),COLOR00FFFF,LINETHICK3;
高卖点:STICKLINE(高卖=3,VAR2*1.05,VAR2*1.15,0,0),COLORFF00FF;
低买:=IF((CROSS(A77,VAR1*1.001)),-3,0),COLOR00FFFF,LINETHICK3;
低买点:STICKLINE(低买=-3,VAR1*0.95,VAR1*0.85,0,0),COLORCCFF89;
重心:=(2*C+H+L)/4,COLOR00FFFF,LINETHICK0;
SJ:=EMA((重心-LLV(L,5))/(HHV(H,5)-LLV(L,5))*100,2);
ZJ:=EMA(0.618*REF(SJ,1)+0.382*SJ,2),COLOR00FF00;
DRAWTEXT(CROSS(ZJ,SJ)ANDSJ 70,VAR2*1.05,'←高抛'),COLOR0077FF;
DRAWICON(CROSS(SJ,ZJ)ANDSJ 30,收盘线*0.84,38);
明天逢低买:=IF(CROSS(SJ,ZJ)ANDSJ 30,10,0),COLOR00FFFF,LINETHICK3;
收盘线*0.75,COLOR000000;
DRAWICON(XG,收盘线*0.83,36);
CJHD:=FILTER(BACKSET(FILTER(REF(C,10)=HHV(C,2*10+1),10),10+1),10);
CJLD:=FILTER(BACKSET(FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10);
CJA:=REF(C,BARSLAST(CJHD));
CJB:=REF(C,BARSLAST(CJLD));
CJT1:=BARSLAST(CJHD) BARSLAST(CJLD)ANDNOT(CJHD);
CJT2:=BARSLAST(CJHD) BARSLAST(CJLD)ANDNOT(CJLD);
{顶}
STICKLINE(CJT1,CJA,CJA,3,0),COLORFF00FF;
{波浪底}
STICKLINE(CJT2,CJB,CJB,3,0),COLORFF00FF;
统计天数:=BARPOS-hhv(if(BARSTATUS=1,BARPOS,0),0)+1;
预测价格:=LLV(C,统计天数)*1.1618;
高点:=HHV(C,统计天数);{H}
低点:=LLV(C,统计天数);{L}
压力支撑50:高点-(高点-低点)*0.5,Linethick1,colorgreen;;
支撑357:=高点-(高点-低点)*0.35765;
支撑642:=高点-(高点-低点)*0.6423;
压力357:=低点+(高点-低点)*0.35765;
压力642:=低点+(高点-低点)*0.6423;
牛顶:=低点+(高点-低点)*(1+0.618);
熊底:=ABS(高点-(高点-低点)*(1+0.618));
高点跌幅:=(HHV(C,统计天数)-C)/HHV(C,统计天数);
低点涨幅:=(C-LLV(C,统计天数))/LLV(C,统计天数);
止跌:=HHV(C,统计天数)*0.6;
DRAWTEXTEX(c,1,10,0,'低点涨幅:'+NUMTOSTR(低点涨幅,2)+';'+'高点跌幅:'+NUMTOSTR(高点跌幅,2)+';'+'高点40%止跌:'+NUMTOSTR(止跌,2)+';'+'预测:'+NUMTOSTR(预测价格,2)+';'+'压支50%:'+NUMTOSTR(压力支撑50,2)),color00EEFF;
DRAWTEXTEX(c,1,10,50,'牛顶:'+NUMTOSTR(牛顶,2)+';'+'熊底:'+NUMTOSTR(熊底,2)+';'+'压36%:'+NUMTOSTR(压力357,2)+';'+'压64%:'+NUMTOSTR(压力642,2));
DRAWTEXTEX(c,1,10,100,'支36%:'+NUMTOSTR(支撑357,2)+';'+'支64%:'+NUMTOSTR(支撑642,2));
通达信精品合一主图公式截图