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
The StringLower() function.
This function converts a string to lower case. All SIGNIFICANT (large) characters become lowercase (small). The StringLower() function accepts only one mandatory parameter, which is the incoming string.
The StringUpper() function.
This function converts the string to Uppercase. All lowercase (small) characters become Uppercase (large). The StringUpper() function accepts only one mandatory parameter, which is the input string.
The StringToArrayDouble() function.
This function splits the string into its component real numbers, and each number is added to the array as a separate element. As many real numbers appear in the string, the same number of elements will be added to the array. A semicolon is recognized as a separator. The StringToArrayDouble() function returns the number of array elements, and takes the following mandatory parameters:
The StringToArrayInt() function.
This function splits the string into its component integers, and each number is added to the array as a separate element. As many integers as there are in the string, the same number of elements will be added to the array. A comma is recognized as a separator. The StringToArrayDouble() function returns the number of array elements, and takes the following mandatory parameters:
The StrSplit() function.
This function splits a string into its substring, so that each substring becomes a separate element of the array. The separator is specified by a parameter and may be arbitrary. The StrSplit() function returns the number of array elements and accepts the following parameters:
The StrTran() function.
This function replaces a substring. All occurrences of it are replaced. For example, you can replace all commas with dots or vice versa in one fell swoop. The StrSplit() function returns the resulting string and accepts the following mandatory parameters:
Function isTradeTimeString().
This function returns the flag allowing you to trade by time. Actually, it actually checks if the current time of the trade server is inside a certain time interval. If it is inside, the isTradeTimeString() function returns true, otherwise it returns false. The feature of this function is the possibility to specify the time interval both inside and outside a day. This will be shown in details in the examples of use. The isTradeTimeString() function accepts the following optional parameters:
Function isTradeTimeInt().
This function returns the flag allowing to trade by time. The returned value is true or false. Function isTradeTimeInt() is similar to function isTradeTimeString() by the principle of time interval recognition, i.e. the trade start time can be both larger (time interval within a day) and smaller (time interval in different days). Function isTradeTimeInt() accepts the following optional parameters:
The attached files contain the same collections of functions, designed in the form of libraries. The libraries are simply placed in the .../experts/include directory, they do not need to be compiled, an example of their connection is given below.
After their connection, it is enough to call the required function from the EA code.
Dear, where in the line.
The isCloseLastPosByStop() function.
This function returns a flag to close the last position by stop. Flag is up - True - triggered StopLoss. Flag lowered - False - position has been closed for another reason. More accurate selection of positions to be taken into account is set using external parameters:
I understand the functions were written at a time when there were no 5 digits yet. The JPY served as a kind of comparison example.
It's not hard to increase by one!