通达信斋主精品MACD指标公式

 

W:=1;
M:=1;
MM:=9*M;
SHORT:=MM*4/3;
LONG:=MM*26/9;
DIFF:=(EMA(CLOSE,SHORT)-EMA(CLOSE,LONG));
DEA:=EMA(DIFF,MM),COLOR58FF58;
macd:=2*(DIFF-DEA),COLORFFFF00,LINETHICK0;
红柱:DRAWBAND(MacD,RGB(180,50,50),0,RGB(0,128,0));
绿柱:DRAWBAND(0,RGB(0,128,0),MACD,RGB(180,50,50));
A00:=SUM(IF((CLOSE > REF(CLOSE, 1.000)),vol,IF((CLOSE < REF(CLOSE, 1.000)),(0 - VOL),0)),0);
A01:=SUMBARS(VOL,CAPITAL);
A02:=IF((CLOSE > LLV(CLOSE,A01)), 1.000,(0 - 1.000)) * IF((A00 > LLV(A00,A01)), 1.000,(0 - 1.000));
A03:=(COUNT((IF((A02 = (0 - 1.000)), 1.000,0) = 1.000), 8.000) > 2.000);
A04:=((CLOSE - DMA(((( 3.000 * HIGH + LOW) + OPEN) + 2.000 * CLOSE) / 7.000,VOL / SUM(AMOUNT, 13.000) /
AMOUNT / VOL / 100.000 / 100.000)) / DMA(((( 3.000 * HIGH + LOW) + OPEN) + 2.000 * CLOSE) / 7.000,VOL /
SUM(AMOUNT, 13.000) / AMOUNT / VOL / 100.000 / 100.000) * 100.000 < (0 - 18.000));
A05:=((CLOSE - MIN(REF(CLOSE, 5.000) * 0.865,REF(CLOSE, 21.000) * 0.772)) / CLOSE < 0.009);
A06:=((A03 AND A04) AND A05);
A07:=(((((OPEN < EMA(CLOSE, 5.000)) AND (CLOSE = HIGH)) AND (CLOSE / OPEN >= 1.105)) AND (VOL / CAPITAL >=
0.019)) AND (VOL / CAPITAL <= 0.200));
A08:=(A07 AND (COUNT(A07, 5.000) = 1.000));
A09:=((((((((((((MA(CLOSE, 3.000) > REF(MA(CLOSE, 3.000), 1.000)) AND (MA(CLOSE, 5.000) > REF(MA(CLOSE,
5.000), 1.000))) AND (MA(CLOSE, 10.000) > REF(MA(CLOSE, 10.000), 1.000))) AND (VOL / 240.000 > REF(VOL,
30.000) * 1.200 / 240.000 * 1.500)) AND (CLOSE > LOW * 1.059)) AND (CLOSE > REF(MA(CLOSE, 3.000),
1.000))) AND REF(CLOSE, 1.000)) AND (MA(CLOSE, 5.000) > REF(MA(CLOSE, 5.000), 1.000))) AND (MA(CLOSE,
10.000) > REF(MA(CLOSE, 10.000), 1.000))) AND (MA(CLOSE, 20.000) > REF(MA(CLOSE, 20.000), 1.000))) AND (MA
(VOL, 5.000) > REF(MA(VOL, 5.000), 1.000))) AND ((MA(CLOSE, 5.000) - MA(CLOSE, 10.000)) <= 0.579));
A0A:=FILTER(A09, 5.000);
牛股:STICKLINE((A06 OR A07) AND A0A,0,0.5,2,0),COLORRED;
AMACD:=Abs(MACD);
VAR7Z:=EMA(AMOUNT/VOL/100,3);
VAR8Z:=EMA(VAR7Z,88);
VAR9Z:=EMA(VAR7Z,88)*0.85;
VARA:=VAR9Z*0.87;
VARB:=LOW<VARA AND CLOSE>REF(CLOSE,1)*1.02;
STICKLINE(FILTER(VARB,6),0,0.3,3,0),COLORRED;
N1:=7;
LC:=REF(CLOSE,1);
X:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;
Y:=DRAWLINE(X>=HHV(X,N1),X,X<=LLV(X,N1),X,1);
TJ1:=X=Y;
TJ2:=X<REF(X,1);
绝对买底:STICKLINE(TJ1 AND TJ2,0,-0.22,2,0),COLORYELLOW;
{STICKLINE(MACD>=0 AND MACD>=REF(MACD,1),0,MACD,W,1),COLOR6058FF;
STICKLINE(MACD>=0 AND MACD< REF(MACD,1),0,MACD,W,0),COLOR6058FF;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,W,1),COLORFFFF00;
STICKLINE(MACD<0 AND MACD< REF(MACD,1),0,MACD,W,0),COLORFFFF00;}
红柱面积 := IF (MACD>0,SUM(AMACD,BArslAST(MACD<0)),0),LINETHICK0,COLORRED;
绿柱面积 := IF (MACD<0,SUM(AMACD,BARSLAST(MACD>0)),0),LINETHICK0,COLORBLUE;
BV:=SUM(MACD,0);
红转绿:=crOSS(MACD,0);
绿转红:=CROSS(0,MACD);
BC:=BARSLAST(红转绿 OR 绿转红)+1;
最高红柱子:IF(MACD>0,HHV(MACD,BC),0),NODRAW;
最低绿柱子:IF(MACD<0,LLV(MACD,BC),0),NODRAW;
DRAWTEXT(绿转红 ,REF(最高红柱子,1),''+REF(INTPART((红柱面积)*10)/10,1)),COLORRED;
DRAWTEXT(红转绿 ,REF(最低绿柱子,1),''+REF(INTPART((绿柱面积)*10)/10,1)),COLORRED;
CDIFF:DIFF;CDEA:DEA;
金叉:=CROSS(DIFF,DEA) AND DIFF<0.3;
STICKLINE(金叉,0,-0.2,3,0),COLOR0000FF;
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)<DIFF AND CROSS(DIFF,DEA);
A2:=BARSLAST(REF(CROSS("kdj.K"(9,3,3),"kdJ.D"(9,3,3)),1));
B2:=REF(C,A2+1)>C AND REF("KDJ.K"(9,3,3),A2+1)<"KDJ.K"(9,3,3) AND CROSS("KDJ.K"(9,3,3),"KDJ.D"(9,3,3));
A3:=BARSLAST(REF(CROSS("rsi.RSI1"(6,12,24),"RSI.RSI2"(6,12,24)),1));
B3:=REF(C,A3+1)>C AND REF("RSI.RSI1"(6,12,24),A3+1)<"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI1"(6,12,24),"RSI.RSI2"(6,12,24));
C1:=BARSLAST(REF(CROSS(DEA,DIFF),1));
D1:=REF(C,C1+1)<C AND REF(DIFF,C1+1)>DIFF AND CROSS(DEA,DIFF);
C2:=BARSLAST(REF(CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3)),1));
D2:=REF(C,C2+1)<C AND REF("KDJ.K"(9,3,3),C2+1)>"KDJ.K"(9,3,3) AND CROSS("KDJ.D"(9,3,3),"KDJ.K"(9,3,3));
C3:=BARSLAST(REF(CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24)),1));
D3:=REF(C,C3+1)<C AND REF("RSI.RSI1"(6,12,24),C3+1)>"RSI.RSI1"(6,12,24) AND CROSS("RSI.RSI2"(6,12,24),"RSI.RSI1"(6,12,24));
DIFF,COLORGREEN;
DEA,COLORYELLOW;
强:IF(DIFF>MA(DIFF,2),DIFF,DRAWNULL),COLORRED,LINETHICK2;
弱:IF(DEA>MA(DEA,2),DEA,DRAWNULL),COLORMAGENTA,LINETHICK2;
A:=REF(DIFF,1)<REF(DIFF,2) AND REF(DIFF,2)<REF(DIFF,3) AND DIFF>REF(DIFF,1);
B:=REF(DIFF,1)>REF(DIFF,2) AND REF(DIFF,2)>REF(DIFF,3) AND DIFF<REF(DIFF,1);
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
上升背离:(CC AND EE)*DEA,COLOR00FFFF;
顶背离:(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,LINETHICK3,COLORGREEN;
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
下降背离:(LL AND GG)*DEA,COLORMAGENTA;
底背离:(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,LINETHICK3,COLORRED;
MMZ:=IF(MACD< 0,MACD,0);
JJ:=MMZ> REF(MMZ,1);
ZZ:=REF(JJ,1)=1;
介入区:(JJ AND ZZ)*DEA,POINTDOT,COLORYELLOW;{MACD蓝柱缩短---指今日比昨天短}
STICKLINE(介入区=DEA,DEA,DIFF,0.5,1),COLORYELLOW;
{DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26); }
上穿零线:STICKLINE(COUNT(DIFF>=0,60)=1 AND DIFF>=0,0,0.2,2,0),COLORYELLOW;
下穿零线:STICKLINE(COUNT(DIFF<=0,60)=1 AND DIFF<=0,0.2,0.25,3,0),COLORGREEN;
低位金叉:IF(CROSS(DIFF,DEA) AND DIFF<-0.1,0.3,0),COLORYELLOW,POINTDOT;
STICKLINE(低位金叉,0,-0.2,8,1),COLORYELLOW;
DRAWICON(低位金叉,-0.3,1);
JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));
二次金叉:IF(CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,0.2,0),COLORFF00FF,POINTDOT;
{- }
STICKLINE(二次金叉,0,0.15,8,1),COLORFF00FF;
A1Z:=BARSLAST(REF(CROSS(DIFF,DEA),1));
底背离Z:IF(REF(CLOSE,A1Z+1)>CLOSE AND DIFF>REF(DIFF,A1Z+1) AND CROSS(DIFF,DEA),0.1,0),COLORRED,POINTDOT;
STICKLINE(底背离Z,0,-0.15,8,1),COLORMAGENTA;
DRAWLINE(A1Z=0,DEA,底背离Z,DEA,0),COLORMAGENTA,LINETHICK3;
A2Z:=BARSLAST(REF(CROSS(DEA,DIFF),1));
顶背离Z:IF(REF(CLOSE,A2Z+1)<CLOSE AND REF(DIFF,A2Z+1)>DIFF AND CROSS(DEA,DIFF),0.3,0),COLORGREEN;
DRAWLINE(A2Z=0,DEA,顶背离Z,DEA,0),COLORBLUE,LINETHICK3;
A3Z:=CROSS(DIFF,DEA) AND DEA<0;
零下二次金叉:IF(FILTER(COUNT(A3Z,21)=2,10),0.05,0),COLORWHITE,POINTDOT;
STICKLINE(零下二次金叉,0,-0.1,8,1),COLORWHITE;
金叉1:DRAWICON(CROSS(DIFF,DEA),DIFF,1);
死叉1:DRAWICON(CROSS(DEA,DIFF),DIFF,2);
DRAWTEXT(REF(CLOSE,A2Z+1)<CLOSE AND REF(DIFF,A2Z+1)>DIFF AND CROSS(DEA,DIFF),0.25,'顶背离'),COLORGREEN;
DRAWTEXT(REF(CLOSE,A1Z+1)>CLOSE AND DIFF>REF(DIFF,A1Z+1) AND CROSS(DIFF,DEA),-0.14,'底背离'),COLORRED,POINTDOT;
DRAWTEXT(COUNT(DIFF>=0,60)=1 AND DIFF>=0,0.18,'上穿零线'),COLORYELLOW;
DRAWTEXT(COUNT(DIFF<=0,60)=1 AND DIFF<=0,0.2,'下穿零线'),COLORGREEN;
DRAWTEXT(CROSS(DIFF,DEA ),-0.16,'金↗'),COLORYELLOW;
DRAWTEXT(CROSS(DEA,DIFF ),0.1,'死↘'),COLORFFFF00;
DRAWTEXT(FILTER(VARB,6),0.26,'坚决买进'),COLORFF00FF;
DRAWTEXT(TJ1 AND TJ2,-0.23,'绝对买底'),COLORYELLOW;
DRAWICON(CROSS(DIFF,DEA),DEA,26);
DRAWICON(CROSS(DEA,DIFF),DEA,27);
{DRAWICON(A,DIFF,1);}
DRAWICON(B,DIFF,2);
DRAWTEXT((A06 OR A07) AND A0A,0.51,'▲←超级黑马'),COLORRED;




