同花顺-通达信主图 分时显示概念 涨停变色
同花顺分时图:
我尽量讲的仔细点,如果还是不会,那一定是你的原因。
打开同花顺分时图,点击黄色的分时均线,出现白色的点点后,鼠标右键就会显示上图,点击修改分时走势-更多设置:
出现下面的框:
源码如下:
先把原来的代码删掉,然后把下面的全部复制过去,测试公式没问题,确定就行。
S1:=((1)=1);
竞额:=REF(,S1)/10000;
竞量:=REF(VOL,S1)/100;
(,0.65,0.90,0,'竞价金额:'+(竞额,1)+'万'),;
(,0.65,0.84,0,'竞价手数:'+(竞量,0)+'手'),;
上涨家数:=('',&) + ('',&);
下跌家数:=('',&) + ('',&);
涨停:=('',&) + ('',&);
跌停:=('',&) + ('',&);
涨:='涨:'+上涨家数+'涨停('+涨停+')';
(,0.85,0.65,0,涨),;
跌:='跌:'+下跌家数+'跌停('+跌停+')';
(,0.85,0.70,0,跌),;
(1,0.85,0.80,0,'流通股:'+(SHGZG/,2)+'亿股'),;
(1,0.85,0.85,0,'实际股:'+(/,2)+'亿股'),;
(1,0.85,0.90,0,'流通市值:'+(LTSZ/,2)+'亿'),;
自由市值:=(NEW*/,2);
(,0.85,0.95,0,'实际市值:'+(自由市值,0)+'亿'),;
(1,0.85,0.20,0,'净利润:'+(JYLX ,0)+''),;
(1,0.85,0.24,0,'每股收益:'+(MGSYX,0)+'元'),;
换手:=(V/*100,2);
(,0.25,0.90,0,'真实换手:'+(换手,0)+'%'),;
成交:=(MONEY/,2,);
(,0.39,0.90,0,'实时成交:'+(成交,0)+'亿'),;
(1,0.65,0.95,0,'地域:'+BLOCK(2,0)),;
(1,0.25,0.65,0,'概念:'+BLOCK(3,5)),;
(1,0.25,0.95,0,'行业:'+BLOCK(0,0)+'*/*'+BLOCK(1,0)),;
最新:IF((NEW),PRE,NEW);
IF (() OR 1 AND VOL
b=(&VOL) ;
m=SUM(b*最新,0);
均价:IF(m>0,m/VOL,PRE);
ELSE IF(!=0 AND MONEY>0 AND != 48)
IF((MONEY) OR (VOL) OR VOL==0 OR MONEY==0)
均价:PRE;
ELSE IF(VOL==VOL[1] OR MONEY==MONEY[1])
均价:均价[1];
ELSE
均价:MONEY/VOL;
ELSE IF ( == 176)
b=(&MONEY);
m=SUM(b*最新,0);
IF(m>0)
均价:m/MONEY;
ELSE
均价:;
(==32 AND (1)242),RGB(0,0,128);
;
;
;
日线主图:
同样点击随便哪根均线,然后修改均线:
注意参数:
(1,0.06,0.02,0,'行业:'+BLOCK(0,0)+'/'+BLOCK(1,0)),;(1,0.24,0.02,0,'地域:'+BLOCK(2,0)),;(1,0.06,0.07,0,'概念:'+BLOCK(3,25)),;(,0.33,0.02,0,'实际流通:'+(*C/,1)+'亿'),;上涨家数:=('',&) + ('',&);下跌家数:=('',&) + ('',&);(,0.46,0.02,0,'上涨:'+(上涨家数,0)),;(,0.52,0.02,0,'下跌:'+(下跌家数,0)),;涨停:=('',&)+('',&);跌停:=('',&)+('',&);(,0.62,0.02,0,'涨停:'+(涨停,0)),;(,0.68,0.02,0,'跌停:'+(跌停,0)),;(,0.75,0.02,0,'昨交:'+(REF(MONEY/,1),2)+'亿'),;
C2:=REF(C,1);涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);(涨停,OPEN,CLOSE,10,0),;(涨停,H,L,0,0),;跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);(跌停,OPEN,CLOSE,10,0),;(跌停,H,L,0,1),;
IF (k0,0.06,0.004,0,),,;(C>0,0.12,0.004,0,),,;(1,0.36,0.004,0,),;
AAA1:=('沪深总上涨数:',((60),0));AAA2:=('沪深总下跌数:',((61),0));AAA3:=('沪深总成交金额:',((62)/,0));(,0,0.06,0,AAA1),;(,0,0.12,0,AAA2),;(,0,0.18,0,AAA3),;
{股本市值}总股本:=((' 总股本: ',(/,2)),'亿');流通盘:=((' 流通盘: ',(/,2)),'亿');全流通:=(' 全流通: ',((/)/(/),2));市值:=((' 流通市值: ',((/)*C,2)),'亿');股本市值:=(' ',(((总股本,流通盘),全流通),市值));(,0,1.2,0,股本市值),;
{业绩}市盈率:=('市盈率: ',((39),2));市净率:=(' 市净率: ',(C/(34),2));每股收益:=(' 每股收益: ',((38),2));股值:=(' ',((市盈率,市净率),每股收益));(,0.38,1.2,0,股值),; {主图显示}
净资收益率:=('净资收益率: ',((29)/(19)*100,2));毛利率:=(' 毛利率: ',(((20)-(21))/(20)*100,2));主营利润率:=(' 主营利润率 ',((23)/(20)*100,2));当前业绩:=(' ',((净资收益率,毛利率),主营利润率));(,0.62,1.2,0,当前业绩),; {主图显示}
上涨家数:,,;下跌家数:,,;当前获利筹码:IF((CLOSE),(CLOSE)*100,0),,;
分时主图:
代码:
每股净资产:=(('每股净资产:',((34),2)),'元');(1,0。22,0。7,0,每股净资产),;主营同比增长:=(('主营同比增长:',((44),2)),'%');(1,0。33,0。99,0,主营同比增长),;净利润同比增长:=(('净利润同比增长:',((43),2)),'%');(1,0。33,0。7,0,净利润同比增长),;{销售毛利率:=(('销售毛利率:',((21)/(20)*100,2)),'%');}销售毛利率:=(('销售毛利率: ',(((20)-(21))/(20)*100,2)),'%');(1,0。
22,0。99,0,销售毛利率),;(1,0。11,0。99,0,'每股收益:');(1,0。16,0。99,0,(((30)/(1),2),'元'));(1,0。11,0。7,0,'每股市盈率:');(1,0。17,0。7,0,((C/(33),2),'倍'));(1,0。01,0。99,0,'流通A股:');(1,0。06,0。99,0,((/,2),'亿股'));(1,0。11,0。5,0,'每股未分配: 元');(1,0。17,0。5,0,((32),2));(1,0。
01,0。7,0,'经营现金流: 元');(1,0。07,0。7,0,((25)/(1),2));(1,0。45,0。99,0,'☆[热点概念]:');(1,0。57,0。99,0,(0,1));(1,0。45,0。7,0,'☆[主营行业]:');(1,0。57,0。7,0,(0,2));{(1,0。00,0。63,0,'[高送转信号]:');(1,0。05,0。63,0,(0,3));};所属板块:=('☆[所属板块]',((('[行业]—',),('[地域]—',)),('[概念]—',)));(,0。
52,0。9,0,所属板块),;今日人气:=(60)/(61);(1,0,0。5,0,' ◆大盘人气:'),,;(1,0。07,0。5,0,CONST(今日人气)),;TOTAL:=IF(=1,5,IF(=2,15,IF(=3,30,IF(=4,60,IF(=5,240,1)))));MTIME:=MOD(,TOTAL);CTIME:=IF(MTIME虚拟量:=IF(=1,VOL*TOTAL/CTIME,);虚拟量比:=虚拟量/REF(VOL,1),,;虚量值:=(虚拟量-VOL)/VOL,,;(1,0。33,0。5,0,'▲量比:'),;(1,0。37,0。5,0,CONST(虚拟量比)),;量价:=(VOL/CLOSE)/3;统计主动买量:=SUM((IF(((量价>0。20) AND (CLOSE>(REF(CLOSE,1)))),量价,0)),0);统计主动卖量:=SUM((IF(((量价>0。20) AND (CLOSE
我来说两句