Hooray! Order filled. Now I would like to set profit target / stop loss based on the entry price (it's market order, because if next day market opens in my favor I don't want to loose this money).
Now at the same bar order was filled, I am witnessing interesting phenomena: it exited already, because guess what.... whatever was set last time for profit target / stop loss was still in place.
I didn't even have a chance to set it, because it's supposed to be based on the AvgPrice of the position!!! Yet, it's already gone, position is exited. Game over.
Yet, under a lot of circumstances if order is filled on Open, profit target / stop loss, based on the open price will be reached in the same day and it's not looking into the future.
So my big question is: how to set profit target/ open loss based on the open price (not %, but certain calculated number, which is function on the avg order fill price).

Comment