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
Rosh, if I understand your silence correctly, there is no clear statement for which cases and for which expressions/variables normalisation is needed. If this is the case, maybe a simpler question can be answered: is normalisation of calculated values of the form
int StLs=25;
double prc = Ask + StLs*Point;
Or should I find this out on my own, in an experiment ?
But really, I can't give a clear formulation, when it is absolutely unnecessary to apply price normalization in OrderSend(). In principle, a night person will get a feel for it in half a year, but there's no need to get a feel for it, just normalize it all the time.
that provide conversion of data from one format into data of another format.
Of particular note is the NormalizeDouble() function, which ensures the required accuracy of price representation. You cannot use non-normalised prices in trading operations whose accuracy exceeds the accuracy required by the trading server by at least one digit.
The calculated StopLoss and TakeProfit values, as well as opening prices of pending orders must be normalized to the accuracy, the value of which is stored in the predefined variable Digits.
Rosh, please look at page 16 of the same forum, I've already written about this function and suggestions for improving the help to it.
Calculated StopLoss and TakeProfit values, as well as open prices of pending orders should be normalized to the accuracy, the value of which is stored in the predefined variable Digits.
This example demonstrates clipping via NormalizeDouble() to 5 digits, while Print() simply renders (sorry for that non-Russian style) it.
Yes, the example became significantly more informative as soon as the numbers of characters started to differ.
The function does not work in test mode. This function also cannot be called from the custom indicators.
The file to be sent must be located in the terminal_directory\experts\files folder or its subfolders.
Sending is not done if no FTP address and/or access password is specified in the settings.
[...]
Sending may be prohibited in the settings, also the e-mail address may not be specified. The GetLastError() function must be called to get the error information.
[...]
Observation task: find 2 differences.