Add account and expert information to the chart

Specifiche

To eliminate this difficulty, use the expert's example: EA 24658754

MAKE THE MODIFICATION IN THE EXPERTS' FILES: EA_MT4, EA_MT5


Add this:

input bool   ShowInfo              = false;  // Show Info to Chart 
input ENUM_BASE_CORNER Corner      = 1;      // Info Corner
input color  Color_Info            = clrAqua;// Info Color 

Add this:

//+------------------------------------------------------------------+
//| Print info to chart                                              |
//+------------------------------------------------------------------+
void PrintInfo()
{
  if(!ShowInfo){ return;}

    
  if(ShowInfo){    
    text[1]= EAComment;
    text[2]= "-------------------------------------------";
    text[3]= "Time Current: " + TimeToStr(TimeCurrent());
    text[4]= "-------------------------------------------";    
    text[5]= "Account Number: " + IntegerToString(AccountNumber());
    text[6]= "Account Leverage: " + IntegerToString(AccountLeverage());
    text[7]= "Account Balance: " + DoubleToStr(AccountBalance(), 2);
    text[8]= "Account Equity: " + DoubleToStr(AccountEquity(), 2);
    text[9]= "Free Margin: " + DoubleToStr(AccountFreeMargin(), 2);
    text[10]= "Used Margin: " + DoubleToStr(AccountMargin(), 2);
    text[11]= "Current Profit: " + DoubleToStr(OrderProfit(), 2);     
    text[12]= "-------------------------------------------";
    text[13]= "Remaining Candle Time: " + (());
    text[14]= "Bid Price: " + (());
    text[15]= "Ask Price: " + (());
    text[16]= "Current Spread: " + (());
    text[17]= "Expert Current Status: " OFF / ON + (());
    text[18]= "-------------------------------------------";
    
    int i=1, k=20;
    while (i<=25)
    {
       string ChartInfo = "Info"+IntegerToString(i);
       ObjectCreate(ChartInfo, OBJ_LABEL, 0, 0, 0);
       ObjectSetText(ChartInfo, text[i], 9, "Arial", Color_Info);
       ObjectSet(ChartInfo, OBJPROP_CORNER, Corner);   
       ObjectSet(ChartInfo, OBJPROP_XDISTANCE, 7);  
       ObjectSet(ChartInfo, OBJPROP_YDISTANCE, k);
       i++;
       k=k+13;
    }
  }
} 


Insert an image:

1

2


Con risposta

