通达信MA24均价主图指标公式

 

MA5:MA(C,5);
MA13:MA(C,13);
MA24:MA(C,24),COLORBLUE,LINETHICK3;
MA72:MA(C,72)LINETHICK2;
MA133:MA(C,133)LINETHICK2;
MA200:MA(C,200)LINETHICK2;
MA250:MA(C,250)COLORLICYAN,LINETHICK2;
MA480:MA(C,480)COLORRED,LINETHICK2;
X1:=EMA(C,24);
X2:=REF(X1,1);
廿四日均线斜率:(X1-X2)/X2*100,NODRAW;
{- }
活跃度:IF(DATE>1000101,(MA(vol,11)+MA(VOL,11*2)+MA(VOL,11*3)+MA(VOL,11*4))/4/CAPITAL*1000,1),NODRAW;
买:IF(MA24>REF(MA24,1),MA24,DRAWNULL),COLORMAGENTA,LINETHICK3;
卖:IF(MA24<REF(MA24,1),MA24,DRAWNULL),COLORFFA042,LINETHICK3;
买1:IF(MA72>REF(MA72,1),MA72,DRAWNULL),COLORGREEN,LINETHICK2;
卖2:IF(MA72<REF(MA72,1),MA72,DRAWNULL),COLOR00ddfF,LINETHICK2;
N:=10;
T1:=CONST(HHVBARS(V,N));
T0:IF(CURRBARSCOUNT<=N+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL);
IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT;
DRAWTEXT(ISLASTBAR,T0,' 量能平台');
涨家数:INDEXADV,COLOR0066FF,NODRAW;
跌家数:INDEXDEC,COLOR99FF99,NODRAW;
量能饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100),NODRAW;
DK:=MA24;
STICKLINE(DK<=C AND CLOSE>=OPEN,HIGH,LOW,0,1),COLORRED;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,3.2,0),COLOR000044;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,2.7,0),COLOR000033;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,2.1,0),COLOR000055;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,1.5,0),COLOR000077;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,0.9,0),COLOR000099;
STICKLINE(DK<=C AND CLOSE>=OPEN,CLOSE,OPEN,0.3,0),COLORLIMAGENTA;
STICKLINE(DK<=C AND CLOSE<OPEN,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,3.2,0),COLOR003300;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,2.7,0),COLOR005500;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,2.1,0),COLOR007700;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,1.5,0),COLOR009900;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,0.9,0),COLOR00CC00;
STICKLINE(DK<=C AND CLOSE<OPEN,CLOSE,OPEN,0.3,0),COLOR00CC00;
STICKLINE(DK>C AND CLOSE>=OPEN,HIGH,LOW,0,1),COLORGREEN;
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,3.2,0 ),COLORA200A2;
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,2.7,0 ),COLORCE00CE;
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,2.1,0),COLORE800E8;
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,1.5,0 ),COLORFF00FF;
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,0.9,0 ),COLORFF60FF;
STICKLINE(DK>C AND CLOSE>=OPEN,CLOSE,OPEN,0.3,0 ),COLORFFD2FF;
STICKLINE(DK>C AND CLOSE<OPEN,HIGH,LOW,0,1),COLORCYAN;
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,3.2,0 ),COLOR555555;
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,2.7,0 ),COLOR777777;
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,2.1,0 ),COLOR999999;
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,1.5,0 ),COLOR999999;
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,0.9,0 ),COLORDDDDDD;
STICKLINE(DK>C AND CLOSE<OPEN,CLOSE,OPEN,0.3,0 ),COLORFFFFFF;




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

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

相关指标公式

