通达信操盘主图指标 版面简洁明了 起爆点一眼看穿 源码附图

{操盘主图}

MA1:EMA(CLOSE,5),COLORWHITE,NODRAW;
MA2:(EMA(CLOSE,18)+EMA(CLOSE,21)+EMA(CLOSE,24))/3,COLORFF00FF;
MA3:(EMA(CLOSE,80)+EMA(CLOSE,90)+EMA(CLOSE,100))/3,COLORGREEN;



散户成本线:IF(PERIOD=5,(COST(30)+COST(40)+COST(50)+COST(60)+COST(70))/5,DRAWNULL),COLORYELLOW,DOTLINE;


乖离5:(C-MA(C,5))/C*100,COLORWHITE,NODRAW;
乖离10:(C-MA(C,10))/C*100,COLORYELLOW,NODRAW;
乖离20:(C-MA(C,20))/C*100,COLORFF00FF,NODRAW;


近10天最大涨10:HHV((H/LLV(L,10)-1)*100,10),COLORYELLOW,NODRAW;
近10天最大跌10:LLV((L/REF(HHV(H,10),1)-1)*100,10),COLORGREEN,NODRAW;

近一年涨停数:COUNT((C/REF(C,1))>=1.0985 AND C=H,250),COLORYELLOW,NODRAW;
年初至今涨幅:(C/REF(C,BARSLAST(YEAR>REF(YEAR,1))+1)-1)*100,COLORRED, NODRAW;


LC:=REF(CLOSE,1);
TR1:=MAX((HIGH - LOW),MAX((HIGH - LC),(LC - LOW)));
ATR:=SMA(TR1,20,1);{WWW.GOODGUPIAO.COM}
ATR1:=ATR+STD(TR1,20)*1.1;
波幅率:=ATR/C*100,COLORRED,NODRAW;


当日涨停板:=(((C/REF(C,1))>=1.0985 AND (H/REF(C,1))<=1.105 AND C=H) OR ((C/REF(C,1))>=1.1975 AND C=H));
当日跌停板:=(((C/REF(C,1))<=0.9015 AND (L/REF(C,1))>=0.895 AND C=L) OR ((C/REF(C,1))<=0.8025 AND C=L));


RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1),COLORWHITE,NODRAW;
D:=SMA(K,3,1),COLORYELLOW;
J:=3*K-2*D,COLORFF00FF;


DIF:=(EMA(CLOSE,12) - EMA(CLOSE,26));
DEA:=EMA(DIF,9);
MACD:=2*(DIF-DEA);




均振:=MA(H/L-1,10)*100,COLORYELLOW,NODRAW;
均涨:=MA(ABS(1-C/REF(C,1)),10)*100,COLORFF00FF,NODRAW;


总市值:=STRCAT(STRCAT('总市值: ',CON2STR(FINANCE(1)*C/100000000,0)),'亿元');
DRAWTEXT_FIX(ISLASTBAR AND PERIOD>=5,0.1,1,0,总市值),,COLORYELLOW;



VARA:=REF(H,10)=HHV(H,2*10+1);
VARB:=FILTER(VARA,10);
VARC:=BACKSET(VARB,10+1);
VARD:=FILTER(VARC,10);

VARA1:=REF(L,10)=LLV(L,2*10+1);
VARB1:=FILTER(VARA1,10);
VARC1:=BACKSET(VARB1,10+1);
VARD1:=FILTER(VARC1,10);

前期高点:REF(H,BARSLAST(VARD)),COLORYELLOW,NODRAW;
前期低点:REF(L,BARSLAST(VARD1)),COLORFF00FF,NODRAW;

VAR高点:=VAR2STR(前期高点,2);
DRAWTEXT(VARD,0.002*波幅率*前期高点+前期高点,VAR高点),COLORYELLOW;
VAR低点:=VAR2STR(前期低点,2);
DRAWTEXT(VARD1,前期低点-0.002*波幅率*前期低点,VAR低点),COLORCYAN;




STICKLINE(C>=O,H,L,0,1), COLORRED;
STICKLINE(C>=O,C,O,3,1), COLORRED;
STICKLINE(C< O,H,L,0,0), COLORFFFF00;
STICKLINE(C< O,C,O,3,0),COLORFFFF00;

当天曾涨停:((H/REF(C,1))>=1.0982 AND (H/REF(C,1))<=1.105 AND C<H) OR (H/REF(C,1)>=1.1975 AND C<H),COLORRED,NODRAW;
当天曾跌停:((L/REF(C,1))<=0.9015 AND (L/REF(C,1))>=0.895 AND C>L) OR ((L/REF(C,1))<=0.8025 AND C>L),COLORGREEN,NODRAW;

