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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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(