变色均K 通达信变色公式 源码

HJ_1:=EMA(REF(HHV((CLOSE+LOW+OPEN+HIGH)/4,2500),1),30);
HJ_2:=EMA((CLOSE+LOW+OPEN+HIGH)/4,60);
HJ_3:=EMA((CLOSE+LOW+OPEN+HIGH)/4,120);
STICKLINE(CLOSE<HJ_3 AND CLOSE>OPEN,HIGH,LOW,0,0),COLORRED;
STICKLINE(CLOSE<HJ_3 AND CLOSE>OPEN,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,4,1),COLORYELLOW;
STICKLINE(CLOSE=OPEN,HIGH,LOW,0,1),COLORYELLOW;
STICKLINE(CLOSE<HJ_3 AND CLOSE<OPEN,HIGH,LOW,0,0),COLOR007700;
STICKLINE(CLOSE<HJ_3 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLOR005500;
STICKLINE(CLOSE<HJ_3 AND CLOSE<OPEN,CLOSE,OPEN,2,0),COLOR006600;
STICKLINE(CLOSE<HJ_3 AND CLOSE<OPEN,CLOSE,OPEN,1,0),COLOR007700;
STICKLINE(CLOSE>HJ_3 AND CLOSE<OPEN,HIGH,LOW,0,0),COLORFFDD44;
STICKLINE(CLOSE>HJ_3 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(CLOSE>HJ_3 AND CLOSE<OPEN,CLOSE,OPEN,2,0),COLORFFAA22;
STICKLINE(CLOSE>HJ_3 AND CLOSE<OPEN,CLOSE,OPEN,1,0),COLORFFDD44;
STICKLINE(CLOSE>HJ_3 AND CLOSE>OPEN,HIGH,LOW,0,0),COLOR00EEFF;
STICKLINE(CLOSE>HJ_3 AND CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR00AAFF;
STICKLINE(CLOSE>HJ_3 AND CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR00CCFF;
STICKLINE(CLOSE>HJ_3 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR00EEFF;
STICKLINE(CLOSE>HJ_2 AND CLOSE>OPEN,HIGH,LOW,0,0),COLORFF66AA;
STICKLINE(CLOSE>HJ_2 AND CLOSE>OPEN,CLOSE,OPEN,3,0),COLORFF11FF;
STICKLINE(CLOSE>HJ_2 AND CLOSE>OPEN,CLOSE,OPEN,2,0),COLORFF44FF;
STICKLINE(CLOSE>HJ_2 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLORFF66FF;
STICKLINE(CLOSE>HJ_2 AND CLOSE<OPEN,HIGH,LOW,0,0),COLOR999999;
STICKLINE(CLOSE>HJ_2 AND CLOSE<OPEN,CLOSE,OPEN,3,0),COLOR555555;
STICKLINE(CLOSE>HJ_2 AND CLOSE<OPEN,CLOSE,OPEN,2,0),COLOR777777;
STICKLINE(CLOSE>HJ_2 AND CLOSE<OPEN,CLOSE,OPEN,1,0),COLOR999999;
STICKLINE(CLOSE>HJ_1 AND CLOSE>OPEN,HIGH,LOW,0,0),COLOR0000DD;
STICKLINE(CLOSE>HJ_1 AND CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(CLOSE>HJ_1 AND CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000BB;
STICKLINE(CLOSE>HJ_1 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0000DD;
STICKLINE(HIGH=LOW AND CLOSE=OPEN AND CLOSE/REF(CLOSE,1)>1.048,HIGH,LOW,3,0),COLORRED;
STICKLINE(HIGH=LOW AND CLOSE=OPEN AND REF(CLOSE,1)/CLOSE>1.048,HIGH,LOW,3,0),COLORGREEN;
STICKLINE(REF(COUNT(CLOSE<HJ_1,5)=5,1) AND CLOSE>HJ_1 AND CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR00CCFF;{}
HJ_4:=(EMA(CLOSE,2)+EMA(CLOSE,4)+EMA(CLOSE,8))/3;
HJ_5:=(EMA(CLOSE,3)+EMA(CLOSE,6)+EMA(CLOSE,12))/3;
HJ_6:=(EMA(CLOSE,4)+EMA(CLOSE,8)+EMA(CLOSE,16))/3;
HJ_7:=(EMA(CLOSE,5)+EMA(CLOSE,10)+EMA(CLOSE,20))/3;
HJ_8:=(EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/3;
HJ_9:=(EMA(CLOSE,7)+EMA(CLOSE,14)+EMA(CLOSE,28))/3;
HJ_10:=(EMA(CLOSE,8)+EMA(CLOSE,16)+EMA(CLOSE,32))/3;
HJ_11:=(EMA(CLOSE,9)+EMA(CLOSE,18)+EMA(CLOSE,36))/3;
HJ_12:=(EMA(HJ_4,2)+EMA(HJ_4,4)+EMA(HJ_4,8))/3;
HJ_13:=(EMA(HJ_5,3)+EMA(HJ_5,6)+EMA(HJ_5,12))/3;
HJ_14:=(EMA(HJ_6,4)+EMA(HJ_6,8)+EMA(HJ_6,16))/3;
HJ_15:=(EMA(HJ_7,5)+EMA(HJ_7,10)+EMA(HJ_7,20))/3;
HJ_16:=(EMA(HJ_8,6)+EMA(HJ_8,12)+EMA(HJ_8,24))/3;
HJ_17:=(EMA(HJ_9,7)+EMA(HJ_9,14)+EMA(HJ_9,28))/3;
HJ_18:=(EMA(HJ_10,8)+EMA(HJ_10,16)+EMA(HJ_10,32))/3;
命8:(EMA(HJ_11,9)+EMA(HJ_11,18)+EMA(HJ_11,36))/3,COLORLIGREEN,LINETHICK3;
IF(命8>=REF(命8,1),命8,DRAWNULL),COLORLIMAGENTA,LINETHICK3;
{-----------------------------------}


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

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

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

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