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
Typo in "EXAPND"...should be "EXPAND".
yes! corrected.
What do you think of implementing the API tracer like this:
It handles all operators, nicely. https://www.mql5.com/en/docs/basis/operations/rules
Yes, but it has one major issue....
My first approach was like that, but macros do not allow for varying amount of parameters.
So my second attempt was to leave everything after the function name itself as it is, thats why I went down this road.
The field of functions which would needed to be replaced by macros is to big in its variance to fit into simple macros. - It would not be as generic as it is now.
BTW, I just updated the sources, with some error corrections, the mql-api-tracer is available in the code, but still considered beta for now. (And not compatible with its own macros...)
EDIT:
One example would be
ChartGetDouble, but there are multiple functions with same name, but varying parameters....
Its impossible to have them substituted by macros.
Does not compile:
Compiles with warnings, a gives logical errors on run (unary ! operator is not evaluated)
I think the above 2 examples are likely common in the code.Does not compile:
Compiles with warnings, a gives logical errors on run (unary ! operator is not evaluated)
So funny, thats exactly what I tested after last post....
Updated, now works....
Here are the changes in detail:
Operators above need overloading, as they are evaluated right to left....
Available on Cloud-Storage....
What about un-braced if..else?
Does not compile:
Compiles with warnings, a gives logical errors on run (unary ! operator is not evaluated)
I think the above 2 examples are likely common in the code.I think I have solved the evaluation issue inside of if-statements,
I am really greatful for your contribution.
Current version available in cloud storage.
I am still thinking about unbraced if-statements, the trivk with do{}while will not work, as I am not in control of the end of the statement. I guess I need a different route for void-functions... There are only 20 overall. maybe there is another way to approach them... thinking about macros again.
I think I have solved the evaluation issue inside of if-statements,
I am really greatful for your contribution.
Current version available in cloud storage.
I am still thinking about unbraced if-statements, the trivk with do{}while will not work, as I am not in control of the end of the statement. I guess I need a different route for void-functions... There are only 20 overall. maybe there is another way to approach them... thinking about macros again.
I have re-tested with the latest version "4.9997" in cloud storage.
Still, the same issues with the above 2 examples in #54
Edit: another problem
I have re-tested with the latest version "4.9997" in cloud storage.
Still, the same issues with the above 2 examples in #54
Edit: another problem