程式無法執行移動停利
varProfit2(180), Profit3(250),
Ratio1(0.618)
if maxprofit <> 0 then MaxProfit = maxpositionprofit/bigpointvalue/currentcontracts;
if marketposition > 0 then
begin
Sell all shares next bar at entryprice - MinMove*Loss stop;=====>下單機會預掛,但不送單
Sell next bar at entryprice + MinMove*FixProfit limit;======>下單機會預掛,但不送單
if MaxProfit > Profit2 and Maxprofit <= Profit3 Then
Sell all shares next bar at entryprice + MaxProfit*Ratio1 stop;======>今天條件滿足這個,但程式沒反應
end;
if maxprofit <> 0
改為 if currentcontracts <> 0
頁:
[1]