Account chart

 
Is there any indicator that create a M5 chart of my profit/loss of my open positions during the day?

Thanks
 

Create a new indicator with one line.

int start(){

ExtMapBuffer1[0] = AccountProfit();

return(0);

}


This should track your profit as you go forward, until it is restarted.

 
I will try.

Thanks
 

This is NOT a very sophisticated solution...


//+------------------------------------------------------------------+
//|                                              Current_Profits.mq4 |
//|                      Copyright © 2008, MetaQuotes Software Corp. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, MetaQuotes Software Corp."
#property link      "http://www.metaquotes.net"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Red
//---- buffers
double ExtMapBuffer1[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
  
   ExtMapBuffer1[0] = AccountProfit();
   return(0);
  }
//+------------------------------------------------------------------+
Reason: