通达信线里乾坤主图指标源码

SJ:=IF(DATE+19000000<20191009,1,1);
收盘线:C,NODRAW;
飞龙线:SQRT(EMA(CLOSE,89)*COST(89))*SJ,LINETHICK2,COLORRED;
抄底线:SQRT(EMA(CLOSE,89)*COST(5))*SJ,LINETHICK2,COLORGREEN;
 MA5:MA(C,5),COLORFFFFFF;
 MA10:MA(C,10),COLORYELLOW;
 MA20:MA(C,20),COLORFF80FF;
 MA30:MA(C,30),COLORGREEN;
 MA60:MA(C,60),COLOR800080;
 MA120:MA(C,120),COLORC09E7D;
 JJ:=(CLOSE+HIGH+LOW)/3;
 AA:=EMA(JJ,20);
 BB:=REF(AA,1);
 {出击:CROSS(AA,BB),COLORRED,LINETHICK0;}
 STICKLINE(AA>BB,AA,BB,2,0),COLORYELLOW,LINETHICK2;
 STICKLINE(AA<BB,BB,AA,2,0),COLORBLUE,LINETHICK2;
 XOPEN:=(REF(O,1)+REF(C,1))/2;
 XCLOSE:=CLOSE;
 XHIGH:=MAX(HIGH,XOPEN);
 XLOW:=MIN(LOW,XOPEN);
 VOLALITY:=MA(XHIGH-XLOW,8);
凰线:=MA(XCLOSE,5)+VOLALITY/2;
凤线:=MA(XCLOSE,5)-VOLALITY/2;
 BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
 VAR1:=BARSLAST(BU);
 VAR2:=BARSLAST(SEL);
 A:=XCLOSE>XOPEN AND VAR1<VAR2 ;
 B:=XCLOSE<=XOPEN AND VAR1<VAR2;
 E:=XCLOSE<=XOPEN AND VAR1>VAR2;
 D:=XCLOSE>XOPEN AND VAR1>VAR2;
 DRAWICON(A AND NOT(REF(A,1) OR REF(B,1)),L*0.99,1),COLORRED;
 DRAWICON(E AND NOT(REF(E,1) OR REF(D,1)),H*1.01,2),COLORGREEN;
 STICKLINE(A AND NOT(REF(A,1) OR REF(B,1)),AA,BB,2,0),COLORRED,LINETHICK2;
 STICKLINE((BB>AA AND XCLOSE>XOPEN AND VAR1<VAR2 ) OR (BB>AA AND XCLOSE<=XOPEN AND VAR1<VAR2 ),AA,BB,2,0),COLORRED,LINETHICK2;
 STICKLINE((AA>BB AND XCLOSE>XOPEN AND VAR1<VAR2 AND REF(XCLOSE>XOPEN AND VAR1<VAR2,1)) OR (AA>BB AND XCLOSE<=XOPEN AND VAR1<VAR2 AND REF(XCLOSE>XOPEN AND VAR1<VAR2,1)),AA,BB,2,0),COLORYELLOW,LINETHICK2;
 STICKLINE((CROSS(BB,AA) AND E AND NOT(REF(E,1) OR REF(D,1))) OR (BB<AA AND E AND NOT(REF(E,1) OR REF(D,1))),AA,BB,2,0),COLORBLUE,LINETHICK2;
STICKLINE((CROSS(AA,BB) AND E AND NOT(REF(E,1) OR REF(D,1))) OR (AA>BB AND E AND NOT(REF(E,1) OR REF(D,1))),AA,BB,2,0),COLORYELLOW,LINETHICK2;
 {涨停动因}
DRAWTEXT_FIX(1,0.65,1,0,'涨停动因:');
DRAWTEXT_FIX(1,0.7,1,0,EXTERNSTR(0,6))COLORMAGENTA;
 {公告摘要}
DRAWTEXT_FIX(1,0,0.01,0,'公告摘要:');
DRAWTEXT_FIX(1,0.05,0.01,0,EXTERNSTR(0,1))COLORMAGENTA;




未来函数检测结果如下:
该公式包含未来函数:COST
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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