通达信四象合涨指标公式

D1:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);
D2:=REF(D1,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D3:=REF(D2,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D4:=REF(D3,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D5:=REF(D4,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D6:=REF(D5,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D7:=REF(D6,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D8:=REF(D7,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D9:=REF(D8,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
DA:=REF(D9,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
DB:=REF(DA,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
DC:=REF(DB,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
DD:=CLOSE< REF(CLOSE,1) AND CLOSE< REF(CLOSE,2);
DE:=REF(DD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
DF:=REF(DE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D10:=REF(DF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D11:=REF(D10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D12:=REF(D11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D13:=REF(D12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D14:=REF(D13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D15:=REF(D14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D16:=REF(D15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D17:=REF(D16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);
D18:=REF(D17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);
D19:=REF(DD OR DE OR DF OR D10 OR D11 OR D12 OR D13 OR D14 OR D15 OR D16 OR D17 OR D18,1) AND D1;
D1A:=REF(D1 OR D2 OR D3 OR D4 OR D5 OR D6 OR D7 OR D8 OR D9 OR DA OR DB OR DC,1) AND DD;
CHIGU:=D1 OR D2 OR D3 OR D4 OR D5 OR D6 OR D7 OR D8 OR D9 OR DA OR DB OR DC;
CHIBI:=DD OR DE OR DF OR D10 OR D11 OR D12 OR D13 OR D14 OR D15 OR D16 OR D17 OR D18;
k线买入:=D19 ;
C1:=(100-((90*(HHV(H,14)-C))/(HHV(H,14)-LLV(L,14))));
C2:=(100-MA(((100*(HHV(H,6)-C))/(HHV(H,6)-LLV(L,6))),34));
波段买:=crOSS(C1,MA(C2,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买入;
DD1:=波段买 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 DD1 OR EE OR FF OR (MACD买入 AND REF(波段买,1) ) AND XG AND AA6 ;
STICKLINE(四象合涨,0,5,0.5,0),COLOR003378;
DRAWICON(四象合涨,4,11);
DRAWICON(四象合涨,3,5);
DRAWICON(四象合涨,2,13);
DRAWICON(四象合涨,1,9);
DRAWTEXT(四象合涨,4.6,'四象合涨'),COLORMAGENTA;




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

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

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

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