A long benefits if price rises after entry. A short benefits if price falls. Both can lose if price moves the other way. In these exercises, both are simulated.
For education only. Nothing here is financial advice, and trading involves risk.