<!-- Public documentation export; not library implementation source. -->
# PineStrategyTrade

[Integration guide](https://docs.lumencharts.com/charting-library/reference/compatibility) · [Reference index](https://docs.lumencharts.com/charting-library/api/)

Public contract reference. This declaration describes types and callback shapes; availability is constrained by the linked integration guide and the runtime capability. Legacy product-specific fields are not a promise of implementation.

## entryBarIndex {#entrybarindex}

```ts
entryBarIndex: number | null;
```

Use the type signature above and the integration guide for the owning capability.

## entryComment {#entrycomment}

```ts
entryComment?: string;
```

Use the type signature above and the integration guide for the owning capability.

## entryOrderId {#entryorderid}

```ts
entryOrderId: string;
```

Use the type signature above and the integration guide for the owning capability.

## entryPrice {#entryprice}

```ts
entryPrice: number;
```

Use the type signature above and the integration guide for the owning capability.

## entryTime {#entrytime}

```ts
entryTime: number;
```

Use the type signature above and the integration guide for the owning capability.

## exitBarIndex {#exitbarindex}

```ts
exitBarIndex: number | null;
```

Use the type signature above and the integration guide for the owning capability.

## exitComment {#exitcomment}

```ts
exitComment?: string;
```

Use the type signature above and the integration guide for the owning capability.

## exitOrderId {#exitorderid}

```ts
exitOrderId?: string;
```

Use the type signature above and the integration guide for the owning capability.

## exitPrice {#exitprice}

```ts
exitPrice?: number;
```

Use the type signature above and the integration guide for the owning capability.

## exitTime {#exittime}

```ts
exitTime?: number;
```

Use the type signature above and the integration guide for the owning capability.

## id {#id}

```ts
id: string;
```

Use the type signature above and the integration guide for the owning capability.

## maxAdverseExcursion {#maxadverseexcursion}

```ts
maxAdverseExcursion: number | null;
```

Use the type signature above and the integration guide for the owning capability.

## maxFavorableExcursion {#maxfavorableexcursion}

```ts
maxFavorableExcursion: number | null;
```

Use the type signature above and the integration guide for the owning capability.

## profit {#profit}

```ts
profit?: number;
```

Use the type signature above and the integration guide for the owning capability.

## profitPercent {#profitpercent}

```ts
profitPercent?: number;
```

Use the type signature above and the integration guide for the owning capability.

## quantity {#quantity}

```ts
quantity: number;
```

Use the type signature above and the integration guide for the owning capability.

## side {#side}

```ts
side: "long" | "short";
```

Use the type signature above and the integration guide for the owning capability.

---
Documentation page: https://docs.lumencharts.com/charting-library/api/PineStrategyTrade
