指標變成反向 [文華財經]
-
咨詢內容:
?能不能把我這個指標變成反向的,感謝老師!
VAR2:=REF(LOW,1);VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100;VAR4:=EMA(VAR3*10,3);VAR5:=LLV(LOW,13);VAR6:=HHV(VAR4,13);VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618;VAR8:=IF(VAR7>500,500,VAR7);STICKLINE1(VAR8>-120,0,VAR8,3,1),COLORGRAY;RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;//收盤價與N周期最低值做差,N周期最高值與N周期最低值做差,兩差之間做比值。K:=SMA(RSV,3,1);//RSV的移動平均值D:=SMA(K,3,1);//K的移動平均值J:=3*K-2*D;STICKLINE1(VAR8>1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),0,VAR8,3,0),COLORRED;STICKLINE1(VAR8>0.1 AND VAR8<1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),0,VAR8,3,0),COLOR00FFFF;
??
?來源:程序化99
-
文華技術人員:
?
VAR2:=REF(LOW,1); VAR3:=SMA(ABS(LOW-VAR2),3,1)/SMA(MAX(LOW-VAR2,0),3,1)*100; VAR4:=EMA(VAR3*10,3); VAR5:=LLV(LOW,13); VAR6:=HHV(VAR4,13); VAR7:=EMA(IF(LOW<=VAR5,(VAR4+VAR6*2)/2,0),3)/618; VAR8:=IF(VAR7>500,500,VAR7); STICKLINE1(VAR8>-120,0,VAR8,3,1),COLORGRAY; RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1);//RSV的移動平均值 D:=SMA(K,3,1);//K的移動平均值 J:=3*K-2*D; STICKLINE1(VAR8>1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),0,VAR8,3,0),COLORRED; STICKLINE1(VAR8>0.1 AND VAR8<1 AND J>REF(J,1) AND REF(J,1)<REF(J,2),0,VAR8,3,0),COLOR00FFFF; X2:=REF(H,1); X3:=SMA(ABS(H-X2),3,1)/SMA(MAX(X2-H,0),3,1)*100; X4:=EMA(X3*10,3); X5:=HHV(H,13); X6:=LLV(X4,13); X7:=EMA(IF(H>=X5,(X4+X6*2)/2,0),3)/618; X8:=IF(X7>500,500,X7); STICKLINE1(X8>-120,0,X8,3,1),COLORGRAY; STICKLINE1(X8>1 AND J<REF(J,1) AND REF(J,1)>REF(J,2),0,X8,3,0),COLORGREEN; STICKLINE1(X8>0.1 AND X8<1 AND J<REF(J,1) AND REF(J,1)>REF(J,2),0,X8,3,0),COLORFFFF00;
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信號:cxh99cxh99 進行 有償收費 編寫!
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容