Chart background color - transparent

Hello,

I used the following code to different background color :

tn = TimeNum();
startTime = 90000; // start in HHMMSS format
endTime = 240000;  // end in HHMMSS format
timeOK = tn >= startTime AND tn <= endTime;

color = IIf( timeOK, colorPaleGreen, colorPink );
Plot( 1, "", color, styleArea|styleOwnScale,0,1 );

I have a few questions:
1- How can I have a transparent color like when we draw a rectangle?
2- When I draw a rectangle, it is behind the colors and I cannot use tools like a rectangle?
image
I appreciate it if you could help me in this regard

Best regards

You could try Z-order?
https://www.amibroker.com/guide/h_zorder.html

2 Likes

Thank you very much. It works perfectly.

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.