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
to delete - the function is more complicated there
there are some indicators that also have numbers.
here is a picture of indicator names
for deletion - there is a more complicated function
Then how can I use the MQL5 manual if everything is clearly spelled out there?
I delete by the prefix. Or maybe I do not understand something?
Sincerely, Vladimir.
Then how can I use the MQL5 handbook if it's all clearly spelled out there?
I delete by the prefix. Or maybe I do not understand something?
Sincerely, Vladimir.
I have never used the Handbook - I just do it by poking until it works.
Here's a script I made.
Dear forum professionals!
Can someone please tell me if I misunderstand the meaning of the word prefix in programming?
Respectfully, Vladimir.
Dear forum professionals!
Can someone please tell me if I misunderstand the meaning of the word prefix in programming?
Sincerely, Vladimir.
The same as in Russianhttps://www.linguee.com/english-russian/translation/code+prefix.html
For example: ENUM_ORDER_TYPE_FILLING -> The prefix in this case is enumeration, then _order_type_functionThen how can I use the MQL5 handbook if it's all clearly spelled out there?
I delete by the prefix. Or maybe I do not understand something?
Sincerely, Vladimir.
I think you do not have a window index.
You don't seem to have a window index.
Hello Valery!
In the code line I wrote the chart_id of the window "0", i.e. the current chart
or do you mean "-1" after the prefix? Is it like that?
I tried it that way too. It would not delete it anyway.
Sincerely, Vladimir.
Hello Valery!
In the code line, I put the chart_id of the window "0", i.e. the main chart window
or do you mean that there is still a "-1" after the prefix? Is it like that?
If so, I also tried it - it still does not delete.
Regards, Vladimir.
I usually use print or alerts, after getting a handle, display it in the alert, and if you can, the indicator name and window index and chart identifier, after the deletion, display the return of the delete function in the alert. The first zero is the chart identifier and after the prefix the window index.
https://www.mql5.com/ru/docs/chart_operations/chartindicatordelete
"Removing an indicator from a chart does not mean that the calculation part of the indicator will also be removed from the terminal memory. To release indicator handle, use IndicatorRelease() function".
Usually I step through the print or alerts, after getting a handshake output it to the alert, and if you can name the indicator and the window index and chart identifier, after deletion output the return of the delete function to the alert. The first zero is the chart identifier and after the prefix the window index.
We remove the indicator from the chart using the
ChartIndicatorDelete(
long chart_id, // chart identifier
int sub_window // number of the subwindow
const string indicator_shortname // short indicator name
);