MMTMMT Docs

Drawing

Constants used by plots and entities.

Legacy Scripting v2

These docs remain available while the v2 engine is supported. For new scripts, use Scripting v3.

Shapes

Use shape.*.

Constant
shape.circle
shape.square
shape.diamond
shape.up
shape.down
shape.left
shape.right
shape.cross
shape.plus
shape.asterisk

Line Styles

Use linestyle.arrow.* only with Line(..., { style }).

Constant
linestyle.solid
linestyle.dotted
linestyle.dashed
linestyle.arrow.right
linestyle.arrow.left
linestyle.arrow.both

Sizes

These constants resolve to numeric text sizes.

ConstantValue
size.auto0
size.xxs8
size.xs10
size.sm12
size.md14
size.lg16
size.xl20
size.xxl24
size.xxxl32
size.xxxxl40

Extend

Use extend.* with Box(...).

Constant
extend.none
extend.left
extend.right
extend.up
extend.down
extend.x
extend.y

Text Alignment

Use text.align.* with Box(...) and Label(..., { textAlign }) in //@version=2.

Constant
text.align.left
text.align.center
text.align.right
text.align.top
text.align.bottom

Text Wrap

Use text.wrap.* with Box(...).

Constant
text.wrap.none
text.wrap.auto

On this page