To create an interface overlay in MQL4 without blocking or darkening candlesticks, follow these steps:
Step 1: Create a Transparent Bitmap Object
Define a Bitmap Label Object: Use OBJ_BITMAP_LABEL to create an image overlay that won't interfere with the chart.
Step 2: Use a Transparent Image
Ensure your image is a PNG with a transparent background. Load it into the object:
Step 3: Adjust Layering and Transparency
Set Color Transparency if using custom shapes or areas, apply clrNone for transparency.
Use Z-ordering (OBJPROP_ZORDER) to control layering so your overlay stays behind or above the candlesticks as needed.
Final Tips
Use PNG with transparency to avoid darkening the chart.
Adjust OBJPROP_ZORDER to control whether the overlay appears above or below chart elements.
This setup will allow you to add an overlay without obscuring candlesticks.