求博易大师15分钟顶背离指标公式

发布网友 发布时间:2022-04-20 22:25

我来回答

2个回答

热心网友 时间:2023-09-16 01:45

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;

K:SMA(RSV,M1,1);
D:SMA(K,M2,1);
A:=CROSS(K,D);
ATS:=BARSLAST(A);
AC2:=IF(A,L,0);
AD2:=IF(A,D,0);
ATS2:=IF(A,REF(ATS,1)+1,ATS);
AC1:=REF(L,ATS2);
AD1:=REF(D,ATS2);
DI:=AC2<AC1 AND AD2>AD1 AND AD2<35;
B:=CROSS(D,K);

TS:=BARSLAST(B);
C2:=IF(B,H,0);
D2:=IF(B,D,0);
TS2:=IF(B,REF(TS,1)+1,TS);
C1:=REF(H,TS2);
D1:=REF(D,TS2);
DING:=C2>C1 AND D2<D1 AND D2>65;
DRAWICON(DI,REF(K,1),1);

DRAWTEXT(DI,LLV(K,5),'底背离'),COLORRED;
DRAWICON(DING,REF(K,1),2);
DRAWTEXT(DING,HHV(K,5),'顶背离'),COLORGREEN;

参数 N:9 M1:3 M2:3追问非常谢谢你,可否能帮忙让这个KD线同步MACD的红绿柱的颜色?我再加100分

追答RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
K:SMA(RSV,M1,1),COLORRED,LINETHICK2;
D:SMA(K,M2,1),COLORFFFF00;
A:=CROSS(K,D);
ATS:=BARSLAST(A);
AC2:=IF(A,L,0);
AD2:=IF(A,D,0);
ATS2:=IF(A,REF(ATS,1)+1,ATS);
AC1:=REF(L,ATS2);
AD1:=REF(D,ATS2);
DI:=AC2AD1 AND AD2C1 AND D265;
DRAWICON(DI,REF(K,1),1);
DRAWTEXT(DI,LLV(K,5),'底背离'),COLORYELLOW;
DRAWICON(DING,REF(K,1),2);
DRAWTEXT(DING,HHV(K,5),'顶背离'),COLORGREEN;
DIF:=EMA(CLOSE,9)-EMA(CLOSE,26);
DEA:=EMA(DIF,12);
MACD:=(DIF-DEA)*2;

STICKLINE(MACD>=0,K,D,0.2,1),COLORRED;
STICKLINE(MACD<0,K,D,0.2,1),COLORFFFF00;

参数 N:9 M1:3 M2:3

热心网友 时间:2023-09-16 01:45

你要的公式下半部份如下---
VALUE_K1:=MAX(MAX(MAX(MAX(MAX(MAX(MAX(HIGH,REF(HIGH,1)),REF(HIGH,2)),REF(HIGH,3)),REF(HIGH,4)),REF(HIGH,5)),REF(HIGH,6)),REF(HIGH,7));
VALUE_K2:=CROSS(KD_D,KD_K);
VALUE_L1:=REF(KD_K,BARSLAST(VALUE_K2));
VALUE_L2:=REF(KD_K,BARSLAST(REF(VALUE_K2,1))+1);
VALUE_L3:=REF(VALUE_K1,BARSLAST(VALUE_K2));
VALUE_L4:=REF(VALUE_K1,BARSLAST(REF(VALUE_K2,1))+1);
VALUE_M1:=VALUE_L1<VALUE_L2;
VALUE_M2:=VALUE_L3<VALUE_L4;
VALUE_M3:=VALUE_M1 AND NOT(VALUE_M2);
VALUE_M4:=VALUE_M2 AND NOT(VALUE_M1);
VALUE_M:=VALUE_M3 OR VALUE_M4;
DRAWICON(VALUE_M4,KD_K*1.07,23);
声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。
E-MAIL:11247931@qq.com