這是我的Code和Log, 我非常困惑在Log上反白的那段, 為什麼If有進去, 但test[1]的值卻沒有被更動?

附上回測的設定

附上可以Copy & Paste的Code
Array: test[3](0);
Var: test2(0);
if Mod(CloseD(2), 2) = 0 Then
Begin
Print("MOD");
test[1] = CloseD(2);
test2 = CloseD(2);
if test[1] <> test2 Then Print("What!?");
End;
Print(CloseD(2));
Print(Mod(CloseD(2), 2));
Print("test2", test2);
Print("當下的", test[1]);
Print("前一次的", test[1][1], test[1][2], test[1][3]);
1 評論