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

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
Hello. 2020.10.28_05:19:00 GMT+3. I translated the LeManTrend_Indicator.mq5 indicator into the fourth version .mq4 . The indicator appears on the chart, but when I try to switch GBPUSD,H1 to M5 timeframe, MetaTrader4 hangs, CPU is overloaded. I have to close MetaTrader4 and open it again. No freezes when I remove LeManTrend_Indicator.ex4 from the chart. I do not understand what is wrong in the indicator code. Who can give me a hint? How to fix it?
And LeMan_BrainTrend1Sig.mq5 converted to the fourth version, it is in the list of indicators, but nothing appears on the chart. How to rewrite the code of this indicator to make it work properly, I do not know. I have written only Expert Advisors before. How to check them in strategytester- I know. And when I write Print() of variables in the code, it becomes clear what is wrong. I do not know how to check the indicators. I wrote Print() in the code, it is not saved in any log. Will someone advise me what to do with indicators to make them work, not to take up space on the hard disk? Looking forward to hearing from you. 05:44 GMT+3.
Yes I'll post the indicator codes now. One more thing. Why have I converted indicators from .mq5 to .mq4 ? Because my broker has ruble accounts only in MetaTrader4. And indicators are written in fifth version. And I need indicators to write a profitable Expert Advisor for MetaTrader4. That's it now. 05:53 GMT+3.
Hello. 2020.10.28_05:19:00 GMT+3. I translated the LeManTrend_Indicator.mq5 indicator into the fourth version .mq4 . The indicator appears on the chart, but when I try to switch GBPUSD,H1 to M5 timeframe, MetaTrader4 hangs, CPU is overloaded. I have to close MetaTrader4 and open it again. No freezes when I remove LeManTrend_Indicator.ex4 from the chart. I do not understand what is wrong in the indicator code. Who can give me a hint? How to fix it?
And LeMan_BrainTrend1Sig.mq5 converted to the fourth version, it is in the list of indicators, but nothing appears on the chart. How to rewrite the code of this indicator to make it work properly, I do not know. I have written only Expert Advisors before. How to check them in strategytester- I know. And when I write Print() of variables in the code, it becomes clear what is wrong. I do not know how to check the indicators. I wrote Print() in the code, it is not saved in any log. Will someone advise me what to do with indicators to make them work, not to take up space on the hard disk? Looking forward to hearing from you. 05:44 GMT+3.
Yes I'll post the indicator codes now. One more thing. Why have I converted indicators from .mq5 to .mq4 ? Because my broker has ruble accounts only in MetaTrader4. And indicators are written in fifth version. And I need indicators to write a profitable Expert Advisor for MetaTrader4. That's it now. 05:53 GMT+3.
LeManTrend_Indicator.mq5- the indicator itself herehttps://www.mql5.com/ru/code/27570
it also works in 4 - but you need to remove the repeating (string ) before (err_text)
it would look like this
LeManTrend_Indicator.mq5- the indicator itself herehttps://www.mql5.com/ru/code/27570
it also works in 4 - but you need to remove the repeating (string ) before (err_text)
it should look like this
string
BrainTrend1Sig for 4 here -https://www.mql5.com/ru/code/8772
This one should contain the already corrected LeManTrend_Indicator.mq4 for quadruplets
BrainTrend1Sig for 4 here -https://www.mql5.com/ru/code/8772
Here you need to add LeManTrend_Indicator.mq4, already fixed for 4
there is an error - you need to delete this line ( double const = 0; )
and everything will work
You're a comedian.
Who was I talking to?
What's this situation about? Same bar index. And it seems to happen only on the first run on a symbol. Either deeper into the story. I thought the code above was just checking for bars...
Here is a good indicatorhttps://www.mql5.com/ru/code/28364
Everything you need can be built into it !!!!!!!
Good afternoon!
Please help me with the following task:
I need to run a script (Python) from MQL4 Expert Advisor. I'm trying to do it using ShellExecuteW() in the following way:
I get a file access error. The script is running but the code does not go further.
I will be glad if you can share the function to run the script.
Another question: how do I check the script's execution?
Hello! 2020.10.28_05:19:00 GMT+3. I translated the LeManTrend_Indicator.mq5 indicator into the fourth version .mq4 .
This one does not fit
https://www.mql5.com/ru/code/9096
And this one doesn't fit.
https://www.mql5.com/ru/code/9096
This one seems to be better.