UID288717
积分98
学分
推广 个
预报后涨停 支
阅读权限20
在线时间 小时
注册时间2015-4-26
最后登录1970-1-1
|
{只要不贪,一年翻番,公式名称自己随便起}
{N:=14;M:=6}
10,COLORLIRED;
20,COLORYELLOW;
40,COLORLIGREEN;
MTR:= SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),N,1);
HD:= HIGH-REF(HIGH,1);
LD:= REF(LOW,1)-LOW;
DMP:= SMA(IF(HD>0 AND HD>LD,HD,0),N,1);
DMM:= SMA(IF(LD>0 AND LD>HD,LD,0),N,1);
PDI:= DMP*100/MTR;
MDI: DMM*100/MTR,COLORGREEN;
ADX:SMA(ABS(MDI-PDI)/(MDI+PDI)*100,N,1),COLORRED,LINETHICK2;
ADXRADX+REF(ADX,M))/2,LINETHICK2;
XG:CROSS(ADX,MDI)AND ADX>ADXR;
STICKLINE(XG,20,35,2,0),COLORLIRED;
|
|