Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1827

 
Vladimir Makhnin ChartScreenShot function, but I don't know how to implement it

Do you want me to rewrite all the documentation here? Or do you want to read it there?

Example:

#property description "Советник демонстрирует создание серии скриншотов текущего графика"
#property description "с помощью функции ChartScreenShot(). Имя файла для удобства также"
#property description "выводится на график. Высота и ширина рисунков задается макросами."
 
Vladimir Makhnin ChartScreenShot function, but I don't know how to implement it

If you want an example of how to use it, here:


input int Screenshot_Seconds;
input datetime Starting_From;
input string ID_Name;

...

datetime now_time;
datetime screen_timer;

...

void MakeScreenshot()
  {
   if(Screenshot_Seconds<=0)
      return;

   if(now_time>screen_timer)
     {
      if(screen_timer==0)
         screen_timer=Starting_From;

      while(screen_timer<=now_time)
         screen_timer+=Screenshot_Seconds;

      string time_text=TimeToString(now_time,TIME_DATE|TIME_SECONDS);

      StringReplace(time_text,".","-");
      StringReplace(time_text,":","-");

      string name=ID_Name+"\\"+ID_Name+"-"+time_text+".gif";

      ChartScreenShot(chart,name,Screenshot_Width,Screenshot_Height);
     }
  }

here, screenshots are taken at set intervals Screenshot_Seconds starting from Starting_From time

the now_time variable should be updated in OnTick or OnTimer

 
Andrey Sokolov #:

What exactly is not working?

ChartScreenShot function
create - EA - do copy-paste - compile
Errors


 
Vladimir Makhnin #:

ChartScreenShot function
create - EA - make copy-paste - compile
Errors

***

A picture can be attached to a message using the button Attach file or inserted into a message using the button Image.

 
transcendreamer #:

If you want an example of how to use it, here:


here, screenshots are taken at set intervals Screenshot_Seconds starting from Starting_From time

the now_time variable should be updated in OnTick or OnTimer


Scolds points
I wanted forex testere 4 to take screenshots when testing manually, at least when closing a trade

 
Vladimir Makhnin #:

***
Scolds points
I wanted forex testere 4 to take screenshots when testing manually, at least when closing a trade

A picture can be attached to a message using the button Attach file or inserted into a message using the button Image.
 
Vladimir Makhnin #:

***
Scrutinized points
I wanted forex testere 4 to take screenshots when testing manually, at least when closing a trade

Well of course points don't need to be compiled! 😁

Dots means your code, your trading logic/analysis/calculations should be there, it's just an example.

 

Greetings Professionals and Beginners, need help.

How to insert an alert in this indicator that would signal when a given upper and lower level is crossed/touched?

Tried it myself but it doesn't work((

Files:
 
soleg #:

Greetings Professionals and Beginners, need help.

How to insert an alert in this indicator that would signal when a given upper and lower level is crossed/touched?

I tried it myself but it doesn't work((.

This code https://www.mql5.com/ru/code/16695 has an alert - you can add it to almost any indicator.

BrainTrend2SigAlert
BrainTrend2SigAlert
  • www.mql5.com
Семафорный сигнальный индикатор BrainTrend2Sig с подачей алертов, с отправкой почтовых сообщений и push-сообщений на смартфон.
 
soleg #:

Greetings Professionals and Beginners, need help.

How to insert an alert in this indicator that would signal when a given upper and lower level is crossed/touched?

I tried it myself but it doesn't work((.

Just make sure you enter your indicator correctly

   CUSTOM_Handle=iCustom(NULL,0,"Vertex mod",Control_Period);

EURUSDM1

Files:
Reason: