Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 543
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
Thank you. In words, what do we divide the profit in currency by?
.../(OrderSymbol()==Sy_1 ? tickValue_1 : tickValue_2));
You cannot add up the points of two different instruments.
I understand that the point value is different, but it does not matter in this case.
Thank you. In words, what do we divide the profit in currency by?
The point value in the currency of the deposit.
And add up points if needed when calling.For me it would be more correct to write this function on 1 character
Point value in the deposit currency.
How do the words(OrderSymbol()==Sy_1 ? tickValue_1 : tickValue_2); say?
Print(Punkts_B("GBPUSD", "AUDUSD",11151)) prints zero;
As words expression(OrderSymbol()==Sy_1 ? tickValue_1 : tickValue_2));
Print(Punkts_B("GBPUSD", "AUDUSD",11151));
Conditional operator ?:
Conditional operator ?:
Thank you.
Colleagues, help me out.
I'm trying to figure out how to work with registry, I've made a simple Expert Advisor for the test. Reading data from system registry goes without problems, but there are problems with writing, MT and memory crashes... (((
Maybe my eye is already soaked and I don't see the obvious...
You need to place their names next to the ends of the curves in the separator window, which should be linked to them.
Please explain how to do this.
You need to place their name next to the ends of the curves in the separatist window, which should be linked to them.
Please explain how to do this.
Objects - they can be displayed in any window of the terminal and its subwindows.
Artyom Trishkin:
Objects - they can be output to any terminal window and its subwindows.
--------------------------------------------------------------------------------------------------------------------------------------
I tried it like this, but it doesn't work.
Maybe it's something with the window numbering. If there is one separate window in the graph, its number ==1?replace in your expressions - && with "AND AT THE SAME TIME", and replace || with "OR".
you should be able to read that and see how it works.
the first line will work with either magic =777 (when hand_orders=false) or magic = 0 (when hand_orders=true)
the second line ALWAYS works with majic=777, and with hand_orders=true works ADDITIONALLY with majic=0