Indicators: Equity Chart - page 4

To add comments, please log in or register
transcendreamer
6822
transcendreamer  
Finally, indicator update with new features:
- accounting hedged margins in history (+ additional parameter)
- accounting simultaneous orders in history
- removed the requirement of a mandatory fully loaded trading history
- export / import of trading history via text files
- fixed errors with the interval method profitability calculation

fxsaber
18456
fxsaber  
Convert to MT5

Форум по трейдингу, автоматическим торговым системам и тестированию торговых стратегий

Индикаторы: Equity Chart

fxsaber, 2019.04.25 11:25

#define MT4_TICKET_TYPE // Обязываем OrderSend и OrderTicket возвращать значение такого же типа, как в MT4 - int.
#include <KimIVToMT5.mqh> // https://c.mql5.com/3/263/KimIVToMT5.mqh

// https://www.mql5.com/en/blogs/post/681230
#include "ind4to5.mqh" // https://c.mql5.com/3/277/ind4to5.mqh

#property indicator_separate_window
#property indicator_buffers 6
#property indicator_plots 2
#property indicator_color1 SteelBlue
#property indicator_color2 OrangeRed
#property indicator_color3 SlateGray
#property indicator_color4 ForestGreen
#property indicator_color5 Silver
#property indicator_color6 Gray
#property indicator_width1 1
#property indicator_width2 1
#property indicator_width3 1
#property indicator_width4 1
#property indicator_width5 1
#property indicator_width6 1

#define TotalOrders TotalOrdersTmp
#define Ticket TicketTmp
#define StartTime StartTimeTmp
#define Type TypeTmp
#define Margin MarginTmp
#define Magic MagicTmp

bool ObjectSetText( const string name, const string text,
                    const int font_size = 0, const string font_name = NULL )
{
  return(ObjectSetString(0, name, OBJPROP_TEXT, text) &&
         (!font_size || ObjectSetInteger(0, name, OBJPROP_FONTSIZE, font_size)) &&
         ((font_name == NULL) || ObjectSetString(0, name, OBJPROP_FONT, font_name)));
}

string StringConcatenate( const string Str1, const string Str2, const string Str3 )
{
  return(Str1 + Str2 + Str3);
}

string StringConcatenate( const string Str1, const string Str2, const string Str3, const string Str4)
{
  return(Str1 + Str2 + Str3 + Str4);
}

string StringConcatenate( const string Str1, const string Str2, const string Str3, const string Str4, const string Str5 )
{
  return(Str1 + Str2 + Str3 + Str4 + Str5);
}

string StringConcatenate( const string Str1, const string Str2, const int Str3, const string Str4, const int Str5 )
{
  return(Str1 + Str2 + (string)Str3 + Str4 + (string)Str5);
}

string StringConcatenate( const string Str1, const string Str2, const string Str3, const string Str4, const string Str5, const string Str6 )
{
  return(Str1 + Str2 + Str3 + Str4 + Str5 + Str6);
}

string StringConcatenate( const string Str1, const int Str2, const string Str3, const double Str4, const string Str5, const string Str6 )
{
  return(Str1 + (string)Str2 + Str3 + (string)Str4 + Str5 + Str6);
}

string StringConcatenate( const string Str1, const string Str2, const string Str3, const string Str4, const string Str5, const string Str6, const string Str7 )
{
  return(Str1 + Str2 + Str3 + Str4 + Str5 + Str6 + Str7);
}

string StringConcatenate( const int Str1, const string Str2, const ENUM_TIMEFRAMES Str3, const string Str4)
{
  return((string)Str1 + Str2 + EnumToString(Str3) + Str4);
}

// Закомментировать строку с ошибкой компиляции: 'Import_History' - constant cannot be modified Equity-Monitor.mq4      734     7
#include "Equity-Monitor.mq4" // https://www.mql5.com/ru/code/13242

Jhon Agustinus Yahya
649
Jhon Agustinus Yahya  
Good but the max drawdown is getting bigger when using on cent account that use USC as account currency symbol. Please fix this issue. 
transcendreamer
6822
transcendreamer  
Jhon Agustinus Yahya:
Good but the max drawdown is getting bigger when using on cent account that use USC as account currency symbol. Please fix this issue. 

Hi, could you please provide more information on this?

kpsbot
10
kpsbot  

I put it as a starting day last week but it still gets more time (maybe the entire history)

How can I fix that ?

transcendreamer
6822
transcendreamer  
kpsbot:

I put it as a starting day last week but it still gets more time (maybe the entire history)

How can I fix that ?

If the indicator asks you about history - it's about trades history in the "history" tab.

kpsbot
10
kpsbot  
transcendreamer:

If the indicator asks you about history - it's about trades history in the "history" tab.

Now I got it. Tks.

So, as a sugestion, make the date filter inside the EA. I though that Draw begin and end was also to filter the history.

subzero29
221
subzero29  
This is a really great indicator. Does the max drawdown mean the max floating drawdown and not the realized drawdown?  This would be different from the max drawdown that I would get from a detailed report on metatrader right? Thanks!
transcendreamer
6822
transcendreamer  
subzero29:
This is a really great indicator. Does the max drawdown mean the max floating drawdown and not the realized drawdown?  This would be different from the max drawdown that I would get from a detailed report on metatrader right? Thanks!

Thanks, the drawdown value shows equity drawdown, not the balance, but please be advised that it is calculated based on close prices of all instruments, so it could be slightly different when switching timeframes, or in some cases noticeably different in case of martingale-like strategies, so the smaller the timeframe - the more accurate drawdown you see.

DD in MT report is based in balance (closed deals)

SULAIMAN LALANI
504
SULAIMAN LALANI  

Thanks.  Resolved the issue I was facing.

This is a great indicator.  Thanks a lot for providing this.  May you be Blessed

To add comments, please log in or register