Dovee reference
Every Dovee word and indicator — signature, parameters, return value, and a copy-paste example. English names, not Pine ta.*.
Language basics (comments, operators, colors), then every indicator. Pick a name, read parameters, paste the example into Dovee on the chart. Tour: Dovee page.
59 of 59 entries.
Language
Rules, orders, chart marks, inputs, and risk — the words you write, not functions.
strategyNames the script in the editor and on deploy. name is the same word.whenA rule: if the condition is true on the closed bar, run the body. if is the same word.thenOne-line form of a when rule.elseOpposite side of the previous when.buyOpen or add a long (or cover a short if the script is short only).sellOpen a short, or close a long when the script is long only.exitFlatten the position. close is the same word.long onlyIgnore shorts. sell becomes an exit.short onlyIgnore longs. buy is not used as an entry.onceOne trade at a time for same-side adds (this is already the default).re-entryAllow another entry in the same direction while already in a trade (pyramiding).sessionOnly signal inside this clock window in the script timezone.functionLightweight reusable expression with optional parameters.stateRemember a value from bar to bar.timezoneThe one script timezone for every calendar boundary.onRead a series from another timeframe (multi-timeframe).previous-day-highPrior completed calendar day's high (also low / open / close).session-highDeveloping high of the script session window.flatSimulated strategy state (not a broker position).stop-atDynamic analytical stop / target from an expression.initial-capitalBacktest / analysis configuration (statistics only).plotDraw a line on the chart. show is the same word.fillShade the band between two plotted series.levelHorizontal line — typical for oscillator panes.boxDraw a price zone between two bars. Use inside when.lineDraw a straight line between two bars. Use inside when.tableA grid of values pinned to a corner of the chart. Write it at the top level.arrowOptional custom triangle on the bar. Use inside when.labelOptional custom text tag on the bar. Use inside when. Optional up / down.paintOptional bar-background tint. Use inside when, or paint … when … on one line.alertNotify without placing an extra order.noteWrite a timestamped debug line without changing orders.oscillatorPut plots in a separate pane (RSI, MACD, and similar).inputA number the trader can change in the script inputs UI.stopStop loss from entry, in points, percent, or ATR.targetTake-profit from entry — one level, or up to three.targetsSeveral target distances plus display weights.trailTrailing protective stop that closes the simulated trade.qtyScript-side quantity hint stored on the risk plan.riskInitial quantity from a percent of initial capital and the stop distance.crosses aboveTrue when a crosses from below b to above b on this bar.crosses belowTrue when a crosses from above b to below b on this bar.is aboveTrue while a > b. Not a cross — it can stay true for many bars.is belowTrue while a < b.risingThis bar is higher than the previous bar (or N bars back as a function).fallingThis bar is lower than the previous bar.andBoth sides must be true.orEither side may be true.notInverts a condition.bullishClose is above open on this bar.bearishClose is below open on this bar.dojiOpen and close are nearly equal (body ≤ 10% of the range).hammerLong lower wick, small body — typical reversal shape.engulfingThis bar’s body fully covers the previous bar’s body.shootingstarLong upper wick, small body, short lower wick — typical rejection high.insidebarThis bar’s high and low stay inside the previous bar’s range.pinbarSmall body with a long wick on either side.mondayTrue on that weekday of the bar in the script timezone.historyPrevious bars: close 1 bars ago is the prior close.