请高手帮忙修改下通达信指标公式,万分感谢

2024-11-25 15:03:19
推荐回答(1个)
回答1:

日K:="KDJ.K#DAY"(20,5,5);
日D:="KDJ.D#DAY"(20,5,5);
周K:="KDJ.K#WEEK"(9,3,3);
周D:="KDJ.D#WEEK"(9,3,3);
DRAWBAND(周K,RGB(255,0,0),周D,RGB(0,255,255));
DRAWBAND(日K,RGB(224,100,224),日D,RGB(224,224,0));

DRAWTEXT(周K<=20,80,'低位');
DRAWTEXT(周K>=80,90,'高位');
DRAWTEXT(周K>20 AND 周K<50,83,'中低');
DRAWTEXT(周K>50 AND 周K<80,87,'中高');

DRAWTEXT(日K<=20,0,'低位');
DRAWTEXT(日K>=80,20,'高位');
DRAWTEXT(日K>20 AND 日K<50,7,'中低');
DRAWTEXT(日K>50 AND 日K<80,14,'中高');

DRAWTEXT(CROSS(日K,日D),日D,'日KD金叉');
DRAWTEXT(CROSS(日D,日K),日D,'日KD死叉');
DRAWTEXT(CROSS(周K,周D),周D,'周KD金叉');
DRAWTEXT(CROSS(周D,周K),周D,'周KD死叉');