請問小編,我寫了一個語法,要得到今日的日K、周K及月K上布林的UB2.00大於昨日的UB2.00,今日的下布林LB2.00小於昨日的LB2.00,目前跑出來只有日K及周K正確,月K的部分不對,想請小編幫我看一下哪裡出錯,謝謝
Value1=close;
Value2=getfield("Close", "W");
Value3=getfield("Close", "M");
Value4=BollingerBand(Close,20,2);
Value5=BollingerBand(Close,20,-2);
Value6=BollingerBand(Value2,20,2);
Value7=BollingerBand(Value2,20,-2);
Value8=BollingerBand(Value3,20,2);
Value9=BollingerBand(Value3,20,-2);
Value10=AVerage(close,20);
Value11=AVerage(Value2,20);
Value12=AVerage(Value3,20);
IF Value1 > Value1[1] and Value1 > Value1[2] and Value1 > Value10
and Value4 > Value4[1] and Value5 < Value5[1]
and Value2 > Value2[1] and Value2 > Value2[2] and Value2 > Value11
and Value6 > Value6[1] and Value7 < Value7[1]
and Value3 > Value3[1] and Value3 > Value3[2] and Value3 > Value12
and Value8 > Value8[1] and Value9 < Value9[1]
and Volume > 1000
then ret=1;
9 評論