The arguments that control a signal marker
Only series is required. Named arguments make optional settings easier to read. A call returns void; it does not return a shape object that you can later move or delete. These are the main v6 controls:
- Other parameters include editable for style settings and format/precision for numeric readouts. They do not change the event rule.
- The v6 reference lists the complete signature. Prefer names when adapting examples with optional positional arguments.
| Argument | Meaning | Constraint |
|---|---|---|
| series | Condition, or y-coordinate with absolute placement | Use a bool for relative placement and a number or na for absolute placement |
| style / location | Built-in shape and vertical positioning mode | For example, shape.triangleup and location.belowbar |
| offset | Horizontal displacement in bars | simple int in v6; cannot change from bar to bar |
| text / title | Visible caption / output name | const string; cannot contain a changing price |
| color / textcolor | Shape and caption colors | May vary by bar |
| size | Shape size | Does not resize the accompanying text |
| show_last / display | Recent-bar window / output destinations | Can hide a valid signal without changing its condition |
| force_overlay | Draw on the main chart from a separate script pane | Does not change the signal calculation |