Equity and balance graph - page 41

 
Thanks :)
 

thank you :)


@Xupypr

You can use ft.AutoRefresh from ForexTools & jartmailru

New way of working with indicators

//+------------------------------------------------------------------+
//|                                               ft.AutoRefresh.mq4 |
//|                                                   Кравчук Сергей |
//|                                         http://forextools.com.ua |
//+------------------------------------------------------------------+
#property copyright "Кравчук Сергей"
#property link      "http://forextools.com.ua"
#property show_inputs 

#import "user32.dll"
   int      RegisterWindowMessageA(string lpstring);
   int      PostMessageA(int hWnd,int Msg,int wParam,int lParam);

extern double frequency = 1.0; // частота обновления графика в секундах

int start()
{
  int hwnd = WindowHandle(Symbol(),Period());
  while(!IsStopped())
  {
    int MT4InternalMsg = RegisterWindowMessageA("MetaTrader4_Internal_Message"); 
    PostMessageA( hwnd, MT4InternalMsg,2,1); 
    Sleep( frequency*1000);
  }
}
jartmailru
#define WM_COMMAND   0x0111
#include <WinUser32.mqh> // Заголовочный файл библиотеки "user32.dll" функций API Windows XP.
void start()
{
    int HandlWindow=WindowHandle(Symbol(),Period());        
    for(;;)
    {
        if(IsStopped()) {return;}
		PostMessageA ( HandlWindow, WM_COMMAND, 33324, 0); // Обновляем окно.
		PostMessageA ( HandlWindow, WM_COMMAND, 2, 1); // Эммуляция тика для эксперта.
        Sleep(300);
        WindowRedraw();
    }
}
 
Xupypr >> :

What's new:

1. displaying statistics on transactions.

2. Comments can be added to the description of the vertical line.

3. Trend lines can be plotted into the future (time-based pending orders).

4. Total profit and profit by buy/sell is fixed in the description of horizontal lines.

5. Additional information added to the alert (current instrument and period).

6. Added parameter Auto_Symbol - description of all trend lines changes automatically. Tracking of the instrument and the direction. The result of the deal is determined only by the colour of the line (red - loss, blue - profit).


great stuff !!!!! 1000 points !!!

Valaica tribute for this robot!!!!!

a couple more colours for a different strategy in the same graphic...

 
FinGeR >> :

thank you :)


@Xupypr

You can use ft.AutoRefresh from ForexTools & jartmailru

New way of working with indicators

then in addition to auto-refresh, you should also add an option to "deselect all selections", say every 10 seconds

 
FinGeR писал(а) >>

You can use ft.AutoRefresh from ForexTools & jartmailru

New way of working with indicators

Yes, I am aware of that. I read this thread. I would add that the autorefresh script is needed when there is no connection or at weekends when there are no ticks coming in.

Geronimo wrote >>

Would also like a couple of colours for another strategy in the same chart...

Added and uploaded to CodeBase.
 
Xupypr >> :

Yeah, I'm aware of that. Been reading this thread. I should add that the auto-refresh script is needed when there is no connection or at weekends when no ticks come in.

Auto refresh and auto de-select speeds up the markup process anyway

as well as when the internet is switched off as everyone who saves bandwidth as well as learners or lurkers do

 
Geronimo >> :

Auto refresh and auto deselect speeds up the marking process in any case

>> and also when the internet is switched off, like everyone who saves bandwidth as well as those who are learning or lurking.


exactly

and the colours need 3-4 strategies

 
vote for auto-renew and auto-release of selections ("Deselect all selections" in the object menu)
 
Geronimo >> :
vote for auto update and auto deselections ("Deselect all" in the object menu)

I give my 10 points (out of a possible 10) for this

and propose also to introduce the possibility of vertical lines and on the chart as an option i.e. the default lines are true in the bottom window, and false then lines across the screen

otherwise it is difficult to match with the indicator in the window

 
med1um писал(а) >>

I'll give you 10 points (out of a possible 10) for this

Auto-refresh and deselecting objects is a matter of scripting. The scripts are ready-made. I wish I could add deselecting to them... but that's not up to me.

and I also suggest introducing the possibility of vertical lines and on a chart as an option i.e. the default lines are true in the bottom window, and false then lines across the screen

Otherwise, it is difficult to combine with the indicator in the window

It is possible.