通达信四季K线主图指标

源码

M3:EMA(CLOSE,3),LINETHICK1;
M8: EMA(CLOSE,8),LINETHICK1;
年:MA(CLOSE,26),COLOR00FF00,LINETHICK2;
大雪:=MA((((HIGH + LOW) + CLOSE) / 3),8);
无痕:=MA((((HIGH + LOW) + CLOSE) / 3),21);
VAR111:=EMA(((OPEN + CLOSE) / 2),26);
VAR222:=MA(COST(30),3);
天下有雪:=MA(COST(50),3);
VAR3:=MA(COST(80),3);
VAR4:=(((HIGH + LOW) + CLOSE) / 3);
VAR5:=EMA(((((OPEN + HIGH) + LOW) + CLOSE) / 4),233);
VAR6:=(VAR5 + ((VAR5 * 6) / 100));
严冬:STICKLINE((VAR4 > 0.1),HIGH,LOW,0.05,0),COLORFFFFFF;
早春:STICKLINE(((((VAR4 < 天下有雪) AND (VAR4 > 无痕)) OR ((VAR4 < VAR5) AND (VAR4 > 无痕))) OR ((VAR4 > 无痕) AND (VAR111 > 无痕))),HIGH,LOW,0.05,0),COLOR00FF00;
初夏:STICKLINE((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1))) OR ((((VAR4 > VAR222) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1)))),HIGH,LOW,0.05,0),COLOR0000FF;
深秋:STICKLINE(((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > REF(VAR111,1))),HIGH,LOW,0.05,0),COLOR00FFFF;
STICKLINE(((VAR4 > 0.1) AND (CLOSE < OPEN)),OPEN,CLOSE,2,0),COLORFFFFFF;
STICKLINE(((VAR4 > 0.1) AND (CLOSE >= OPEN)),OPEN,CLOSE,2,1),COLORFFFFFF;
STICKLINE((((((VAR4 < 天下有雪) AND (VAR4 > 无痕)) AND (CLOSE < OPEN)) OR (((VAR4 < VAR5) AND (VAR4 > 无痕)) AND (CLOSE < OPEN))) OR (((VAR4 > 无痕) AND (VAR111 > 无痕)) AND (CLOSE < OPEN))),OPEN,CLOSE,2,0),COLOR00FF00;
STICKLINE((((((VAR4 < 天下有雪) AND (VAR4 > 无痕)) AND (CLOSE > OPEN)) OR (((VAR4 < VAR5) AND (VAR4 > 无痕)) AND (CLOSE > OPEN))) OR (((VAR4 > 无痕) AND (VAR111 > 无痕)) AND (CLOSE >= OPEN))),OPEN,CLOSE,2,1),COLOR00FF00;
STICKLINE(((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1))) AND (CLOSE < OPEN)) OR (((((VAR4 > VAR222) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,2))) AND (CLOSE < OPEN))),OPEN,CLOSE,2,0),COLOR0000FF;
STICKLINE(((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1))) AND (CLOSE > OPEN)) OR (((((VAR4 > VAR222) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > REF(VAR222,1))) AND (CLOSE >= OPEN))),OPEN,CLOSE,2,1),COLOR0000FF;
STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > REF(VAR111,1))) AND (CLOSE < OPEN)),OPEN,CLOSE,2,0),COLOR0000FF;
STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > REF(VAR111,1))) AND (CLOSE < OPEN)),H,L,0.05,0),COLOR0000FF;
STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > REF(VAR111,1))) AND (CLOSE >= OPEN)),OPEN,CLOSE,2,1),COLOR00FFFF;
 




未来函数检测结果如下:
该公式包含未来函数:COST
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

输出

源码

