在线检测未来函数

通达信中短线决策操盘主图指标公式

来源:Internet,编辑:股旁网,2021-07-16

{使用说明:一、形态说明:股价高于决策线,视为强势;股价低于决策线,视为弱势;决策线向上涨升,具有助涨力道;决策线向下跌降,具有助跌力道。 二、买入和卖出:1、“水漫大堤”中线买入法:股价有规律一段时间下跌中,受到中线的压制,某一天涨过中线(最好不要以涨停的方式跳上)后数日横盘不跌,如河水缓缓上涨漫过大堤。这时我们一定要高度警觉,赚钱的机会来了,可以在横盘中的相对低位买入。2、金叉买入法:短线决策线上穿(金叉)中线决策线时,可以加仓。3、两步卖出法:股价不破中线决策均线一路持仓,破短线决策减半仓。股价再次跌破中线止损或清仓。4、死叉卖出法:短线决策线下穿(死叉)中线决策线时,一定要先离场观望。}

本文指标含有选股公式如下:

中短线决策操盘主图之钱袋选股指标公式

{短线持股持币区,红线区持股,绿线区持币}
N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV1:=VOL*(C+L+H)/3;
短线:SUM(AMOV1,N1)/SUM(VOL,N1),COLORRED;
{DRAWTEXT(CURRBARSCOUNT=1,短线*0.998,' 短线'),COLORRED;}
NOTEXT1:IF(C>=短线,短线,DRAWNULL),LINETHICK2,COLORRED;
NOTEXT2:IF(C<短线,短线,DRAWNULL),LINETHICK2,COLORGREEN;
{中线持股持币区,黄线区持股,灰线区持币}
N2:=IF(BARSCOUNT(C)>=48,48,BARSCOUNT(C));
AMOV2:=VOL*(C+L+H)/3;
中线:SUM(AMOV2,N2)/SUM(VOL,N2),COLORYELLOW;
{DRAWTEXT(CURRBARSCOUNT=1,中线*0.998,' 中线'),COLORRED;}
NOTEXT3:IF(C>=中线,中线,DRAWNULL),LINETHICK2,COLORYELLOW;
NOTEXT4:IF(C<中线,中线,DRAWNULL),LINETHICK2,COLORGRAY;
{短线金叉中线}
JC:=CROSS(短线,中线);
DRAWICON(JC,L,9);
{筹码平均成本线}
均线:IF(CURRBARSCOUNT<13,CONST(COST(50)),DRAWNULL),COLORWHITE,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,筹均线*0.998,' 筹均线'),COLORWHITE;
{2020.8.23之后涨跌停显示}
前5天:=BARSCOUNT(C)>5;{上市大于五天,前五天不限制幅度}
ZC:=REF(C,1);
ZF:=(H-ZC+0.01)/ZC*100;
DF:=(ZC-L+0.01)/ZC*100;
涨5:=ZF>=5 AND 前5天 AND C=H;
跌5:=DF>=5 AND 前5天 AND C=L;
涨10:=ZF>=10 AND 前5天 AND C=H;
跌10:=DF>=10 AND 前5天 AND C=L;
涨20:=ZF>=20 AND 前5天 AND C=H;
跌20:=DF>=20 AND 前5天 AND C=L;
涨停板:=IF(INBLOCK('科创板'),涨20,IF(INBLOCK('创业板') AND DATE>1200823,涨20,IF(INBLOCK('ST板块'),涨5,涨10)));
跌停板:=IF(INBLOCK('科创板'),跌20,IF(INBLOCK('创业板') AND DATE>1200823,跌20,IF(INBLOCK('ST板块'),跌5,跌10)));
STICKLINE(涨停板,O,C,2.7,0),COLORYELLOW;
STICKLINE(涨停板,O,C,1.5,0),COLORRED;
STICKLINE(跌停板,O,C,1.5,0),COLORBLUE;
曾涨5:=ZF>=5 AND 前5天 AND C<H;
曾跌5:=DF>=5 AND 前5天 AND C>L;
曾涨10:=ZF>=10 AND 前5天 AND C<H;
曾跌10:=DF>=10 AND 前5天 AND C>L;
曾涨20:=ZF>=20 AND 前5天 AND C<H;
曾跌20:=DF>=20 AND 前5天 AND C>L;
曾涨停板:=IF(INBLOCK('科创板'),曾涨20,IF(INBLOCK('创业板') AND DATE>1200823,曾涨20,IF(INBLOCK('ST板块'),曾涨5,曾涨10)));
曾跌停板:=IF(INBLOCK('科创板'),曾跌20,IF(INBLOCK('创业板') AND DATE>1200823,曾跌20,IF(INBLOCK('ST板块'),曾跌5,曾跌10)));
STICKLINE(曾涨停板,O,C,0.1,0),COLORLIMAGENTA;
DRAWICON(曾涨停板,H*1.001,37);
DRAWTEXT(曾涨停板,H-0.02,'炸'),COLORCYAN;
STICKLINE(曾跌停板,O,C,0.1,0),COLORBLUE;
DRAWICON(曾跌停板,L*0.98,36);
DRAWTEXT(曾跌停板,L-0.1,'撬'),COLORLIRED;

通达信中短线决策操盘主图指标公式

 

相关文章