Overbasic – Price

Table of Contents

PRICE keyword, available ONLY in trading systems, allows you to define the execution price of a signal (it is the equivalent of the limit price in a Limit order). If the price is not specified, the signal will be executed “at market”, i.e. at Open or Close price of current or next bar according to trading system settings.

Syntax #

Price <value>

<value> is any numeric expression. Defines the execution limit price of the signal.

Usage #

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

    Return False
EndFunction