老師幫忙看看哪里不對,不能保存
作者:文華財經(jīng) 來源:cxh99.com 發(fā)布時間:2020年09月26日
-
咨詢內(nèi)容:
我想出現(xiàn)支撐預(yù)警,出現(xiàn)壓力預(yù)警
?LC := REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;VAR9:=CLOSE-REF(CLOSE,5);VARA:=EMA(EMA(VAR9,5),5)/EMA(EMA(ABS(VAR9),5),5);VARC:=EMA(EMA(VAR9,20),20)/EMA(EMA(ABS(VAR9),20),20);賣出:=IF(VARA>0 AND CROSS(VARC,VARA),90,100);DRAWICON(賣出<0,H+0.05,2);買線:=EMA(CLOSE,2);賣線:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);B1:IF(CROSS(買線,賣線),L-0.02,NULL),CROSSDOT,LINETHICK3,COLORMAGENTA;S1:IF(CROSS(80,RSI)*30,H+0.02,NULL),CROSSDOT,LINETHICK3,COLORYELLOW;VC:=((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;S2:=IF(VC>20 AND FILTER(VC<REF(VC,1),5),H+0.02,NULL),CIRCLEDOT,LINETHICK3,COLORGREEN;A0:=(L+H+C*2)/4;A1:EMA(A0,14),COLORGREEN,LINETHICK2;A2:=EMA(A0,25),COLORGREEN,LINETHICK2;A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;A2X:=(A2-REF(A2,1))/REF(A2,1)*100,NODRAW;支撐:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),NULL),COLORMAGENTA{,LINETHICK2};壓力:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),NULL),COLORCYAN;買入持股:IF(A1X>=0,A1,NULL),COLORRED,LINETHICK2;賣出空倉:IF(A1X<0 AND A2X<0,A1,NULL),COLORGREEN,LINETHICK2;支撐>=0||壓力>=0,SOUND('A');CROSS(A1X,0)||CROSSDOWN(A1X,0),SPARK;
?
?
?來源:程序化99
-
文華技術(shù)人員:
?您是要加載到wh8上?wh8不支持SPARK指令的,最后一句這樣修改一下
CROSS(A1X,0)||CROSSDOWN(A1X,0),SELECT;
如果您是看盤思路,建議您使用wh7軟件,wh8是專業(yè)的量化交易軟件,不適合看盤的