TakeValueColor

TakeValueColor ();

Description

Returns the color of the current bar.

Example

input price = close;
input length = 12;
plot Avg = Average(price, length);
AddChartBubble(Avg == HighestAll(Avg), Avg, "Max. Average", Avg.TakeValueColor());

In this example, the TakeValueColor is called to ensure that the bubble is the same color as the SMA plot.