Sell at first profitable opening

Hi, I am creating a strategy that seeks to close on the first profitable opening from the opening day of the position. Could someone give me an idea on how to do it? I'm trying to do it this way, but it doesn't work:

Sell = Open > ValueWhen(BuyPrice,Buy);

Thank you very much.

Either 0.01 profit target stop with ExitAtStop paramter set to False and SellPrice set to Open, or break even stop:

Thank you very much for your reply Tomasz. The system has two closing conditions, one is at the first open above the buy price and the other is with a profit target of 5%, both of them are independent.