Pine Script compatibility

Strategies and orders Pine Script functions

Strategy state, simulated orders, risk controls, and position-management functions.

49 cataloged functions: 0 indexable, 49 available with noindex until evidence and quality requirements pass.

What to check during conversion

Functions in this category can differ by warm-up behavior, missing values, session boundaries, order context, or target-platform rendering. PineAnywhere reports those constraints per function and does not treat a matching name as proof of equivalent behavior.

All functions

strategy.cancel

Unverified

PineAnywhere tracks how strategy.cancel is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.cancel_all

Unverified

PineAnywhere tracks how strategy.cancel_all is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.close

Unverified

PineAnywhere tracks how strategy.close is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades

Unverified

PineAnywhere tracks how strategy.closedtrades is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.commission

Unverified

PineAnywhere tracks how strategy.closedtrades.commission is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.entry_bar_index

Unverified

PineAnywhere tracks how strategy.closedtrades.entry_bar_index is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.entry_comment

Unverified

PineAnywhere tracks how strategy.closedtrades.entry_comment is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.entry_id

Unverified

PineAnywhere tracks how strategy.closedtrades.entry_id is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.entry_price

Unverified

PineAnywhere tracks how strategy.closedtrades.entry_price is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.entry_time

Unverified

PineAnywhere tracks how strategy.closedtrades.entry_time is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.exit_bar_index

Unverified

PineAnywhere tracks how strategy.closedtrades.exit_bar_index is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.exit_comment

Unverified

PineAnywhere tracks how strategy.closedtrades.exit_comment is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.exit_id

Unverified

PineAnywhere tracks how strategy.closedtrades.exit_id is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.exit_price

Unverified

PineAnywhere tracks how strategy.closedtrades.exit_price is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.exit_time

Unverified

PineAnywhere tracks how strategy.closedtrades.exit_time is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.max_drawdown

Unverified

PineAnywhere tracks how strategy.closedtrades.max_drawdown is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.max_drawdown_percent

Unverified

PineAnywhere tracks how strategy.closedtrades.max_drawdown_percent is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.max_runup

Unverified

PineAnywhere tracks how strategy.closedtrades.max_runup is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.max_runup_percent

Unverified

PineAnywhere tracks how strategy.closedtrades.max_runup_percent is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.profit

Unverified

PineAnywhere tracks how strategy.closedtrades.profit is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.profit_percent

Unverified

PineAnywhere tracks how strategy.closedtrades.profit_percent is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.closedtrades.size

Unverified

PineAnywhere tracks how strategy.closedtrades.size is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.close_all

Unverified

PineAnywhere tracks how strategy.close_all is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.convert_to_account

Unverified

PineAnywhere tracks how strategy.convert_to_account is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.convert_to_symbol

Unverified

PineAnywhere tracks how strategy.convert_to_symbol is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.default_entry_qty

Unverified

PineAnywhere tracks how strategy.default_entry_qty is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.entry

Unverified

PineAnywhere tracks how strategy.entry is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.exit

Unverified

PineAnywhere tracks how strategy.exit is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.commission

Unverified

PineAnywhere tracks how strategy.opentrades.commission is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.entry_bar_index

Unverified

PineAnywhere tracks how strategy.opentrades.entry_bar_index is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.entry_comment

Unverified

PineAnywhere tracks how strategy.opentrades.entry_comment is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.entry_id

Unverified

PineAnywhere tracks how strategy.opentrades.entry_id is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.entry_price

Unverified

PineAnywhere tracks how strategy.opentrades.entry_price is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.entry_time

Unverified

PineAnywhere tracks how strategy.opentrades.entry_time is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.max_drawdown

Unverified

PineAnywhere tracks how strategy.opentrades.max_drawdown is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.max_drawdown_percent

Unverified

PineAnywhere tracks how strategy.opentrades.max_drawdown_percent is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.max_runup

Unverified

PineAnywhere tracks how strategy.opentrades.max_runup is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.max_runup_percent

Unverified

PineAnywhere tracks how strategy.opentrades.max_runup_percent is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.profit

Unverified

PineAnywhere tracks how strategy.opentrades.profit is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.profit_percent

Unverified

PineAnywhere tracks how strategy.opentrades.profit_percent is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.opentrades.size

Unverified

PineAnywhere tracks how strategy.opentrades.size is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.order

Unverified

PineAnywhere tracks how strategy.order is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.risk.allow_entry_in

Unverified

PineAnywhere tracks how strategy.risk.allow_entry_in is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.risk.max_cons_loss_days

Unverified

PineAnywhere tracks how strategy.risk.max_cons_loss_days is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.risk.max_drawdown

Unverified

PineAnywhere tracks how strategy.risk.max_drawdown is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.risk.max_intraday_filled_orders

Unverified

PineAnywhere tracks how strategy.risk.max_intraday_filled_orders is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.risk.max_intraday_loss

Unverified

PineAnywhere tracks how strategy.risk.max_intraday_loss is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.risk.max_position_size

Unverified

PineAnywhere tracks how strategy.risk.max_position_size is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

strategy.risk_allow_entry_in

Unverified

PineAnywhere tracks how strategy.risk_allow_entry_in is parsed and converted for MetaTrader 5 and the Pine Runtime SDK. Compatibility remains unverified until a reproducible probe proves the relevant behavior.

Neighboring categories

An unexpected error occurred. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.