If you create a duplicate of an object in a chart using the pressed cntrl button, the id == CHARTEVENT_OBJECT_CREATE event is caught in the Expert Advisor
If I delete this object from the Expert Advisor, the error 4202 - Object does not exist will pop up. At the same time, the object is already on the chart.
What to do? How do I delete the object?
if(id == CHARTEVENT_OBJECT_CREATE)
{
Print("New object create", sparam);
if(!ObjectDelete(sparam))
{
Print(" error remove ", GetLastError(), " ",sparam); //здесь будет ошибка 4202. Хотя это событие срабатывает когда объект есть на графике!
}
}
If you create a duplicate of an object in a chart using the pressed cntrl button, the id == CHARTEVENT_OBJECT_CREATE event is caught in the Expert Advisor
If I delete this object from the Expert Advisor, the error 4202 - Object does not exist will pop up. At the same time, the object is already on the chart.
What to do? How do I delete the object?
This is not a glitch, this is a feature) The user is holding the object with the mouse - it cannot be deleted.
Wait until the mouse button is released and then delete it.
Hi all! who can help to tweak the code of an indicator... 1. Invert the fibo, i.e. the fibo is stretched towards the formed zigzag stick 2. Add a parameter in the settings to set the allert to a specified level...., i.e. I manually specify the level at which I want it to buzz and show the allert point... Should be something like 1-2-3
btc.mmd: Hi all! can help me fix the indicator 1. Turn the fibo, i.e. the fibo is stretched towards the formed stick zigzag 2. Add the parameter "set allert to a specified level....", i.e. I manually indicate the level at which I want it to buzz and show the allert point...
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.
Thank you. So it's only in mt5. If anyone knows how to add an indicator from an EA, please let me know
You can also save Indicators and Expert on a template and as the function works - will install you an Expert together with the Indicators.
mt4 documentationhttps://docs.mql4.com/ru/chart_operations/chartapplytemplate
mt5documentationhttps://www.mql5.com/ru/docs/chart_operations/chartapplytemplate
You can also save Indicators and Expert on a template and when the function works it will install you an Expert together with the Indicators.
mt4 documentationhttps://docs.mql4.com/ru/chart_operations/chartapplytemplate
mt5 documentationhttps://www.mql5.com/ru/docs/chart_operations/chartapplytemplate
thanks for the answers. But I need it without any preliminaries.
Funny glitch in MT4
If you create a duplicate of an object in a chart using the pressed cntrl button, the id == CHARTEVENT_OBJECT_CREATE event is caught in the Expert Advisor
If I delete this object from the Expert Advisor, the error 4202 - Object does not exist will pop up. At the same time, the object is already on the chart.
What to do? How do I delete the object?
Thanks for the answers. But you have to do it without any preliminaries.
First, you take the required indicator and add to it the parameters you need - period, TF, line width, line colour, etc.
You save it under a different name. Compile it. In the Expert Advisor in OnInit() or in any other place (not in OnTick()) add your indicator
First you take the required indicator and add the required parameters to its input - period, TF, line width, line colour, etc.
Save it under a different name. Compile it. In the Expert Advisor in OnInit() or in any other place (not in OnTick()) add your indicator
Funny glitch in MT4
If you create a duplicate of an object in a chart using the pressed cntrl button, the id == CHARTEVENT_OBJECT_CREATE event is caught in the Expert Advisor
If I delete this object from the Expert Advisor, the error 4202 - Object does not exist will pop up. At the same time, the object is already on the chart.
What to do? How do I delete the object?
This is not a glitch, this is a feature)
The user is holding the object with the mouse - it cannot be deleted.
Wait until the mouse button is released and then delete it.
this is not a glitch but a feature)
the user is holding an object with the mouse - there is no way to delete it.
Wait until the mouse button is released and then delete.
Thank you very much! It really is a bug)) Sorted it out. Everything works now!
who can help to tweak the code of an indicator...
1. Invert the fibo, i.e. the fibo is stretched towards the formed zigzag stick
2. Add a parameter in the settings to set the allert to a specified level...., i.e. I manually specify the level at which I want it to buzz and show the allert point...
Should be something like 1-2-3
Thanks in advance ....
Example on screenshot, code attached....
Hi all!
can help me fix the indicator
1. Turn the fibo, i.e. the fibo is stretched towards the formed stick zigzag
2. Add the parameter "set allert to a specified level....", i.e. I manually indicate the level at which I want it to buzz and show the allert point...
Should turn out something like 1-2-3
Thanks in advance ....
Example on screenshot, code attached....
For starters, remove your spoofing and paste the code in a human way.
Hi folks!
Can you tell me why nothing is displayed on the chart when you put this indicator on?
It compiles without errors, rsi_channel is in the folder...don't understand(