List drawing tools
The app lists the drawing tools it can use.
Details#
List the native drawing tools create_drawing can draw, and exactly how each one works. With no arguments it returns common_rules (the rules every drawing follows: points, times, prices, defaults, text, locked, hidden and show_on), style_keys (every style key with its values and meaning), show_on (the timeframes show_on accepts: 1H, 4H, 1D, 1W, 1M), groups (every tool by group, each with its key, name, points and what it is for) and withheld (chart tools the connector does not offer, with the reason: Magnifier, Image). With tool set to a key (hray) or a toolbar name (Horizontal Ray) it returns tool, that tool's full specification: use (what it is for, and when another tool fits better), points (how many), point_roles (each point's role, which of its time and price the drawing uses, and what it means), rules (what the points must satisfy), render (exactly what is drawn, and what list_drawings reads back as rendered), text (where a label sits, or that the tool takes none), style (each style key it takes with its default), options (each option's type, values, range, step and default) and example (a member's request, the call that answers it, and exactly what it draws). With group set it returns group and tools, the full specification of every tool in that group. Groups: lines, channels, pitchforks, fibonacci, geometry, patterns, shapes, annotations, stamps, measure, priceaction. Call it with tool set before you use a tool for the first time, and follow it exactly: a style key or option you leave out takes the default it lists, and a key it does not list is refused. It reads no chart, so it takes no market or layout. An unknown tool or group is refused with invalid_args and detail.allowed. Example: tool hray. Example: group fibonacci.
Inputs#
| Name | Type | Required | Description |
|---|---|---|---|
| tool | string | Optional | Optional. One tool's key or toolbar name, for example hray or Horizontal Ray. Keys: trendline, ray, extendedline, infoline, trendangle, hline, hray, vline, crossline, parallelchannel, disjointchannel, flattopbottom, regressionchannel, pitchfork, schiffpitchfork, modifiedschiffpitchfork, insidepitchfork, fibretracement, fibextension, fibextensiontrend, fibfan, fibtimezones, fibchannel, fibspeedfan, trendfibtime, fibcircles, fibarcs, fibwedge, fibspiral, gannfan, gannbox, gannsquare, dedekind, sonic, supersonic, goldensonic, goldensupersonic, xabcd, cypher, gartley, bat, butterfly, crab, shark, abcd, elliottimpulse, elliottcorrection, headshoulders, arrow, box, ellipse, triangle, polyline, path, freehand, highlighter, circle, rotatedrect, arc, curve, arrowmarkup, arrowmarkdown, text, note, callout, comment, pricenote, pricelabel, signpost, flagmark, iconstamp, datepricerange, position, anchoredvwap, fixedrangevp, fairvaluegap, orderblock, liquidity. |
| group | lines | channels | pitchforks | fibonacci | geometry | patterns | shapes | annotations | stamps | measure | priceaction | Optional | Optional. One group, for the full specification of every tool in it. Pass tool or group, not both; omit both for the short list of every tool and the rules. |