来函数检测结果如下
该公式包含未来函数:CAPITAL

解密、定制、编写公式指标请联系QQ或微信同号:88652583
置顶指标

相关指标公式

W赋值:1
M赋值:1
MM赋值:9*M
SHORT赋值:MM*4/3
LONG赋值:MM*26/9
DIFF赋值:(收盘价的SHORT日指数移动平均-收盘价的LONG日指数移动平均)
DEA赋值:DIFF的MM日指数移动平均,COLOR58FF58
MACD赋值:2*(DIFF-DEA),COLORFFFF00,线宽为0
输出 红柱:画带状线
输出 绿柱:画带状线
A00赋值:如果(收盘价>1.000日前的收盘价),返回成交量(手),否则返回如果(收盘价<1.000日前的收盘价),返回(0-成交量(手)),否则返回0的历史累和
A01赋值:成交量(手)累加至当前流通股本(手)的天数
A02赋值:如果(收盘价>A01日内收盘价的最低值),返回1.000,否则返回(0-1.000) * 如果(A00>A01日内A00的最低值),返回1.000,否则返回(0-1.000)
A03赋值:(统计8.000日中满足(如果(A02=(0-1.000)),返回1.000,否则返回0=1.000)的天数 > 2.000)
A04赋值:((收盘价 - 以成交量(手)/成交额(元)的13.000日累和/成交额(元)/成交量(手)/100.000/100.000为权重(((3.000*最高价+最低价)+开盘价)+2.000*收盘价)/7.000的动态移动平均) / 以成交量(手)/成交额(元)的13.000日累和/成交额(元)/成交量(手)/100.000/100.000为权重(((3.000*最高价+最低价)+开盘价)+2.000*收盘价)/7.000的动态移动平均 * 100.000 < (0 - 18.000))
A05赋值:((收盘价 - 5.000日前的收盘价*0.865和21.000日前的收盘价*0.772的较小值) / 收盘价 < 0.009)
A06赋值:((A03 AND A04) AND A05)
A07赋值:(((((开盘价 < 收盘价的5.000日指数移动平均) AND (收盘价 = 最高价)) AND (收盘价 / 开盘价 >= 1.105)) AND (成交量(手) / 当前流通股本(手) >= 0.019)) AND (成交量(手) / 当前流通股本(手) <= 0.200))
A08赋值:(A07 AND (统计5.000日中满足A07的天数 = 1.000))
A09赋值:((((((((((((收盘价的3.000日简单移动平均 > 1.000日前的收盘价的3.000日简单移动平均) AND (收盘价的5.000日简单移动平均 > 1.000日前的收盘价的5.000日简单移动平均)) AND (收盘价的10.000日简单移动平均 > 1.000日前的收盘价的10.000日简单移动平均)) AND (成交量(手) / 240.000 > 30.000日前的成交量(手) * 1.200 / 240.000 * 1.500)) AND (收盘价 > 最低价 * 1.059)) AND (收盘价 > 1.000日前的收盘价的3.000日简单移动平均)) AND 1.000日前的收盘价) AND (收盘价的5.000日简单移动平均 > 1.000日前的收盘价的5.000日简单移动平均)) AND (收盘价的10.000日简单移动平均 > 1.000日前的收盘价的10.000日简单移动平均)) AND (收盘价的20.000日简单移动平均 > 1.000日前的收盘价的20.000日简单移动平均)) AND (成交量(手)的5.000日简单移动平均 > 1.000日前的成交量(手)的5.000日简单移动平均)) AND ((收盘价的5.000日简单移动平均 - 收盘价的10.000日简单移动平均) <= 0.579))
A0A赋值:A09的5.000日过滤
输出 牛股:当满足条件(A06ORA07)ANDA0A时,在0和0.5位置之间画柱状线,宽度为2,0不为0则画空心柱.,画红色
AMACD赋值:MACD的绝对值
VAR7Z赋值:成交额(元)/成交量(手)/100的3日指数移动平均
VAR8Z赋值:VAR7Z的88日指数移动平均
VAR9Z赋值:VAR7Z的88日指数移动平均*0.85
VARA赋值:VAR9Z*0.87
VARB赋值:最低价1日前的收盘价*1.02
当满足条件VARB的6日过滤时,在0和0.3位置之间画柱状线,宽度为3,0不为0则画空心柱.,画红色
N1赋值:7
LC赋值:1日前的收盘价
X赋值:收盘价-LC和0的较大值的N1日[1日权重]移动平均/收盘价-LC的绝对值的N1日[1日权重]移动平均*100
Y赋值:当满足条件X>=N1日内X的最高值时,在X位置画直线起点,当满足条件X<=N1日内X的最低值时,在X位置画直线终点,1表示是否延长.
TJ1赋值:X=Y
TJ2赋值:X<1日前的X
输出 绝对买底:当满足条件TJ1ANDTJ2时,在0和-0.22位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
赋值: 如果MACD>0,返回AMACD的上次MACD<0距今天数日累和,否则返回0,线宽为0,画红色
赋值: 如果MACD<0,返回AMACD的上次MACD>0距今天数日累和,否则返回0,线宽为0,画蓝色
BV赋值:MACD的历史累和
红转绿赋值:MACD上穿0
绿转红赋值:0上穿MACD
BC赋值:上次红转绿OR绿转红距今天数+1
输出 最高红柱子:如果MACD>0,返回BC日内MACD的最高值,否则返回0,NODRAW
输出 最低绿柱子:如果MACD<0,返回BC日内MACD的最低值,否则返回0,NODRAW
当满足条件绿转红时,在1日前的最高红柱子位置书写文字,画红色
当满足条件红转绿时,在1日前的最低绿柱子位置书写文字,画红色
输出 CDIFF:DIFF
输出CDEA:DEA
金叉赋值:DIFF上穿DEA AND DIFF<0.3
当满足条件金叉时,在0和-0.2位置之间画柱状线,宽度为3,0不为0则画空心柱.,COLOR0000FF
A1赋值:上次1日前的DIFF上穿DEA距今天数
B1赋值:A1+1日前的收盘价>收盘价 AND A1+1日前的DIFFA2赋值:上次1日前的"KDJ的K"(9,3,3)上穿"KDJ的D"(9,3,3)距今天数
B2赋值:A2+1日前的收盘价>收盘价 AND A2+1日前的"KDJ的K"(9,3,3)<"KDJ的K"(9,3,3) AND "KDJ的K"(9,3,3)上穿"KDJ的D"(9,3,3)
A3赋值:上次1日前的"RSI的RSI1"(6,12,24)上穿"RSI的RSI2"(6,12,24)距今天数
B3赋值:A3+1日前的收盘价>收盘价 AND A3+1日前的"RSI的RSI1"(6,12,24)<"RSI的RSI1"(6,12,24) AND "RSI的RSI1"(6,12,24)上穿"RSI的RSI2"(6,12,24)
C1赋值:上次1日前的DEA上穿DIFF距今天数
D1赋值:C1+1日前的收盘价<收盘价 AND C1+1日前的DIFF>DIFF AND DEA上穿DIFF
C2赋值:上次1日前的"KDJ的D"(9,3,3)上穿"KDJ的K"(9,3,3)距今天数
D2赋值:C2+1日前的收盘价<收盘价 AND C2+1日前的"KDJ的K"(9,3,3)>"KDJ的K"(9,3,3) AND "KDJ的D"(9,3,3)上穿"KDJ的K"(9,3,3)
C3赋值:上次1日前的"RSI的RSI2"(6,12,24)上穿"RSI的RSI1"(6,12,24)距今天数
D3赋值:C3+1日前的收盘价<收盘价 AND C3+1日前的"RSI的RSI1"(6,12,24)>"RSI的RSI1"(6,12,24) AND "RSI的RSI2"(6,12,24)上穿"RSI的RSI1"(6,12,24)
DIFF,画绿色
DEA,画黄色
输出 强:如果DIFF>DIFF的2日简单移动平均,返回DIFF,否则返回无效数,画红色,线宽为2
输出 弱:如果DEA>DEA的2日简单移动平均,返回DEA,否则返回无效数,画洋红色,线宽为2
A赋值:1日前的DIFF<2日前的DIFF AND 2日前的DIFF<3日前的DIFF AND DIFF>1日前的DIFF
B赋值:1日前的DIFF>2日前的DIFF AND 2日前的DIFF>3日前的DIFF AND DIFF<1日前的DIFF
DD赋值:收盘价=180日内收盘价的最高值
EE赋值:DEA< 1日前的DEA AND 1日前的DEA<1日前的DEA=1
CC赋值:收盘价> 1日前的收盘价 AND 1日前的收盘价>1日前的收盘价=1
输出 上升背离:(CC AND EE)*DEA,COLOR00FFFF
输出 顶背离:(DD AND EE AND DEA< 180日内DEA的最高值)*DEA,STICK,线宽为3,画绿色
FF赋值:收盘价=180日内收盘价的最低值
GG赋值: DEA> 1日前的DEA AND 1日前的DEA>1日前的DEA=1
LL赋值:收盘价< 1日前的收盘价 AND 1日前的收盘价<1日前的收盘价=1
输出 下降背离:(LL AND GG)*DEA,画洋红色
输出 底背离:(FF AND GG AND DEA> 180日内DEA的最低值)*DEA,STICK,线宽为3,画红色
MMZ赋值:如果MACD<0,返回MACD,否则返回0
JJ赋值:MMZ> 1日前的MMZ
ZZ赋值:1日前的JJ=1
输出 介入区:(JJ AND ZZ)*DEA,POINTDOT,画黄色
当满足条件介入区=DEA时,在DEA和DIFF位置之间画柱状线,宽度为0.5,1不为0则画空心柱.,画黄色
输出 上穿零线:当满足条件统计60日中满足DIFF>=0的天数=1ANDDIFF>=0时,在0和0.2位置之间画柱状线,宽度为2,0不为0则画空心柱.,画黄色
输出 下穿零线:当满足条件统计60日中满足DIFF<=0的天数=1ANDDIFF<=0时,在0.2和0.25位置之间画柱状线,宽度为3,0不为0则画空心柱.,画绿色
输出 低位金叉:如果DIFF上穿DEAANDDIFF<-0.1,返回0.3,否则返回0,画黄色,POINTDOT
当满足条件低位金叉时,在0和-0.2位置之间画柱状线,宽度为8,1不为0则画空心柱.,画黄色
当满足条件低位金叉时,在-0.3位置画1号图标
JCCOUNT赋值:统计上次DEA>=0距今天数日中满足DIFF上穿DEA的天数
输出 二次金叉:如果DIFF上穿DEAANDDEA<0ANDCOUNT(JCCOUNT=2,21)=1,返回0.2,否则返回0,COLORFF00FF,POINTDOT
当满足条件二次金叉时,在0和0.15位置之间画柱状线,宽度为8,1不为0则画空心柱.,COLORFF00FF
A1Z赋值:上次1日前的DIFF上穿DEA距今天数
输出 底背离Z:如果A1Z+1日前的收盘价>CLOSEANDDIFF>A1Z+1日前的DIFFANDCROSS(DIFF,DEA),返回0.1,否则返回0,画红色,POINTDOT
当满足条件底背离Z时,在0和-0.15位置之间画柱状线,宽度为8,1不为0则画空心柱.,画洋红色
当满足条件A1Z=0时,在DEA位置画直线起点,当满足条件底背离Z时,在DEA位置画直线终点,0表示是否延长.,画洋红色,线宽为3
A2Z赋值:上次1日前的DEA上穿DIFF距今天数
输出 顶背离Z:如果A2Z+1日前的收盘价DIFFANDCROSS(DEA,DIFF),返回0.3,否则返回0,画绿色
当满足条件A2Z=0时,在DEA位置画直线起点,当满足条件顶背离Z时,在DEA位置画直线终点,0表示是否延长.,画蓝色,线宽为3
A3Z赋值:DIFF上穿DEA AND DEA<0
输出 零下二次金叉:如果统计21日中满足A3Z的天数=2的10日过滤,返回0.05,否则返回0,画白色,POINTDOT
当满足条件零下二次金叉时,在0和-0.1位置之间画柱状线,宽度为8,1不为0则画空心柱.,画白色
输出 金叉1:当满足条件DIFF上穿DEA时,在DIFF位置画1号图标
输出 死叉1:当满足条件DEA上穿DIFF时,在DIFF位置画2号图标
当满足条件A2Z+1日前的收盘价DIFFANDCROSS(DEA,DIFF)时,在0.25位置书写文字,画绿色
当满足条件A1Z+1日前的收盘价>CLOSEANDDIFF>A1Z+1日前的DIFFANDCROSS(DIFF,DEA)时,在-0.14位置书写文字,画红色,POINTDOT
当满足条件统计60日中满足DIFF>=0的天数=1ANDDIFF>=0时,在0.18位置书写文字,画黄色
当满足条件统计60日中满足DIFF<=0的天数=1ANDDIFF<=0时,在0.2位置书写文字,画绿色
当满足条件DIFF上穿DEA时,在-0.16位置书写文字,画黄色
当满足条件DEA上穿DIFF时,在0.1位置书写文字,COLORFFFF00
当满足条件VARB的6日过滤时,在0.26位置书写文字,COLORFF00FF
当满足条件TJ1ANDTJ2时,在-0.23位置书写文字,画黄色
当满足条件DIFF上穿DEA时,在DEA位置画26号图标
当满足条件DEA上穿DIFF时,在DEA位置画27号图标
当满足条件B时,在DIFF位置画2号图标
当满足条件(A06ORA07)ANDA0A时,在0.51位置书写文字,画红色

指标安装下载帮助  |   联系我们  |  乐淘公式网  |  公式网   |  指标公式  |   加入收藏   |  设为主页

@2005-2025 浙ICP备2024071487号-1 乐淘公式网公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
免责声明:乐淘公式网所有指标公式及文章由网络收集,不保障实时性和真实性, 仅供学习研究并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。
QQ:88652583 微信 88652583
sitemap站点地图