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
Urain described the function above.
Get the bartime of the desired timeframe based on the date.
Can you tell me why I get different values when calculating lot sizes in different DCs?
For example: 1DC - available funds: 10000, min.lot 0.01 calculated 100% of available funds get lot size 79.37
2DC - free funds: 10000, min.lot 0.01 calculated 100% of available funds get the lot size 7.96.
What I do not take into account, why the lot size is different?
Can you tell me why I get different values when calculating lot sizes in different DCs?
For example: 1DC - available funds: 10000, min.lot 0.01 calculated 100% of available funds get lot size 79.37
2DC - free funds: 10000, min.lot 0.01 calculated 100% of available funds get the lot size 7.96.
What I do not take into account, why the lot size is different?
Can you tell me why I get different values when calculating lot sizes in different DCs?
For example: 1DC - available funds: 10000, min.lot 0.01 calculated 100% of available funds get lot size 79.37
2DC - free funds: 10000, min.lot 0.01 calculated 100% of available funds get the lot size 7.96.
What I do not take into account, why the lot size is different?
Number of characters?
What's the call signs got to do with it. It's not even a question of an order of magnitude difference. It's the difference of 0.23 lots. And the pair is exactly the same? And the opening price?
This is called a mini or microreal.
Some dealers simply give fractional lots, others change the contract size, so a 0.01 lot in a regular account turns into 1 lot in a microreal account.
These are so-called cent accounts.
You can get the value like this:
What's the call signs got to do with it? It's not even a question of an order of magnitude difference. It's just the difference of 0.23 lots. And the pair is exactly the same? And what is the opening price?
Yes, you gave me a good hint!
Do I just keep doing this?
g_d_ContractSize = SymbolInfoDouble(s_Symbol,SYMBOL_TRADE_CONTRACT_SIZE);//Trading contract size 10000-Insta, 100000-other
g_d_ContractSizeDiv = 100000/g_d_ContractSize;//Difference
and then multiply g_d_ContractSizeDiv by the lot size?
Do you know if there is a function that splits a number in thousands, like 1000000 to 1 000 000?
So I understand that you need a visual split, then you need to convert the number to string. And then do whatever you need to do with string.
The function you want is missing, but you can easily create it yourself using the StringSubstr() function.
String functions
That's sort of it:
So I understand that you need a visual split, then you need to convert the number to string. And then do whatever you need to do with string.
The function you want is missing, but you can easily create it yourself using the StringSubstr() function.
String functions
That's it: