Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1362

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
Here's the indicator:
Here's the expert:
Here is everything in one file:
Four is true, but so is five.You have compiled only Expert file.
Try to fill the indicator, at least with a simple graphic object, so that it is called by the Expert Advisor. Then, after compilation, rename or delete Res_Ind.ex4, as if you have sent to the Market only the Expert Advisor file. The client will receive a non-functional programme.
And you can't put the 2 files separately in the Market. That's the policy.
You have only the Expert file compiled.
Try to fill the indicator with at least simple graphical object, so that it is called by Expert Advisor. Then after compilation, rename or delete Res_Ind.ex4, as if you have sent to the Market only Expert file. The client will get a non-working program.
You can not be so stubborn ... It says that the indicator connected by the resource is included in the executable file of the Expert Advisor, so it is.
But the fact that your indicator draws graphical objects and EA has to read them is a big problem. Graphic objects are only available when testing with visualization and the autovalidator is testing without it, so it doesn't see the properties of objects...
It is said that the indicator connected by the resource is included in the EA's executable file, so it is.
Indicator in a separate window
Compile Indicator --> win.ex5.
Expert with the indicator in the resource
Compile the Expert Advisor --> exp.ex5.
Run the Expert Advisor, there is an indicator window on the chart.
Publish one file of the Expert Advisor exp.ex5 in the Market (actually delete the indicator file win.ex5)
Launch the Expert Advisor, there is no indicator window in the chart.
Restore the deleted file win.ex5.
Restore the Expert Advisor, there is an indicator window in the chart.
Conclusion: The indicator code is not included in the Expert code. For the normal operation of the Expert Advisor with a resource Indicator, we need an executable file of the Indicator specified in the resource.
I repeat my question:
how to publish in the Market when there is Expert with custom Indicator, library, i.e. more than one file is needed for normal work of the Expert?
Indicator in a separate window
Compile Indicator --> win.ex5.
Expert with this Indicator in the resource
Compile the Expert --> exp.ex5.
Run the Expert Advisor, there is an indicator window on the chart.
Publish one file of the Expert Advisor exp.ex5 in the Market (actually delete the indicator file win.ex5)
Launch the Expert Advisor, there is no indicator window in the chart.
Restore the deleted file win.ex5.
Restore the Expert Advisor, the chart has the indicator window.
Conclusion: The indicator code is not included in the Expert code. For the normal operation of the Expert Advisor with a resource Indicator, we need an executable file of the Indicator specified in the resource.
I repeat my question:
how to publish in the Market when there is an Expert Advisor with a custom Indicator, library, i.e. more than one file is needed for normal operation of the Expert Advisor?
How many times have you been given a link to documentation? Your mother doesn't let you read it?
Read it at last...
How many times have you been given a link to documentation? Your mother won't let you read it?
Read it at last...
Alexey, thanks for pointing out the error directly.
I read the documentation, but it was "out of my sight".
I apologise to everyone - I was wrong.
I've got it now.
Can you give me a hint please.
Added calculation of bar count(:RatesTotal(void)) to class, can't figure out how to fit into structure correctly. Got something like this. Can you please tell me how to make it more colorful.
It's all sorted now.
I didn't, I didn't know. No problem at all :)
Can you tell me how to organise an analogue of calculation of prev_calculated, I can't figure it out.