---
title: Overbasic – Quantity
description: "**QUANTITY** keyword, available ONLY in trading systems, allows you to define the quantity of a signal. If the quantity is not specified, it is calculated automatically according to trading system settings. ### **Syntax** ``` Quantity ``` is any numeric expression.…"
url: "https://www.overcharts.com/en/helpcenter/docs/overbasic-quantity/"
updated: "2022-12-02"
category: "Overbasic / Syntax & Keywords"
---

# Overbasic – Quantity

**QUANTITY** keyword, available ONLY in trading systems, allows you to define the quantity of a signal. If the quantity is not specified, it is calculated automatically according to trading system settings.

### **Syntax**

```
Quantity <value>
```

<value> is any numeric expression. Defines the signal quantity.

### **Usage**

```
Function Main()
    If (Close > x) Then
        Price 10.25   'Defines the execution price of the signal
        Quantity 3    'Defines the signal quantity
        Return True   'True generates the signal
    EndIf

    Return False
EndFunction
```
