This module provides string manipulation features to the core algorithm code. The following list of features are provided:
Returns the leftmost characters in the string.
Returns the rightmost characters in the string.
Returns the substring of the string from a range position with two specified points inclusively.
Returns the substring of the string to the left of a specified separating character.
Returns the substring of the string to the right of a specified separating character.
Returns the position of the first occurrence of a specified separating character in the string, where the first character position is 0. Returns -1 if the character is not found.
Replaces a character at a specified position in the string with a defined character or string.
Returns a formatted string with a rounded value to the symbol's tick precision.
Removes a particular substring from the end of another string.
Note for developers: Using too many string operations will negatively impact the performance of a trading algorithm. If at all possible, restrict the calculation of string manipulation routines in your code to the first or final candlestick bar of the dataset to reduce their influence. This can be accomplished by enclosing code blocks or by utilising the var keyword when declaring variables that hold the outcome of your text manipulations.
Enhancement idea
Description
This module provides string manipulation features to the core algorithm code. The following list of features are provided:
0
. Returns-1
if the character is not found.Note for developers: Using too many string operations will negatively impact the performance of a trading algorithm. If at all possible, restrict the calculation of string manipulation routines in your code to the first or final candlestick bar of the dataset to reduce their influence. This can be accomplished by enclosing code blocks or by utilising the
var
keyword when declaring variables that hold the outcome of your text manipulations.Links
n/a