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
Yedelkin:
if the value of a tick is not equal to 1, then the value of such a tick is floating.
Yes, I'm not asking. But in this case we need to ensure that the actual loss does not exceed a specific value. And the tickvalue is used in two forms when calculating the volume.
the wrong conclusion.
Well, if you want it for loss, then take tickvalue for loss.
Yes, we'll have to take it and test it. "For admissibility". Thank you, although nothing has been cleared up "in physics".
And the "right" conclusion...
What is the "correct" conclusion?
the tickvalue is different for different instruments. run the script from the kit - SymbolInfo and look at the yen
and by the way, tickvalue=1 is for 5-digit some instruments. for their 4-digit it =10
for different instruments a different tickvalue.
Use the structure as a wrapper for a dynamic buffer. This has been tested - it works.
Can you tell me how to implement a structure transfer to a function without knowing the structure beforehand?
How to implement a structure transfer to a function without knowing the structure beforehand :) ?
Only simple structures.
PS/ Because the built-in ones do it somehowFileReadStruct, FileWrite
Or declare a function like this
Writes Class type expected
Can you tell me how to implement a structure transfer to a function without knowing the structure beforehand?
How to implement a structure transfer to a function without knowing the structure beforehand :) ?
Let me reformulate. Are you interested in whether, when defining a function
specify a variable of the structure type as its formal parameter, ignoring the name of the structure itself? That is, for example, to specify not void funcName(MqlTradeRequest & req) but just void funcName(& req)?