我改寫了最後三行 但是跑回測都沒有交易紀錄
以下是程式碼:
plot1(_v_buy_acc - _v_sell_acc, "散戶買賣力(自訂)");
plot2(_v_buy_acc, "大戶(自訂)外盤量",checkbox:=0);
plot3(_v_sell_acc, "大戶(自訂)內盤量",checkbox:=0);
改寫成
condition1=(_v_buy_acc - _v_sell_acc)>0;
condition2=(_v_buy_acc - _v_sell_acc)[1]<0;
If Condition1 And Condition2 Then Ret = 1;
1 評論