請老師把這個指標 該為文華能用的 [文華財經]
-
咨詢內容:
?N1:=14;N2:=25;P:=36;LC:= REF(CLOSE,1);RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLOR000000,LINETHICK0;RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFFFFFF;RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100;{IF((RSI1>RSI2)AND(RSI1>=50),RSI1,DRAWNULL),colorgreen;IF(RSI1<30,RSI1,DRAWNULL),colorred;}MID:=EMA(RSI1,P);上軌:MID + 2*STD(RSI1,20),COLOR993300;下軌:MID - 2*STD(RSI1,20),COLORFF00FF;中軌:((上軌-下軌)/2)+下軌,COLORFFFFFF,POINTDOT,LINETHICK2;BIAS:=(CLOSE-MA(CLOSE,25))/MA(CLOSE,25)*100;IF(RSI6<20,20,15),COLOR336699;IF(RSI6<10,28,15),COLORFF9900;IF(RSI6<20 AND BIAS<-3.5,20,15),COLORAAAAAA;IF(RSI6<20 AND BIAS<-3.5 AND (L*1.05)<=EMA(C,25),20,15),colorred;IF(REF(RSI6,1)>76 AND RSI6<76,65,85),COLOR006633;IF(RSI6>75 AND BIAS>3.5,77,85),COLOR0099CC;VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3;短頂:STICKLINE(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),中軌*1.1,中軌,1,0),colorgreen;大頂:STICKLINE(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),中軌*1.1,中軌,1,0),COLOR00FF00;VAR2:=HHV(VAR1>20,10);危險:STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),中軌*1.1,中軌,4,0);注意止損:STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),上軌,中軌,3,0);短底:STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),中軌*0.9,中軌,1,0),colorred;大底:STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),下軌,中軌,1,0),coloryellow;買入準備:=VAR1<-9 AND VAR1>REF(VAR1,1),colorwhite;DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),RSI-5,'頂',COLOR00FF00;DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),RSI-5,'頂',COLORFFFF00;DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),RSI-5,'險',COLOR00FFFF;DRAWTEXT(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),RSI-5,'意止損',COLORFF00FF;DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),下軌,'底',,COLOR0000FF;DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),下軌,'底',;DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),下軌-5,'入準備';R6:RSI6,COLOR000033,LINETHICK1;
?
?來源:程序化99
-
文華技術人員:
?參考:
?N1:=14; N2:=25; P:=36; LC:= REF(CLOSE,1); RSI6:SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100,COLOR000000,LINETHICK1; RSI1:SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100,COLORFFFFFF; RSI2:=SMA(MAX(CLOSE-LC,0),N2,1)/SMA(ABS(CLOSE-LC),N2,1)*100; MID:=EMA(RSI1,P); 上軌:MID + 2*STD(RSI1,20),COLOR993300; 下軌:MID - 2*STD(RSI1,20),COLORFF00FF; 中軌:((上軌-下軌)/2)+下軌,COLORFFFFFF,POINTDOT,LINETHICK2; BIAS:=(CLOSE-MA(CLOSE,25))/MA(CLOSE,25)*100; IF(RSI6<20,20,15),COLOR336699; IF(RSI6<10,28,15),COLORFF9900; IF(RSI6<20 AND BIAS<-3.5,20,15),COLORAAAAAA; IF(RSI6<20 AND BIAS<-3.5 AND (L*1.05)<=EMA(C,25),20,15),COLORRED; IF(REF(RSI6,1)>76 AND RSI6<76,65,85),COLOR006633; IF(RSI6>75 AND BIAS>3.5,77,85),COLOR0099CC; VAR1:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100)/3; STICKLINE(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),中軌*1.1,中軌,1,0),COLORGREEN; STICKLINE(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),中軌*1.1,中軌,1,0),COLOR00FF00; VAR2:=HHV(VAR1>20,10); STICKLINE(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),中軌*1.1,中軌,4,0); STICKLINE(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),上軌,中軌,3,0); STICKLINE(VAR1<-9 AND VAR1> REF(VAR1,1),中軌*0.9,中軌,1,0),COLORRED; STICKLINE(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),下軌,中軌,1,0),COLORYELLOW; 買入準備:=VAR1<-9 AND VAR1>REF(VAR1,1),COLORWHITE; DRAWTEXT(VAR1>9 AND FILTER(VAR1<REF(VAR1,1),5),RSI1-5,'頂',COLOR00FF00; DRAWTEXT(VAR1>20 AND FILTER(VAR1<REF(VAR1,1),5),RSI1-5,'頂',COLORFFFF00; DRAWTEXT(VAR2 AND CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),RSI1-5,'險',COLOR00FFFF; DRAWTEXT(VAR2 AND FILTER(VAR1< REF(VAR1,1),6) AND CROSS(MA(CLOSE,5),MA(CLOSE,2)),RSI1-5,'意止損',COLORFF00FF; DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),下軌,'底',COLOR0000FF; DRAWTEXT(VAR1<-20 AND FILTER(VAR1> REF(VAR1,1),5),下軌,'底'; DRAWTEXT(FILTER(VAR1<-9 AND VAR1>REF(VAR1,1),18),下軌-5,'入準備'; R6:RSI6,COLOR000033,LINETHICK1;
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容