Breakout Strategy with Prop Firm Helper Functions – EA MetaTrader 5

Breakout Strategy with Prop Firm Helper Functions - expert for MetaTrader 5
Hello all, This is an update of the “Simple Yet Effective Breakout Strategy”. In this code, I have added some helper functions for prop firm challenges. Generally, to pass a prop firm challenge, you need to satisfied three main criterias: Target profit Not violating maximum daily loss Not violating maximum loss In this code, I … Read more

Free Fuzzy Logic Library functions – library MetaTrader 5

Free Fuzzy Logic Library functions - library for MetaTrader 5
The Fuzzy Logic – is a modern science, used in many fields, for example, it has military applications. Now it’s available for the traders. Why Fuzzy Logic? There are some systems, easily can be solved by human, but it’s difficult to program these systems. In such cases Fuzzy Logic can help. It’s very close to … Read more

Functions to simplify work with orders – library MetaTrader 5

Functions to simplify work with orders - library for MetaTrader 5
This is a class that will allow to open, close and modify your position by placing orders with really simple commands and configuration: Buy(), Sell(), Close(), Modify(). It has never been so easy! 🙂  Sample: #include <K_Orders.mqh> input int TP = 70; input int SL = 20; input double Lots=0.2; Order order; //+——————————————————————+ //| Script … Read more

Hash functions library – library MetaTrader 5

Hash functions library - library for MetaTrader 5
General purpose hash functions: adler32 CRC-32 (fast, table implementation) MaHash8v64 (fast, table implementation) All three functions are adapted for MQL5 Unicode strings. The results has been verified with Fsum Frontend 1.5.5.1. Radix Conversion: from decimal (ulong) to Base radix inverse transformation The radix conversion is based on the following sequence of chars: 10 [0..9] + … Read more

Statistics.mqh Functions – library MetaTrader 5

Statistics.mqh Functions - library for MetaTrader 5
This library contains a set of basic statistical functions necessary for user data processing. This library was first published in CodeBase at MQL4 – Statistica.mqh functions library. Some typos have been detected and corrected while transferring the functions to MQL5. The code has become more intuitively clear. Most functions have been written using the algorithms … Read more

String – Library of functions for working with strings – library MetaTrader 5

String - Library of functions for working with strings - library for MetaTrader 5
Library of functions for working with strings. The following functions are available: StringToArray (3 overloads): extracting of the same type elements from the string into an array of a necessary type (the StringSplit analog); StringToPeriod and PeriodToString: conversion of time frame names in tabulation at ENUM_TIMEFRAMES and back. The library will refill as often as required. Title: … Read more

Statistical Functions – library MetaTrader 5

Statistical Functions - library for MetaTrader 5
Set of statistical functions which allows you to calculate some values describing timeseries like correlation between two time series, linear regression, standard deviation etc. It includes also more advanced functions like definite integral. Header file “Statistics.mqh” includes following functions: Syntax Description Return type  mean(T &arr[])  Mean  (generic)   std(double &arr[])  Standard deviation  double  correlation(&arr1[], &arr2[])  Correlation … Read more

Library of functions for working with INI-files. – library MetaTrader 4

Library of functions for working with INI-files. - library for MetaTrader 4
Library of functions for working with INI-files. Includes five functions for reading values from an INI-file:      – ReadIniArrayInt();      – ReadIniBool();      – ReadIniDouble();      – ReadIniInteger();      – ReadIniString(); and five functions for writing the values to an INI-file:      – WriteIniArrayInt();      – WriteIniBool();      – WriteIniDouble();      – WriteIniInteger();      – … Read more

OBz Trading Functions Library – library MetaTrader 4

OBz Trading Functions Library - library for MetaTrader 4
Library of trading functions (position size, open, close position etc.) from the EAs “Ocean Breeze” and “Graalino-Pro”. It can be of big help for novice traders as an example how to handle trading events. It calculates the size of position from the RISK (%) given. Forget about pips, lots, ticks, digits etc. Take a pro-approach. … Read more