Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2015.01.28 15:31
Libraries

Margin Calculation - library for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
1930
Rating:
votes: 34
zalog.mq5 (4.1 KB)view

Library for calculation of a margin required for opening a position in MetaТrader 5.

The library has 3 functions:

  • Main function: GetMarginForOpening() - directly calculates a margin for opening 1.0 lot by a symbol;
  • Auxiliary function: GetSymbolByCurrencies() - checks for a symbol in the market review;
  • Auxiliary function: GetSymbolPrefix() - returns symbol prefix, if any.

The library is ready to be used. Functions can be copied directly to a code of an expert, an indicator, or a script and used in your code. It can be used just as a library.

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/12076

YZ_Summer_Time YZ_Summer_Time

Checking a date for belonging to winter or summer time. The code was developed for news debugging.

Trading Signals Module Based on Delta ZigZag Indicator Trading Signals Module Based on Delta ZigZag Indicator

Trading signals module based on Delta ZigZag indicator.

Mutex - WinAPI Mutex - WinAPI

Synchronize ОС/EA/MT processes etc. Any self-made DLLs are not needed now.

FileUnlimited FileUnlimited

Library for working with files using WinAPI without location limitations.