狼巡指標(2011-05-13 11:36:32)
分類:證券
注:以下指標源碼均經過我的嚴格測試,,如果讀者在引入過程中出現錯誤,,請檢查自己所引入的源碼有沒有漏掉某些字句或重新安裝行情系統(tǒng)軟件,。建議使用通達信行情軟件,。 CCI修改指標 TYP:=(HIGH+LOW+CLOSE)/3; CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N)); CCA:EMA(CCI,M); 參數N為50,M為10 狼巡RK2公式源碼: RSV:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100; K:=EMA(EMA(RSV,8),8); D:=EMA(EMA(K,5),5); J:3*K-2*D; LONGXR:SMA(J,5,1); LONGXK:SMA(J,10,1); A1:80; A2:50; A3:20; 狼巡RK2公式源碼: RSV:=(CLOSE-LLV(LOW,M1))/(HHV(HIGH,M1)-LLV(LOW,M1))*100; K:=EMA(EMA(RSV,M2),M2); D:=EMA(EMA(K,M3),M3); J:3*K-2*D; LONGXR:SMA(J,M4,1); LONGXK:SMA(J,M5,1); A1:80; A2:50; A3:20; 其中最大值為300~500,,最小值為2,,默認值:M1=21,M2=8,,M3=5,,M4=5,M5=10,。 狼巡BOLL公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; M1:SMA(SMA(RSV,2,1),2,1),COLOR006600; M2:SMA(SMA(RSV,3,1),3,1),COLORRED; M3:SMA(SMA(RSV,4,1),4,1),COLORRED; M4:SMA(SMA(RSV,5,1),5,1),COLORRED; M5:SMA(SMA(RSV,6,1),6,1),COLORRED; M6:SMA(SMA(RSV,7,1),7,1),COLORRED; M7:SMA(SMA(RSV,8,1),8,1),COLORRED; M8:SMA(SMA(RSV,9,1),9,1),COLORRED; M9:SMA(SMA(RSV,10,1),10,1),COLOR006600,LINETHICK2; BOLL:MA(CLOSE,60); UPPER:BOLL+2*STD(CLOSE,60); LOWER:BOLL-2*STD(CLOSE,60); 狼巡趨勢指標公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; M1:SMA(SMA(RSV,2,1),2,1),COLOR006600; M2:SMA(SMA(RSV,3,1),3,1),COLORRED; M3:SMA(SMA(RSV,4,1),4,1),COLORRED; M4:SMA(SMA(RSV,5,1),5,1),COLORRED; M5:SMA(SMA(RSV,6,1),6,1),COLORRED; M6:SMA(SMA(RSV,7,1),7,1),COLORRED; M7:SMA(SMA(RSV,8,1),8,1),COLORRED; M8:SMA(SMA(RSV,9,1),9,1),COLORRED; M9:SMA(SMA(RSV,10,1),10,1),COLOR006600,LINETHICK2; M10:SMA(CLOSE,50,1),COLORFF00FF; M11:SMA(CLOSE,100,1),COLOR0000FF; M12:SMA(CLOSE,150,1),COLORBLUE; M13:SMA(CLOSE,200,1),COLORBROWN; 狼巡趨勢MA指標公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; M1:SMA(SMA(RSV,2,1),2,1),COLOR006600; M2:SMA(SMA(RSV,3,1),3,1),COLORRED; M3:SMA(SMA(RSV,4,1),4,1),COLORRED; M4:SMA(SMA(RSV,5,1),5,1),COLORRED; M5:SMA(SMA(RSV,6,1),6,1),COLORRED; M6:SMA(SMA(RSV,7,1),7,1),COLORRED; M7:SMA(SMA(RSV,8,1),8,1),COLORRED; M8:SMA(SMA(RSV,9,1),9,1),COLORRED; M9:SMA(SMA(RSV,10,1),10,1),COLOR006600,LINETHICK2; M10:MA(CLOSE,60),COLORFF00FF; M11:MA(CLOSE,120),COLOR0000FF; M12:MA(CLOSE,250),COLORBLUE; M13:MA(CLOSE,320),COLORBROWN; 狼巡成本均線公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; A1:=(SUM(RSV*AMOUNT,360)/SUM(AMOUNT,360)); A2:=(SUM(RSV*AMOUNT,350)/SUM(AMOUNT,350)); A3:=(SUM(RSV*AMOUNT,340)/SUM(AMOUNT,340)); A4:=(SUM(RSV*AMOUNT,330)/SUM(AMOUNT,330)); A5:=(SUM(RSV*AMOUNT,320)/SUM(AMOUNT,320)); A6:=(SUM(RSV*AMOUNT,310)/SUM(AMOUNT,310)); A7:=(SUM(RSV*AMOUNT,300)/SUM(AMOUNT,300)); A8:=(SUM(RSV*AMOUNT,270)/SUM(AMOUNT,270)); A9:=(SUM(RSV*AMOUNT,260)/SUM(AMOUNT,260)); A10:=(SUM(RSV*AMOUNT,250)/SUM(AMOUNT,250)); A11:=(SUM(RSV*AMOUNT,240)/SUM(AMOUNT,240)); A12:=(SUM(RSV*AMOUNT,230)/SUM(AMOUNT,230)); A13:=(SUM(RSV*AMOUNT,220)/SUM(AMOUNT,220)); A14:=(SUM(RSV*AMOUNT,210)/SUM(AMOUNT,210)); A15:=(SUM(RSV*AMOUNT,180)/SUM(AMOUNT,180)); A16:=(SUM(RSV*AMOUNT,170)/SUM(AMOUNT,170)); A17:=(SUM(RSV*AMOUNT,160)/SUM(AMOUNT,160)); A18:=(SUM(RSV*AMOUNT,150)/SUM(AMOUNT,150)); A19:=(SUM(RSV*AMOUNT,140)/SUM(AMOUNT,140)); A20:=(SUM(RSV*AMOUNT,130)/SUM(AMOUNT,130)); A21:=(SUM(RSV*AMOUNT,120)/SUM(AMOUNT,120)); A22:=(SUM(RSV*AMOUNT,90)/SUM(AMOUNT,90)); A23:=(SUM(RSV*AMOUNT,80)/SUM(AMOUNT,80)); A24:=(SUM(RSV*AMOUNT,70)/SUM(AMOUNT,70)); A25:=(SUM(RSV*AMOUNT,60)/SUM(AMOUNT,60)); A26:=(SUM(RSV*AMOUNT,50)/SUM(AMOUNT,50)); A27:=(SUM(RSV*AMOUNT,40)/SUM(AMOUNT,40)); A28:=(SUM(RSV*AMOUNT,30)/SUM(AMOUNT,30)); B1:(A1+A2+A3+A4+A5+A6+A7)/7; B2:(A8+A9+A10+A11+A12+A13+A14)/7; B3:(A15+A16+A17+A18+A19+A20+A21)/7; B4:(A22+A23+A24+A25+A26+A27+A28)/7; AMM:=REF(CLOSE,1); AMN:=REF(CLOSE,120); RC1:=(CLOSE+AMM)/2; RC2:=(AMN+AMM+CLOSE)/3; RC3:=(RC2*RC1); RC4:=EMA(RC3,40)-EMA(RC3,120); OO:=WINNER(OPEN)*RC4; CC:=WINNER(CLOSE)*RC4; HH:=WINNER(HIGH)*RC4; LL:=WINNER(LOW)*RC4; CO:=(OO+CC+LL+HH)/4; STICKLINE(CO>=0.50,HH,LL,0,0),COLORRED; STICKLINE(CO>=0.50,CC,OO,5,1),COLORRED; STICKLINE(CO<0.50,HH,LL,0,0),COLORBLUE; STICKLINE(CO<0.50,CC,OO,5,1),COLORBLUE; STICKLINE(CO<0,HH,LL,0,0),COLOR008800; STICKLINE(CO<0,CC,OO,5,1),COLOR008800; CMA:EMA(CO,10); 中軌:0,COLORRED; 上軌:0.50,COLOR008800; 下軌:-0.50,COLOR008800; 狼巡壓力通道公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; MA1:MA(RSV,250),LINETHICK2; MA2:MA(RSV,120); MA3:MA(RSV,60); MA4:MA(RSV,20); MA5:MA(RSV,10); MA6:MA(RSV,5); UP:MA1+2*STDP(HIGH,250); LW:MA1-2*STDP(LOW,250); 狼巡壓力通道周線圖公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; MA1:MA(RSV,50),LINETHICK2; MA2:MA(RSV,30); MA3:MA(RSV,20); MA4:MA(RSV,10); MA5:MA(RSV,5); UP:MA1+2.1*STDP(HIGH,50); LW:MA1-2.1*STDP(LOW,50); 周規(guī)則公式源碼: HHV(HIGH,N1); LLV(LOW,N2); DRAWICON(CLOSE>REF(HHV(HIGH,N1),1),HHV(HIGH,N1),5); DRAWICON(CLOSE<REF(LLV(LOW,N2),1),LLV(LOW,N2),6); 狼巡周規(guī)則公式源碼: HHV(HIGH,N1); LLV(LOW,N2); DRAWICON(CLOSE>REF(HHV(HIGH,N1),1),HHV(HIGH,N1),5); DRAWICON(CLOSE<REF(LLV(LOW,N2),1),LLV(LOW,N2),6); A:IF(CLOSE>SAR(N,S,M),SAR(N,S,M),DRAWNULL),COLORRED; B:IF(CLOSE<SAR(N,S,M),SAR(N,S,M),DRAWNULL),COLORGREEN; SAR1:SAR(N,S,M),LINETHICK0; DRAWICON(SAR1>=H,SAR1,2); DRAWICON(SAR1<=L,SAR1,1); 參數名:N1 參數名:N 狼巡大盤疊加指標MA STICKLINE(INDEXC>=INDEXO,INDEXH,INDEXL,0,1),COLORRED; STICKLINE(INDEXC>=INDEXO,INDEXC,INDEXO,0.8,1),COLORRED; STICKLINE(INDEXC<=INDEXO,INDEXH,INDEXL,0,1),COLOR008800; STICKLINE(INDEXC<=INDEXO,INDEXC,INDEXO,0.8,1),COLOR008800; MA30:MA(INDEXC,5); A30:MA(INDEXC,10); MA60:MA(INDEXC,20); MA120:MA(INDEXC,60); MA250:MA(INDEXC,120); MA350:MA(INDEXC,250); 狼巡操盤通道公式源碼(含有未來數據): MA55:MA(CLOSE,55),LINETHICK2; A1:MA55+0.618*STD(HIGH,55); A2:MA55-0.618*STD(LOW,55); 通道上:MA55+2*STD(HIGH,55),COLORRED,LINETHICK2; 通道下:MA55-2*STD(LOW,55),COLORRED, LINETHICK2; A3:=CROSS(ZIG(3,10),REF(ZIG(3,10),1)); A4:=CROSS(REF(ZIG(3,10),1),ZIG(3,10)); DRAWICON(A3,LOW*0.98,1); DRAWICON(A4,HIGH*1.02,2); 狼巡操盤通道公式源碼(不含未來數據): MA250:MA(CLOSE,N),LINETHICK2; A1:MA250+0.618*STD(HIGH,N); A2:MA250-0.618*STD(LOW,N); 通道上:MA250+2*STD(HIGH,N),COLORRED,LINETHICK2; 通道下:MA250-2*STD(LOW,N),COLORRED, LINETHICK2; 魔鬼通道公式源碼(含有未來數據): A1:MA(CLOSE,5); A2:MA(CLOSE,10); A3:MA(CLOSE,30); A4:MA(CLOSE,60); MA250:MA(CLOSE,250) ; 魔鬼通道上:A3+2*STD(CLOSE,60),LINETHICK2; 魔鬼通道下:A3-2*STD(CLOSE,60),LINETHICK2; DRAWICON(CROSS(ZIG(3,10),REF(ZIG(3 ,10),1)),LOW*0.98,5); DRAWICON(CROSS(REF(ZIG(3,10),1),ZIG(3,10)),HIGH*1.02,6); KD變色指標公式源碼: RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:SMA(RSV,M1,1); D:SMA(K,M2,1); IF(K>D,K,DRAWNULL),COLORRED,LINETHICK2; IF(K>D,D,DRAWNULL),COLORRED,LINETHICK2; IF(K<=D,K,DRAWNULL),COLORGREEN,LINETHICK2; IF(K<=D,D,DRAWNULL),COLORGREEN,LINETHICK2; IF(K>=80,K,DRAWNULL),COLORBLUE,LINETHICK2; IF(K>=80,D,DRAWNULL),COLORBLUE,LINETHICK2; IF(K<=20,K,DRAWNULL),COLORMAGENTA,LINETHICK2; IF(K<=20,D,DRAWNULL),COLORMAGENTA,LINETHICK2; 狼巡趨勢選股指標源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; M1:=SMA(SMA(RSV,2,1),2,1); M2:=SMA(SMA(RSV,3,1),3,1); M3:=SMA(SMA(RSV,4,1),4,1); M4:=SMA(SMA(RSV,5,1),5,1); M5:=SMA(SMA(RSV,6,1),6,1); M6:=SMA(SMA(RSV,7,1),7,1); M7:=SMA(SMA(RSV,8,1),8,1); M8:=SMA(SMA(RSV,9,1),9,1); M9:=SMA(SMA(RSV,10,1),10,1); M10:=SMA(CLOSE,50,1); M11:=SMA(CLOSE,100,1); M12:=SMA(CLOSE,150,1); M13:=SMA(CLOSE,200,1); A1:=M9>M13; A2:=M10>M13; A3:=CROSS(M1,M9); A1 AND A2 AND A3; 狼巡趨勢選股源碼(刪除A3條件): RSV:=(HIGH+LOW+OPEN+CLOSE)/4; M9:=SMA(SMA(RSV,10,1),10,1); M10:=SMA(CLOSE,50,1); M13:=SMA(CLOSE,200,1); A1:=M9>M13; A2:=M10>M13; AMM:=REF(CLOSE,1); AMN:=REF(CLOSE,120); RC1:=(CLOSE+AMM)/2; RC2:=(AMN+AMM+CLOSE)/3; RC3:=(RC2*RC1); RC4:=EMA(RC3,40)-EMA(RC3,120); OO:=WINNER(OPEN)*RC4; CC:=WINNER(CLOSE)*RC4; HH:=WINNER(HIGH)*RC4; LL:=WINNER(LOW)*RC4; CO:=(OO+CC+LL+HH)/4; 中軸:=0; 上軌:=0.50; 下軌:=-0.50; A4:=CO<上軌; A5:=CO>-下軌; A1 AND A2 AND A4 AND A5; 狼巡趨勢選股源碼(未刪除A3條件): RSV:=(HIGH+LOW+OPEN+CLOSE)/4; M1:=SMA(SMA(RSV,2,1),2,1); M9:=SMA(SMA(RSV,10,1),10,1); M10:=SMA(CLOSE,50,1); M13:=SMA(CLOSE,200,1); A1:=M9>M13; A2:=M10>M13; A3:=CROSS(M1,M9); AMM:=REF(CLOSE,1); AMN:=REF(CLOSE,120); RC1:=(CLOSE+AMM)/2; RC2:=(AMN+AMM+CLOSE)/3; RC3:=(RC2*RC1); RC4:=EMA(RC3,40)-EMA(RC3,120); OO:=WINNER(OPEN)*RC4; CC:=WINNER(CLOSE)*RC4; HH:=WINNER(HIGH)*RC4; LL:=WINNER(LOW)*RC4; CO:=(OO+CC+LL+HH)/4; 中軸:=0; 上軌:=0.50; 下軌:=-0.50; A4:=CO<上軌; A5:=CO>-下軌; A1 AND A2 AND A3 AND A4 AND A5; 狼巡成本均線選股指標公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; A1:=(SUM(RSV*AMOUNT,360)/SUM(AMOUNT,360)); A2:=(SUM(RSV*AMOUNT,350)/SUM(AMOUNT,350)); A3:=(SUM(RSV*AMOUNT,340)/SUM(AMOUNT,340)); A4:=(SUM(RSV*AMOUNT,330)/SUM(AMOUNT,330)); A5:=(SUM(RSV*AMOUNT,320)/SUM(AMOUNT,320)); A6:=(SUM(RSV*AMOUNT,310)/SUM(AMOUNT,310)); A7:=(SUM(RSV*AMOUNT,300)/SUM(AMOUNT,300)); A22:=(SUM(RSV*AMOUNT,90)/SUM(AMOUNT,90)); A23:=(SUM(RSV*AMOUNT,80)/SUM(AMOUNT,80)); A24:=(SUM(RSV*AMOUNT,70)/SUM(AMOUNT,70)); A25:=(SUM(RSV*AMOUNT,60)/SUM(AMOUNT,60)); A26:=(SUM(RSV*AMOUNT,50)/SUM(AMOUNT,50)); A27:=(SUM(RSV*AMOUNT,40)/SUM(AMOUNT,40)); A28:=(SUM(RSV*AMOUNT,30)/SUM(AMOUNT,30)); B1:=(A1+A2+A3+A4+A5+A6+A7)/7; B4:=(A22+A23+A24+A25+A26+A27+A28)/7; AA1:=B1>B4; AMM:=REF(CLOSE,1); AMN:=REF(CLOSE,120); RC1:=(CLOSE+AMM)/2; RC2:=(AMN+AMM+CLOSE)/3; RC3:=(RC2*RC1); RC4:=EMA(RC3,40)-EMA(RC3,120); OO:=WINNER(OPEN)*RC4; CC:=WINNER(CLOSE)*RC4; HH:=WINNER(HIGH)*RC4; LL:=WINNER(LOW)*RC4; CO:=(OO+CC+LL+HH)/4; 中軸:=0; 上軌:=0.50; 下軌:=-0.50; AA2:=CO<上軌; AA3:=CO>-下軌; AA1 AND AA2 AND AA3; 狼巡成本配伍選股指標公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; A1:=(SUM(RSV*AMOUNT,360)/SUM(AMOUNT,360)); A2:=(SUM(RSV*AMOUNT,350)/SUM(AMOUNT,350)); A3:=(SUM(RSV*AMOUNT,340)/SUM(AMOUNT,340)); A4:=(SUM(RSV*AMOUNT,330)/SUM(AMOUNT,330)); A5:=(SUM(RSV*AMOUNT,320)/SUM(AMOUNT,320)); A6:=(SUM(RSV*AMOUNT,310)/SUM(AMOUNT,310)); A7:=(SUM(RSV*AMOUNT,300)/SUM(AMOUNT,300)); A22:=(SUM(RSV*AMOUNT,90)/SUM(AMOUNT,90)); A23:=(SUM(RSV*AMOUNT,80)/SUM(AMOUNT,80)); A24:=(SUM(RSV*AMOUNT,70)/SUM(AMOUNT,70)); A25:=(SUM(RSV*AMOUNT,60)/SUM(AMOUNT,60)); A26:=(SUM(RSV*AMOUNT,50)/SUM(AMOUNT,50)); A27:=(SUM(RSV*AMOUNT,40)/SUM(AMOUNT,40)); A28:=(SUM(RSV*AMOUNT,30)/SUM(AMOUNT,30)); B1:=(A1+A2+A3+A4+A5+A6+A7)/7; B2:=(A22+A23+A24+A25+A26+A27+A28)/7; AA1:=B1>A2; RSV2:=(CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))*100; LONG:=EMA(EMA(RSV,10),10); XN:=EMA(EMA(LONG,5),5); LONGXN:=3*LONG-2*XN; LONGXM:=SMA(LONGXN,5,1); LONGXR:=SMA(LONGXN,10,1); AA2:=LONGXN<30; AC1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0); AC2:=EMA(AC1,5)*CLOSE; LONGC:=EMA(AC2,20)-EMA(AC2,50); XNC:=EMA(LONGC,10); LONGXNC:=3*LONGC-2*XNC; AA3:=CROSS(LONGXNC,XNC); AA1 AND AA2 AND AA3; 狼巡趨勢配伍選股指標公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; M10:=SMA(CLOSE,50,1); M13:=SMA(CLOSE,200,1); AA1:=M10>M13; RSV2:=(CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))*100; LONG:=EMA(EMA(RSV,10),10); XN:=EMA(EMA(LONG,5),5); LONGXN:=3*LONG-2*XN; LONGXM:=SMA(LONGXN,5,1); LONGXR:=SMA(LONGXN,10,1); AA2:=LONGXM<30; AC1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0); AC2:=EMA(AC1,5)*CLOSE; LONGC:=EMA(AC2,20)-EMA(AC2,50); XNC:=EMA(LONGC,10); LONGXNC:=3*LONGC-2*XNC; AA3:=CROSS(LONGXNC,XNC); AA1 AND AA2 AND AA3; 附:本節(jié)中的狼巡成本均線公式源碼和狼巡RK2,、狼巡OBWM指標公式源碼,。 狼巡成本均線公式源碼: RSV:=(HIGH+LOW+OPEN+CLOSE)/4; A1:=(SUM(RSV*AMOUNT,360)/SUM(AMOUNT,360)); A2:=(SUM(RSV*AMOUNT,350)/SUM(AMOUNT,350)); A3:=(SUM(RSV*AMOUNT,340)/SUM(AMOUNT,340)); A4:=(SUM(RSV*AMOUNT,330)/SUM(AMOUNT,330)); A5:=(SUM(RSV*AMOUNT,320)/SUM(AMOUNT,320)); A6:=(SUM(RSV*AMOUNT,310)/SUM(AMOUNT,310)); A7:=(SUM(RSV*AMOUNT,300)/SUM(AMOUNT,300)); A8:=(SUM(RSV*AMOUNT,270)/SUM(AMOUNT,270)); A9:=(SUM(RSV*AMOUNT,260)/SUM(AMOUNT,260)); A10:=(SUM(RSV*AMOUNT,250)/SUM(AMOUNT,250)); A11:=(SUM(RSV*AMOUNT,240)/SUM(AMOUNT,240)); A12:=(SUM(RSV*AMOUNT,230)/SUM(AMOUNT,230)); A13:=(SUM(RSV*AMOUNT,220)/SUM(AMOUNT,220)); A14:=(SUM(RSV*AMOUNT,210)/SUM(AMOUNT,210)); A15:=(SUM(RSV*AMOUNT,180)/SUM(AMOUNT,180)); A16:=(SUM(RSV*AMOUNT,170)/SUM(AMOUNT,170)); A17:=(SUM(RSV*AMOUNT,160)/SUM(AMOUNT,160)); A18:=(SUM(RSV*AMOUNT,150)/SUM(AMOUNT,150)); A19:=(SUM(RSV*AMOUNT,140)/SUM(AMOUNT,140)); A20:=(SUM(RSV*AMOUNT,130)/SUM(AMOUNT,130)); A21:=(SUM(RSV*AMOUNT,120)/SUM(AMOUNT,120)); A22:=(SUM(RSV*AMOUNT,90)/SUM(AMOUNT,90)); A23:=(SUM(RSV*AMOUNT,80)/SUM(AMOUNT,80)); A24:=(SUM(RSV*AMOUNT,70)/SUM(AMOUNT,70)); A25:=(SUM(RSV*AMOUNT,60)/SUM(AMOUNT,60)); A26:=(SUM(RSV*AMOUNT,50)/SUM(AMOUNT,50)); A27:=(SUM(RSV*AMOUNT,40)/SUM(AMOUNT,40)); A28:=(SUM(RSV*AMOUNT,30)/SUM(AMOUNT,30)); B1:(A1+A2+A3+A4+A5+A6+A7)/7; B2:(A8+A9+A10+A11+A12+A13+A14)/7; B3:(A15+A16+A17+A18+A19+A20+A21)/7; B4:(A22+A23+A24+A25+A26+A27+A28)/7; 狼巡RK2指標公式源碼: RSV:=(CLOSE-LLV(LOW,50))/(HHV(HIGH,50)-LLV(LOW,50))*100; LONG:=EMA(EMA(RSV,10),10); XN:=EMA(EMA(LONG,5),5); LONGXN:3*LONG-2*XN; LONGXM:SMA(LONGXN,5,1); LONGXR:SMA(LONGXN,10,1); A1:80; A2:50; A3:20; 狼巡OBWM指標公式源碼: A1:=SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0); A2:=EMA(A1,5)*CLOSE; LONG:EMA(A2,20)-EMA(A2,50); XN:EMA(LONG,10); LONGXN:3*LONG-2*XN; LB:(LONG-XN)*3,COLORSTICK; AA:0; 狼巡BOLL選股公式的源碼如下: BOLL:=MA(CLOSE,50); UPPER:=BOLL+2*STD(CLOSE,50); LOWER:=BOLL-2*STD(CLOSE,50); AA1:=(UPPER-LOWER)<CLOSE*0.2; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; AA2:=CROSS(DIF,MACD); TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,50))/(0.015*AVEDEV(TYP,50)); AA3:=CROSS(CCI,0); AA1 AND AA2 AND AA3; 狼巡BOLL選股公式的源碼: BOLL:=MA(CLOSE,50); UPPER:=BOLL+2*STD(CLOSE,50); LOWER:=BOLL-2*STD(CLOSE,50); AA1:=(UPPER-LOWER)<CLOSE*0.2; DIF:=EMA(CLOSE,12)-EMA(CLOSE,26); DEA:=EMA(DIF,9); MACD:=(DIF-DEA)*2; AA2:=RANGE(DIF,-025,0.025); AA3:=CROSS(DIF,DEA); TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,50))/(0.015*AVEDEV(TYP,50)); AA4:=CROSS(CCI,0); AA1 AND AA2 AND AA3 AND AA4;
|
|