Overview
Section titled “Overview”It is possible to add a shaded zone between two plot lines using the Shade() function.
The supported properties for this function are:
- Down Colour: Set the colour of the shaded zone when Plot 1 is lower than Plot 2.
- Up Colour: Set the colour of the shaded zone when Plot 1 is higher than Plot 2.
- Offset: Move the shaded zone forward or backwards (measured in bars).
- Transparency: Allows you to adjust the Transparency of the shaded zone.
Example Script
Section titled “Example Script”Plot1 = MA(BARS=25, STYLE=Exponential, CALC=Close);Plot2 = MA(BARS=100, STYLE=Exponential, CALC=Close);Plot3 = Shade(Plot1, Plot2, DOWNCOLOUR=Red, UPCOLOUR=Green);The above script can be used with a Show Plot indicator to produce the following result:
Your privacy choices
We use cookies and similar technologies to make the site work, see how it's used, and improve it. Analytics and advertising cookies only run with your consent — see our Privacy Policy for details.