EnterLong()

Generates a Buy Market order to enter a long position.

Single Market Strategy

Parameters

Name

Type

Description

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

// Generates a Buy Market order to enter a long position
EnterLong();

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.

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

// Generates a Buy Market order to enter a long position on the first
// selected market
EnterLong(Markets[0]);

Last updated