Multi-Plot Shading
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
Plot1 = MA(BARS=25, STYLE=Exponential, CALC=Close);<br></br>Plot2 = MA(BARS=100, STYLE=Exponential, CALC=Close);<br></br>Plot3 = Shade(Plot1, Plot2, DOWNCOLOUR=Red, UPCOLOUR=Green);
The above script can be used with a Show Plot indicator to produce the following result: