Var: MP(0), MyLastTradeProfit(0);
MP = Marketposition;
if MP = 0 and MP[1] <> 0 then begin
if MP[1] = 1 then MyLastTradeProfit = (ExitPrice(1) - EntryPrice(1)) * BigPointValue;
if MP[1] = -1 then MyLastTradeProfit = EntryPrice(1) - ExitPrice(1)* BigPointValue;
End;