M3:收盘价的3日指数移动平均, 线宽为1
输出M8: 收盘价的8日指数移动平均, 线宽为1
输出年:收盘价的26日简单移动平均,COLOR00FF00, 线宽为2
大雪赋值:MA((((最高价 + 最低价) + 收盘价) / 3),8)
无痕赋值:MA((((最高价 + 最低价) + 收盘价) / 3),21)
VAR111赋值:EMA(((开盘价 + 收盘价) / 2),26)
VAR222赋值:MA(获利盘为30%的成本分布,3)
天下有雪赋值:MA(获利盘为50%的成本分布,3)
VAR3赋值:MA(获利盘为80%的成本分布,3)
VAR4赋值:(((最高价 + 最低价) + 收盘价) / 3)
VAR5赋值:EMA(((((开盘价 + 最高价) + 最低价) + 收盘价) / 4),233)
VAR6赋值:(VAR5 + ((VAR5 * 6) / 100))
输出严冬:STICKLINE((VAR4 > 0.1),最高价,最低价,0.05,0),COLORFFFFFF
输出早春:STICKLINE(((((VAR4 < 天下有雪) AND (VAR4 > 无痕)) OR ((VAR4 < VAR5) AND (VAR4 > 无痕))) OR ((VAR4 > 无痕) AND (VAR111 > 无痕))),最高价,最低价,0.05,0),COLOR00FF00
输出初夏:STICKLINE((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > 1日前的VAR222)) OR ((((VAR4 > VAR222) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > 1日前的VAR222))),最高价,最低价,0.05,0),COLOR0000FF
输出深秋:STICKLINE(((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > 1日前的VAR111)),最高价,最低价,0.05,0),COLOR00FFFF
STICKLINE(((VAR4 > 0.1) AND (收盘价 < 开盘价)),开盘价,收盘价,2,0),COLORFFFFFF
STICKLINE(((VAR4 > 0.1) AND (收盘价 >= 开盘价)),开盘价,收盘价,2,1),COLORFFFFFF
STICKLINE((((((VAR4 < 天下有雪) AND (VAR4 > 无痕)) AND (收盘价 < 开盘价)) OR (((VAR4 < VAR5) AND (VAR4 > 无痕)) AND (收盘价 < 开盘价))) OR (((VAR4 > 无痕) AND (VAR111 > 无痕)) AND (收盘价 < 开盘价))),开盘价,收盘价,2,0),COLOR00FF00
STICKLINE((((((VAR4 < 天下有雪) AND (VAR4 > 无痕)) AND (收盘价 > 开盘价)) OR (((VAR4 < VAR5) AND (VAR4 > 无痕)) AND (收盘价 > 开盘价))) OR (((VAR4 > 无痕) AND (VAR111 > 无痕)) AND (收盘价 >= 开盘价))),开盘价,收盘价,2,1),COLOR00FF00
STICKLINE(((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > 1日前的VAR222)) AND (收盘价 < 开盘价)) OR (((((VAR4 > VAR222) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > 2日前的VAR222)) AND (收盘价 < 开盘价))),开盘价,收盘价,2,0),COLOR0000FF
STICKLINE(((((((VAR4 > 天下有雪) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > 1日前的VAR222)) AND (收盘价 > 开盘价)) OR (((((VAR4 > VAR222) AND (VAR4 > VAR111)) AND (VAR4 > VAR5)) AND (VAR222 > 1日前的VAR222)) AND (收盘价 >= 开盘价))),开盘价,收盘价,2,1),COLOR0000FF
STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > 1日前的VAR111)) AND (收盘价 < 开盘价)),开盘价,收盘价,2,0),COLOR0000FF
STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > 1日前的VAR111)) AND (收盘价 < 开盘价)),H,L,0.05,0),COLOR0000FF
STICKLINE((((((VAR4 > VAR6) AND (VAR4 > VAR3)) AND (大雪 > 无痕)) AND (VAR111 > 1日前的VAR111)) AND (收盘价 >= 开盘价)),开盘价,收盘价,2,1),COLOR00FFFF
 


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

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