Code Monkey home page Code Monkey logo

equity_chart_mt4_and_mt5's Introduction

Equity-Chart MT4 and MT5

Modernization of the popular Equity indicator. The author of the original version: Igor Korepin. The necessity of the modernization is that the original indicator does not always work correctly with some instruments. For example, some brokers use the tickers with suffixes, prefixes. Also some CFD contracts and futures were considered incorrectly. This version uses a new function of contract value evaluation, which allows to work with any instrument. It retains the original concept and ideology of the indicator.

With the default settings the indicator displays two lines: the line of the balance sheet and the line of the equity. Additionally, it is possible to display the level of the used margin (as a histogram) and free equity (additional line) throughout the trading history, which allows to assess the aggressiveness of trade. The trading statistics (can be displayed in any corner of the chart): yields for month, year or the entire period of trading, the maximum drawdown (absolute and percentage), and also the calculation of the profit factor and the recovery factor.

The indicator parameters:

Only_Trade — take into account only the trade operations, excluding the balance ones (replenishment, withdrawal,correction)

Only_Magics — take into account only the orders with the specified magic numbers (enumeration with any delimiter)

Only_Symbols — take into account only the orders with the specified ticker (enumeration with any delimiter)

Only_Comment — take into account only the orders with the specified substring in the comment field

Only_Current — take into account only the orders on the current symbol of the chart

Only_Buys — take into account only the buy orders

Only_Sells — take into account only the sell orders

Show_Balance — display balance line

Show_Margin — display used margin histogram

Show_Free — display free equity line

Show_Zero — display zero level line

Show_Info — display statistics (profitability, drawdown, profit factor and recovery factor)

Alert_Drawdown — signal level of drawdown percentage (0 - disable monitoring)

Max_Drawdown — maximum allowed drawdown level in percent

Current_Day — monitoring of drawdown only for the current day

Begin_Monitoring — drawdown monitoring start time (monitoring period start)

File_Write — option to write the data to a text file

(MQL4\Files folder, file name corresponds to the account number)

Draw_Begin — chart plotting start time (orders are not considered before this time)

Report_Period — profitability calculation period: month/year/total

Text_Corner — corner of the screen to display the statistics

FX_prefix — prefix for currency pairs (required for some brokers)

FX_postfix — suffix for currency pairs (required for some brokers)

Operation features:

At the first start of the indicator the chart may be distorted. This means that the history of symbols is not synchronized for that moment. In this case it is necessary to switch the timeframes "back and forth" several times or download the history forcibly for all symbols by opening the corresponding charts. Chart auto-update when switching accounts is implemented in the new version of the indicator.

For the correct operation of the indicator, the trade history in the "History Center" must be fully downloaded.

Original code: https://www.mql5.com/ru/code/13242

equity_chart_mt4_and_mt5's People

Contributors

ulises2k avatar

Stargazers

supermomonga avatar

Watchers

James Cloos avatar  avatar

Forkers

bailemad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.