通达信金马主图指标公式

N1:=3;
M2:=MA(C,20),COLORGREEN;
MA10:=EMA(C,10),COLORWHITE;
MA15:=EMA(C,15),COLORRED;
VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR6:=VAR3-VAR1;
Z:=MA(VAR6,N1);
STICKLINE(Z>=0 {AND ZZ=2},O,C,3,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},H,MAX(O,C),0,1),COLORRED;
STICKLINE(Z>=0 {AND ZZ=2},MIN(O,C),L,0,1),COLORRED;
STICKLINE(Z<0 {AND ZZ=1},O,C,3,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z<0 {AND ZZ=1},MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,O,C,3,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,0),COLORCYAN;
STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,0),COLORCYAN;
STICKLINE(Z<0 AND M2<C,O,C,3,1),COLORRED;
STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,0),COLORRED;
STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,0),COLORRED;
金马日线:IF(MA10<C,MA10,DRAWNULL )COLORWHITE;
金马k线:IF(C>=MA15 AND MA10>MA15 AND CLOSE>MA15 ,MA15,DRAWNULL )COLORRED,LINETHICK1;
涨停:=IF((C-REF(C,1))*100/REF(C,1)>=(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,2.5,0),COLORLIMAGENTA;




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

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

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

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