牛熊分水岭主图、选股——无论牛熊都不怕详解

VAR1:=ABS(CLOSE-REF(CLOSE,30));
VAR2:=SUM(ABS(CLOSE-REF(CLOSE,1)),30);
VAR3:=VAR1/VAR2;
VAR4:=VAR3*(0.8-2/24)+2/24;
VAR5:=VAR4*VAR4;
AMA2:EMA(DMA(CLOSE,VAR5),2),COLORGREEN,LINETHICK1;
牛熊分水岭:AMA2,STICK,COLORGRAY;
VAR10:=C>牛熊分水岭 AND 牛熊分水岭>REF(牛熊分水岭,1);
VAR11:=C<牛熊分水岭 AND 牛熊分水岭<=REF(牛熊分水岭,1);
AMA3:IF(AMA2/REF(AMA2,1)>0.997,AMA2,DRAWNULL),COLORBLUE,LINETHICK1;
AMA4:IF(AMA2/REF(AMA2,1)>1.001,AMA2,DRAWNULL),COLORRED,LINETHICK1;
DRAWTEXT_FIX(C>O,0,0.07,0,'VAR10:VAR11'),COLORMAGENTA;
STICKLINE(C>=O AND C>牛熊分水岭,H,L,0,0),COLORRED;
STICKLINE(C>=O AND C>牛熊分水岭,C,O,2.8,1),COLORRED;
STICKLINE(C<=O AND C>牛熊分水岭,C,O,2.8,0),COLORRED;
STICKLINE(C<=O AND C>牛熊分水岭,H,L,0,0),COLORRED;
STICKLINE(C>=O AND C<牛熊分水岭,H,L,0,0),COLORGREEN;
STICKLINE(C>=O AND C<牛熊分水岭,C,O,2.8,1),COLORGREEN;
STICKLINE(C<=O AND C<牛熊分水岭,H,L,0,0),COLORGREEN;
STICKLINE(C<=O AND C<牛熊分水岭,C,O,2.8,0),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR AND VAR10,0.1,0.01,0,'【牛区持股】'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR AND VAR11,0.1,0.01,0,'【熊区观望】'),COLORGREEN;






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

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

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

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