STICKLINE((当天曾涨停 OR 当天曾涨停) AND PERIOD=5,IF(当天曾涨停,C,O),IF(当天曾涨停,H,L),0,0),COLORGREEN;


AAA1:=STRCAT('涨家数:',CON2STR(DYNAINFO(60),0));
AAA2:=STRCAT('跌家数:',CON2STR(DYNAINFO(61),0));{WWW.GOODGUPIAO.COM}
AAA3:=STRCAT('涨占比:',CON2STR(DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,0));


DRAWTEXT_FIX(1 AND PERIOD=5,0.4,0,0,AAA1),COLORRED;
DRAWTEXT_FIX(1 AND PERIOD=5,0.48,0,0,AAA2),COLORGREEN;
DRAWTEXT_FIX(1 AND PERIOD=5,0.56,0,0,AAA3),COLORYELLOW;


DRAWTEXT_FIX(1 AND PERIOD=5,0.40,0.05,0,'涨停数:'),COLORRED;
DRAWTEXT_FIX(1 AND PERIOD=5,0.48,0.05,0,'跌停数:'),COLORGREEN;
{DRAWTEXT_FIX(PERIOD=5,0.465,0.05,1,CON2STR("【量】.涨停#DAY",0)), COLOR0000FF;
DRAWTEXT_FIX(PERIOD=5,0.545,0.05,1,CON2STR("【量】.跌停#DAY",0)), COLOR00FF00;}
DRAWTEXT_FIX(PERIOD=5,0.465,0.05,1,CON2STR("880006$C",0)), COLOR0000FF;
DRAWTEXT_FIX(PERIOD=5,0.545,0.05,1,CON2STR("880006$O",0)), COLOR00FF00;
上市日期:CONST(DAYTODATE((DATETODAY(DATE)-FINANCE(42)))+19000000),COLORYELLOW,NODRAW;

当日高度涨停:=IF(BARSLASTCOUNT(当日涨停板)>=3 AND (REFX(当日涨停板,1)=0 OR ISLASTBAR),BARSLAST(当日涨停板=0),DRAWNULL);
DRAWNUMBER(当日高度涨停>=3,1.02*H,当日高度涨停),,DRAWABOVE,COLORGREEN;
DRAWTEXT_FIX(1 AND (PERIOD=5 OR PERIOD=6 OR PERIOD=7),0.00,0,0,STRCAT('所属地区:',DYBLOCK)),COLORRED;
DRAWTEXT_FIX(1 AND (PERIOD=5 OR PERIOD=6 OR PERIOD=7),0.00,0.1,0,STRCAT('所属行业:',HYBLOCK)),COLORFF00FF;
DRAWTEXT_FIX(1 AND (PERIOD=5 OR PERIOD=6 OR PERIOD=7),0.00,0.2,0,STRCAT('所属概念:',GNBLOCK)),COLORYELLOW;
IF(MA2>=REF(MA2,1),MA2,DRAWNULL),COLORFF00FF,LINETHICK2;
IF( PERIOD=5 AND MA3>REF(MA3,1) ,MA3,DRAWNULL),COLORGREEN,LINETHICK2;
TJ1:=(MA(C,20)>=MA(C,90) OR EMA(C,20)>=MA(C,90) OR MA(CLOSE,12)>MA(CLOSE,26)) AND (((C/REF(C,1)-1)*100>=8.5 AND H/C<1.015 AND V>1.8*REF(V,1))) AND C/LLV(C,10)<1.3 AND C/HHV(H,30)>=0.9;
TJ2:=(MA(C,20)>=MA(C,90) OR EMA(C,20)>=MA(C,90) OR (MA(CLOSE,12)>MA(CLOSE,26) AND V>1.8*REF(V,1))) AND ((C/REF(C,1)-1)*100>=9.5 AND H=C) AND ((MA(C,20)>=REF(MA(C,20),1) AND MA(C,10)>=REF(MA(C,10),1) AND MA(C,5)>=REF(MA(C,5),1)) AND V>1.5*REF(V,1)) AND C/LLV(C,10)<1.3 AND C/HHV(H,30)>=0.9;
XA:=(TJ1 OR TJ2) AND COUNT((TJ1 OR TJ2),BARSLAST(CROSS(MA(C,20),MA(C,5))))<=1;
STICKLINE(XA=1,OPEN,CLOSE,3,0),COLORRED;
DRAWTEXT(XA=1 AND PERIOD=5,0.92*L,'★--火箭发射'),COLORYELLOW;



