# Reference

- [forge.signals.AddOn](/reference/forge/signals/AddOn.md): Add to a position that moved in its favour: ``fg.AddOn(every_pips=20, size_mult=0.5)``.
- [forge.alerts.AlertCondition](/reference/forge/alerts/AlertCondition.md): One condition an indicator can alert on: a label, the output that says when, a message.
- [forge.indicator.Band](/reference/forge/indicator/Band.md): Shade (or draw as bars) the space between two sides of one indicator.
- [forge.signals.Bracket](/reference/forge/signals/Bracket.md): An entry order with its stop and its target: ``fg.Bracket(entry, sl, tp)``.
- [forge.signals.BreakEven](/reference/forge/signals/BreakEven.md): Move the stop to the entry price once the trade is ahead: ``fg.BreakEven(at_r=1.0)``.
- [forge.signals.Caps](/reference/forge/signals/Caps.md): The most a strategy may hold or risk: ``fg.Caps(max_lots=2, max_positions=3)``.
- [forge.types.Context](/reference/forge/types/Context.md): The point-in-time context every hook receives as ``ctx``.
- [forge.indicator.Data](/reference/forge/indicator/Data.md): Another series an indicator reads: a timeframe, a symbol, a bar type or a price.
- [forge.types.EndReason](/reference/forge/types/EndReason.md): Why a run ended, handed to ``on_end``.
- [forge.signals.Entry](/reference/forge/signals/Entry.md): How entries are placed: ``fg.Entry.market``, ``limit``, ``stop`` or ``stop_limit``.
- [forge.signals.Exit](/reference/forge/signals/Exit.md): The ways to close trades together or by time: ``fg.Exit.basket``.
- [forge.version.FORGE_API_LATEST](/reference/forge/version/FORGE_API_LATEST.md):
- [forge.types.FillEvent](/reference/forge/types/FillEvent.md): One fill: an entry, or a whole or partial exit.
- [forge.signals.Filter](/reference/forge/signals/Filter.md): Filters for ``fg.Signals(filters=[...])`` and the class attribute ``filters``: where not to
- [forge.version.ForgeApiError](/reference/forge/version/ForgeApiError.md): A script's ``FORGE_API`` line is missing, malformed or unsupported.
- [forge.indicator.Indicator](/reference/forge/indicator/Indicator.md): The one base class of an indicator (IND-001: declared by subclassing, never inferred).
- [forge.types.Intent](/reference/forge/types/Intent.md): What ``confirm_entry``, ``confirm_exit`` and ``size`` receive: a trade about to happen.
- [forge.strategy.InvalidParams](/reference/forge/strategy/InvalidParams.md): Raise it in setup(self, ctx) to reject this combination of settings.
- [forge.indicator.Level](/reference/forge/indicator/Level.md): A horizontal line in the indicator's pane: ``fg.Level(70, "Overbought")``.
- [forge.strategy.Meta](/reference/forge/strategy/Meta.md): What a strategy is called and how it is found: a title, a short code, an author and tags.
- [forge.signals.Order](/reference/forge/signals/Order.md): The orders ``ctx.order`` takes: ``fg.Order.market``, ``limit``, ``stop`` and ``stop_limit``.
- [forge.types.OrderStatus](/reference/forge/types/OrderStatus.md): Where an order is in its life. ``PARTIAL`` is reserved for partial fills, which no order
- [forge.types.OrderTicket](/reference/forge/types/OrderTicket.md): An order a strategy sent. Read its state, and change or cancel it while it is working.
- [forge.indicator.Output](/reference/forge/indicator/Output.md): Output declarations. Each takes a label; the name is the attribute it is assigned to.
- [forge.param.Param](/reference/forge/param/Param.md): Base of every setting declaration. ``default`` is the only positional argument.
- [forge.param.ParamError](/reference/forge/param/ParamError.md): A setting declaration, or a value given for one, is invalid.
- [forge.signals.Plot](/reference/forge/signals/Plot.md): A named series for ``fg.Signals(plots=...)`` with a style and a pane.
- [forge.types.Position](/reference/forge/types/Position.md): An open position. Read it, and move its stop and target, close it or reverse it.
- [forge.signals.Region](/reference/forge/signals/Region.md): A stretch of bars to shade on the chart: ``fg.Region(start, end, label="news")``.
- [forge.types.RejectReason](/reference/forge/types/RejectReason.md): Why an order was refused. One member per engine refusal name, bar block then order block.
- [forge.strategy.Requires](/reference/forge/strategy/Requires.md): The account behaviour a strategy needs: ``account = fg.Requires(hedging=True)``.
- [forge.types.RunMode](/reference/forge/types/RunMode.md): How the run was started. Readable from a strategy and never a behaviour switch.
- [forge.version.SUPPORTED_API_LEVELS](/reference/forge/version/SUPPORTED_API_LEVELS.md):
- [forge.signals.Signals](/reference/forge/signals/Signals.md): What ``compute()`` returns: entry and exit conditions, and named series to plot or record.
- [forge.signals.Size](/reference/forge/signals/Size.md): How much each entry trades. Build one with a constructor, like ``fg.Size.risk_pct(1.0)``.
- [forge.signals.Stop](/reference/forge/signals/Stop.md): Where a losing trade is closed. Build one with a constructor, like ``fg.Stop.atr(2.0)``.
- [forge.strategy.Strategy](/reference/forge/strategy/Strategy.md): One strategy class per file, with ``FORGE_API = 1`` at the top of the file.
- [forge.signals.Target](/reference/forge/signals/Target.md): Where a winning trade is closed. Build one with a constructor, like ``fg.Target.r(2.0)``.
- [forge.signals.Targets](/reference/forge/signals/Targets.md): Several targets that each close a part of the trade: ``fg.Targets([(0.5, t1), (0.5, t2)])``.
- [forge.signals.TimeStop](/reference/forge/signals/TimeStop.md): Close a trade that has been open too long: ``fg.TimeStop(bars=48)`` or ``duration="2d"``.
- [forge.types.Trade](/reference/forge/types/Trade.md): One closed round trip, or the closed part of one: an entry fill, its exit fill and the money.
- [forge.signals.Trail](/reference/forge/signals/Trail.md): A stop that follows the price. Build one with a constructor, like ``fg.Trail.atr(3.0)``.
- [forge.alerts.alert](/reference/forge/alerts/alert.md): Raise an alert from ``on_bar``, or from ``calculate`` with ``bar=``.
- [forge.signals.all_of](/reference/forge/signals/all_of.md): True on a bar where every named condition is true.
- [forge.signals.any_of](/reference/forge/signals/any_of.md): True on a bar where at least one named condition is true.
- [forge.bars.Count](/reference/forge/bars/Count.md): One bar for every ``n`` time bars of ``of``, like ``Count(3, "H1")``.
- [forge.bars.HeikinAshi](/reference/forge/bars/HeikinAshi.md): Heikin-Ashi bars over time bars.
- [forge.bars.Kagi](/reference/forge/bars/Kagi.md): Kagi lines that reverse after a move of ``reversal`` in ``unit`` (default pips).
- [forge.bars.LineBreak](/reference/forge/bars/LineBreak.md): Line break bars that look back ``lines`` lines (default 3).
- [forge.bars.PointFigure](/reference/forge/bars/PointFigure.md): Point and figure columns. ``box`` is a size, an ATR or percent box, or "traditional".
- [forge.bars.Range](/reference/forge/bars/Range.md): Range bars: a bar closes when its high to low range reaches ``size`` in ``unit``.
- [forge.bars.Renko](/reference/forge/bars/Renko.md): Renko bricks. ``box`` is the brick size in ``unit`` (default pips), or an ATR or percent box.
- [forge.bars.Tick](/reference/forge/bars/Tick.md): One bar for every ``n`` ticks.
- [forge.bars.Time](/reference/forge/bars/Time.md): Time bars: one bar per period, like ``Time("H1")``.
- [forge.jit.cached](/reference/forge/jit/cached.md): Remember a function's result for the rest of one sweep.
- [forge.version.check_api_level](/reference/forge/version/check_api_level.md): Return the declared level if Forge supports it, else raise ``ForgeApiError``.
- [forge.dates.DateRule](/reference/forge/dates/DateRule.md): Which days a scheduled method runs on.
- [forge.dates.every_day](/reference/forge/dates/every_day.md): Every trading day, or every calendar day with ``trading=False``.
- [forge.dates.month_end](/reference/forge/dates/month_end.md): The last day of each month.
- [forge.dates.month_start](/reference/forge/dates/month_start.md): The first day of each month.
- [forge.dates.on_dates](/reference/forge/dates/on_dates.md): Specific dates, as ISO text like ``"2026-10-01"`` or ``datetime.date`` values.
- [forge.dates.week_end](/reference/forge/dates/week_end.md): The last day of each week.
- [forge.dates.week_start](/reference/forge/dates/week_start.md): The first day of each week.
- [forge.dates.weekdays](/reference/forge/dates/weekdays.md): The named weekdays, like ``weekdays("mon", "fri")``: mon, tue, wed, thu, fri, sat, sun.
- [forge.param.describe_params](/reference/forge/param/describe_params.md): Every setting declared on ``cls`` and its bases, base settings first, in declaration order.
- [forge.draw.BASE_STYLES](/reference/forge/draw/BASE_STYLES.md):
- [forge.draw.DASH_STYLES](/reference/forge/draw/DASH_STYLES.md):
- [forge.draw.DEFAULT_FILL_ALPHA](/reference/forge/draw/DEFAULT_FILL_ALPHA.md):
- [forge.draw.DEFAULT_STYLE_BY_KIND](/reference/forge/draw/DEFAULT_STYLE_BY_KIND.md):
- [forge.draw.DRAWINGS_PER_KIND](/reference/forge/draw/DRAWINGS_PER_KIND.md):
- [forge.draw.DRAWING_KINDS](/reference/forge/draw/DRAWING_KINDS.md):
- [forge.draw.Drawing](/reference/forge/draw/Drawing.md): A handle on one drawing. It can change or remove the drawing and shows nothing of it.
- [forge.draw.EXTENDS](/reference/forge/draw/EXTENDS.md):
- [forge.draw.FONTS](/reference/forge/draw/FONTS.md):
- [forge.draw.LABEL_SIZES](/reference/forge/draw/LABEL_SIZES.md):
- [forge.draw.LINE_DASHES](/reference/forge/draw/LINE_DASHES.md):
- [forge.draw.MARKER_SHAPES](/reference/forge/draw/MARKER_SHAPES.md):
- [forge.draw.MARKER_WHERE](/reference/forge/draw/MARKER_WHERE.md):
- [forge.draw.MAX_FUTURE_BARS](/reference/forge/draw/MAX_FUTURE_BARS.md):
- [forge.draw.MAX_SHIFT](/reference/forge/draw/MAX_SHIFT.md):
- [forge.draw.MAX_TEXT](/reference/forge/draw/MAX_TEXT.md):
- [forge.draw.MAX_WIDTH](/reference/forge/draw/MAX_WIDTH.md):
- [forge.draw.NAMED_COLORS](/reference/forge/draw/NAMED_COLORS.md):
- [forge.draw.NO_SHIFT_STYLES](/reference/forge/draw/NO_SHIFT_STYLES.md):
- [forge.draw.OUTPUT_KINDS](/reference/forge/draw/OUTPUT_KINDS.md):
- [forge.draw.PLOT_STYLES](/reference/forge/draw/PLOT_STYLES.md):
- [forge.draw.PlotStyle](/reference/forge/draw/PlotStyle.md): How one output is drawn. Colours are held as wire strings.
- [forge.draw.Point](/reference/forge/draw/Point.md): A place on the chart: a bar (``bar=12``) or a time (``time=ns``), and a price.
- [forge.draw.SERIES_TOKENS](/reference/forge/draw/SERIES_TOKENS.md):
- [forge.draw.SHOW_TARGETS](/reference/forge/draw/SHOW_TARGETS.md):
- [forge.draw.STYLES_BY_KIND](/reference/forge/draw/STYLES_BY_KIND.md):
- [forge.draw.TEXT_ALIGN](/reference/forge/draw/TEXT_ALIGN.md):
- [forge.draw.THEME_TOKENS](/reference/forge/draw/THEME_TOKENS.md):
- [forge.draw.TIME_AXIS_KINDS](/reference/forge/draw/TIME_AXIS_KINDS.md):
- [forge.draw.UP_DOWN_KINDS](/reference/forge/draw/UP_DOWN_KINDS.md):
- [forge.draw.WIDTH_STYLES](/reference/forge/draw/WIDTH_STYLES.md):
- [forge.draw.all](/reference/forge/draw/all.md): Every live drawing, oldest first; ``kind`` keeps one kind (``"label"``, ``"box"``, ...).
- [forge.draw.box](/reference/forge/draw/box.md): A rectangle between two bars and two prices, with optional text inside.
- [forge.draw.chart](/reference/forge/draw/chart.md):
- [forge.draw.color, forge.draw.Color](/reference/forge/draw/color.md):
- [forge.draw.find](/reference/forge/draw/find.md): The live drawing with this id, or ``None``.
- [forge.draw.gradient](/reference/forge/draw/gradient.md): The colour between ``c1`` (at ``lo``) and ``c2`` (at ``hi``) for ``value``.
- [forge.draw.hline](/reference/forge/draw/hline.md): A horizontal line across the whole chart at ``price``.
- [forge.draw.label](/reference/forge/draw/label.md): Write ``text`` on the chart at a price (``where="at_price"``) or on a bar.
- [forge.draw.level](/reference/forge/draw/level.md): A horizontal line from ``start`` that stops at the first bar whose range reaches it.
- [forge.draw.line](/reference/forge/draw/line.md): A straight line between two points (each needs a price); ``extend`` makes it a ray.
- [forge.draw.make_style](/reference/forge/draw/make_style.md): Check a style against the vocabulary and fill the defaults. Every refusal is a sentence.
- [forge.draw.parse_color](/reference/forge/draw/parse_color.md): A colour from a ``Color`` or one of its written forms; anything else is a ``ValueError``.
- [forge.draw.rgb](/reference/forge/draw/rgb.md): A fixed colour from red, green and blue (0 to 255) and an optional alpha (0 to 1).
- [forge.draw.validate_wire_style](/reference/forge/draw/validate_wire_style.md): Check a style as a ``SeriesPage`` or the registry carries it: known keys, then every rule.
- [forge.draw.vline](/reference/forge/draw/vline.md): A vertical line through one bar.
- [forge.schedule.every](/reference/forge/schedule/every.md): Run the method on a fixed interval: ``"15m"``, ``"4h"``, ``"1D"`` or ``"1W"``.
- [forge.indicator.BAR_TYPES](/reference/forge/indicator/BAR_TYPES.md):
- [forge.indicator.DECLARABLE_EXCEPTIONS](/reference/forge/indicator/DECLARABLE_EXCEPTIONS.md):
- [forge.indicator.FORMATS](/reference/forge/indicator/FORMATS.md):
- [forge.indicator.LIVE_CADENCES](/reference/forge/indicator/LIVE_CADENCES.md):
- [forge.indicator.MANIFEST_SCHEMA](/reference/forge/indicator/MANIFEST_SCHEMA.md):
- [forge.indicator.check_causality_exceptions](/reference/forge/indicator/check_causality_exceptions.md): The declared causality exceptions: output names to ``DECLARABLE_EXCEPTIONS``.
- [forge.indicator.check_data_declarations](/reference/forge/indicator/check_data_declarations.md): The checks that need the whole class. Raises ``ValueError`` with its rule id as prefix.
- [forge.indicator.check_output_declarations](/reference/forge/indicator/check_output_declarations.md): The checks that need the whole class: shift names and the price pane.
- [forge.indicator.check_repaints](/reference/forge/indicator/check_repaints.md): ``repaints`` is ``True`` or ``False``; anything else is ``metadata_invalid``.
- [forge.indicator.check_timeframe_attribute](/reference/forge/indicator/check_timeframe_attribute.md): The class ``timeframe`` in C1's spelling, or a setting's name.
- [forge.indicator.describe_bands](/reference/forge/indicator/describe_bands.md): One manifest entry per band, in declaration order.
- [forge.indicator.describe_outputs](/reference/forge/indicator/describe_outputs.md): One manifest entry per output, in declaration order (all keys always present).
- [forge.indicator.normalize_timeframe](/reference/forge/indicator/normalize_timeframe.md): A timeframe in C1's spelling: ``M7``, ``H4``, ``D1``, ``W1``, ``MN1``.
- [forge.indicator.output_styles](/reference/forge/indicator/output_styles.md): Every output's style with its default colour filled in.
- [forge.indicator.timeframe_ns](/reference/forge/indicator/timeframe_ns.md): The length of a C1 timeframe in nanoseconds, or ``None`` for a month (no fixed length).
- [forge.indicator.use_call_targets](/reference/forge/indicator/use_call_targets.md): The first argument of every ``self.use(...)`` in the class's methods, in source order.
- [forge.indicator.use_target_key](/reference/forge/indicator/use_target_key.md): The registry key a ``self.use`` first argument names; ``use_invalid`` when it names none.
- [forge.indicator.uses_from_source](/reference/forge/indicator/uses_from_source.md): The built-in indicators this class names in ``self.use(...)``, sorted, each once.
- [forge.indicator.warmup_expression_from_node](/reference/forge/indicator/warmup_expression_from_node.md): One warm-up expression from a literal, a ``lambda self: ...`` or a ``def warmup(self)``.
- [forge.indicator.warmup_manifest_from_node](/reference/forge/indicator/warmup_manifest_from_node.md): The warm-up manifest from a ``warmup`` node: what the class and the load check both say.
- [forge.indicator.warmup_node](/reference/forge/indicator/warmup_node.md): The class's ``warmup`` assignment value or ``def warmup``, or ``None``.
- [forge.ta.isna](/reference/forge/ta/isna.md): True where a value is missing: ``None`` or ``NaN``.
- [forge.jit](/reference/forge/jit.md): Fast custom loops and reused results: ``@fg.jit`` and ``@fg.cached``.
- [forge.jit.jit](/reference/forge/jit/jit.md): Compile a plain function over arrays and numbers with numba.
- [forge.runner.load](/reference/forge/runner/load.md): Run a ``.py`` file's top level, check it and return the checked ``Program``.
- [forge.ta.nz](/reference/forge/ta/nz.md): Replace a missing value with ``value`` (default 0).
- [forge.schedule.on](/reference/forge/schedule/on.md): Run the method on the days a date rule names, like ``fg.dates.month_end()``.
- [forge.param.Bool](/reference/forge/param/Bool.md):
- [forge.param.Choice](/reference/forge/param/Choice.md):
- [forge.param.Color](/reference/forge/param/Color.md): Display only: a theme token (``theme.up``) or ``#rrggbb``. Never swept.
- [forge.param.Decimal](/reference/forge/param/Decimal.md): A number with a fixed count of decimal places (02 LANG-085).
- [forge.param.Enum](/reference/forge/param/Enum.md): A dropdown over a Python ``enum.Enum``; the default is one of its members.
- [forge.param.Float](/reference/forge/param/Float.md):
- [forge.param.Int](/reference/forge/param/Int.md):
- [forge.param.MAX_CANDIDATES](/reference/forge/param/MAX_CANDIDATES.md):
- [forge.param.MA_METHODS](/reference/forge/param/MA_METHODS.md):
- [forge.param.MaMethod](/reference/forge/param/MaMethod.md): A moving-average method dropdown (04 IND-044).
- [forge.param.Price](/reference/forge/param/Price.md): A price level, draggable on the Studio chart. ``None`` means unset.
- [forge.param.Session](/reference/forge/param/Session.md): A time window like ``"07:00-10:00"``; several are comma separated.
- [forge.param.Source](/reference/forge/param/Source.md): A price field (``close``, ``hl2``...) or another indicator's output.
- [forge.param.Symbol](/reference/forge/param/Symbol.md): A symbol; ``None`` means the run's own symbol. Never swept.
- [forge.param.Text](/reference/forge/param/Text.md): Display only: a short text. Never swept.
- [forge.param.Time](/reference/forge/param/Time.md): A clock time like ``"16:55"``.
- [forge.param.Timeframe](/reference/forge/param/Timeframe.md):
- [forge.param.Volume](/reference/forge/param/Volume.md): Tick volume or real traded volume (04 IND-043).
- [forge.prop.BREACH](/reference/forge/prop/BREACH.md):
- [forge.prop.BestDay](/reference/forge/prop/BestDay.md): No one day may be more than this share of the profit.
- [forge.prop.DailyLoss](/reference/forge/prop/DailyLoss.md): The most the account may lose in a day: a percent or an amount, from the day's own start.
- [forge.prop.MaxLoss](/reference/forge/prop/MaxLoss.md): The most the account may lose in all: static, or trailing behind the balance or the
- [forge.prop.MaxRequests](/reference/forge/prop/MaxRequests.md): At most this many requests to the broker in a day.
- [forge.prop.NoFloorAsStop](/reference/forge/prop/NoFloorAsStop.md): Never use the account's loss floor as the stop.
- [forge.prop.NoHedging](/reference/forge/prop/NoHedging.md): No opposite positions on one instrument at once.
- [forge.prop.NoMartingale](/reference/forge/prop/NoMartingale.md): No sizing that doubles up after a loss.
- [forge.prop.NoNews](/reference/forge/prop/NoNews.md): Do not hold trades through the news window around a release.
- [forge.prop.NoNewsBrackets](/reference/forge/prop/NoNewsBrackets.md): No pending orders placed around a news release.
- [forge.prop.NoOvernight](/reference/forge/prop/NoOvernight.md): No trade open overnight.
- [forge.prop.NoWeekendHold](/reference/forge/prop/NoWeekendHold.md): No trade open over the weekend.
- [forge.prop.ON_BREACH](/reference/forge/prop/ON_BREACH.md):
- [forge.prop.Phase](/reference/forge/prop/Phase.md): One phase of an evaluation: a profit target, with the days it needs.
- [forge.prop.RequireStop](/reference/forge/prop/RequireStop.md): Every trade carries a stop.
- [forge.prop.Rules](/reference/forge/prop/Rules.md): Custom prop-firm rules, as the class attribute ``prop = fg.prop.Rules(...)``.
- [forge.prop.Scaling](/reference/forge/prop/Scaling.md): A table of the lots the account may trade as its balance grows.
- [forge.prop.WARN_AT](/reference/forge/prop/WARN_AT.md):
- [forge.prop.preset, forge.prop.Preset](/reference/forge/prop/preset.md): A named firm's rules from Forge's library, like ``fg.prop.preset("ftmo-2step",
- [forge.runner.run](/reference/forge/runner/run.md): Run a strategy file over a data frame, the way a hosted run does.
- [forge.series.highest](/reference/forge/series/highest.md): The highest of the last ``window`` values ending at each bar.
- [forge.series.lowest](/reference/forge/series/lowest.md): The lowest of the last ``window`` values ending at each bar.
- [forge.series.rolling](/reference/forge/series/rolling.md): The ``how`` of the last ``window`` values ending at each bar, NaN until ``window`` values
- [forge.series.shift](/reference/forge/series/shift.md): ``x`` moved ``n`` bars later, so the value at bar ``i`` is ``x[i - n]``.
- [forge.sessions.ASIA](/reference/forge/sessions/ASIA.md):
- [forge.sessions.ASIA_KILLZONE](/reference/forge/sessions/ASIA_KILLZONE.md):
- [forge.sessions.LONDON](/reference/forge/sessions/LONDON.md):
- [forge.sessions.LONDON_CLOSE_KILLZONE](/reference/forge/sessions/LONDON_CLOSE_KILLZONE.md):
- [forge.sessions.LONDON_KILLZONE](/reference/forge/sessions/LONDON_KILLZONE.md):
- [forge.sessions.NY](/reference/forge/sessions/NY.md):
- [forge.sessions.NY_KILLZONE](/reference/forge/sessions/NY_KILLZONE.md):
- [forge.sessions.PRESETS](/reference/forge/sessions/PRESETS.md):
- [forge.sessions.SessionPreset](/reference/forge/sessions/SessionPreset.md): A named window of hours in a time zone, or a symbol's own venue session.
- [forge.sessions.get](/reference/forge/sessions/get.md): The preset called ``name``, in any case. A name Forge does not have names the nearest one.
- [forge.sessions.venue](/reference/forge/sessions/venue.md): The symbol's own market hours. ``None`` is the strategy's primary symbol.
- [forge.signals.count](/reference/forge/signals/count.md): The number of bars among this bar and the ``over - 1`` before it where the condition is true.
- [forge.signals.n_of](/reference/forge/signals/n_of.md): True on a bar where at least ``k`` of the named conditions are true.
- [forge.signals.none_of](/reference/forge/signals/none_of.md): True on a bar where none of the named conditions is true.
- [forge.signals.then](/reference/forge/signals/then.md): True where ``second`` becomes true, if ``first`` became true 1 to ``within`` bars earlier.
- [forge.signals.vote](/reference/forge/signals/vote.md): True from the bar the weighted share of true conditions reaches ``open_at`` percent until the
- [forge.strategy.RequirementFailed](/reference/forge/strategy/RequirementFailed.md): A condition the strategy requires was false. It stops the run at the line of
- [forge.strategy.require](/reference/forge/strategy/require.md): Stop the run with ``message`` unless ``condition`` is true.
- [forge.ta.BWMFI](/reference/forge/ta/BWMFI.md): Price range per unit of volume, with Bill Williams' four colours.
- [forge.ta.BearsPower](/reference/forge/ta/BearsPower.md): The bar's low against an EMA of closes.
- [forge.ta.BollingerBands](/reference/forge/ta/BollingerBands.md): A moving average with bands set by the standard deviation.
- [forge.ta.BollingerPercentB](/reference/forge/ta/BollingerPercentB.md): Where the price sits between the Bollinger Bands.
- [forge.ta.BollingerWidth](/reference/forge/ta/BollingerWidth.md): The distance between the Bollinger Bands relative to the middle line.
- [forge.ta.BullsPower](/reference/forge/ta/BullsPower.md): The bar's high against an EMA of closes.
- [forge.ta.ChaikinOscillator](/reference/forge/ta/ChaikinOscillator.md): The fast average of A/D minus its slow average.
- [forge.ta.DarkCloudCover](/reference/forge/ta/DarkCloudCover.md): A fall that closes deep into the previous rise.
- [forge.ta.DragonflyDoji](/reference/forge/ta/DragonflyDoji.md): A doji that opens and closes near its high.
- [forge.ta.EfficiencyRatio](/reference/forge/ta/EfficiencyRatio.md): How directly the price moved: 1 for a straight line, near 0 for noise.
- [forge.ta.EveningDojiStar](/reference/forge/ta/EveningDojiStar.md): An evening star whose middle bar is a doji.
- [forge.ta.EveningStar](/reference/forge/ta/EveningStar.md): A long rise, a small star, then a fall into the rise.
- [forge.ta.FairValueGaps](/reference/forge/ta/FairValueGaps.md): Three-candle imbalances, shown until price fills them.
- [forge.ta.ForceIndex](/reference/forge/ta/ForceIndex.md): Volume times the change of a moving average of price.
- [forge.ta.GravestoneDoji](/reference/forge/ta/GravestoneDoji.md): A doji that opens and closes near its low.
- [forge.ta.HangingMan](/reference/forge/ta/HangingMan.md): A long lower wick after a rise.
- [forge.ta.HeikinAshi](/reference/forge/ta/HeikinAshi.md): Smoothed candles that make trends easier to read.
- [forge.ta.HighestBars](/reference/forge/ta/HighestBars.md): How many bars ago the highest value of the window was.
- [forge.ta.InsideBar](/reference/forge/ta/InsideBar.md): A bar whose range sits within the previous bar's range.
- [forge.ta.InvertedHammer](/reference/forge/ta/InvertedHammer.md): A long upper wick after a fall.
- [forge.ta.Keltner](/reference/forge/ta/Keltner.md): An EMA with bands set by the average true range.
- [forge.ta.KeltnerWidth](/reference/forge/ta/KeltnerWidth.md): The distance between the Keltner bands relative to the middle line.
- [forge.ta.LinRegIntercept](/reference/forge/ta/LinRegIntercept.md): Where the fitted line starts, at the oldest bar of the window.
- [forge.ta.LinRegSlope](/reference/forge/ta/LinRegSlope.md): How much the fitted line rises or falls per bar.
- [forge.ta.LogReturn](/reference/forge/ta/LogReturn.md): The natural log of the value over the previous value.
- [forge.ta.LowestBars](/reference/forge/ta/LowestBars.md): How many bars ago the lowest value of the window was.
- [forge.ta.MarketStructure](/reference/forge/ta/MarketStructure.md): Confirmed swings labelled HH, HL, LH and LL, with breaks of structure (BOS) and changes of character (CHoCH), for internal and swing structure.
- [forge.ta.Momentum](/reference/forge/ta/Momentum.md): Price now against price a number of bars ago.
- [forge.ta.MorningDojiStar](/reference/forge/ta/MorningDojiStar.md): A morning star whose middle bar is a doji.
- [forge.ta.MorningStar](/reference/forge/ta/MorningStar.md): A long fall, a small star, then a rise into the fall.
- [forge.ta.OpeningRange](/reference/forge/ta/OpeningRange.md): The high and low of the first minutes of a session, with breakout signals.
- [forge.ta.OrderBlocks](/reference/forge/ta/OrderBlocks.md): The last opposite candle before a break of structure, kept until price trades back through it.
- [forge.ta.OutsideBar](/reference/forge/ta/OutsideBar.md): A bar whose range covers the previous bar's range.
- [forge.ta.PeriodOpen](/reference/forge/ta/PeriodOpen.md): The opening price of the current day, week or month.
- [forge.ta.PivotHigh](/reference/forge/ta/PivotHigh.md): A swing high, shown once enough bars after it prove it was the highest.
- [forge.ta.PivotLow](/reference/forge/ta/PivotLow.md): A swing low, shown once enough bars after it prove it was the lowest.
- [forge.ta.PivotPoints](/reference/forge/ta/PivotPoints.md): Support and resistance levels projected from the previous day, week or month.
- [forge.ta.PremiumDiscount](/reference/forge/ta/PremiumDiscount.md): The upper and lower halves of the active swing range, split at equilibrium.
- [forge.ta.PriorLevels](/reference/forge/ta/PriorLevels.md): The previous day, week or month open, high, low and close (PDH, PDL), carried forward.
- [forge.ta.SessionRange](/reference/forge/ta/SessionRange.md): The high and low of the Asia, London and New York sessions, boxed while each runs.
- [forge.ta.ShootingStar](/reference/forge/ta/ShootingStar.md): A long upper wick after a rise.
- [forge.ta.SpinningTop](/reference/forge/ta/SpinningTop.md): A small body with a longer wick on each side.
- [forge.ta.StdDev](/reference/forge/ta/StdDev.md): How far values spread around their average over a period.
- [forge.ta.StochRSI](/reference/forge/ta/StochRSI.md): The stochastic oscillator applied to RSI.
- [forge.ta.Stochastic](/reference/forge/ta/Stochastic.md): Where the close sits in the recent high to low range, with a signal line.
- [forge.ta.ThreeBlackCrows](/reference/forge/ta/ThreeBlackCrows.md): Three falling bars, each opening inside the last body.
- [forge.ta.ThreeInside](/reference/forge/ta/ThreeInside.md): A harami confirmed by the third bar.
- [forge.ta.ThreeOutside](/reference/forge/ta/ThreeOutside.md): An engulfing confirmed by the third bar.
- [forge.ta.ThreeWhiteSoldiers](/reference/forge/ta/ThreeWhiteSoldiers.md): Three rising bars, each opening inside the last body.
- [forge.ta.TrueRange](/reference/forge/ta/TrueRange.md): The largest of the bar's range and its gaps from the previous close.
- [forge.ta.WilliamsR](/reference/forge/ta/WilliamsR.md): Where the close sits in the recent range, from 0 down to -100.
- [forge.ta.ac, forge.ta.AC](/reference/forge/ta/ac.md): Accelerator oscillator: the Awesome oscillator minus its own ``signal_period`` average.
- [forge.ta.accdist, forge.ta.AccDist](/reference/forge/ta/accdist.md): Accumulation and distribution: a running total of volume weighted by the close's position.
- [forge.ta.adr, forge.ta.ADR](/reference/forge/ta/adr.md): Average daily range: the mean high to low range of the last ``days`` finished trading days.
- [forge.ta.adx, forge.ta.ADX](/reference/forge/ta/adx.md): The ADX line of ``dmi``: how strong the trend is, whatever its direction.
- [forge.ta.alligator, forge.ta.Alligator](/reference/forge/ta/alligator.md): Bill Williams' Alligator: ``jaw``, ``teeth`` and ``lips``.
- [forge.ta.alma, forge.ta.ALMA](/reference/forge/ta/alma.md): Arnaud Legoux average: Gaussian weights over ``window`` bars.
- [forge.ta.ao, forge.ta.AO](/reference/forge/ta/ao.md): Awesome oscillator: the fast average of the median price minus the slow one.
- [forge.ta.aroon, forge.ta.Aroon](/reference/forge/ta/aroon.md): Aroon: how recently the highest high and the lowest low of the last ``period + 1`` bars came.
- [forge.ta.atr, forge.ta.ATR](/reference/forge/ta/atr.md): Average true range, Wilder smoothed (``wilder``) or a simple mean (``sma``).
- [forge.ta.barssince](/reference/forge/ta/barssince.md): How many bars ago the condition last held: 0 on a bar where it holds.
- [forge.ta.bb](/reference/forge/ta/bb.md): Bollinger Bands: a simple average with bands ``deviations`` population deviations away.
- [forge.ta.bb_percent](/reference/forge/ta/bb_percent.md): Bollinger Bands %B: ``(source - lower) / (upper - lower)``. No value where the bands meet.
- [forge.ta.bbw](/reference/forge/ta/bbw.md): Bollinger Bands width: ``(upper - lower) / middle``. No value where the middle is 0.
- [forge.ta.bears_power](/reference/forge/ta/bears_power.md): Bears power: the bar's low minus an EMA of the closes.
- [forge.ta.bulls_power](/reference/forge/ta/bulls_power.md): Bulls power: the bar's high minus an EMA of the closes.
- [forge.ta.bw_mfi](/reference/forge/ta/bw_mfi.md): Market facilitation index: ``mfi = (high - low) / volume``, in price units.
- [forge.ta.cci, forge.ta.CCI](/reference/forge/ta/cci.md): Commodity channel index: distance from the average in units of mean deviation.
- [forge.ta.chaikin_osc](/reference/forge/ta/chaikin_osc.md): Chaikin oscillator: the fast average of accumulation and distribution minus the slow one.
- [forge.ta.change, forge.ta.Change](/reference/forge/ta/change.md): Value now minus the value ``period`` bars ago.
- [forge.ta.cmo, forge.ta.CMO](/reference/forge/ta/cmo.md): Chande momentum oscillator: up moves against down moves over ``period`` bars, -100 to 100.
- [forge.ta.correlation](/reference/forge/ta/correlation.md): Rolling correlation of two series over the last ``period`` bars, from -1 to 1.
- [forge.ta.cross](/reference/forge/ta/cross.md): 1 on a bar where ``a`` crosses above ``b``, -1 where it crosses below, 0 elsewhere.
- [forge.ta.crossover](/reference/forge/ta/crossover.md): True on the bar where ``a`` goes from at or below ``b`` to above it.
- [forge.ta.crossunder](/reference/forge/ta/crossunder.md): True on the bar where ``a`` goes from at or above ``b`` to below it.
- [forge.ta.cum, forge.ta.Cum](/reference/forge/ta/cum.md): The running total of the source from the first bar.
- [forge.ta.dark_cloud_cover](/reference/forge/ta/dark_cloud_cover.md): Dark cloud cover: a fall that closes deep into the previous rise. Found: -1.
- [forge.ta.dayofweek](/reference/forge/ta/dayofweek.md): The weekday of ``t`` in ``tz``, Monday 0 to Sunday 6 (the engine clock's convention).
- [forge.ta.delay, forge.ta.Delay](/reference/forge/ta/delay.md): The source ``n`` bars ago: ``value[i] = source[i - n]``.
- [forge.ta.dema, forge.ta.DEMA](/reference/forge/ta/dema.md): Double exponential average: ``2 * EMA - EMA(EMA)``, the second stage seeded at bar
- [forge.ta.demarker, forge.ta.DeMarker](/reference/forge/ta/demarker.md): DeMarker: pressure from higher highs against lower lows, from 0 to 1.
- [forge.ta.dmi, forge.ta.DMI](/reference/forge/ta/dmi.md): Directional movement: ``plus_di``, ``minus_di`` and ``adx``.
- [forge.ta.doji, forge.ta.Doji](/reference/forge/ta/doji.md): Doji: a bar whose body is tiny against its range. Found: 1.
- [forge.ta.donchian, forge.ta.Donchian](/reference/forge/ta/donchian.md): Donchian channel: highest high and lowest low of the last ``period`` bars, and their mean.
- [forge.ta.dragonfly_doji](/reference/forge/ta/dragonfly_doji.md): Dragonfly doji: a doji that opens and closes near its high. Found: 1.
- [forge.ta.efficiency_ratio](/reference/forge/ta/efficiency_ratio.md): Net move over ``period`` bars divided by the path length.
- [forge.ta.ema, forge.ta.EMA](/reference/forge/ta/ema.md): Exponential average: ``k = 2 / (period + 1)``, seeded with the first price.
- [forge.ta.engulfing, forge.ta.Engulfing](/reference/forge/ta/engulfing.md): Engulfing: a body that covers the previous opposite body. Found: 1 bullish, -1 bearish.
- [forge.ta.envelopes, forge.ta.Envelopes](/reference/forge/ta/envelopes.md): A moving average with a band above and below it.
- [forge.ta.evening_doji_star](/reference/forge/ta/evening_doji_star.md): Evening doji star: an evening star whose middle bar is a doji. Found: -1.
- [forge.ta.evening_star](/reference/forge/ta/evening_star.md): Evening star: a long rise, a small star, then a fall into the rise. Found: -1.
- [forge.ta.fair_value_gaps](/reference/forge/ta/fair_value_gaps.md): Three-candle gaps, newest first in five slots per side, until price fills them.
- [forge.ta.falling, forge.ta.Falling](/reference/forge/ta/falling.md): True when each of the last ``period`` bars is below the bar before it.
- [forge.ta.force](/reference/forge/ta/force.md): Force index: the volume times the change of a moving average of the price.
- [forge.ta.fractals, forge.ta.Fractals](/reference/forge/ta/fractals.md): Williams fractals: ``up`` (swing high) and ``down`` (swing low), written two bars late.
- [forge.ta.frama, forge.ta.FRAMA](/reference/forge/ta/frama.md): Fractal adaptive average of the close (Ehlers).
- [forge.ta.gator, forge.ta.Gator](/reference/forge/ta/gator.md): Gator oscillator: the gaps between the Alligator's lines, above and below 0.
- [forge.ta.gravestone_doji](/reference/forge/ta/gravestone_doji.md): Gravestone doji: a doji that opens and closes near its low. Found: 1.
- [forge.ta.hammer, forge.ta.Hammer](/reference/forge/ta/hammer.md): Hammer: a long lower wick after a fall. Found: 1.
- [forge.ta.hanging_man](/reference/forge/ta/hanging_man.md): Hanging man: a long lower wick after a rise. Found: -1.
- [forge.ta.harami, forge.ta.Harami](/reference/forge/ta/harami.md): Harami: a small body inside the previous long body. Found: 1 after a fall, -1 after a rise.
- [forge.ta.heikin_ashi](/reference/forge/ta/heikin_ashi.md): Heikin-Ashi candles: ``ha_open``, ``ha_high``, ``ha_low`` and ``ha_close``.
- [forge.ta.highest, forge.ta.Highest](/reference/forge/ta/highest.md): The highest value of the last ``period`` bars, the current bar included.
- [forge.ta.highest_bars](/reference/forge/ta/highest_bars.md): How many bars ago the highest value of the last ``period`` bars was, 0 for the current bar.
- [forge.ta.hma, forge.ta.HMA](/reference/forge/ta/hma.md): Hull average: ``wma(2 * wma(x, half) - wma(x, period), root)``.
- [forge.ta.hour](/reference/forge/ta/hour.md): The hour (0 to 23) of nanosecond UTC times ``t`` in the zone ``tz``.
- [forge.ta.ichimoku, forge.ta.Ichimoku](/reference/forge/ta/ichimoku.md): Tenkan, kijun, senkou A and B, and chikou, undisplaced.
- [forge.ta.inside_bar](/reference/forge/ta/inside_bar.md): Inside bar: a bar whose range sits within the previous bar's range. Found: 1.
- [forge.ta.inverted_hammer](/reference/forge/ta/inverted_hammer.md): Inverted hammer: a long upper wick after a fall. Found: 1.
- [forge.ta.kama, forge.ta.KAMA](/reference/forge/ta/kama.md): Kaufman adaptive average.
- [forge.ta.kc](/reference/forge/ta/kc.md): Keltner channel: an EMA of closes with bands ``atr_factor`` average true ranges away.
- [forge.ta.kcw](/reference/forge/ta/kcw.md): Keltner channel width: ``(upper - lower) / middle``. No value where the middle is 0.
- [forge.ta.killzones, forge.ta.Killzones](/reference/forge/ta/killzones.md): Four named windows, each true on the bars that open inside it.
- [forge.ta.linreg, forge.ta.LinReg](/reference/forge/ta/linreg.md): The regression line at the newest bar of the window: ``a + b * (period - 1)``.
- [forge.ta.linreg_intercept](/reference/forge/ta/linreg_intercept.md): The regression line at the oldest bar of the window.
- [forge.ta.linreg_slope](/reference/forge/ta/linreg_slope.md): The slope of the regression line: its change per bar.
- [forge.ta.liquidity, forge.ta.Liquidity](/reference/forge/ta/liquidity.md): Equal highs and lows, resting liquidity above swing highs and below swing lows, and sweeps.
- [forge.ta.log_return](/reference/forge/ta/log_return.md): The natural log of the value over the previous value: ``ln(source[i] / source[i-1])``.
- [forge.ta.lowest, forge.ta.Lowest](/reference/forge/ta/lowest.md): The lowest value of the last ``period`` bars, the current bar included.
- [forge.ta.lowest_bars](/reference/forge/ta/lowest_bars.md): How many bars ago the lowest value of the last ``period`` bars was, 0 for the current bar.
- [forge.ta.lwma](/reference/forge/ta/lwma.md): Linearly weighted average: weight ``period`` on the newest value down to 1 on the oldest.
- [forge.ta.ma, forge.ta.MA](/reference/forge/ta/ma.md): The moving average named by ``method``: one of sma, ema, smma, lwma, wma, hma, dema, tema.
- [forge.ta.macd, forge.ta.MACD](/reference/forge/ta/macd.md): MACD: the fast EMA minus the slow EMA, its signal line and the gap between them.
- [forge.ta.market_structure](/reference/forge/ta/market_structure.md): Swings labelled HH, HL, LH and LL, with breaks of structure and changes of character.
- [forge.ta.marubozu, forge.ta.Marubozu](/reference/forge/ta/marubozu.md): Marubozu: a bar with almost no wicks. Found: 1 on a rising bar, -1 on a falling bar.
- [forge.ta.max2](/reference/forge/ta/max2.md): The larger of two series bar by bar, or of a series and a number.
- [forge.ta.median, forge.ta.Median](/reference/forge/ta/median.md): Median of the last ``period`` values. NaN where the window holds a missing value.
- [forge.ta.mfi, forge.ta.MFI](/reference/forge/ta/mfi.md): Money flow index: RSI built from the typical price times volume, from 0 to 100.
- [forge.ta.midpoint, forge.ta.MidPoint](/reference/forge/ta/midpoint.md): Halfway between the highest and the lowest value of the last ``period`` bars.
- [forge.ta.midprice, forge.ta.MidPrice](/reference/forge/ta/midprice.md): Halfway between the highest high and the lowest low of the last ``period`` bars.
- [forge.ta.min2](/reference/forge/ta/min2.md): The smaller of two series bar by bar, or of a series and a number.
- [forge.ta.mom](/reference/forge/ta/mom.md): Price now against price ``period`` bars ago.
- [forge.ta.month](/reference/forge/ta/month.md): The month (1 to 12) of ``t`` in ``tz``.
- [forge.ta.morning_doji_star](/reference/forge/ta/morning_doji_star.md): Morning doji star: a morning star whose middle bar is a doji. Found: 1.
- [forge.ta.morning_star](/reference/forge/ta/morning_star.md): Morning star: a long fall, a small star, then a rise into the fall. Found: 1.
- [forge.ta.obv, forge.ta.OBV](/reference/forge/ta/obv.md): On-balance volume: a running total that starts with the first bar's volume.
- [forge.ta.opening_range](/reference/forge/ta/opening_range.md): The high and low of the first minutes of a session, and the closes that cross them.
- [forge.ta.order_blocks](/reference/forge/ta/order_blocks.md): The last opposite candle before each break of structure, kept until price goes through it.
- [forge.ta.osma, forge.ta.OsMA](/reference/forge/ta/osma.md): OsMA: the MACD line minus its signal line.
- [forge.ta.outside_bar](/reference/forge/ta/outside_bar.md): Outside bar: a bar whose range covers the previous bar's range. Found: 1.
- [forge.ta.percentrank, forge.ta.PercentRank](/reference/forge/ta/percentrank.md): The share of the previous ``period`` values at or below the current value.
- [forge.ta.period_open](/reference/forge/ta/period_open.md): The open of the current day, week or month on every bar of it.
- [forge.ta.piercing, forge.ta.Piercing](/reference/forge/ta/piercing.md): Piercing line: a rise that closes deep into the previous fall. Found: 1.
- [forge.ta.pivot_high](/reference/forge/ta/pivot_high.md): The high of a swing high, written ``right`` bars after the swing.
- [forge.ta.pivot_low](/reference/forge/ta/pivot_low.md): The low of a swing low, written ``right`` bars after the swing (the mirror of pivot_high).
- [forge.ta.pivot_points](/reference/forge/ta/pivot_points.md): Pivot points for ``kind`` from the previous ``period`` (``D``, ``W`` or ``M``).
- [forge.ta.premium_discount](/reference/forge/ta/premium_discount.md): The upper and lower halves of the active swing range, split at equilibrium.
- [forge.ta.prior_levels](/reference/forge/ta/prior_levels.md): The previous day's, week's or month's open, high, low and close on every bar.
- [forge.ta.rising, forge.ta.Rising](/reference/forge/ta/rising.md): True when each of the last ``period`` bars is above the bar before it.
- [forge.ta.rma, forge.ta.RMA](/reference/forge/ta/rma.md): Wilder's smoothed average: seeded with the mean of the first ``period`` values.
- [forge.ta.roc, forge.ta.ROC](/reference/forge/ta/roc.md): Change over ``period`` bars, as a percent, a fraction or a ratio.
- [forge.ta.rsi, forge.ta.RSI](/reference/forge/ta/rsi.md): Relative strength index from average gains against average losses, 0 to 100.
- [forge.ta.rvi, forge.ta.RVI](/reference/forge/ta/rvi.md): Relative vigor index: the close against the open, scaled by the range, with a signal line.
- [forge.ta.sar, forge.ta.SAR](/reference/forge/ta/sar.md): Parabolic stop and reverse.
- [forge.ta.session_range](/reference/forge/ta/session_range.md): The Asia, London and New York sessions: a box while each runs, its levels once it ends.
- [forge.ta.shooting_star](/reference/forge/ta/shooting_star.md): Shooting star: a long upper wick after a rise. Found: -1.
- [forge.ta.sma, forge.ta.SMA](/reference/forge/ta/sma.md): Mean of the last ``period`` values, each window summed from scratch.
- [forge.ta.smma](/reference/forge/ta/smma.md): Wilder's smoothed average: seeded with the mean of the first ``period`` values.
- [forge.ta.spinning_top](/reference/forge/ta/spinning_top.md): Spinning top: a small body with a longer wick on each side.
- [forge.ta.stdev](/reference/forge/ta/stdev.md): Standard deviation of the last ``period`` values around their moving average at this bar.
- [forge.ta.stoch](/reference/forge/ta/stoch.md): Stochastic oscillator: ``k`` is the slowed %K and ``d`` its simple average.
- [forge.ta.stoch_rsi](/reference/forge/ta/stoch_rsi.md): The stochastic oscillator applied to the relative strength index.
- [forge.ta.sum, forge.ta.Sum](/reference/forge/ta/sum.md): The sum of the last ``period`` values. A window that holds a missing value has no value.
- [forge.ta.supertrend, forge.ta.SuperTrend](/reference/forge/ta/supertrend.md): SuperTrend: a line ``factor`` average true ranges from the bar's midpoint that only ratchets.
- [forge.ta.tema, forge.ta.TEMA](/reference/forge/ta/tema.md): Triple exponential average: ``3 * E1 - 3 * E2 + E3``. After a gap the cascade restarts.
- [forge.ta.three_black_crows](/reference/forge/ta/three_black_crows.md): Three black crows: three falling bars, each opening inside the last body. Found: -1.
- [forge.ta.three_inside](/reference/forge/ta/three_inside.md): Three inside: a harami confirmed by the third bar. Found: 1 up, -1 down.
- [forge.ta.three_outside](/reference/forge/ta/three_outside.md): Three outside: an engulfing confirmed by the third bar. Found: 1 up, -1 down.
- [forge.ta.three_white_soldiers](/reference/forge/ta/three_white_soldiers.md): Three white soldiers: three rising bars, each opening inside the last body. Found: 1.
- [forge.ta.timestamp](/reference/forge/ta/timestamp.md): Nanoseconds UTC of a local time in ``tz``.
- [forge.ta.tr](/reference/forge/ta/tr.md): True range: the bar's range widened to take in the gap from the previous close.
- [forge.ta.trix, forge.ta.TRIX](/reference/forge/ta/trix.md): TRIX: the one-bar change of a triple smoothed EMA, as a fraction and not a percent.
- [forge.ta.valuewhen](/reference/forge/ta/valuewhen.md): The source on the bar where the condition last held, or the ``occurrence``-th time before.
- [forge.ta.variance, forge.ta.Variance](/reference/forge/ta/variance.md): Variance: the mean squared distance of the last ``period`` values from their average.
- [forge.ta.vidya, forge.ta.VIDYA](/reference/forge/ta/vidya.md): Chande's variable index dynamic average.
- [forge.ta.volumes, forge.ta.Volumes](/reference/forge/ta/volumes.md): The volume of each bar, and whether it is above the previous bar's.
- [forge.ta.vwap, forge.ta.VWAP](/reference/forge/ta/vwap.md): Volume-weighted average price from each anchor, with bands at its weighted deviation.
- [forge.ta.vwma, forge.ta.VWMA](/reference/forge/ta/vwma.md): Volume weighted average: ``sum(price * volume) / sum(volume)`` over the last ``period`` bars.
- [forge.ta.wilder](/reference/forge/ta/wilder.md): Wilder's smoothed average: seeded with the mean of the first ``period`` values.
- [forge.ta.wma, forge.ta.WMA](/reference/forge/ta/wma.md): Linearly weighted average: weight ``period`` on the newest value down to 1 on the oldest.
- [forge.ta.wpr](/reference/forge/ta/wpr.md): Williams %R: where the close sits in the recent range, from 0 down to -100.
- [forge.ta.zigzag, forge.ta.ZigZag](/reference/forge/ta/zigzag.md): Swing highs and lows, written only once a reversal confirms them.
- [forge.testing.EngineNotInstalled](/reference/forge/testing/EngineNotInstalled.md): A check needs Forge's engine, and this installation does not include it.
- [forge.testing.INSTRUMENT_CLASSES](/reference/forge/testing/INSTRUMENT_CLASSES.md):
- [forge.testing.STABLE_TRADE_FIELDS](/reference/forge/testing/STABLE_TRADE_FIELDS.md):
- [forge.testing.SampleBars](/reference/forge/testing/SampleBars.md): A set of bars for tests, with the facts of the instrument they imitate.
- [forge.testing.TestRun](/reference/forge/testing/TestRun.md): One finished run in a test.
- [forge.testing.assert_entry_at](/reference/forge/testing/assert_entry_at.md): An entry was filled on primary bar ``bar``, on the ``side`` given when there is one.
- [forge.testing.assert_exit_at](/reference/forge/testing/assert_exit_at.md): An exit was filled on primary bar ``bar``, closing a position of ``side`` and for ``reason``.
- [forge.testing.assert_no_lookahead](/reference/forge/testing/assert_no_lookahead.md): Fail unless the look-ahead audit shows no evidence of look-ahead.
- [forge.testing.assert_no_trade_between](/reference/forge/testing/assert_no_trade_between.md): No entry was filled from ``start`` to ``end``, both included.
- [forge.testing.assert_ready_to_publish](/reference/forge/testing/assert_ready_to_publish.md): Fail unless every row of the pre-publish battery passes, naming each row that did not.
- [forge.testing.assert_same_trades](/reference/forge/testing/assert_same_trades.md): The two runs made the same trades, compared one by one in entry-time order.
- [forge.testing.assert_stable_warmup](/reference/forge/testing/assert_stable_warmup.md): Fail unless every output of the strategy is stable at its declared warm-up.
- [forge.testing.broker_facts](/reference/forge/testing/broker_facts.md): The ``oathra.broker_facts/1`` payload a run receives, for the sample ``symbols``.
- [forge.testing.cases](/reference/forge/testing.md): Edge-case bars: the awkward stretches of a market that break a strategy written for smooth ones.
- [forge.testing.check_lookahead](/reference/forge/testing/check_lookahead.md): Audit a strategy for look-ahead and return the report as plain JSON.
- [forge.testing.check_warmup](/reference/forge/testing/check_warmup.md): Measure how much each output of a strategy depends on where its data starts, as plain JSON.
- [forge.testing.instrument](/reference/forge/testing/instrument.md): A copy of the sample facts of ``symbol``: ``EURUSD``, ``GBPUSD``, ``USDJPY``, ``US500`` or
- [forge.testing.publish_check](/reference/forge/testing/publish_check.md): Run the pre-publish battery on a strategy file and return its report as plain JSON.
- [forge.testing.run](/reference/forge/testing/run.md): Run a strategy over sample bars and return what it did.
- [forge.testing.samples](/reference/forge/testing.md): Named sample bars: Forge's own seeded synthetic prices, built the first time one is asked for.
- [forge.testing.snapshot](/reference/forge/testing/snapshot.md): Compare a run, or a mapping of numbers, with the snapshot stored for this test.
- [forge.testing.stable_fields](/reference/forge/testing/stable_fields.md): The fields a run's snapshot keeps, by section, in the order the snapshot writes them.
- [forge.testing.synthetic](/reference/forge/testing/synthetic.md): A seeded synthetic sample. ``seed`` has no default: an unseeded call is a ``TypeError``.
- [forge.testing.to_snapshot](/reference/forge/testing/to_snapshot.md): A run, or a mapping of numbers, text, lists and mappings, as the plain structure a snapshot
- [forge.types.CheckResult](/reference/forge/types/CheckResult.md): What the engine would say about an order sent now.
- [forge.types.FillCosts](/reference/forge/types/FillCosts.md): What one fill cost, each part in account currency and never negative as a cost.
- [forge.types.FillReason](/reference/forge/types/FillReason.md):
- [forge.types.OrderEvent](/reference/forge/types/OrderEvent.md): What ``on_order_event`` receives: one thing that happened to one order.
- [forge.types.OrderRequest](/reference/forge/types/OrderRequest.md): An order a strategy describes before sending it: what ``ctx.check`` and ``calc.margin`` take.
- [forge.types.OrderSide](/reference/forge/types/OrderSide.md):
- [forge.types.OrderType](/reference/forge/types/OrderType.md):
- [forge.types.PositionOwner](/reference/forge/types/PositionOwner.md): What a position calls to change or close itself. The run implements it.
- [forge.types.PositionRecord](/reference/forge/types/PositionRecord.md): The mutable state behind a ``Position``. The run writes it; a strategy never sees it.
- [forge.types.PositionSide](/reference/forge/types/PositionSide.md):
- [forge.types.Quote](/reference/forge/types/Quote.md): The bid, ask and spread at the decision time, in price units.
- [forge.types.TicketOwner](/reference/forge/types/TicketOwner.md): What an order ticket calls to change or cancel itself. The run implements it.
- [forge.types.TicketRecord](/reference/forge/types/TicketRecord.md): The mutable state behind an ``OrderTicket``. The run writes it; a strategy never sees it.
- [Arnaud Legoux moving average](/reference/indicators/alma.md): Gaussian weighted average whose peak you can move toward the newest bar.
- [Double exponential moving average](/reference/indicators/dema.md): Exponential average with part of its lag removed.
- [Efficiency ratio](/reference/indicators/efficiency_ratio.md): How directly the price moved: 1 for a straight line, near 0 for noise.
- [Exponential moving average](/reference/indicators/ema.md): Average that weights recent values more, each step closing part of the gap to the price.
- [Envelopes](/reference/indicators/envelopes.md): A moving average with a band a set distance above and below it.
- [Fractal adaptive moving average](/reference/indicators/frama.md): Average that follows trends closely and flattens in chop, from the fractal dimension.
- [Hull moving average](/reference/indicators/hma.md): Fast, smooth average built from two weighted averages.
- [Kaufman adaptive moving average](/reference/indicators/kama.md): Average that speeds up when the price trends and slows down when it chops.
- [Linear regression](/reference/indicators/linreg.md): Least squares line fitted to the last N values, read at the newest bar.
- [Linear regression intercept](/reference/indicators/linreg_intercept.md): Where the fitted line starts, at the oldest bar of the window.
- [Linear regression slope](/reference/indicators/linreg_slope.md): How much the fitted line rises or falls per bar.
- [Moving average](/reference/indicators/ma.md): Any of the eight moving averages, chosen by name.
- [Rolling median](/reference/indicators/median.md): Middle value of the last N values, so one spike cannot move it.
- [Smoothed moving average (Wilder)](/reference/indicators/rma.md): Wilder's smoothing: a slow average seeded with the mean of the first N values.
- [Simple moving average](/reference/indicators/sma.md): Average of the last N values, each weighted equally.
- [Triple exponential moving average](/reference/indicators/tema.md): Exponential average with most of its lag removed.
- [Variable index dynamic average](/reference/indicators/vidya.md): Exponential average that speeds up when momentum is strong.
- [Volume weighted moving average](/reference/indicators/vwma.md): Average that weights each price by the volume traded at it.
- [Linear weighted moving average](/reference/indicators/wma.md): Average that weights the newest value N times and the oldest once.
- [Average directional index](/reference/indicators/adx.md): How strong the trend is, whatever its direction.
- [Aroon](/reference/indicators/aroon.md): How recently the highest high and the lowest low happened.
- [Directional movement index](/reference/indicators/dmi.md): Trend direction as two lines, with the strength of the trend.
- [Donchian channel](/reference/indicators/donchian.md): Highest high and lowest low of the last N bars, with their midpoint.
- [Heikin-Ashi](/reference/indicators/heikin_ashi.md): Smoothed candles that make trends easier to read.
- [Ichimoku Kinko Hyo](/reference/indicators/ichimoku.md): Five lines that show trend, momentum and support in one view.
- [Pivot high](/reference/indicators/pivot_high.md): A swing high, shown once enough bars after it prove it was the highest.
- [Pivot low](/reference/indicators/pivot_low.md): A swing low, shown once enough bars after it prove it was the lowest.
- [Pivot points](/reference/indicators/pivot_points.md): Support and resistance levels projected from the previous day, week or month.
- [Parabolic SAR](/reference/indicators/sar.md): Trailing stop-and-reverse level that speeds up as the trend runs.
- [SuperTrend](/reference/indicators/supertrend.md): Trend-following line built from the average true range.
- [ZigZag](/reference/indicators/zigzag.md): Swing highs and lows, each shown only once a reversal has confirmed it.
- [Accelerator oscillator](/reference/indicators/ac.md): How fast the Awesome oscillator is speeding up or slowing down.
- [Alligator](/reference/indicators/alligator.md): Three smoothed lines that show when a trend is asleep or waking up.
- [Awesome oscillator](/reference/indicators/ao.md): Momentum from the gap between a fast and a slow average of the median price.
- [Market facilitation index](/reference/indicators/bw_mfi.md): Price range per unit of volume, with Bill Williams' four colours.
- [Fractals](/reference/indicators/fractals.md): Swing highs and lows, shown two bars after they form.
- [Gator oscillator](/reference/indicators/gator.md): How far apart the Alligator's jaw, teeth and lips are.
- [Bears power](/reference/indicators/bears_power.md): The bar's low against an EMA of closes.
- [Bulls power](/reference/indicators/bulls_power.md): The bar's high against an EMA of closes.
- [Commodity channel index](/reference/indicators/cci.md): Distance from the average in units of mean deviation.
- [Change](/reference/indicators/change.md): Value now minus the value a number of bars ago.
- [Chande momentum oscillator](/reference/indicators/cmo.md): Up moves against down moves over a period, from -100 to 100.
- [DeMarker](/reference/indicators/demarker.md): Pressure from higher highs against lower lows, from 0 to 1.
- [MACD](/reference/indicators/macd.md): The gap between a fast and a slow EMA, with a signal line and histogram.
- [Momentum](/reference/indicators/mom.md): Price now against price a number of bars ago.
- [OsMA](/reference/indicators/osma.md): The MACD histogram: MACD minus its signal line.
- [Rate of change](/reference/indicators/roc.md): Change over a number of bars as a percent, fraction or ratio.
- [Relative strength index](/reference/indicators/rsi.md): Momentum bounded 0 to 100, from average gains against average losses.
- [Relative vigor index](/reference/indicators/rvi.md): The close against the open, scaled by the range, with a signal line.
- [Stochastic oscillator](/reference/indicators/stoch.md): Where the close sits in the recent high to low range, with a signal line.
- [Stochastic RSI](/reference/indicators/stoch_rsi.md): The stochastic oscillator applied to RSI.
- [TRIX](/reference/indicators/trix.md): The one-bar change of a triple smoothed EMA.
- [Williams %R](/reference/indicators/wpr.md): Where the close sits in the recent range, from 0 down to -100.
- [Average daily range](/reference/indicators/adr.md): The average high to low range of recent trading days.
- [Average true range](/reference/indicators/atr.md): The average true range over a period, Wilder smoothed or simple.
- [Bollinger Bands](/reference/indicators/bb.md): A moving average with bands set by the standard deviation.
- [Bollinger Bands %B](/reference/indicators/bb_percent.md): Where the price sits between the Bollinger Bands.
- [Bollinger Bands width](/reference/indicators/bbw.md): The distance between the Bollinger Bands relative to the middle line.
- [Keltner channel](/reference/indicators/kc.md): An EMA with bands set by the average true range.
- [Keltner channel width](/reference/indicators/kcw.md): The distance between the Keltner bands relative to the middle line.
- [Standard deviation](/reference/indicators/stdev.md): How far values spread around their average over a period.
- [True range](/reference/indicators/tr.md): The largest of the bar's range and its gaps from the previous close.
- [Variance](/reference/indicators/variance.md): The square of the standard deviation over a period.
- [Accumulation/distribution](/reference/indicators/accdist.md): Volume weighted by where the close sits in the bar.
- [Chaikin oscillator](/reference/indicators/chaikin_osc.md): The fast average of A/D minus its slow average.
- [Force index](/reference/indicators/force.md): Volume times the change of a moving average of price.
- [Money flow index](/reference/indicators/mfi.md): RSI built from price times volume, from 0 to 100.
- [On-balance volume](/reference/indicators/obv.md): Volume added on up closes and taken away on down closes.
- [Volumes](/reference/indicators/volumes.md): Volume per bar, tick or real as the feed carries it.
- [Volume-weighted average price](/reference/indicators/vwap.md): The average price weighted by volume since the session, week, month or a chosen time.
- [Running total](/reference/indicators/cum.md): The total of every value from the first bar.
- [Delay](/reference/indicators/delay.md): The series moved a number of bars back.
- [Falling](/reference/indicators/falling.md): True after a number of falls in a row.
- [Highest value](/reference/indicators/highest.md): The highest value over a number of bars.
- [Bars since the highest](/reference/indicators/highest_bars.md): How many bars ago the highest value of the window was.
- [Log return](/reference/indicators/log_return.md): The natural log of the value over the previous value.
- [Lowest value](/reference/indicators/lowest.md): The lowest value over a number of bars.
- [Bars since the lowest](/reference/indicators/lowest_bars.md): How many bars ago the lowest value of the window was.
- [Midpoint](/reference/indicators/midpoint.md): Halfway between the highest and lowest value of a window.
- [Mid price](/reference/indicators/midprice.md): Halfway between the highest high and the lowest low of a window.
- [Percent rank](/reference/indicators/percentrank.md): Where the value sits among its previous values, from 0 to 100.
- [Rising](/reference/indicators/rising.md): True after a number of rises in a row.
- [Rolling sum](/reference/indicators/sum.md): The sum of the last values over a number of bars.
- [Dark cloud cover](/reference/indicators/dark_cloud_cover.md): A fall that closes deep into the previous rise.
- [Doji](/reference/indicators/doji.md): A bar whose body is tiny against its range.
- [Dragonfly doji](/reference/indicators/dragonfly_doji.md): A doji that opens and closes near its high.
- [Engulfing](/reference/indicators/engulfing.md): A body that covers the previous opposite body.
- [Evening doji star](/reference/indicators/evening_doji_star.md): An evening star whose middle bar is a doji.
- [Evening star](/reference/indicators/evening_star.md): A long rise, a small star, then a fall into the rise.
- [Gravestone doji](/reference/indicators/gravestone_doji.md): A doji that opens and closes near its low.
- [Hammer](/reference/indicators/hammer.md): A long lower wick after a fall.
- [Hanging man](/reference/indicators/hanging_man.md): A long lower wick after a rise.
- [Harami](/reference/indicators/harami.md): A small body inside the previous long body.
- [Inside bar](/reference/indicators/inside_bar.md): A bar whose range sits within the previous bar's range.
- [Inverted hammer](/reference/indicators/inverted_hammer.md): A long upper wick after a fall.
- [Marubozu](/reference/indicators/marubozu.md): A bar with almost no wicks, rising or falling.
- [Morning doji star](/reference/indicators/morning_doji_star.md): A morning star whose middle bar is a doji.
- [Morning star](/reference/indicators/morning_star.md): A long fall, a small star, then a rise into the fall.
- [Outside bar](/reference/indicators/outside_bar.md): A bar whose range covers the previous bar's range.
- [Piercing line](/reference/indicators/piercing.md): A rise that closes deep into the previous fall.
- [Shooting star](/reference/indicators/shooting_star.md): A long upper wick after a rise.
- [Spinning top](/reference/indicators/spinning_top.md): A small body with a longer wick on each side.
- [Three black crows](/reference/indicators/three_black_crows.md): Three falling bars, each opening inside the last body.
- [Three inside](/reference/indicators/three_inside.md): A harami confirmed by the third bar.
- [Three outside](/reference/indicators/three_outside.md): An engulfing confirmed by the third bar.
- [Three white soldiers](/reference/indicators/three_white_soldiers.md): Three rising bars, each opening inside the last body.
- [Period open](/reference/indicators/period_open.md): The opening price of the current day, week or month.
- [Prior period levels](/reference/indicators/prior_levels.md): The previous day, week or month open, high, low and close (PDH, PDL), carried forward.
- [Killzones](/reference/indicators/killzones.md): Named session windows, each in its own time zone, shaded on the chart and usable as filters.
- [Opening range](/reference/indicators/opening_range.md): The high and low of the first minutes of a session, with breakout signals.
- [Session ranges](/reference/indicators/session_range.md): The high and low of the Asia, London and New York sessions, boxed while each runs.
- [Fair value gaps](/reference/indicators/fair_value_gaps.md): Three-candle imbalances, shown until price fills them.
- [Liquidity](/reference/indicators/liquidity.md): Equal highs and lows (EQH, EQL), resting liquidity above swing highs and below swing lows, and the sweeps that take it.
- [Market structure](/reference/indicators/market_structure.md): Confirmed swings labelled HH, HL, LH and LL, with breaks of structure (BOS) and changes of character (CHoCH), for internal and swing structure.
- [Order blocks](/reference/indicators/order_blocks.md): The last opposite candle before a break of structure, kept until price trades back through it.
- [Premium and discount](/reference/indicators/premium_discount.md): The upper and lower halves of the active swing range, split at equilibrium.
- [bar-page](/reference/schemas/bar-page.md): The bar-page schema: 9 fields.
- [bar-spec](/reference/schemas/bar-spec.md): The bar-spec schema: 7 fields.
- [broker-facts](/reference/schemas/broker-facts.md): The broker-facts schema: 9 fields.
- [chart-stream](/reference/schemas/chart-stream.md): The chart-stream schema.
- [sandbox-compute](/reference/schemas/sandbox-compute.md): The sandbox-compute schema.
- [series-page](/reference/schemas/series-page.md): The series-page schema: 14 fields.
- [strategy-preview](/reference/schemas/strategy-preview.md): The request the Strategy Studio posts to the monitor and the reply it reads. `request` and `reply` are the two documents; every other definition is a part of one of them.
- [strategy-spec](/reference/schemas/strategy-spec.md): The strategy-spec schema: 17 fields.