1
Sviluppatore 1
Valutazioni
(206)
Progetti
278
46%
Arbitraggio
22
73% / 23%
In ritardo
37
13%
Gratuito
2
Sviluppatore 2
Valutazioni
(618)
Progetti
968
46%
Arbitraggio
32
38% / 34%
In ritardo
96
10%
Gratuito
Pubblicati: 6 codici
3
Sviluppatore 3
Valutazioni
(417)
Progetti
658
33%
Arbitraggio
31
74% / 6%
In ritardo
20
3%
Gratuito
4
Sviluppatore 4
Valutazioni
(238)
Progetti
244
31%
Arbitraggio
0
In ritardo
3
1%
Gratuito
Pubblicati: 2 codici
5
Sviluppatore 5
Valutazioni
(1253)
Progetti
1666
49%
Arbitraggio
52
71% / 12%
In ritardo
37
2%
Gratuito
6
Sviluppatore 6
Valutazioni
(30)
Progetti
39
15%
Arbitraggio
2
0% / 0%
In ritardo
1
3%
Gratuito
Pubblicati: 2 codici
7
Sviluppatore 7
Valutazioni
(287)
Progetti
293
70%
Arbitraggio
2
100% / 0%
In ritardo
0
Gratuito
Pubblicati: 1 codice
8
Sviluppatore 8
Valutazioni
(8)
Progetti
17
41%
Arbitraggio
1
0% / 100%
In ritardo
3
18%
In elaborazione
9
Sviluppatore 9
Valutazioni
(27)
Progetti
40
73%
Arbitraggio
3
67% / 0%
In ritardo
0
Gratuito
10
Sviluppatore 10
Valutazioni
(450)
Progetti
560
26%
Arbitraggio
22
41% / 36%
In ritardo
85
15%
In elaborazione
Pubblicati: 6 codici
11
Sviluppatore 11
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
12
Sviluppatore 12
Valutazioni
(293)
Progetti
524
35%
Arbitraggio
63
33% / 35%
In ritardo
188
36%
In elaborazione
13
Sviluppatore 13
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
303
59% / 25%
In ritardo
125
13%
Gratuito
14
Sviluppatore 14
Valutazioni
(98)
Progetti
137
52%
Arbitraggio
4
50% / 50%
In ritardo
0
Gratuito
15
Sviluppatore 15
Valutazioni
(84)
Progetti
115
70%
Arbitraggio
5
80% / 0%
In ritardo
11
10%
In elaborazione
16
Sviluppatore 16
Valutazioni
(259)
Progetti
586
35%
Arbitraggio
64
20% / 58%
In ritardo
147
25%
Gratuito
Pubblicati: 1 articolo, 22 codici
17
Sviluppatore 17
Valutazioni
(1)
Progetti
0
0%
Arbitraggio
2
0% / 0%
In ritardo
0
In elaborazione
Ordini simili
Job description. I need a well experienced developer to do the following on my XAUUSD breakout strategy EA:- 1. Compile it.- Fix errors and warnings on the EA. 2. Make little modification And straighten the EA codes to enable the EA to be able to do backtesting and trade well in live or demo account
Job Description I am looking for a highly skilled MQL5 DEVELOPER and A TRADER to work on an MT5 Expert Advisor (EA) project. The main tasks will include: 1. Code Compilation & Optimization – Reviewing, compiling, and streamlining the existing EA code to ensure efficiency and stability. 2. Backtesting Setup & Execution – Running professional backtests to ensure the EA produces consistent, gradual profit growth curves
I have 2 EXPERT ADVISERS whom I have helped to build a business through online coding. They are also profitable in testing but I did not get the result which I wanted. I want to improve them. I also want to add some more strategies in them so that I get the result which I want. Anyone who can help me, please send me a message, I provide you the details
Project Description I need an MT5 Expert Advisor (EA) built in MQL5 . The strategy is a breakout system with adjustable filters and risk management. The EA must be fully parameterized (all settings adjustable from inputs). Please deliver both .ex5 (compiled) and .mq5 (source code)
Super scalper 1000+ USD
I have a special EA for trading at gold on mt4 accuracy is amazing you can check its history, if someone interested write me here or contact on whats app 00923455053213
I used AI to develop my EA, and I need a professional developer to review my Expert Advisor code for MT5 (Python experience preferred). I will provide details once contact is initiated. Thanks. Benga
Scalping bot 30 - 75 USD
I am looking for a bot that can trade XAUUSD mainly. For a bot that can manage risk, Can manage profit. A bot that can change the lots from 0.01 to 0.02 and increase it depending on the account balance. The bot needs to be reliable and needs to work under any timeframe or in M5 o M15, Moreover that works and it can use any startegy, no matter the strategy, it just needs to work. I will provide a Demo account and I
Expert Advisor (trading automatique) pour MT4 stratégie OPR marché : FOREX et INDICES indicateurs : SUPERTREND ET 2 EMA ,une ema 20 périodes et la seconde 50 périodes STRATÉGIE : exemple pour un achat le SUPERTREND est haussier sur l'unité de temp H1 la EMA rapide est au-dessus de la EMA lente sur l'unité de temp M5 le graphique de prise de position est sur du M15 on prend position à la cassure du plus haut de la
Updated EA Description (with Max. Open Trades & MTF MA Filter) Core Features (already existing): Candlestick formation entry logic. Daily minimum drawdown & maximum profit target. ATR-based stop loss and take profit. Trailing stop. Breakeven. New Additions: Relative Strength Index (RSI): Flexible parameters (user can edit period & levels). Used for both entry confirmation and exit options. Stochastic Oscillator
I need a professional MetaTrader 5 Expert Advisor built specifically for Gold (XAUUSD) scalping. The EA must be safe, reliable, optimized for small and large accounts, and include risk management, AI logic, and full trade control. It should allow both automatic trading and manual trades, with seamless management of both. Core Requirements: 1. Automatic Trade Execution Open trades with multiple lot sizes. Instant flip

Informazioni sul progetto

Budget
30+ USD
Scadenze
da 1 a 3 giorno(i)

Cliente

(2)
Ordini effettuati4
Numero di arbitraggi0