Support & Resistance ParserI've created a user-friendly trading indicator that interprets and visually presents support and resistance levels, transforming raw data into actionable insights.
Here's a glimpse of what you might encounter:
Today's trigger points (ES)
Support: 4264.5,4220.75,4131.5,4164.5,3980.75,4182.5,4174.25,4120,4112.25,4089.25,4085.75
Resistance: 4299.75,4304.5,4316.75,4345.25,4331.75
This is how it works:
1. Copy the series of support and resistance figures, ie just the comma separated numbers
2. Paste each series into their respective setting in the indicator.
3. The indicator parses the data, understanding the sequence and importance of each figure.
4. It then draws the corresponding support and resistance lines on your trading chart.
Chart would appear similar to the following:
This tool distinguishes itself with its user-friendly features. Each line comes with adjustable labels, enabling users to personalize their visualization. This makes the data more intuitive and easier to comprehend, enhancing decision-making during trades.
Note: The indicator includes limited error handling capabilities.
Make the most out of your trading journey with this intuitive and customizable tool, specifically designed to turn raw data into valuable trading insights.
Parser
MarkovAlgorithmLibrary "MarkovAlgorithm"
Markov algorithm is a string rewriting system that uses grammar-like rules to operate on strings of
symbols. Markov algorithms have been shown to be Turing-complete, which means that they are suitable as a
general model of computation and can represent any mathematical expression from its simple notation.
~ wikipedia
.
reference:
en.wikipedia.org
rosettacode.org
parse(rules, separator)
Parameters:
rules (string)
separator (string)
Returns: - `array _rules`: List of rules.
---
Usage:
- `parse("|0 -> 0|| 1 -> 0| 0 -> ")`
apply(expression, rules)
Aplies rules to a expression.
Parameters:
expression (string) : `string`: Text expression to be formated by the rules.
rules (rule ) : `string`: Rules to apply to expression on a string format to be parsed.
Returns: - `string _result`: Formated expression.
---
Usage:
- `apply("101", parse("|0 -> 0|| 1 -> 0| 0 -> "))`
apply(expression, rules)
Parameters:
expression (string)
rules (string)
Returns: - `string _result`: Formated expression.
---
Usage:
- `apply("101", parse("|0 -> 0|| 1 -> 0| 0 -> "))`
rule
String pair that represents `pattern -> replace`, each rule may be ordinary or terminating.
Fields:
pattern (series string) : Pattern to replace.
replacement (series string) : Replacement patterns.
termination (series bool) : Termination rule.
functionStringToMatrixLibrary "functionStringToMatrix"
Provides unbound methods (no error checking) to parse a string into a float or int matrix.
to_matrix_float(str, interval_sep, start_tk, end_tk)
Parse a string into a float matrix.
Parameters:
str : , string, the formated string to parse.
interval_sep : , string, cell interval separator token.
start_tk : , string, row start token.
end_tk : , string, row end token.
Returns: matrix, parsed float matrix.
to_matrix_int(str, interval_sep, start_tk, end_tk)
Parse a string into a int matrix.
Parameters:
str : , string, the formated string to parse.
interval_sep : , string, cell interval separator token.
start_tk : , string, row start token.
end_tk : , string, row end token.
Returns: matrix, parsed int matrix.
Function: Dinamic string InterpreterEXPERIMENTAL:
a arithmetic string interpreter that allows for using basic operations on input strings.
note: float values not supported currently.