Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Join our fan page
You liked the script? Try it in the MetaTrader 5 terminal
Margin Calculation - library for MetaTrader 5
- Views:
- 5173
- Rating:
- Published:
- 2015.01.28 15:31
- Updated:
- 2016.11.22 07:32
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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
Checking a date for belonging to winter or summer time. The code was developed for news debugging.
Trading Signals Module Based on Delta ZigZag IndicatorTrading signals module based on Delta ZigZag indicator.
Mutex - WinAPI
Synchronize ОС/EA/MT processes etc. Any self-made DLLs are not needed now.
FileUnlimitedLibrary for working with files using WinAPI without location limitations.