股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信四象合涨指标公式源码


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 3 天前

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|

GMT+8, 2024-11-23 23:11

快速回复 返回顶部 返回列表