老師,您好!該指標加載后系統提示"當前策略含有未來函數"請修改,謝謝!
N:=26;
P:=2;
地:MA((LOW+HIGH+CLOSE*2)/4,7),COLORGREEN,LINETHICK2;
天:HHV(地,9),COLORFF8000,LINETHICK2;
人:IF(地<天,(地-(天-地)),天),COLORYELLOW,LINETHICK1;
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY:=REF(EMA(V1,3),1);
X2:=C;
X3:=HY;
RSV1:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
KK1:=SMA(RSV1,3,1);
DD1:=SMA(KK1,3,1);
JJ:=3*KK1-2*DD1;
RSV12:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;
K12:=SMA(RSV12,3,1);
D12:=SMA(K12,3,1);
J12:=3*K12-2*D12;
RSV24:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K24:=SMA(RSV24,3,1);
D24:=SMA(K24,3,1);
J24:=3*K24-2*D24;
頂線:=IF(CROSS(J24,JJ),H,REF(H,BARSLAST(CROSS(J24,JJ)))),COLORFF80C9,POINTDOT;
底線:=IF(CROSS(JJ,J24),L,REF(L,BARSLAST(CROSS(JJ,J24)))),COLORGREEN,POINTDOT;
ZDF:=(C-REF(C,1))/REF(C,1)*100;
STICKLINE1(ZDF>9.5,O,C,6,0),COLORRED;
STICKLINE1(ZDF<-9.5,O,C,6,0),COLORBLUE;
TY:=C;
HD:=FILTER(BACKSET(FILTER(REF(TY,10)=HHV(TY,2*10+1),10),10+1),10);
LD:=FILTER(BACKSET(FILTER(REF(TY,10)=LLV(TY,2*10+1),10),10+1),10);
A1:=REF(C,BARSLAST(HD));
B:=REF(C,BARSLAST(LD));
T1:=BARSLAST(HD)<BARSLAST(LD) AND NOT(HD) ;
T2:=BARSLAST(HD)>BARSLAST(LD) AND NOT(LD);
波浪頂:=IF(T1,A1,A1),COLORFF00FF,POINTDOT,LINETHICK1;
STICKLINE1(T1,A1,A1,9,0),COLORFF00FF;
波浪底:=IF(T2,B,B),COLOR80FF00,POINTDOT,LINETHICK1;
LC:=REF(CLOSE,1);
RSV:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
YX:=((CLOSE > LC) AND ISUP);
KK:=HHV(K,5);
DD:=HHV(D,5);
D1:=REF(D,1);
K1:=REF(K,1);
DRAWTEXT((((D1 < 30) AND CROSS(K,D)) AND YX),(LOW * 1),'△'),COLORYELLOW;
上收:=C;
VA1:=EMA(上收,8);
VA2:=EMA(上收,20);
MID : = MA(CLOSE,N);
UPPER: =MID + P*STD(CLOSE,N);
LOWER:= MID - P*STD(CLOSE,N);
M5:=MA(C,IF(BARSCOUNT( C)>5,5,0));
M15:=MA(C,IF(BARSCOUNT( C)>15,15,0));
M30:=MA(C,IF(BARSCOUNT( C)>30,30,0));
M60:=MA(C,IF(BARSCOUNT( C)>60,60,0));
A:=IF(M5>=M15,1,0)+IF(M5>=M30,1,0)+IF(M5>=M60,1,0)
+IF(M15>=M30,1,0)+IF(M15>=M60,1,0)+IF(M30>=M60,1,0)
+IF(M60>=REF(M60,1),1,0);
用于定位:=5 , COLOR000000,POINTDOT ;