MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Automated Trading Language Documentation

Reverse TradeCopier source LimitedReverse TradeCopier source Limited Try product
Reverse TradeCopier source Limited
Author: song_song
Subscribe to signal
Less Risk More Money
14.16%, 140.81 USD
Fast Testing of Trading Ideas on the Chart Fast Testing of Trading Ideas on the Chart sSyncScroll Script
sSyncScroll
Author: Integer
Screenshot
USDCAD, M5
Real

StringSubstr

Extracts a substring from a text string starting from the specified position.

string  StringSubstr(
   string  string_value,     // string
   int     start_pos,        // position to start with
   int     length=-1         // length of extracted string
   );

Parameters

string_value

[in]  String to extract a substring from.

start_pos

[in]  Initial position of a substring. Can be from 0 to StringLen(text) -1.

length=-1

[in] Length of an extracted substring. If the parameter value is equal to -1 or parameter isn't set, the substring will be extracted from the indicated position till the string end.

Return Value

Copy of a extracted substring, if possible. Otherwise returns an empty string.


Updated: 2009.11.20