# Function

- [Required parameters](https://docs.origami.tech/function/required-parameters.md): Essential parameters that must be configured for the grid to function correctly.
- [Buy Orders Count](https://docs.origami.tech/function/required-parameters/buy-orders-count.md): The parameter responsible for the number of buy orders placed.
- [Sell Orders Count](https://docs.origami.tech/function/required-parameters/sell-orders-count.md): The parameter responsible for the number of sell orders placed.
- [Execute Price](https://docs.origami.tech/function/required-parameters/execute-price.md): The parameter that determines the price of the orders being placed.
- [Execute Volume](https://docs.origami.tech/function/required-parameters/execute-volume.md): The parameter that specifies the amount to be placed, denominated in the base token.
- [Base logic](https://docs.origami.tech/function/base-logic.md): Understand Origami Tech’s base logic structure used to build dynamic, rule-based trading strategies with logical conditions and data processing functions.
- [Optional parameters](https://docs.origami.tech/function/optional-parameters.md): Additional parameters that can be used for additional grid settings.
- [Time Between Orders](https://docs.origami.tech/function/optional-parameters/time-between-orders.md): Execute orders one by one with delay in seconds
- [Sleep After Seconds](https://docs.origami.tech/function/optional-parameters/sleep-after-seconds.md): Time to sleep after grid execution in seconds.
- [Is Buy First](https://docs.origami.tech/function/optional-parameters/is-buy-first.md): Should buy orders place first or not.
- [Functions](https://docs.origami.tech/function/functions.md): Functions that can be called inside the grid parameters.
- [Ticker](https://docs.origami.tech/function/functions/ticker.md): Current market price of latest trade on exchange.
- [Orderbook](https://docs.origami.tech/function/functions/orderbook.md): An order book is a comprehensive record maintained by a trading platform, documenting the buy and sell orders that reflect the interests of market participants.
- [Candles](https://docs.origami.tech/function/functions/candles.md): A candlestick is a type of price chart that represents the high, low, opening, and closing prices of a token over a defined time frame.
- [VWAP](https://docs.origami.tech/function/functions/vwap.md): The volume-weighted average price is a metric that represents the ratio of the total traded value of a token to the aggregate trading volume during a specific session.
- [Amount Before Price](https://docs.origami.tech/function/functions/amount-before-price.md): The Amount Before Price function in Origami Tech measures cumulative liquidity before a price level, useful for order book and slippage analysis.
- [Amount Threshold Index](https://docs.origami.tech/function/functions/amount-threshold-index.md): The Amount Threshold Index function in Origami Tech identifies liquidity zones in order books, helping optimize trade entry and execution logic.
- [Symbol](https://docs.origami.tech/function/functions/symbol.md): An exchange meta-information regarding ticker symbol parameters, associated fees, and the precision of data.
- [Balance](https://docs.origami.tech/function/functions/balance.md): Explore how the Balance function in Origami Tech retrieves and processes account balances, asset values, and portfolio data for trading automation.
- [Saved Balance](https://docs.origami.tech/function/functions/saved-balance.md): Learn how to use the Saved Balance function in Origami Tech to reference previously stored account balances in automated trading strateg
- [Group Balance](https://docs.origami.tech/function/functions/group-balance.md): Understand how the Group Balance function in Origami Tech aggregates balances across multiple accounts or assets for consolidated reporting.
- [Mean](https://docs.origami.tech/function/functions/mean.md): Learn how to use the Mean function in Origami Tech to calculate average values from data sets for technical indicators and performance metrics.
- [Median](https://docs.origami.tech/function/functions/median.md): The Median function in Origami Tech identifies the central numeric value in a dataset, useful for trend smoothing and statistical modeling.
- [Max](https://docs.origami.tech/function/functions/max.md): The Max function in Origami Tech identifies the largest numeric value from inputs, useful for conditional checks and dynamic trading calculations.
- [Min](https://docs.origami.tech/function/functions/min.md): The Min function in Origami Tech identifies the smallest numeric value from a data set, ideal for comparison and threshold-based trading logic.
- [Exp](https://docs.origami.tech/function/functions/exp.md): Learn how the Exp function in Origami Tech performs exponential calculations to build advanced formulas and algorithmic trading strategies.
- [Abs](https://docs.origami.tech/function/functions/abs.md): The Abs function in Origami Tech returns the absolute value of a number, useful for managing signals, risk, and calculations in trading logic.
- [Logn](https://docs.origami.tech/function/functions/logn.md): The Logn function in Origami Tech calculates natural logarithmic values for advanced algorithmic and statistical analysis.
- [Count](https://docs.origami.tech/function/functions/count.md): Learn how to use the Count function in Origami Tech to count data entries, signal events, or conditions within your automated strategies.
- [Random](https://docs.origami.tech/function/functions/random.md): Learn how to use the Random function in Origami Tech to generate random values for simulations, strategy testing, or stochastic model creation.
- [Sum](https://docs.origami.tech/function/functions/sum.md): The Sum function in Origami Tech adds multiple numeric values, ideal for portfolio aggregation, position sizing, and performance metrics.
- [Cached](https://docs.origami.tech/function/functions/cached.md): Understand how the Cached function in Origami Tech temporarily stores computed data to reduce recalculation time and optimize strategy performance.
- [Remove NaN](https://docs.origami.tech/function/functions/remove-nan.md): Deleting NaN values in the list.
- [Is NaN](https://docs.origami.tech/function/functions/is-nan.md): Learn how to use the Is NaN function in Origami Tech to check for missing or invalid numeric values, ensuring data accuracy in trading scripts.
- [Var](https://docs.origami.tech/function/functions/var.md): The Var function in Origami Tech calculates statistical variance to analyze data dispersion, volatility, and performance consistency in trading models.
- [Technical analysis](https://docs.origami.tech/function/technical-analysis.md): Technical analysis is a collection of tools used for forecasting probability price movements based on patterns in historical price changes.
- [Relative Strenght Index](https://docs.origami.tech/function/technical-analysis/relative-strenght-index.md): The Relative Strength Index (RSI) employed to identify shifts in momentum and the potential direction of asset prices.
- [RSI to price](https://docs.origami.tech/function/technical-analysis/rsi-to-price.md): It yields the price at which the anticipated RSI value will be attained.
- [Average True Range](https://docs.origami.tech/function/technical-analysis/average-true-range.md): Learn how to use the Average True Range indicator in Origami Tech to measure price volatility and improve stop-loss and risk management.
- [Bollinger Bands](https://docs.origami.tech/function/technical-analysis/bollinger-bands.md): Understand how Bollinger Bands in Origami Tech help detect volatility, breakout potential, and overbought or oversold market conditions.
- [Donchian Channel](https://docs.origami.tech/function/technical-analysis/donchian-channel.md): Donchian channels are a widely-used technical analysis tool, primarily employed to identify breakout points in price movements—critical for traders seeking to capture significant trends.
- [Exponential Moving Average](https://docs.origami.tech/function/technical-analysis/exponential-moving-average.md): The Exponential Moving Average in Origami Tech applies weighted smoothing to price data, ideal for momentum and crossover strategies.
- [Kaufman Efficiency Indicator](https://docs.origami.tech/function/technical-analysis/kaufman-efficiency-indicator.md): Learn how to use the Kaufman Efficiency Indicator in Origami Tech to measure trend efficiency and identify stable, low-noise market conditions.
- [Kaufman's Adaptive Moving Average](https://docs.origami.tech/function/technical-analysis/kaufmans-adaptive-moving-average.md): Learn how Kaufman’s Adaptive Moving Average in Origami Tech adapts to market noise, providing smoother and more accurate trend tracking.
- [Keltner Channels](https://docs.origami.tech/function/technical-analysis/keltner-channels.md): Explore Keltner Channels in Origami Tech to analyze volatility and trend direction, enhancing entry and exit conditions in trading strategies.
- [Momentum Breakout Bands](https://docs.origami.tech/function/technical-analysis/momentum-breakout-bands.md): Learn how Momentum Breakout Bands in Origami Tech detect volatility expansion and breakout conditions for active trading strategies.
- [Pivot Points](https://docs.origami.tech/function/technical-analysis/pivot-points.md): Pivot Points in Origami Tech calculate potential support and resistance levels to optimize trading entry and exit points automatically.
- [Percentage Price Oscillator](https://docs.origami.tech/function/technical-analysis/percentage-price-oscillator.md): Explore how the Percentage Price Oscillator in Origami Tech tracks the difference between moving averages to gauge market momentum.
- [Percent B](https://docs.origami.tech/function/technical-analysis/percent-b.md): Understand the Percent B indicator in Origami Tech, which measures price relative to Bollinger Bands to signal overbought or oversold zones.
- [Stop-and-Reverse](https://docs.origami.tech/function/technical-analysis/stop-and-reverse.md): Learn how to use the Stop and Reverse (SAR) indicator in Origami Tech to detect potential trend reversals and manage automated trading positions.
- [Stochastic Oscillator %K](https://docs.origami.tech/function/technical-analysis/stochastic-oscillator-k.md): The Stochastic Oscillator %K in Origami Tech measures momentum by comparing closing prices to recent ranges for trading signal generation.
- [Stochastic RSI](https://docs.origami.tech/function/technical-analysis/stochastic-rsi.md): Learn how the Stochastic RSI indicator in Origami Tech combines RSI and stochastic methods to identify market momentum and overbought conditions.
- [True Range](https://docs.origami.tech/function/technical-analysis/true-range.md): The True Range indicator in Origami Tech measures intraday volatility, helping traders set dynamic stop levels and assess price movement.
- [Triple Exponential Moving Average Oscillator](https://docs.origami.tech/function/technical-analysis/triple-exponential-moving-average-oscillator.md): Explore the TEMA Oscillator in Origami Tech, designed to minimize lag and enhance signal precision in momentum-based trading systems.
- [Volume Adjusted Moving Average](https://docs.origami.tech/function/technical-analysis/volume-adjusted-moving-average.md): Explore how the Volume Adjusted Moving Average in Origami Tech smooths trends by weighting prices with traded volume for accurate signal detection.
- [Structures](https://docs.origami.tech/function/structures.md): The type and format of the returned data by the functions.
- [Balance](https://docs.origami.tech/function/structures/balance.md): The Balance structure in Origami Tech defines account assets, quantities, and valuation, essential for portfolio and strategy calculations.
- [GroupBalance](https://docs.origami.tech/function/structures/groupbalance.md): The GroupBalance structure in Origami Tech defines grouped balance data for multi-account tracking, reporting, and portfolio management.
- [Orderbook](https://docs.origami.tech/function/structures/orderbook.md): The Orderbook structure in Origami Tech represents live bid and ask data, providing a foundation for liquidity and market depth analysis.
- [OrderBookUnit](https://docs.origami.tech/function/structures/orderbookunit.md): The OrderBookUnit structure in Origami Tech represents individual order entries, capturing price, amount, and side for market modeling.
- [Symbol](https://docs.origami.tech/function/structures/symbol.md): The Symbol structure in Origami Tech represents trading pairs and market identifiers, essential for defining strategy scope and assets.
- [Candle](https://docs.origami.tech/function/structures/candle.md): The Candle structure in Origami Tech represents OHLC market data, providing access to price, volume, and time intervals for analysis.
- [Shortcuts](https://docs.origami.tech/function/shortcuts.md): Abbreviations that can be used in functions to unify the code.
- [Base](https://docs.origami.tech/function/shortcuts/base.md): The Base shortcut in Origami Tech defines reusable foundational logic components for building structured, modular trading strategies.
- [Counter](https://docs.origami.tech/function/shortcuts/counter.md): Learn to use the Counter shortcut in Origami Tech to track iterations, loops, or sequential calculations within trading strategy logic.
- [Exchanges list](https://docs.origami.tech/function/exchanges-list.md): Explore all exchanges supported by Origami Tech and learn how to connect accounts securely for automated trading and data-driven strategy execution.
- [Pre-defined parameters](https://docs.origami.tech/function/pre-defined-parameters.md): The parameters utilized in grids to place multiple orders within a single grid.
- [Order Pos](https://docs.origami.tech/function/pre-defined-parameters/order-pos.md): Understand the Order Pos parameter in Origami Tech, defining order position within grid or strategy logic for structured trade execution.
- [Side](https://docs.origami.tech/function/pre-defined-parameters/side.md): The Side predefined parameter in Origami Tech defines order direction, helping specify buy or sell logic within automated strategies.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.origami.tech/function.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
