How to close order if current profit is below or equal to previous last profitable order?

 

How can i close a currently open loosing trade  in respect to last successful positive closed trade i.e 

Close order if, OpenOrders <= LastOrderResult 

 
The moment you open a new order, it's profit will always be negative and that is always less than the "last profitable order." Do you really want to close it immediately after opening?
Reason: