通达信优化的LON

N:=(2,300,10);
 LC := REF(CLOSE,1);
 VID := SUM(VOL,2)/(((HHV(HIGH,2)-LLV(LOW,2)))*100);
 RC := (CLOSE-LC)*VID;
 LONG := SUM(RC,0);
 DIFF := SMA(LONG,10,1);
 DEA := SMA(LONG,20,1);
 LON : DIFF-DEA;
 LONMA : MA(LON,10);
 DRAWBAND(LON,RGB(100,10,10),LONMA,RGB(10,100,10));
 LONT:=LON, COLORSTICK;

STICKLINE(LON>REF(LON,1) AND LON>0,0,LON,0,0),COLORRED;
 STICKLINE(LON>REF(LON,1) AND LON<0,0,LON,0,0),COLORMAGENTA;
 STICKLINE(LON<REF(LON,1) AND LON>0,0,LON,0,0),COLORLIGREEN;
 STICKLINE(LON<REF(LON,1) AND LON<0,0,LON,0,0),COLORCYAN;

MYGB1:=REF(LON,2)<0 AND REF(LON,1)<0 AND LON<0 AND ABS(REF(LON,2))<ABS(REF(LON,1)) AND ABS(REF(LON,1))>ABS(LON);
 MYGB3:=REF(LON,2)>0 AND REF(LON,1)>0 AND LON>0 AND ABS(REF(LON,2))<ABS(REF(LON,1)) AND ABS(REF(LON,1))>ABS(LON);
 STICKLINE(MYGB1,0,LON,0.1,0),COLORMAGENTA;
 STICKLINE(MYGB3,0,LON,0.1,0),COLORGREEN;

 




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

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

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

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