請教各位先進,
我寫了一個連漲,利用retmsg顯示是幾次的連漲
但她永遠只會顯示三連漲
請問是哪裡寫錯了 感謝
condition1 = TrueAll(close > Close[1] ,3);
condition2 = TrueAll(close > Close[1] ,5);
condition3 = TrueAll(close > Close[1] ,7);
condition4 = TrueAll(close > Close[1] ,9);
if condition1 and condition2 and condition3 and condition4 then Ret = 1; retMsg="九連漲";
if condition1 and condition2 and condition3 then Ret = 1; retMsg="七連漲";
if condition1 and condition2 then Ret = 1; retMsg="五連漲";
if condition1 then Ret = 1; retMsg="三連漲";
3 評論