通达信分时分割(源码分时主图贴图)

分时主图叠加,蓝色的是引用格式,,,红色的,是主图公式,,,,下面是两个公式的源码


{分时引}

上涨家数:INDEXADV,NODRAW;

下跌家数:INDEXDEC,NODRAW;


 

{分时分割}

日牛熊线:EMA(C,120),COLORFF0080,LINETHICK2;

最新:C,COLOR00FF00,LINETHICK2;

分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;

AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));

BB:=BETWEEN(C/AA,C+H,C-H);

IF(最新>=REF(最新,1),C,DRAWNULL),COLORRED,LINETHICK2;

DRAWTEXT( ISLASTBAR AND 最新>REF(最新,1),最新,STRCAT(' 我赢涨↑',CON2STR(最新,2))),COLOR0000FF;

DRAWTEXT( ISLASTBAR AND 最新<REF(最新,1),最新,STRCAT(' 跌↓',CON2STR(最新,2))),COLOR00FF00;

上涨家数:IF(PERIOD=0 ,"分时引.上涨家数#DAY",DRAWNULL),NODRAW;

下跌家数:IF(PERIOD=0 ,"分时引.下跌家数#DAY",DRAWNULL),NODRAW;

DRAWTEXT_FIX(1,0.200,1-0.08,0,STRCAT('上涨家数:',CON2STR(上涨家数,0))),COLOR0000FF;

DRAWTEXT_FIX(1,0.600,1-0.08,0,STRCAT('下跌家数:',CON2STR(下跌家数,0))),COLOR00FF00;

N:=76;{可调参数,取决于窗口大小的补偿}

X:=FROMOPEN+1;

HH:=HHV(H,X);

LL:=LLV(L,X);

HL:=HH-LL;

A76:=0.764*HL+LL;

A61:=0.618*HL+LL;

A38:=0.382*HL+LL;

A23:=0.236*HL+LL;

A5:=0.5*HL+LL;

DRAWTEXT_FIX(1,0,0 ,0,'最高 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄' ),COLOR00FF00,LINETHICK2;

DRAWTEXT_FIX(1,0,1,0,'最低______________________________________________________________________________________________________________________________________________________________________'),COLOR00FF00,LINETHICK2;

DRAWTEXT_FIX(1,0,0.5,0,'中轴=================================================================================='),COLOR00FFFF,LINETHICK2;

DRAWTEXT_FIX(1,0,0.616,0,'▼ ----------------------------------------------------------------------------'),COLOR00FF00,LINETHICK2;

DRAWTEXT_FIX(1,0,0.382,0,'▲  -----------------------------------------------------------------------------'),COLOR00FF00,LINETHICK2;

DRAWTEXT_FIX(1,0,0.128,0,'压力-------------------------------------------------------------------------------'),COLORFFFF00,LINETHICK2;

DRAWTEXT_FIX(1,0,0.880,0,'支撑-------------------------------------------------------------------------------'),COLORFFFF00,LINETHICK2;

 




来函数检测结果如下:
该公式没有未来函数

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

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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