Show ( CustomColor color , CustomColor poc color , CustomColor va color , double opacity , CustomColor open color , CustomColor close color , CustomColor ib color , CustomColor volume color , CustomColor volume va color , CustomColor volume poc color );
Default values:
color: Color.PLUM
poc color: Color.CURRENT
va color: Color.CURRENT
opacity: 50.0
open color: Color.CURRENT
close color: Color.CURRENT
ib color: Color.CURRENT
volume color: Color.PLUM
volume va color: Color.CURRENT
volume poc color: Color.CURRENT
Description
This function controls visibility and color scheme of Time, Volume, and Monkey Bars profiles. Note that profiles calculated by the corresponding functions will only be visible if the Show
function is applied to them.
The color
parameter defines the main color of Time and Volume profile bars.
The poc color
parameter defines the color of the Point of Control.
The va color
parameter defines the color of the Value Area.
The opacity
parameter sets the degree of histogram opacity, in percent.
The open color
parameter defines the color of the square marking the Monkey Bars' Open price.
The close color
parameter defines the color of the arrow marking the Monkey Bars' Close price.
The ib color
parameter only affects MonkeyBars function. It defines the color of Initial Balance bracket.
The volume color
parameter only affects MonkeyBars function. It defines the color of Volume Profile if you chose to complement Monkey Bars with it.
The volume va color
parameter only affects volume poc color parameter. Color.CURRENT is used for any of the elements (profile itself, point of control, value area), that element is not displayed.
Input parameters
Parameter | Default value | Description |
---|---|---|
color | Color.PLUM | Defines the main color of Time and Volume profile bars. |
poc color | Color.CURRENT | Defines the color of Point of Control. |
va color | Color.CURRENT | Defines the color of Value Area. |
opacity | 50.0 | Defines the degree of histogram opacity, in percent. |
open color | Color.CURRENT | Defines the color of the square marking the Monkey Bars' Open price. |
close color | Color.CURRENT | Defines the color of the square marking the Monkey Bars' Close price. |
ib color | Color.CURRENT | Only affects MonkeyBars function. It defines the color of Initial Balance bracket. |
volume color | Color.PLUM | Only affects MonkeyBars function. It defines the color of Volume Profile if you chose to complement Monkey Bars with it. |
volume va color | Color.CURRENT | Only affects MonkeyBars function. It defines the color of the Value Area of Volume Profile if you chose to complement Monkey Bars with it. |
volume poc color | Color.CURRENT | Only affects MonkeyBars function. It defines the color of the Point of Control of Volume Profile if you chose to complement Monkey Bars with it. |
Example
def bn = BarNumber();
def start = 0;
profile mb = MonkeyBars(timeInterval = bn, startNewProfile = start, volumeProfileShowStyle = MonkeyVolumeShowStyle.ALL);
mb.Show("volume color" = Color.RED, "volume va color" = Color.WHITE, "volume poc color" = Color.GREEN);
This script displays Monkey Bars with flipped Volume Profile. Volume Profile is displayed in red color with white Value Area and green Point of Control.