Эксперт использует для генерации ренко пользовательские финансовые инструменты. Это позволяет применять к графикам ренко как к стандартным графикам - любые индикаторы, а также торговать на них вручную или другими экспертами. Единственное отличие от торговли на стандартном графике заключается в том, что здесь сделки следует открывать не по пользовательскому сгенерированному символу, а по исходному (на основе которого строится ренко).
Альтернативой пользовательским символам при построении ренко мог бы быть индикатор или рисование (с помощью объектов или на холсте (canvas)), но в обоих случаях невозможно было бы применять индикаторы и накладывать эксперты на такой псевдо-график ренко. Подробности относительно адаптации экспертов к торговле на кастом-символах приведены в блоге (см. ссылку выше на английском).
Все ренко кирпичи формируются на таймфрейме M1. Это сделано намеренно, так как возможны ситуации когда ренко бары формируются очень быстро один за другим - например при высокой волатильности - и время между барами должно быть минимальное из возможных. Минута - это минимальное расстояние, которое МТ5 позволяет иметь между барами. К сожалению, иногда несколько баров ренко должно быть сформировано внутри одной минуты. Поскольку МТ5 этого не позволяет, эксперт в таком случае генерирует бары как последовательности сопряженных баров M1, в результате чего формальное время ренко баров не совпадает с фактическим. Например, при размере ренко 100 пунктов движение в 300 пунктов, случившееся в 12:00:00 и занявшее 10 секунд, должно было бы создать ренко бары 12:00:00, 12:00:05, 12:00:10. Вместо этого эксперт сгенерирует бары 12:00, 12:01, 12:02. Когда такое случается в истории котировок, может возникнуть проблема, что такие перенесенные из прошлого ренко кирпичи наложатся на другие, формируемые их последующих баров исходного графика. Допустим, что в 12:02 случилось очередное движение на 100 пунктов и, соответственно, надо бы сгенерировать ренко кирпич с временем открытия 12:02, но оно уже занято! В результате таких наложений и сдвигов ренко будет не совсем корректным.
Особо следует отметить, что подобная ситуация с сильным движением и генерацией нескольких кирпичей "передним числом" возможна и в реальном времени - тогда бары будут фактически формироваться в будущем! Так в нашем примере в 12:00:10 уже будут ренко бары со временем открытия 12:00, 12:01, 12:02! Это может повлиять на анализ и торговлю по ренко.
Для решения данной проблемы существует только 2 обходных маневра:
- увеличить размер ренко кирпича;
- разместить эксперт на более старшем таймфрейме исходного символа;
Оба варианта имеют недостаток, который можно описать как ухудшение точности построения ренко - т.е. структура ренко хоть и останется правильной, но в ней будет меньше кирпичей и фиксируются более грубые движения котировок.
Из-за особенностей платформы МТ5, эксперт генерирует фиктивные тики со временем, равным времени открытия последнего ренко бара. Их единственная цель - запустить обработчик OnTick в торгующем эксперте. Если бы тики транслировались с исходного символа на пользовательский без изменений, это испортило бы саму структуру ренко. Так, продолжая пример с сильным движением, рассмотренный выше, можно попробовать в 12:00:10 отправить тик на ренко чарт с фактическим временем. Однако время этого тика будет соответствовать не последнему (текущему) бару 0, а уже бару номер 2 с временем открытия 12:00. В результате такой тик испортит ренко кирпич 12:00 (находящийся в истории) или выдаст ошибку. Возможно разрушение ренко и симметричным образом - "медленными" движениями. Если котировки долго находятся в диапазоне одного кирпича, на ренко он остается с прежним временем открытия, однако новые тики могут иметь время, более чем на минуту превышающее 0-й бар ренко. В результате из таких тиков - если их отправить на график ренко - будут формироваться фантомные бары (кирпичи) в "будущем".
Обратите внимание, что тики не формируются на истории.
Hi Stanislav, it would be great, you coult insert a parameter to limit the processing bars in creating renkocharts. so a smaller laptop can create that renko.
it would be great, you coult insert a parameter to limit the processing bars in creating renkocharts. so a smaller laptop can create that renko.
Hi, thank you for your suggestion, I'll consider it. What is your setup that you have 100000 renko boxes? For example, if you have a limit 100000 bars in charts, and apply renko on M1 chart, then, assuming that renko box size is much larger than average M1 bar, you'll get significantly smaller number of renko boxes.
Hi, thank you for your suggestion, I'll consider it. What is your setup that you have 100000 renko boxes? For example, if you have a limit 100000 bars in charts, and apply renko on M1 chart, then, assuming that renko box size is much larger than average M1 bar, you'll get significantly smaller number of renko boxes.
you see i have installed your programs Ma2Cross2 and it works perfect you see in the picture, but only in testmode not in real. In real the orders comes allways to late >500 pips so i lose my money. I want to test the program with renko 1 also on pip level. For that i need only renkos for 1 week.
Maybe you have an idea what i can do that test and real is the same
you see i have installed your programs Ma2Cross2 and it works perfect you see in the picture, but only in testmode not in real. In real the orders comes allways to late >500 pips so i lose my money. I want to test the program with renko 1 also on pip level. For that i need only renkos for 1 week.
Maybe you have a idea what i can do that test and real is the same
regards Thomas
Did you optimize? What is your settings? Does the first example MA2Cross operate differently? I don't understand your phrase highlighted in bold. If there is a problem, not matter if it's 1 week or more, you can test on required period. What is UsaInd - is it standard symbol from your broker?
In general, I can't answer your question without more info. You can send details to me via PM. In any way I will be able only to test the case on a symbol existing on my broker or MQ-Demo, they don't have UsaInd. Do you have the same issues on EURUSD or other majors?
"Base of ticks WINQ19_M1_r20 is damaged, please check and fix; expert is disabled"
Where WINQ19 is the Symbol I am using it, M1 is the timeframe and r20 is the Renko Box Size.
It was running fine for some days, now it stoped working.
How to fix it?
Thanks.
I'm afraid you should stop the expert, manually remove the custom chart, remove the custom symbol (make sure the custom symbol files are
removed from the file system (look at \Bases\Custom), because MT5 may postpond their deletion, but if they are not deleted then they will be
consumed by the next step and produce the same error), and then restart the expert to re-create the custom symbol anew.
I'm afraid you should stop the expert, manually remove the custom chart, remove the custom symbol (make sure the custom symbol files are
removed from the file system (look at \Bases\Custom), because MT5 may postpond their deletion, but if they are not deleted then they
will be consumed by the next step and produce the same error), and then restart the expert to re-create the custom symbol anew.
Thanks, it worked.
I am using your EA because it is the closest thing I could find to MT4 offline charts. I need this because I run my own EAs on the renko charts and
my current brokers only uses MT5.
The market I work on only works during comercial hours (9 am to 6 pm). To avoid this problem from happening during working hours, do you think it
is a good idea to close and restart MT5 every evening? Or it won't change anything?
What should I do to avoid this from happening again? (it could cause me to lose money if it happens when my EA is positioned).
I am using your EA because it is the closest thing I could find to MT4 offline charts. I need this because I run my own EAs on the renko charts
and my current brokers only uses MT5.
The market I work on only works during comercial hours (9 am to 6 pm). To avoid this problem from happening during working hours, do you
think it is a good idea to close and restart MT5 every evening? Or it won't change anything?
What should I do to avoid this from happening again? (it could cause me to lose money if it happens when my EA is positioned).
Thanks.
MetaQuotes do not provide information about custom symbols' internals (how they process bars/ticks) nor support on internal errors in the platform
(the service desk was closed some time ago). I'm using standard MQL5 API, and the internal errors of the kind are out of my control.
For deeper investigation you may send me your logs with errors (if you still keep the logs). They may contain additional info.
At this time, to answer your questions, i can only suggest you to try to figure out which situation may lead to the error and eliminate this
situation in future. I'm not sure if closing/restarting MT5 will help. This is definitely related to the order and speed of online ticks
arriving to the terminal.
We can discuss how to minimize your potential losses in PM, but I don't have ready-made solutions.
A special time-limited offer - introductory discount 33% till the end of summer 2018
You may find more details about the custom renko chart in my blog, including:
Некоторые нюансы
Эксперт использует для генерации ренко пользовательские финансовые инструменты. Это позволяет применять к графикам ренко как к стандартным графикам - любые индикаторы, а также торговать на них вручную или другими экспертами. Единственное отличие от торговли на стандартном графике заключается в том, что здесь сделки следует открывать не по пользовательскому сгенерированному символу, а по исходному (на основе которого строится ренко).
Альтернативой пользовательским символам при построении ренко мог бы быть индикатор или рисование (с помощью объектов или на холсте (canvas)), но в обоих случаях невозможно было бы применять индикаторы и накладывать эксперты на такой псевдо-график ренко. Подробности относительно адаптации экспертов к торговле на кастом-символах приведены в блоге (см. ссылку выше на английском).
Все ренко кирпичи формируются на таймфрейме M1. Это сделано намеренно, так как возможны ситуации когда ренко бары формируются очень быстро один за другим - например при высокой волатильности - и время между барами должно быть минимальное из возможных. Минута - это минимальное расстояние, которое МТ5 позволяет иметь между барами. К сожалению, иногда несколько баров ренко должно быть сформировано внутри одной минуты. Поскольку МТ5 этого не позволяет, эксперт в таком случае генерирует бары как последовательности сопряженных баров M1, в результате чего формальное время ренко баров не совпадает с фактическим. Например, при размере ренко 100 пунктов движение в 300 пунктов, случившееся в 12:00:00 и занявшее 10 секунд, должно было бы создать ренко бары 12:00:00, 12:00:05, 12:00:10. Вместо этого эксперт сгенерирует бары 12:00, 12:01, 12:02. Когда такое случается в истории котировок, может возникнуть проблема, что такие перенесенные из прошлого ренко кирпичи наложатся на другие, формируемые их последующих баров исходного графика. Допустим, что в 12:02 случилось очередное движение на 100 пунктов и, соответственно, надо бы сгенерировать ренко кирпич с временем открытия 12:02, но оно уже занято! В результате таких наложений и сдвигов ренко будет не совсем корректным.
Особо следует отметить, что подобная ситуация с сильным движением и генерацией нескольких кирпичей "передним числом" возможна и в реальном времени - тогда бары будут фактически формироваться в будущем! Так в нашем примере в 12:00:10 уже будут ренко бары со временем открытия 12:00, 12:01, 12:02! Это может повлиять на анализ и торговлю по ренко.
Для решения данной проблемы существует только 2 обходных маневра:
- разместить эксперт на более старшем таймфрейме исходного символа;
Оба варианта имеют недостаток, который можно описать как ухудшение точности построения ренко - т.е. структура ренко хоть и останется правильной, но в ней будет меньше кирпичей и фиксируются более грубые движения котировок.
Из-за особенностей платформы МТ5, эксперт генерирует фиктивные тики со временем, равным времени открытия последнего ренко бара. Их единственная цель - запустить обработчик OnTick в торгующем эксперте. Если бы тики транслировались с исходного символа на пользовательский без изменений, это испортило бы саму структуру ренко. Так, продолжая пример с сильным движением, рассмотренный выше, можно попробовать в 12:00:10 отправить тик на ренко чарт с фактическим временем. Однако время этого тика будет соответствовать не последнему (текущему) бару 0, а уже бару номер 2 с временем открытия 12:00. В результате такой тик испортит ренко кирпич 12:00 (находящийся в истории) или выдаст ошибку. Возможно разрушение ренко и симметричным образом - "медленными" движениями. Если котировки долго находятся в диапазоне одного кирпича, на ренко он остается с прежним временем открытия, однако новые тики могут иметь время, более чем на минуту превышающее 0-й бар ренко. В результате из таких тиков - если их отправить на график ренко - будут формироваться фантомные бары (кирпичи) в "будущем".
Обратите внимание, что тики не формируются на истории.
Hi Stanislav,
it would be great, you coult insert a parameter to limit the processing bars in creating renkocharts. so a smaller laptop can create that renko.
and i dont need 99999 bars
regards Thomas
it would be great, you coult insert a parameter to limit the processing bars in creating renkocharts. so a smaller laptop can create that renko.
Hi, thank you for your suggestion, I'll consider it. What is your setup that you have 100000 renko boxes? For example, if you have a limit 100000 bars in charts, and apply renko on M1 chart, then, assuming that renko box size is much larger than average M1 bar, you'll get significantly smaller number of renko boxes.
Hi, thank you for your suggestion, I'll consider it. What is your setup that you have 100000 renko boxes? For example, if you have a limit 100000 bars in charts, and apply renko on M1 chart, then, assuming that renko box size is much larger than average M1 bar, you'll get significantly smaller number of renko boxes.
you see i have installed your programs Ma2Cross2 and it works perfect you see in the picture, but only in testmode not in real. In real the orders comes allways to late >500 pips so i lose my money. I want to test the program with renko 1 also on pip level. For that i need only renkos for 1 week.
Maybe you have an idea what i can do that test and real is the same
sorry my english, i'm german
regards Thomas
you see i have installed your programs Ma2Cross2 and it works perfect you see in the picture, but only in testmode not in real. In real the orders comes allways to late >500 pips so i lose my money. I want to test the program with renko 1 also on pip level. For that i need only renkos for 1 week.
Maybe you have a idea what i can do that test and real is the same
regards Thomas
Did you optimize? What is your settings? Does the first example MA2Cross operate differently? I don't understand your phrase highlighted in bold. If there is a problem, not matter if it's 1 week or more, you can test on required period. What is UsaInd - is it standard symbol from your broker?
In general, I can't answer your question without more info. You can send details to me via PM. In any way I will be able only to test the case on a symbol existing on my broker or MQ-Demo, they don't have UsaInd. Do you have the same issues on EURUSD or other majors?
i work with that parameters
Signal timeframe must be always M1 for renko custom symbol. I don't know what is your "current" timeframe, referred by given settings.
yes i have done optimize.
yes it's the symbol for dow, value at the moment 25024.59
i have the same effect in all symbols like GER30 or EURUSA
what is PM?
its privat mail?
what is PM?
its privat mail?
PM stands for private messaging here on the site. Check SignalTimeframe first, if it's not M1, this may be the reason of your problem.
Hi, I am getting the following error message:
"Base of ticks WINQ19_M1_r20 is damaged, please check and fix; expert is disabled"
Where WINQ19 is the Symbol I am using it, M1 is the timeframe and r20 is the Renko Box Size.
It was running fine for some days, now it stoped working.
How to fix it?
Thanks.
Hi, I am getting the following error message:
"Base of ticks WINQ19_M1_r20 is damaged, please check and fix; expert is disabled"
Where WINQ19 is the Symbol I am using it, M1 is the timeframe and r20 is the Renko Box Size.
It was running fine for some days, now it stoped working.
How to fix it?
Thanks.
I'm afraid you should stop the expert, manually remove the custom chart, remove the custom symbol (make sure the custom symbol files are removed from the file system (look at \Bases\Custom), because MT5 may postpond their deletion, but if they are not deleted then they will be consumed by the next step and produce the same error), and then restart the expert to re-create the custom symbol anew.
I'm afraid you should stop the expert, manually remove the custom chart, remove the custom symbol (make sure the custom symbol files are removed from the file system (look at \Bases\Custom), because MT5 may postpond their deletion, but if they are not deleted then they will be consumed by the next step and produce the same error), and then restart the expert to re-create the custom symbol anew.
Thanks, it worked.
I am using your EA because it is the closest thing I could find to MT4 offline charts. I need this because I run my own EAs on the renko charts and my current brokers only uses MT5.
The market I work on only works during comercial hours (9 am to 6 pm). To avoid this problem from happening during working hours, do you think it is a good idea to close and restart MT5 every evening? Or it won't change anything?
What should I do to avoid this from happening again? (it could cause me to lose money if it happens when my EA is positioned).
Thanks.
Thanks, it worked.
I am using your EA because it is the closest thing I could find to MT4 offline charts. I need this because I run my own EAs on the renko charts and my current brokers only uses MT5.
The market I work on only works during comercial hours (9 am to 6 pm). To avoid this problem from happening during working hours, do you think it is a good idea to close and restart MT5 every evening? Or it won't change anything?
What should I do to avoid this from happening again? (it could cause me to lose money if it happens when my EA is positioned).
Thanks.
MetaQuotes do not provide information about custom symbols' internals (how they process bars/ticks) nor support on internal errors in the platform (the service desk was closed some time ago). I'm using standard MQL5 API, and the internal errors of the kind are out of my control.
For deeper investigation you may send me your logs with errors (if you still keep the logs). They may contain additional info.
At this time, to answer your questions, i can only suggest you to try to figure out which situation may lead to the error and eliminate this situation in future. I'm not sure if closing/restarting MT5 will help. This is definitely related to the order and speed of online ticks arriving to the terminal.
We can discuss how to minimize your potential losses in PM, but I don't have ready-made solutions.