But I'd like to improve the transparency so the bottom plot can be seen a little better. I don't know if I'm making myself clear.
I mean, you can see a little better the benchmark which is in blue and largely covered by the portfolio in red.
I've looked at it, and unfortunately, it doesn't improve what I wanted, but I'll wait for the update to be implemented. It's not a big deal, it's just a cosmetic issue.
You can either manipulate Z-order of each individual Plot() (there is ZOrder parameter in Plot() function) or just reverse the default order of drawing by adding this on top of your formula
GraphZOrder = 1; // reverse drawing order of Plot()s
Generally "transparent" means totally invisible. This usually is implemented by proper Z-ordering of Plots() i.e. plotting in correct order so "opaque" things are plotted before (beneath) "transparent" things (that should be "above").
Transluency is a different thing. It is PARTIAL transparency, so it is neither transparent nor fully opaque. Such effect is typically obtained by processing each pixel separately by blending colors of existing pixel with colors of pixels being drawn. It is called alpha-blending and it is done using calculation like this (1-alpha)*existing_pixel + (alpha)*new_pixelON EACH PIXEL. This is costly operation (because it is done on each pixel separately).
This can be done ONLY ON BITMAP DEVICES (not vectors, no PDF (unless they store just a bitmap), no printers, no EMF (metafiles)). It is also NOT supported by GDI.
Therefore you would see transluency (available via SetOpacity) IF AND ONLY IF:
You display chart directly ON SCREEN (**not printer, not vector image, not part of HTML report)
You don't use GDI (you MUST use "QuickGFX" that skips GDI rendering
You are using AmiBroker version 6.93 OR HIGHER that supports transluency
You draw with supported style (transluency isn't supported for styleGradient)
@beppe code should work just fine ON CHART (Insert the formula as a CHART)