Errors, bugs, questions - page 1018

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
Doesn't work at non-trading times. What's in the way?
Are you sure about the parameters?
Both examples look wrong:
Looks like confused with ChartSetInteger?
Are you sure about the parameters?
Both examples look wrong:
Looks like confused with ChartSetInteger?
I am doing a retracement (with a pause of 5000) of all charts:
a) (yesterday) non-trading day - no reaction - when unloading the script goes to the 1st chart, even if the script was not started from it
b) now - everything works correctly
If necessary - I will attach the code - a simple loop - GetLastError - no errors
I don't know how important this is, but
now (at trading time) work the same way - the chart is placed on top of the othersForum on trading, automated trading systems and trading strategy testing
Bugs, bugs, questions
Renat, 2013.07.22 09:22
Are you sure about the parameters?
Both examples look wrong:
Looks like confused with ChartSetInteger?
Only lots and lots of .mqh and one executable .mq5, nothing else.
If there is only one .ex5 module, it is not clear which one to look for among the many .mqh modules, which makes a big difference given the large size of the code.
At the same time, please ask the Developers:
Is it possible to introduce an additional predefined macrosubstitution__MODULE__ analogous to __FILE__ - only without extension .mq5?
This is needed to compile an expression of the following form: __MODULE__::f()
This is often used during development to change filenames and transfer functions from module to module
I will add. The advantage of the absolute modular approach, as compared to the relative one, is that when it emerges from
it is not clear in which module to look for the function, and if there is only one .ex5, it is not clear in which .mqh, which makes a big difference when the code is large.
You are delirious, brother.
h1.mqh :
h2.mqh :
PrintTest, mq5 :
Result:
2013.07.22 14:40:17 PrintTest (EURUSD,M1) File: h2.mqh Function: GetH2
2013.07.22 14:40:17 PrintTest (EURUSD,M1) File: h1.mqh Function: GetH1
2013.07.22 14:40:17 PrintTest (EURUSD,M1) File: PrintTest.mq5 Function : OnStart
---
Please make a conclusion for yourself: "Before you develop grandiose nested defines, it's a good idea to understand how the preprocessor actually works".
Good luck to you!
Please conclude: "Before designing grandiose, multi-nested defines, it's a good idea to understand how the preprocessor actually works.
Devote some time and effort to this. You need to learn more about the building site and material properties to build strong and comfortable structures.
Your mind is very sophisticated and thoughtful, but by feeding your own hasty conclusions into its input, you are doomed to often come to the wrong decisions.
Your mind is very sophisticated and thoughtful, but by feeding it your own hasty conclusions, you are doomed to often come to the wrong decisions.
May I join your Padawan? :)
Is there any money? :))
--
But let's not joke:
It's a pity that there are almost no threads on this forum devoted to sensible structuring of programs. A harmonious structure is the key to trouble-free development of large systems.
How to encourage people to discuss such things?