if maxcontractprofit > 500 * bigpointvalue and marketposition = 1 then begin
if highest(high,barsSinceEntry(0)) > highest(high,barsSinceEntry(0))[1] then
value1 = high; {記錄最高點}
{平倉用}
{sell next bar at (entryprice + value1) * 0.5 stop;}
{反手用}
sellshort next bar at (entryprice + value1) * 0.5 stop;
end;
if marketposition = 1 then
{反手}
sellshort next bar at entryprice - 200 * bigpointvalue stop;