int init()
{
//handle=FileOpen("COT - U.S. DOLLAR CONCATENATE.csv",FILE_READ|FILE_CSV);//if(handle==-1)Print("Не удается загрузить файл");if(init_data()==false)error=true;
if(error==false)load_data();
if(error==false)count_data();
//if(error==true)Print("---------->>>>>>> ERORR!!! <<<<<<<<<--------------");// setparam();Print ("Инит завершён успешно, error = ",error);
return (0);
}
//+------------------------------------------------------------------+//| Завершение работы робота |//+------------------------------------------------------------------+int deinit()
{
Print (" Завершение работы робота ");
return (0);
}
int start()
{
// if(iTime(Symbol(),0,0) == prevtime) return(0); //ждем нового бара// prevtime = iTime(Symbol(),0,0); //если появился новый бар , включаемся Print (" Старт после нового бара");
setparam();
I'm writing ZigZag. There are 2 problems: 1. Inadequate rendering of the last ray (see picture in GREEN). 2. For the indicator to draw new fractures, you have to forcibly restart the indicator.
I'm writing ZigZag. There are 2 problems: 1. Inadequate rendering of the last beam (see picture in GREEN). 2. For the indicator to draw new fractures, it is necessary to restart the indicator forcibly.
Good evening! Please help me to write a simple indicator (Expert Advisor) for breakdown of horizontal levels. I've written everything, but I can't find any errors. The alerts do not work.
The idea for the indicator: - setting two horizontal levels (can be moved manually to the desired level). - When price crosses the top level from bottom to top, an alert is triggered. - When price crosses the bottom level from top to bottom, an alert will be triggered.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Even so:
Why isn't it coming out, it says it's successful?
I can't get it to work, it says it compiled successfully?
Why does it not print further in de-init and startup PRINTS? The expo compiles successfully - no errors.
HELP ME OUT HERE? PLEASE!
Why doesn't the tester go into de-init and start?
Build 765
Got it. Everything has to be glamorous now... :-)
Good afternoon, gentlemen programmers!
I'm writing ZigZag. There are 2 problems:
1. Inadequate rendering of the last ray (see picture in GREEN).
2. For the indicator to draw new fractures, you have to forcibly restart the indicator.
What can it be? I've already racked my brains :)
Good afternoon, gentlemen programmers!
I'm writing ZigZag. There are 2 problems:
1. Inadequate rendering of the last beam (see picture in GREEN).
2. For the indicator to draw new fractures, it is necessary to restart the indicator forcibly.
What can it be? I've already racked my brains :)
The first problem seems to have been solved by inserting buffer zeroing.
But the second problem is still a mess...
The code is in the attached file.
The second issue has also been dealt with. The discussion and code options herehttps://www.mql5.com/ru/forum/127756 helped.
Please help me to write a simple indicator (Expert Advisor) for breakdown of horizontal levels.
I've written everything, but I can't find any errors. The alerts do not work.
The idea for the indicator:
- setting two horizontal levels (can be moved manually to the desired level).
- When price crosses the top level from bottom to top, an alert is triggered.
- When price crosses the bottom level from top to bottom, an alert will be triggered.