Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Core Algorithm: Add String-Manipulation Module #270

Open
2 tasks done
summercms opened this issue May 26, 2024 · 1 comment
Open
2 tasks done

Update Core Algorithm: Add String-Manipulation Module #270

summercms opened this issue May 26, 2024 · 1 comment
Labels
Code Update 🔔 Code Update documentation 📄 Improvements or additions to documentation enhancement 👍 New feature or request FINSIHED FINSIHED Priority: Medium Priority: Medium Testing Testing

Comments

@summercms
Copy link
Contributor

summercms commented May 26, 2024

Enhancement idea

  • Update Core Algorithm: Add String-Manipulation Module.
  • Update Doc's.

Description

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.

Links

n/a

@summercms summercms added enhancement 👍 New feature or request Code Update 🔔 Code Update In-progress In-progress Priority: Medium Priority: Medium documentation 📄 Improvements or additions to documentation FINSIHED FINSIHED Testing Testing and removed In-progress In-progress labels May 26, 2024
@summercms
Copy link
Contributor Author

Merge to Core code and Crypto Market algorithms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Update 🔔 Code Update documentation 📄 Improvements or additions to documentation enhancement 👍 New feature or request FINSIHED FINSIHED Priority: Medium Priority: Medium Testing Testing
Projects
None yet
Development

No branches or pull requests

1 participant