Overbasic – Quantity

Table of Contents

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