Market Info

From Boolean Trader
Jump to: navigation, search

Description

The Market Info function provides all the necessary information to the selected pair. But unlike the Market function you can call the information specifically.

Syntax



Inputs

eaid
The EA ID of your Expert Advisor.

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.

fieldName
The market information you want to call: LOW, HIGH, TIME, ASK, BID, POINT, DIGITS, SPREAD, STOPLEVEL, LOTSIZE, TICKVALUE, TICKSIZE, SWAPLONG, SWAPSHORT, STARTING, EXPIRATION, TRADEALLOWED, MINLOT, LOTSTEP, MAXLOT, SWAPTYPE, PROFITCALCMODE, MARGINCALCMODE, MARGININIT, MARGINMAINTENANCE, MARGINHEDGED, MARGINREQUIRED, FREEZELEVEL, CLOSEBY_ALLOWED, PIPSIZE, PIPS2POINTS, 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.

Outputs

MARKET_INFO

The requested information according to your fieldName and symbol.

Example Usage

eaid symbol fieldName RESULT
"tester" "EURUSD" "SPREAD" It will return the value of the spread of EURUSD.
"tester" "USDJPY" "ASK" It will return the value of the ask price of USDJPY.