Tool
Shape Object
object.shape
Inputs
First anchor Point.
Second anchor Point.
Third anchor Point (three-anchor modes only).
Outputs
A chart-object sink — it draws on the terminal chart and outputs nothing. Nothing can be wired from it.
Shape Object draws a rectangle, triangle, or ellipse over the anchor points, optionally filled — zones, consolidation boxes, pattern outlines.
How it works
Wire the anchor Points: two for a rectangle, three for a triangle or ellipse. The shape follows the anchors; enable fill for a solid figure. MetaTrader 4 has no native fill — a filled shape falls back to a solid draw-behind look.
Modes
Mode options
A rectangle spanned by two anchors.
A triangle over three anchors.
An ellipse over three anchors.
Placement options
One object per confirmed anchor, oldest removed beyond the cap.
One object that follows the latest confirmed anchor.
Configuration
Shape family: rectangle (2 anchors), triangle or ellipse (3 anchors).
How the object tracks the anchor stream: 'stamped' leaves one object per triggering bar (capped by max_objects); 'single' keeps one object moved in place.
Stamped-placement cap: the oldest object is removed once more than this many are on the chart (FIFO).
Object color (#rrggbb).
Line / border / glyph width in pixels.
Fill the shape solid (MetaTrader 4 falls back to a draw-behind solid look).