"timeScaleVisibility"

Shows the time scale of a trend at the top, at the bottom or hides it.

Synopsis

setValue(string shape, "timeScaleVisibility", int area, bool shown, int position);

getValue(string shape, "timeScaleVisibility", int area, bool shown, int position);

shape.timeScaleVisibility(int area, bool shown, int position);

Parameters

Parameter Description
shape Name of the object
area The area
shown

FALSE = The time scale of the trend will not be shown.

TRUE = The time scale will be shown.

position

Specifies where the scale will be shown:

SCALE_BOTTOM == 0 == (Bottom)

SCALE_TOP == 1 == (Top)

SCALE_LEFT == 2 == (left)

SCALE_RIGHT == 3 == (right)

Description

Shows the time scale of a trend area at the top, at the bottom, the sides, or hides it.

Example

In the first example, the time scale will be shown at the top (1) and, in the second example, at the bottom (0).

TREND1.timeScaleVisibility(0, TRUE, 1);
TREND1.timeScaleVisibility(0, TRUE, 0);

Image: Time Scale is shown at the top

Assignment

Trend