通达信跟庄趋势副图指标公式源码

X_1:=IF(CLOSE>REF(CLOSE,1),AMOUNT,-AMOUNT);
N1:SUM(IF(CLOSE=REF(CLOSE,1),0,X_1),0)/100000000,NODRAW,COLORRED,LINETHICK2;
X_2:=MA(N1,10);
X_3:=HHV(N1,20);
X_4:=LLV(N1,20);
X_5:=REF(N1,1);
X_6:=1221231;
X_7:=IF(DATE<X_6,1,DRAWNULL);
STICKLINE(N1>X_2,N1*X_7,X_5*X_7,3,0),COLORRED;
STICKLINE(N1<X_2,N1*X_7,X_5*X_7,3,0),COLORGREEN;
X_8:=LLV(N1,20)+(HHV(N1,20)-LLV(N1,20))/1000*750;
庄家运作区:REF(X_8*X_7,1),DOTLINE,COLORRED;
X_9:=LLV(N1,20)+(HHV(N1,20)-LLV(N1,20))/1000*500;
庄家洗盘区:REF(X_9*X_7,1),DOTLINE,COLORCYAN;
X_10:=LLV(N1,20)+(HHV(N1,20)-LLV(N1,20))/1000*250;
庄家杀跌区:REF(X_10*X_7,1),DOTLINE,COLORGREEN;
X_11:=LLV(N1,60)+(HHV(N1,60)-LLV(N1,60))/1000*500;
牛庄线:REF(X_11*X_7,1),COLORWHITE,LINETHICK2;
IF(N1>牛庄线,牛庄线,DRAWNULL),COLORRED,LINETHICK2;
IF(N1<牛庄线,牛庄线,DRAWNULL),COLORGREEN,LINETHICK2;
STICKLINE(N1>庄家运作区 AND N1>X_2,N1*X_7,X_5*X_7,3,0),COLORMAGENTA;
增减值:(N1/REF(N1,1)-1)*100*X_7,NODRAW,COLORRED;
量能比:(AMOUNT/REF(AMOUNT,1)-1)*100,NODRAW,COLORRED;
累积量比:AMOUNT/100000000/N1*100*X_7,NODRAW,COLORMAGENTA;
均值:MA(增减值,3)*X_7,NODRAW,COLORWHITE;
天数:BARSLAST(均值<0)-BARSLAST(均值>0),NODRAW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1>庄家运作区 AND N1>X_2),0,0,0,17),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1>庄家运作区 AND N1>X_2),0.1,0,0,18),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1>庄家运作区 AND N1<X_2),0,0,0,19),COLORMAGENTA;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1>庄家运作区 AND N1<X_2),0.1,0,0,20),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家运作区 AND N1>庄家洗盘区 AND N1>X_2),0,0,0,21),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家运作区 AND N1>庄家洗盘区 AND N1>X_2),0.1,0,0,22),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家运作区 AND N1>庄家洗盘区 AND N1<X_2),0,0,0,23),COLORCYAN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家运作区 AND N1>庄家洗盘区 AND N1<X_2),0.1,0,0,24),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家洗盘区 AND N1>庄家杀跌区 AND N1>X_2),0,0,0,25),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家洗盘区 AND N1>庄家杀跌区 AND N1>X_2),0.1,0,0,26),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家洗盘区 AND N1>庄家杀跌区 AND N1<X_2),0,0,0,27),COLORWHITE;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家洗盘区 AND N1>庄家杀跌区 AND N1<X_2),0.1,0,0,28),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家杀跌区 AND N1>X_2),0,0,0,29),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家杀跌区 AND N1>X_2),0.1,0,0,30),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家杀跌区 AND N1<X_2),0,0,0,31),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND (N1<庄家杀跌区 AND N1<X_2),0.1,0,0,32),COLORGREEN;
X_12:=X_6-1000000;
到期日:X_12,NODRAW,COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1 AND 1>0,0,0.95,0,15),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND 1>0,0.05,0.95,0,到期日),COLORYELLOW;




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

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

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

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