富力综合共振-精品通达信指标公式源码分享
X_1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
X_2:=SMA(ABS(LOW-X_1),13,1)/SMA(MAX(LOW-X_1,0),10,1);
X_3:=EMA(X_2,31);
X_4:=LLV(LOW,5);
X_5:=EMA(IF(LOW<=X_4,X_3,0),13);
XΩ:IF(X_5>REF(X_5,1),X_5,0),NODRAW,COLORGREEN;
STICKLINE(X_5>REF(X_5,1),0,X_5,2.5,1),COLOR009F00;
波点:IF(X_5<REF(X_5,1),X_5,0),NODRAW,COLORRED;
STICKLINE(X_5<REF(X_5,1),0,X_5,2.5,1),COLOR871F78;
X_6:=EMA(EMA(CLOSE,9),9);
X_7:=(X_6-REF(X_6,1))/REF(X_6,1)*400;
STICKLINE(X_7<0,X_7,0,0.5,0),COLORFF4800;
STICKLINE(X_7>REF(X_7,1) AND X_7<0,X_7,0,0.5,0),COLOR4D4DFF;
STICKLINE(X_7>REF(X_7,1) AND X_7>0,X_7,0,0.5,0),COLORRED;
X_8:=100*WINNER(CLOSE*0.95);
STICKLINE(X_7<REF(X_7,1) AND X_7>0,X_7,0,0.5,0),COLORFF4800;
STICKLINE(X_8>50 AND COST(85)<CLOSE AND X_7>0,X_7,0,0.5,0),COLOR3D3DFF;
X_9:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*24-12;
K:SMA(X_9,9,1);
D:SMA(K,3,1);
J:3*K-2*D;
VARK:K,COLORWHITE,LINETHICK2;
上升K:IF(VARK>REF(VARK,1),VARK,DRAWNULL),COLORRED,LINETHICK2;
走平K:IF(VARK=REF(VARK,1),VARK,DRAWNULL),COLORWHITE,LINETHICK2;
下降K:IF(VARK<REF(VARK,1),VARK,DRAWNULL),COLORFF2400,LINETHICK2;
VARD:D,COLORWHITE,LINETHICK2;
上升D:IF(VARD>REF(VARD,1),VARD,DRAWNULL),COLORMAGENTA,LINETHICK2;
走平D:IF(VARD=REF(VARD,1),VARD,DRAWNULL),COLORWHITE,LINETHICK2;
下降D:IF(VARD<REF(VARD,1),VARD,DRAWNULL),COLORGREEN,LINETHICK2;
VARJ:J,COLORWHITE;
上升J:IF(VARJ>REF(VARJ,1),VARJ,DRAWNULL),COLORRED;
走平J:IF(VARJ=REF(VARJ,1),VARJ,DRAWNULL),COLORWHITE;
下降J:IF(VARJ<REF(VARJ,1),VARJ,DRAWNULL),COLORBLUE;
STICKLINE(VARK>=0 AND VARK>=REF(VARK,1),0,0+VARD,0,1),COLOR9F9F5F;
STICKLINE(VARK>=0 AND VARK>=REF(VARK,1),0,0+VARJ,0,1),COLOR9F9F5F;
STICKLINE(VARD>=0 AND VARD>=REF(VARD,1),0,0+VARK,0,1),COLOR9F9F5F;
STICKLINE(VARD>=0 AND VARD>=REF(VARD,1),0,0+VARJ,0,1),COLOR9F9F5F;
STICKLINE(VARJ>=0 AND VARJ>=REF(VARJ,1),0,0+VARK,0,1),COLOR9F9F5F;
STICKLINE(VARJ>=0 AND VARJ>=REF(VARJ,1),0,0+VARD,0,1),COLOR9F9F5F;
STICKLINE(VARK>=0 AND VARK>=REF(VARK,1),0,0+VARK,0,1),COLOR9F9F5F;
STICKLINE(VARD>=0 AND VARD>=REF(VARD,1),0,0+VARD,0,1),COLOR9F9F5F;
STICKLINE(VARJ>=0 AND VARJ>=REF(VARJ,1),0,0+VARJ,0,1),COLOR9F9F5F;
STICKLINE(VARJ<=0 AND VARK>=REF(VARD,1),0,0+VARD,0,1),COLOR9F9F5F;
X_10:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*24-12,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*24-12,5,1),3,1);
X_11:=SMA(X_10,5,4);
趋势:X_10,NODRAW,COLOR00AAFF;
DRAWBAND(趋势,RGB(255,255,255),X_11,RGB(0,0,155));
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!