未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:COST
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
该公式包含未来函数:REFX

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

输出{操盘主图} MA1:收盘价的5日指数移动平均,画白色,NODRAW
输出MA2:(收盘价的18日指数移动平均+收盘价的21日指数移动平均+收盘价的24日指数移动平均)/3,COLORFF00FF
输出MA3:(收盘价的80日指数移动平均+收盘价的90日指数移动平均+收盘价的100日指数移动平均)/3,画绿色
输出散户成本线:IF(PERIOD=5,(获利盘为30%的成本分布+COST(40)+COST(50)+COST(60)+COST(70))/5,DRAWNULL),画黄色,DOTLINE
输出乖离5:(C-C的5日简单移动平均)/C*100,画白色,NODRAW
输出乖离10:(C-C的10日简单移动平均)/C*100,画黄色,NODRAW
输出乖离20:(C-C的20日简单移动平均)/C*100,COLORFF00FF,NODRAW
输出近10天最大涨10:HHV((H/10日内L最低值-1)*100,10),画黄色,NODRAW
输出近10天最大跌10:LLV((L/REF(10日内H最高值,1)-1)*100,10),画绿色,NODRAW
输出近一年涨停数:COUNT((C/1日前的C)>=1.0985 AND C=H,250),画黄色,NODRAW
输出年初至今涨幅:(C/REF(C,上次YEAR>REF(YEAR,1距今天数)+1)-1)*100,COLORRED, NODRAW
LC赋值:1日前的收盘价
TR1赋值:MAX((最高价 - 最低价),MAX((最高价 - LC),(LC - 最低价)))
TR1的20日[1日权重]移动平均
{WWW.GOODGUPIAO.COM} ATR1赋值:ATR+TR1的20估算标准差*1.1
波幅率赋值:ATR/C*100,COLORRED,NODRAW
当日涨停板赋值:(((C/1日前的C)>=1.0985 AND (H/1日前的C)<=1.105 AND C=H) OR ((C/1日前的C)>=1.1975 AND C=H))
当日跌停板赋值:(((C/1日前的C)<=0.9015 AND (L/1日前的C)>=0.895 AND C=L) OR ((C/1日前的C)<=0.8025 AND C=L))
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
J赋值:3*K-2*D,COLORFF00FF
DIF:=(收盘价的12日指数移动平均 - 收盘价的26日指数移动平均)
DEA:=DIF的9日指数移动平均
MACD赋值:2*(DIF-DEA)
均振赋值:H/L-1的10日简单移动平均*100,画黄色,NODRAW
均涨赋值:MA(1-C/1日前的C的绝对值,10)*100,COLORFF00FF,NODRAW
总市值:=STRCAT(STRCAT('总市值: ',CON2STR(FINANCE(1)*C/100000000,0)),'亿元')
当满足条件ISLASTBAR AND PERIOD>=5时,在横轴0.1纵轴1位置书写文字
VARA赋值:10日前的H=2*10+1日内H最高值
VARB赋值:VARA的10过滤
VARC赋值:BACKSET(VARB,10+1)
VARD赋值:VARC的10过滤
VARA1:=10日前的L=2*10+1日内L最低值
VARB1:=VARA1的10过滤
VARC1:=BACKSET(VARB1,10+1)
VARD1:=VARC1的10过滤
输出前期高点:REF(H,上次VARD距今天数),画黄色,NODRAW
输出前期低点:REF(L,上次VARD1距今天数),COLORFF00FF,NODRAW
VAR高点赋值:VAR2STR(前期高点,2)
当满足条件VARD时,在0.002*波幅率*前期高点+前期高点和VAR高点位置书写文字
VAR低点赋值:VAR2STR(前期低点,2)
当满足条件VARD1时,在前期低点-0.002*波幅率*前期低点和VAR低点位置书写文字
当满足条件C>=O时,在H和L之间画柱状线
当满足条件C>=O时,在C和O之间画柱状线
当满足条件C< O时,在H和L之间画柱状线
当满足条件C< O时,在C和O之间画柱状线
输出当天曾涨停:((H/1日前的C)>=1.0982 AND (H/1日前的C)<=1.105 AND C=1.1975 AND C 输出当天曾跌停:((L/1日前的C)<=0.9015 AND (L/1日前的C)>=0.895 AND C>L) OR ((L/1日前的C)<=0.8025 AND C>L),画绿色,NODRAW
如果当天曾涨停返回C否则返回O
AAA1:=STRCAT('涨家数:',CON2STR(DYNAINFO(60),0))
AAA2:=STRCAT('跌家数:',CON2STR(DYNAINFO(61),0))
{WWW.GOODGUPIAO.COM} AAA3:=STRCAT('涨占比:',CON2STR(DYNAINFO(60)/(DYNAINFO(60)+DYNAINFO(61))*100,0))
当满足条件1 AND PERIOD=5时,在横轴0.4纵轴0位置书写文字
当满足条件1 AND PERIOD=5时,在横轴0.48纵轴0位置书写文字
当满足条件1 AND PERIOD=5时,在横轴0.56纵轴0位置书写文字
当满足条件1 AND PERIOD=5时,在横轴0.40纵轴0.05位置书写文字
当满足条件1 AND PERIOD=5时,在横轴0.48纵轴0.05位置书写文字
{DRAWTEXT_FIX(PERIOD=5,0.465,0.05,1,CON2STR("【量】.涨停#DAY",0)), COLOR0000FF
DRAWTEXT_FIX(PERIOD=5,0.545,0.05,1,CON2STR("【量】.跌停#DAY",0)), COLOR00FF00
} DRAWTEXT_FIX(PERIOD=5,0.465,0.05,1,CON2STR("880006$C",0)), COLOR0000FF
DRAWTEXT_FIX(PERIOD=5,0.545,0.05,1,CON2STR("880006$O",0)), COLOR00FF00
输出上市日期:CONST(DAYTODATE((DATETODAY(DATE)-FINANCE(42)))+19000000),画黄色,NODRAW
当日高度涨停赋值:IF( 条件连续成立次数(当日涨停板)>=3 AND (REFX(当日涨停板,1)=0 OR ISLASTBAR),上次当日涨停板=0距今天数,DRAWNULL)
DRAWNUMBER(当日高度涨停>=3,1.02*H,当日高度涨停),,DRAWABOVE,画绿色
DRAWTEXT_FIX(1 AND (PERIOD=5 OR PERIOD=6 OR PERIOD=7),0.00,0,0,STRCAT('所属地区:',DYBLOCK)),COLORRED
DRAWTEXT_FIX(1 AND (PERIOD=5 OR PERIOD=6 OR PERIOD=7),0.00,0.1,0,STRCAT('所属行业:',HYBLOCK)),COLORFF00FF
DRAWTEXT_FIX(1 AND (PERIOD=5 OR PERIOD=6 OR PERIOD=7),0.00,0.2,0,STRCAT('所属概念:',GNBLOCK)),画黄色
IF(MA2>=1日前的MA2,MA2,DRAWNULL),COLORFF00FF,LINETHICK2
IF( PERIOD=5 AND MA3>1日前的MA3 ,MA3,DRAWNULL),画绿色,LINETHICK2
TJ1:=(C的20日简单移动平均>=C的90日简单移动平均 OR C的20日指数移动平均>=C的90日简单移动平均 OR 收盘价的12日简单移动平均>收盘价的26日简单移动平均) AND (((C/1日前的C-1)*100>=8.5 AND H/C<1.015 AND V>1.8*1日前的V)) AND C/10日内C最低值<1.3 AND C/30日内H最高值>=0.9
TJ2:=(C的20日简单移动平均>=C的90日简单移动平均 OR C的20日指数移动平均>=C的90日简单移动平均 OR (收盘价的12日简单移动平均>收盘价的26日简单移动平均 AND V>1.8*1日前的V)) AND ((C/1日前的C-1)*100>=9.5 AND H=C) AND ((C的20日简单移动平均>=REF(C的20日简单移动平均,1) AND C的10日简单移动平均>=REF(C的10日简单移动平均,1) AND C的5日简单移动平均>=REF(C的5日简单移动平均,1)) AND V>1.5*1日前的V) AND C/10日内C最低值<1.3 AND C/30日内H最高值>=0.9
XA赋值:(TJ1 OR TJ2) AND COUNT((TJ1 OR TJ2),上次CROSS(C的20日简单移动平均,C的5日简单移动平均距今天数))<=1
当满足条件XA=1时,在开盘价和收盘价之间画柱状线
当满足条件XA=1 AND PERIOD=5时,在0.92*L和'★--火箭发射'位置书写文字

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

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