飞狐公主思春副图指标
源码
N:=14;
TR := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(C,1))),ABS(LOW-REF(C,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:=SMA(DMP*100/TR,2,1); MDI:=SMA(DMM*100/TR,2,1); ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,6,1); 正量:PDI, COLOR9900ff; 负量:MDI,COLORcccc66; 公主:ADX,COLORFFAA66,LINETHICK2; STICKLINE(PDI>MDI,PDI,MDI,1,0),COLOR0066ff; STICKLINE(PDI STICKLINE(C>0,19.8,20.2,2,0),COLORffffff; POLYLINE(C>0,PDI), COLOR9900ff,; POLYLINE(C>0,MDI),COLORcccc66,; POLYLINE(C>0,ADX),COLORFFAA66,linethick2;
移动端首页 | PC端
© by gszx.com.cn Mobile Web
飞狐公主思春副图指标
源码
N:=14;
TR := SMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(C,1))),ABS(LOW-REF(C,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:=SMA(DMP*100/TR,2,1);
MDI:=SMA(DMM*100/TR,2,1);
ADX:=SMA(ABS(MDI-PDI)/(MDI+PDI)*100,6,1);
正量:PDI, COLOR9900ff;
负量:MDI,COLORcccc66;
公主:ADX,COLORFFAA66,LINETHICK2;
STICKLINE(PDI>MDI,PDI,MDI,1,0),COLOR0066ff;
STICKLINE(PDI
STICKLINE(C>0,19.8,20.2,2,0),COLORffffff;
POLYLINE(C>0,PDI), COLOR9900ff,;
POLYLINE(C>0,MDI),COLORcccc66,;
POLYLINE(C>0,ADX),COLORFFAA66,linethick2;