i just wonder about MetaTrader 5 is handling positions like MetaTrader 4.
Buy EURUSD 1 lot
SELL EURUSD 1 lot
In the end you have 2 different positions, one long, one short.
I remember in previous versions you had a net position, so flat, no position.
Question: Is this an option and if yes, can i set it somewhere in MetaTrader or
are these account settings and i have to talk with my broker ?
Can i somehow query account type with .mql5 ?
MetaTrader 5 features hedging position accounting system
MetaTrader 5 Help - Open an Account
MetaTrader 5 Android OS Help - Opening a Demo Account
MetaTrader 5 iPhone/iPad Help - Connecting to an Account and Opening a Demo Account
Simplified way to request a real account in MetaTrader 5 Android
Thank you for replies guys,
my summary: You can't query this by mql. The account information has no such Integer or String information.
Please correct me, if i am wrong.
Same page scroll down to
Used for the OTC markets to interpret positions in the "netting" mode (only one position can exist for one symbol). The margin is calculated based on the symbol type (SYMBOL_TRADE_CALC_MODE).
Used for the exchange markets. Margin is calculated based on the discounts specified in symbol settings. Discounts are set by the broker, but not less than the values set by the exchange.
Used for the exchange markets where individual positions are possible (hedging, multiple positions can exist for one symbol). The margin is calculated based on the symbol type (SYMBOL_TRADE_CALC_MODE) taking into account the hedged margin (SYMBOL_MARGIN_HEDGED).
Sorry, have to revise meyself, it is possible. Thank you!