Revise:
// Entry/Exit conditions
LongEntry = st.d < 0 and medianValue > 0
LongExit = st.d > 0
ShortEntry = st.d > 0 and medianValue < 0
ShortExit = st.d < 0
1. Long Entry Conditions: Activated when SuperTrend direction is negative (downward) and the median oscillator value is above zero.
2. Short Entry Conditions: Triggered when SuperTrend direction is positive (upward) and the median oscillator value is below zero.
3. Long Exit Conditions: Initiated when the SuperTrend direction turns positive, signaling a potential end to the upward trend.
4. Short Exit Conditions: Occur when the SuperTrend direction switches to negative, indicating a possible reversal from a downward trend.