输出MA5:收盘价的5日简单移动平均
输出MA13:收盘价的13日简单移动平均
输出MA24:收盘价的24日简单移动平均,画蓝色,线宽为3
输出MA72:收盘价的72日简单移动平均线宽为2
输出MA133:收盘价的133日简单移动平均线宽为2
输出MA200:收盘价的200日简单移动平均线宽为2
输出MA250:收盘价的250日简单移动平均画淡青色,线宽为2
输出MA480:收盘价的480日简单移动平均画红色,线宽为2
X1赋值:收盘价的24日指数移动平均
X2赋值:1日前的X1
输出廿四日均线斜率:(X1-X2)/X2*100,NODRAW
输出活跃度:如果日期>1000101,返回(成交量(手)的11日简单移动平均+成交量(手)的11*2日简单移动平均+成交量(手)的11*3日简单移动平均+成交量(手)的11*4日简单移动平均)/4/当前流通股本(手)*1000,否则返回1,NODRAW
输出买:如果MA24>1日前的MA24,返回MA24,否则返回无效数,画洋红色,线宽为3
输出卖:如果MA24<1日前的MA24,返回MA24,否则返回无效数,COLORFFA042,线宽为3
输出买1:如果MA72>1日前的MA72,返回MA72,否则返回无效数,画绿色,线宽为2
输出卖2:如果MA72<1日前的MA72,返回MA72,否则返回无效数,COLOR00DDFF,线宽为2
N赋值:10
T1赋值:N日内成交量(手)距今天数的最后一日取值设为常数
输出T0:如果到最后交易的周期<=N+7,返回如果T1=0,返回收盘价,否则返回T1日前的收盘价的最后一日取值设为常数,否则返回无效数
如果到最后交易的周期=T1+1,返回T0,否则返回无效数,CIRCLEDOT
当满足条件是否最后一个周期时,在T0位置书写文字
输出涨家数:大盘的上涨家数,COLOR0066FF,NODRAW
输出跌家数:大盘的下跌家数,COLOR99FF99,NODRAW
输出量能饱和度:如果(成交额(元)/收盘价)/(20日内成交额(元)的最高值/20日内收盘价的最高值)*100>100,返回100,否则返回(成交额(元)/收盘价)/(20日内成交额(元)的最高值/20日内收盘价的最高值)*100,NODRAW
DK赋值:MA24
当满足条件DK<=CANDCLOSE>=开盘价时,在最高价和最低价位置之间画柱状线,宽度为0,1不为0则画空心柱.,画红色
当满足条件DK<=CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为3.2,0不为0则画空心柱.,COLOR000044
当满足条件DK<=CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.7,0不为0则画空心柱.,COLOR000033
当满足条件DK<=CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.1,0不为0则画空心柱.,COLOR000055
当满足条件DK<=CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR000077
当满足条件DK<=CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.9,0不为0则画空心柱.,COLOR000099
当满足条件DK<=CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,画淡洋红色
当满足条件DK<=CANDCLOSE<开盘价时,在最高价和最低价位置之间画柱状线,宽度为0,1不为0则画空心柱.,画绿色
当满足条件DK<=CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为3.2,0不为0则画空心柱.,COLOR003300
当满足条件DK<=CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.7,0不为0则画空心柱.,COLOR005500
当满足条件DK<=CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.1,0不为0则画空心柱.,COLOR007700
当满足条件DK<=CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR009900
当满足条件DK<=CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.9,0不为0则画空心柱.,COLOR00CC00
当满足条件DK<=CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,COLOR00CC00
当满足条件DK>CANDCLOSE>=开盘价时,在最高价和最低价位置之间画柱状线,宽度为0,1不为0则画空心柱.,画绿色
当满足条件DK>CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为3.2,0不为0则画空心柱.,COLORA200A2
当满足条件DK>CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.7,0不为0则画空心柱.,COLORCE00CE
当满足条件DK>CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.1,0不为0则画空心柱.,COLORE800E8
当满足条件DK>CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLORFF00FF
当满足条件DK>CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.9,0不为0则画空心柱.,COLORFF60FF
当满足条件DK>CANDCLOSE>=开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,COLORFFD2FF
当满足条件DK>CANDCLOSE<开盘价时,在最高价和最低价位置之间画柱状线,宽度为0,1不为0则画空心柱.,画青色
当满足条件DK>CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为3.2,0不为0则画空心柱.,COLOR555555
当满足条件DK>CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.7,0不为0则画空心柱.,COLOR777777
当满足条件DK>CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为2.1,0不为0则画空心柱.,COLOR999999
当满足条件DK>CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为1.5,0不为0则画空心柱.,COLOR999999
当满足条件DK>CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.9,0不为0则画空心柱.,COLORDDDDDD
当满足条件DK>CANDCLOSE<开盘价时,在收盘价和开盘价位置之间画柱状线,宽度为0.3,0不为0则画空心柱.,COLORFFFFFF

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

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