EnterLongLimit()

Generates a Buy Limit order to enter a long position.

Single Market Strategy

Parameters

Name

Type

Description

limitPrice

double

Price for long limit order.

label

string

Optional parameter which can be used for labeling the signal generated when an order is triggered.

The browser app doesn't show the custom labels in the UI at the moment. It will be updated in the future release.

Example

Basic example
// Generates a Buy Limit order to enter a long position
EnterLongLimit(limitPrice);

Multi Market Strategy

In MMS you need to specify the market on which to execute the order as the very first argument.

Parameters

Name

Type

Description

market

Market on which to execute the order.

limitPrice

double

Price for long limit order.

label

string

Optional parameter which can be used for labeling the signal generated when an order is triggered.

The browser app doesn't show the custom labels in the UI at the moment. It will be updated in the future release.

Example

Basic example
// Generates a Buy Limit order to enter a long position on the first
// selected market
EnterLongLimit(Markets[0], limitPrice);

Last updated