> For the complete documentation index, see [llms.txt](https://docs.memejob.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.memejob.fun/memejob/introducing-ai-agents/agentic-and-data-layer/technical-indicators/supported-data-basic.md).

# Supported data - Basic

### Built-in trading variables providing access to current and historical bar data

All variables support historical indexing (e.g., close\[1] for previous bar, close\[3] for the 3rd bar, etc.).

**open**

Opening price of the current bar

* open number|ValueWithHistory Current bar's open price with historical access

#### Usage:

```lua
local current_open = open
local prev_open = open[1]
local open_change = open - open[1]
```

**high**

Highest price of the current bar

* high number|ValueWithHistory Current bar's high price with historical access

#### Usage:

```lua
local current_high = high
local prev_high = high[1]
local high_breakout = high > high[1]
```

**low**

Lowest price of the current bar

* low number|ValueWithHistory Current bar's low price with historical access

#### Usage:

```lua
local current_low = low
local prev_low = low[1]
local low_breakdown = low < low[1]
```

**close**

Closing price of the current bar

* close number|ValueWithHistory Current bar's close price with historical access

#### Usage:

```lua
local current_close = close
local prev_close = close[1]
local price_change = close - close[1]
```

**volume**

Trading volume of the current bar

* volume number|ValueWithHistory Current bar's volume with historical access

#### Usage:

```lua
local current_volume = volume
local prev_volume = volume[1]
local volume_spike = volume > volume[1] * 2
```

### Price Variables - Calculated <a href="#calculated_price_variables__derived_price_values_calculated_from_ohlc_data" id="calculated_price_variables__derived_price_values_calculated_from_ohlc_data"></a>

### Derived price values calculated from OHLC data <a href="#calculated_price_variables__derived_price_values_calculated_from_ohlc_data" id="calculated_price_variables__derived_price_values_calculated_from_ohlc_data"></a>

Commonly used for technical analysis and indicator calculations.

**hl2**

Average of high and low prices Calculated as: (high + low) / 2

* hl2 number|ValueWithHistory HL2 value with historical access

#### Usage:

```lua
local mid_price = hl2
local prev_mid = hl2[1]
```

**hlc3**

Average of high, low, and close prices Calculated as: (high + low + close) / 3 Also known as "typical price"

* hlc3 number|ValueWithHistory HLC3 value with historical access

#### Usage:

```lua
local typical_price = hlc3
local prev_typical = hlc3[1]
```

**hlcc4**

Weighted average emphasizing close price Calculated as: (high + low + close + close) / 4 Gives double weight to the closing price

* hlcc4 number: ValueWithHistory HLCC4 value with historical access

#### Usage:

```lua
local weighted_price = hlcc4
local prev_weighted = hlcc4[1]
```
