Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Libraries

Margin Calculation - library for MetaTrader 5

Views:
4955
Rating:
(42)
Published:
2015.01.28 15:31
Updated:
2016.11.22 07:32
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 Ltd.
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.