UID72217
积分255
学分
推广 个
预报后涨停 支
阅读权限40
在线时间 小时
注册时间2010-7-4
最后登录1970-1-1
|
input:N(14,2,99,1),M1(3,2,50,1),M2(3,2,50,1),Y1(25,0,50),Y2(75,50,100); {通达信删除这一行后另行设置}
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
%K:MA(RSV,M1);
%D:MA(%K,M2),COLORAA00DD;
Y1,color007a00;
Y2,color007a00;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
VAR1:=HHV(DEA,53);
VAR2:=LLV(DEA,55);
VAR3:=DEA-(DIF-DEA);
UP:=IF(DIF>VAR1 AND DEA=VAR1,MAX(LLV(VAR1,10),VAR3),VAR1);
DN:=IF(DIF<VAR2 AND DEA=VAR2,MIN(HHV(VAR2,10),VAR3),VAR2);
PARTLINE(DIF<DN,-5),LINETHICK3,COLOR00BB00; {飞狐}
PARTLINE(DIF>UP,104),LINETHICK3,COLOR00BB00; {飞狐}
IF(DIF<DN,-5,DRAWNULL),COLOR00BB00,LINETHICK3; {通达信}
IF(DIF>UP,104,DRAWNULL),COLOR00BB00,LINETHICK3; {通达信}
PARTLINE(-5,DIF<DN,RGB(0,180,0)),LINETHICK3,LAYER7; {大智慧l2}
PARTLINE(104,DIF>UP,RGB(0,180,0)),LINETHICK3,LAYER7; {大智慧l2} |
|