Key Changes:
Single Label: The script now creates a single label that shows the maximum energy value (either long or short) from the candle that produced the supply or demand line.
Storage of Max Energy: The maximum energy value is calculated and stored separately, ensuring only relevant data is displayed.
This ensures a cleaner output while still conveying the necessary information. Let me know if you need any further adjustments!