
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
No.
that is why simultaneous access cannot be organised:(((.
You can, the file opened in MT5 with the share flag will also be available for any other programme, including MT4.
See how it is done here.
i.e. if the file is already open in MT4, the Shaare flag will allow it to be opened by MT5 without problems. It turns out that MT4 works as usual, while MT5 can allow other programs to use a file already opened by it, or open a file that is opened by someone else without the flag of shahre.
You can, the file opened in MT5 with the share flag will also be available for any other programme, including MT4.
See how it is done here.
Thanks, I'll have a look now...
Because of this, it is categorically not recommended to compare two real numbers to each other for equality, as such a comparison is not correct.
And a special comparison method is suggested.
If you still need to compare two real numbers for equality, you can...
But then a logical conclusion follows that it is not recommended to compare real numbers even by means of greater/smaller operations because such operation, in the sense of the above mentioned, is correct only when a special method first correctly establishes that checked values are not equal in terms of machine zero.
I.e. it turns out that the > and < operators for real numbers cannot be used in pure form either. Did I get it right, and if so, why don't I add a corresponding comment to the help?
But, if the operation, for example, >, can be used only after a correct check for inequality, then how to organize the check for >=? Is it necessary to complicate the algorithm even more, i.e. to check for equality first with a special function, and then with a special function for inequality (before using >)?
Perhaps someone has already developed a library for all comparison cases for both double and float types? I've sketched out something for double type - I don't know if it is correct:
P.S. If prevcalculated==0 works as usual again. Floating bug?
Good afternoon!
I need to use a custom indicator in the trading signals module.
For this, as far as I understand, I need to add a pointer to this indicator object in "collection of indicators(timeseries?)" as it is done in the example:
indicators.Add(GetPointer(m_MA)))
where m_MA is an object of the CiMA class.
The iCustom and IndicatorCreate functions return the integer value of a handle of the created indicator, but I need an object of this indicator, as I understand it.
Please, advise how to get out of this situation?
Good afternoon!
I need to use a custom indicator in the trading signals module.
For this, as far as I understand, I need to add a pointer to this indicator object in "collection of indicators(timeseries?)" as it is done in the example:
where m_MA is an object of the CiMA class.
The iCustom and IndicatorCreate functions return the integer value of a handle of the created indicator, but I need an object of this indicator, as I understand it.
Please, advise how to get out of this situation?
As far as I understand, I should write my own indicator object based on CiCustom (similar to how CiMA is written).
I can not advise in details, because I have not worked with induks, but I think you will understand or people will tell you the right realization.
PS
By the way, developers, please add examples to the section on CiCustom...
And a special comparison method is suggested.
But then it follows logically that it is not recommended to compare real numbers even by means of greater/smaller operations, because such an operation, in the sense of the above, is only correct if it is correctly established beforehand, using a special method, that the values being checked are not equal in the sense of machine zero.
Good afternoon!
I need to use a custom indicator in the trading signals module.
For this, as far as I understand, I need to add a pointer to this indicator object in "collection of indicators(timeseries?)" as it is done in the example:
where m_MA is an object of the CiMA class.
The iCustom and IndicatorCreate functions return the integer value of a handle of the created indicator, but I need an object of this indicator, as I understand it.
Please, advise how to get out of this situation?
For now, take this file as an example.
The CSignalCustomMACD class is absolutely identical to CSignalMACD, except for the fact that it is based on the "custom" version of the indicator from the standard delivery.
Do not forget to add a line in the source code of the Expert Advisor:
#property tester_indicator "Examples\MACD.ex5"
otherwise it will not work in the tester.
If there is no MACD.ex5 file in the Indicators\Examples folder, the indicator must be compiled.
An example in the help will be added in the near future.
Maybe I don't quite understand the problem, but if two real numbers are compared using, say, "<" operation, and the real numbers being checked are "equal in the sense of machine zero", then "<" operation will just return false, and that's it. Which would mean "the first real number is not less than the second real number".