# Market

## Description

Market Function

The Market function provides all the necessary information to the selected pair. This function can be called directly from the BT menu.

## Syntax

${\displaystyle fx=BT\_MARKET(eaid,symbol)}$

## Inputs

eaid

symbol
Forex pair for the order, such as EURUSD. Write it like this “EURUSD” and make sure the pair name matches exactly the name in MetaTrader.

## Outputs

This function will return the following outputs in a 2 x 44 square:

LOW
Current low according to the used timeframe

HIGH
Current high according to the used timeframe

TIME
Timestamp in seconds

BID
Bid price

POINT
Equivalent of 1 point in the traded currency

DIGITS
Number of decimal positions in the exchange rate

STOPLEVEL

LOTSIZE
Equivalent of 1 lot in units

TICKVALUE

TICKSIZE

SWAPLONG
Swap fee for keeping long positions open overnight

SWAPSHORT
Swap fee for keeping short positions open overnight

STARTING

EXPIRATION

MINLOT
Minimum order size allowed in lots

LOTSTEP

MAXLOT
Maximum order size allowed in lots

SWAPTYPE

PROFITCALCMODE

MARGINCALCMODE

MARGININIT

MARGINMAINTENANCE

MARGINHEDGED

MARGINREQUIRED

FREEZELEVEL

CLOSEBY_ALLOWED

PIPSIZE
Equivalent of 1 pip in the traded currency

PIPS2POINTS
Equivalent of 1 pip in points

SWAP_ROLLOVER3DAYS

CANDLE_OPEN_M1

CANDLE_OPEN_M5

CANDLE_OPEN_M15

CANDLE_OPEN_M30

CANDLE_OPEN_H1

CANDLE_OPEN_H4

CANDLE_OPEN_D1

CANDLE_OPEN_W1

CANDLE_OPEN_MN

## Example Usage

eaid symbol RESULT
"tester" "EURUSD" Returns the market information for the EURUSD pair.
"awesome" "USDJPY" Returns the market information for the USDJPY pair.