Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Indicateurs

Account Information Panel with Daily P/L and Equity Drawdown - indicateur pour MetaTrader 5

Kenichiro Sakamoto
Kenichiro Sakamoto
5 (2)
Je suis Kenichiro Sakamoto, le développeur de FXEA365, un studio qui conçoit des Expert Advisors transparents et basés sur des règles pour MetaTrader 5.
Vues:
99
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur Freelance

The indicator draws a compact account panel on the chart. It lists the balance, the equity, the used margin, the margin level, the floating profit or loss of open positions, the profit or loss of deals closed today and the drawdown of the equity from its highest value. All amounts are shown in the deposit currency of the account.

Today's P/L is the sum of profit, swap and commission of all buy and sell deals closed since 00:00 server time, read from the trading history. The drawdown is measured from the highest equity seen since the panel was attached to the chart, so it starts at zero and grows only when the equity falls below that peak. The margin level is shown only while margin is in use.

Floating P/L and today's P/L are drawn in the profit colour when they are zero or positive and in the loss colour when they are negative. The drawdown turns to the loss colour when it reaches InpDDWarn percent. The values are refreshed on every tick and every three seconds by a timer, so they stay current on quiet markets.

The panel size and the offsets are scaled by the screen DPI, so the text does not overlap on high-resolution screens. The panel can be placed in any of the four chart corners. All objects are removed when the indicator is deleted from the chart.

Input parameters

  • InpCorner - chart corner the panel is anchored to (default lower left).
  • InpX - horizontal offset from the corner in pixels at 96 dpi (default 20).
  • InpY - vertical offset from the corner in pixels at 96 dpi (default 20).
  • InpFontSize - font size of all labels (default 10).
  • InpTextColor - colour of the labels (default WhiteSmoke).
  • InpValueColor - colour of the values (default Gold).
  • InpProfitColor - colour of a zero or positive P/L (default LimeGreen).
  • InpLossColor - colour of a negative P/L and of a large drawdown (default Tomato).
  • InpBgColor - panel background colour (default Black).
  • InpDDWarn - drawdown in percent from which the drawdown value is shown in the loss colour (default 10.0).

The indicator only draws objects and has no buffers. It does not place or manage trades.

Account information panel on EURUSD H1

Close All Positions with Symbol, Magic, Direction and Profit Filters Close All Positions with Symbol, Magic, Direction and Profit Filters

A script that closes open positions in one click, with filters for chart symbol, magic number, buy/sell direction and profit/loss state. Works on netting and hedging accounts.

Previous Day High/Low with First Touch Marker Previous Day High/Low with First Touch Marker

Draws the previous day's high and low over each day and marks the first touch of each level, with an optional alert.

ATR Stop Distance and Risk-Based Lot Size Panel ATR Stop Distance and Risk-Based Lot Size Panel

Panel that shows the ATR of the last closed bar, a stop-loss distance derived from it, the money at risk for a chosen percentage of the balance and the lot size that matches that risk.

Six-Timeframe EMA Trend Direction Panel Six-Timeframe EMA Trend Direction Panel

Compares a fast and a slow EMA on M5, M15, M30, H1, H4 and D1 and shows UP, DOWN or FLAT for each timeframe in one panel on the chart.