Hello, Is there a way to 1) check if the last trade was either a long or short position and 2) check if that trade was profitable yes or no. For example, I want the system to stop putting on a short position if the last short position made a loss. Is there some way to do this? Thanks