Six months ago someone posted a script to print zig-zag values (time and rate) to a CSV file to work in EXCEL. Now I can't find it. Maybe someone has it?
Six months ago someone posted a script to print zig-zag values (time and rate) to a CSV file to work in EXCEL. Now I can't find it. Maybe someone has it?
ToLik_SRGV: Sergei, sometimes it's easier to write a script yourself than to search :))) Parameter isAllZigZagDate defines to write only last ZigZag's point (by default) or all history.P.S. To throw in a codebase not to search then or it is not necessary?
Thank you, Anatoly. That's right, it's faster to write it yourself than to find it. Thanks for the script. Better of course to throw in the codebase, too, maybe someone else will be needed. Otherwise, branches are disappearing :). I also wrote mine, or rather "assembled from what was:
My EA displays information in a separate indicator window. How can I make the data in this window be updated immediately when the TF changes and not with the arrival of a new tick?
artmedia70: My EA displays the information in a separate indicator window. How to make, that at change of TF the data in the window would be updated immediately, and not with the arrival of a new tick?
Write a call for refreshing the necessary data in init()
ZS: at the weekend I wrote a full code of quotation unloader in the init, it worked fine without ticks - it just looped the unloading on start and received data
artmedia70: My EA displays information in a separate indicator window. How can I make the data in the window update immediately when the TF changes and not with the arrival of a new tick?
HH: at the weekend I wrote a full code of quotation unloader in the init, it worked fine without ticks - it just looped unloading on start and received data
I.e. I need to add in the init() of EA a call of function to output the information in the indicator window?
I have this function in the empty indicator window. But the data is updated only on a new tick.
#property indicator_separate_window#property indicator_minimum 1#property indicator_maximum 10bool initFinished=false;
// добавляем переменную, которая будет запоминать состояние инициализации.// false - инициализации еще не было// true - была//+------------------------------------------------------------------+//| Custom indicator initialization function |//+------------------------------------------------------------------+int init()
{
return(0);
}
//+------------------------------------------------------------------+//| Custom indicator deinitialization function |//+------------------------------------------------------------------+int deinit()
{
ObjectsDeleteAll();
// удаляем все объектыreturn(0);
}
//+------------------------------------------------------------------+//| Custom indicator iteration function |//+------------------------------------------------------------------+int start()
{
if(initFinished==false)
{
IndicatorShortName("Info");
int winID=WindowFind("Info");
if(winID<0)
{
// если номер подокна равен -1, то возникла ошибка
Print("Чёт не могу твоего окошечка найти, пошел я отсюдова");
return(0);
}
//------------------------ Тут можно рисовать ------------------------- // ----------------------- Но не нужно... ----------------//-------------------------------------------------------------------------
WindowRedraw();
initFinished=true;
}
return(0);
}
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.
Six months ago someone posted a script to print zig-zag values (time and rate) to a CSV file to work in EXCEL. Now I can't find it. Maybe someone has it?
Six months ago someone posted a script to print zig-zag values (time and rate) to a CSV file to work in EXCEL. Now I can't find it. Maybe someone has it?
Discussed here and here and also this indicator.
ToLik_SRGV, thanks, I've read these threads. There was a script. Missing apparently a branch or post.
ToLik_SRGV, thanks, I've read these threads. There was a script. Missed apparently branch or post.
Sergei, sometimes it's easier to write a script yourself than to look for it :)))
The isAllZigZagDate parameter defines whether only the last ZigZag point should be written (by default) or all history.
P.S.
Shall I throw it into the codebase so that I won't have to search for it later?
Thank you, Anatoly. That's right, it's faster to write it yourself than to find it. Thanks for the script. Better of course to throw in the codebase, too, maybe someone else will be needed. Otherwise, branches are disappearing :). I also wrote mine, or rather "assembled from what was:
My EA displays the information in a separate indicator window. How to make, that at change of TF the data in the window would be updated immediately, and not with the arrival of a new tick?
Write a call for refreshing the necessary data in init()
ZS: at the weekend I wrote a full code of quotation unloader in the init, it worked fine without ticks - it just looped the unloading on start and received data
My EA displays information in a separate indicator window. How can I make the data in the window update immediately when the TF changes and not with the arrival of a new tick?
Using the WindowRedraw() function;
Write a call to update required data in init()
HH: at the weekend I wrote a full code of quotation unloader in the init, it worked fine without ticks - it just looped unloading on start and received data
Using the WindowRedraw() function;
I have this function in the empty indicator window. But the data is updated only on a new tick.