Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 693
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
The array is only written to a .bin file and to open it for reading by eye... I don't know of such an application, it is unlikely to exist. In order to be able to read what is written, it must be written to .csv or .txt format, respectively, with other functions in a loop, not with FileWriteArray().
how to correct the error?
Do this.
Hi.
Question: In MT4, is it possible to match the colour of the EZ buffer with the chart, provided the colour of the indicator on the chart has changed?
In the code
#property indicators_color1 clrYellow
***
***
ObjectCreate(.......);
ObjectSetInteger(... indicators_color1);
Problem; when you change colour in the indicator, the buffer line colour changes, but in the chart it is the same as in #property. Needs matching.
So far solved through input color , BUT it's two entries in the code, two changes in the settings, and I would like one setting through the buffer.
Thanks for any feedback.
Diagrammed it from a smartphone.
Hi.
Question: In MT4, is it possible to match the colour of the EZ buffer with the chart, provided the colour of the indicator on the chart has changed?
In the code
#property indicators_color1 clrYellow
***
***
ObjectCreate(.......);
ObjectSetInteger(... indicators_color1);
Problem; when you change colour in the indicator, the buffer line colour changes, but in the chart it is the same as in #property. Needs matching.
So far solved through input color , BUT it's two entries in the code, two changes in the settings, and I would like one setting through the buffer.
Thanks for any feedback.
Diagrammed it from a smartphone.
It should work. Do you delete the object in OnDeinit() to create a new one when you change the input parameters, with the colour you want ?
If you know how to create an exact object name, there is no point in going through all the objects in the graph.
It is enough to go through these (assumed) names.
Thank you.
@Vitaly Muzichenko
The code is Magenta.
Dots are a buffer. The line is a graphic. This is the problem. The colour from global variable to the lineObjectSetInteger(...indicators_color1) does NOT GET when changing!!!! I think the#property indicators_color1 clrMagenta changes in the attached chart refers ONLY to the buffer... The rest of the value is used in the code as the global variable....
Correct if wrong. SPS
It should work. Are you deleting an object in OnDeinit() to create a new one when the input parameters are changed, with the colour you want ?
Hi.
Question: In MT4, is it possible to coordinate colour from the buffer with the chart, if the indicator colour is changed on the chart?
NO, CANNOT...
it's funny, but you can NOT get what the user selected in the "Colours" tab inside the indicator