​通达信【精品四合一】副图指标 K线+波段+MACD+KDJ买入 源码

ACB1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
ACB2:=REF(ACB1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB3:=REF(ACB2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB4:=REF(ACB3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB5:=REF(ACB4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB6:=REF(ACB5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB7:=REF(ACB6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB8:=REF(ACB7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB9:=REF(ACB8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACBA:=REF(ACB9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACBB:=REF(ACBA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACBC:=REF(ACBB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACBD:=CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2);
ACBE:=REF(ACBD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACBF:=REF(ACBE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB10:=REF(ACBF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB11:=REF(ACB10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB12:=REF(ACB11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB13:=REF(ACB12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB14:=REF(ACB13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB15:=REF(ACB14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB16:=REF(ACB15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB17:=REF(ACB16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
ACB18:=REF(ACB17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
ACB19:=REF(ACBD OR ACBE OR ACBF OR ACB10 OR ACB11 OR ACB12 OR ACB13 OR ACB14 OR ACB15 OR ACB16 OR ACB17 OR ACB18,1) AND ACB1;
ACB1A:=REF(ACB1 OR ACB2 OR ACB3 OR ACB4 OR ACB5 OR ACB6 OR ACB7 OR ACB8 OR ACB9 OR ACBA OR ACBB OR ACBC,1) AND ACBD;
CHIGU:=ACB1 OR ACB2 OR ACB3 OR ACB4 OR ACB5 OR ACB6 OR ACB7 OR ACB8 OR ACB9 OR ACBA OR ACBB OR ACBC;
CHIBI:=ACBD OR ACBE OR ACBF OR ACB10 OR ACB11 OR ACB12 OR ACB13 OR ACB14 OR ACB15 OR ACB16 OR ACB17 OR ACB18;
K线买入:=ACB19 ;
ABC1:=(100-((90*(HHV(H,14)-C))/(HHV(H,14)-LLV(L,14))));
ABC2:=(100-MA(((100*(HHV(H,6)-C))/(HHV(H,6)-LLV(L,6))),34));
波段买入:=CROSS(ABC1,MA(ABC2,6));
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MACD买入:=CROSS(DIF,DEA);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
KDJ买入:=CROSS(K,D);
AA:=K线买入 AND 波段买入;
BB:=K线买入 AND MACD买入;
CC:=K线买入 AND KDJ买入;
DD:=波段买入 AND MACD买入;
EE:=波段买入 AND KDJ买入;
FF:=MACD买入 AND KDJ买入;
DIF1:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA1:=EMA(DIF1,9);
MACD1:=(DIF1-DEA1)*2;
XG:=MACD1>0;
AA6:=C>MA(C,60);
精品四合一:=AA OR BB OR CC OR DD OR EE OR FF OR (MACD买入 AND REF(波段买入,1) ) AND XG AND AA6 ;
STICKLINE(精品四合一,0,4,3,0),COLOR0000FF;
STICKLINE(精品四合一,0,4,2,0),COLOR001235;
STICKLINE(精品四合一,0,4,1,0),COLOR002266;
STICKLINE(精品四合一,0,4,0.5,0),COLOR003378;
DRAWICON(精品四合一,4,9);
DRAWICON(精品四合一,3,5);
DRAWICON(精品四合一,2,25);
DRAWICON(精品四合一,1,34);
DRAWTEXT(精品四合一,3.6,' ★四合一'),COLORMAGENTA;


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

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

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

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