Any idea what I could use for an db update?
-
I have one http request sent to my db when a trade is opened. It works fine. It's sending the price, stop loss, take profit and things like that.
When a trade is closed I would like to update my trade in the db with the close price.
But how can I identify the correct one in the db? Any idea what I could use to identify the right trade?
UPDATE db SET closeprice=$closeprice WHERE what=$what; -
Well, I found the answer. I used the ticket for this update. Works fine.