Library "RS"
Utility methods for Relative Strength analysis
This is the first library test publication with ratio() method. More functions will be added.
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
Utility methods for Relative Strength analysis
This is the first library test publication with ratio() method. More functions will be added.
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Versionsinformation:
Library "RS"
Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
atOffset(symbol, benchmark, offset1, offset2) Relative strength comparison between two offsets
Parameters:
equilibriumPrice(symbol, benchmark, offset) Equilibrium price - The price as per today's symbol and benchmark close, that will make the symbol to perform equal to benchmark
Parameters:
thresholdCrossed(symbol, benchmark, offset, threshold) Relative Strength performance crossed over/under specified threshold
Parameters:
Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
atOffset(symbol, benchmark, offset1, offset2) Relative strength comparison between two offsets
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset1: starting offset, must be greater than offset 2
- offset2: starting offset, must be less than offset 1, default is current candle
equilibriumPrice(symbol, benchmark, offset) Equilibrium price - The price as per today's symbol and benchmark close, that will make the symbol to perform equal to benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset: to measure under/out performance
thresholdCrossed(symbol, benchmark, offset, threshold) Relative Strength performance crossed over/under specified threshold
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset: to measure under/out performance
- threshold: threshold set for alert
Versionsinformation:
Library "RS"
Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
atOffset(symbol, benchmark, offset1, offset2) Relative strength comparison between two offsets
Parameters:
equilibriumPrice(symbol, benchmark, offset) Equilibrium price - The price as per today's symbol and benchmark close, that will make the symbol to perform equal to benchmark
Parameters:
thresholdCrossed(symbol, benchmark, offset, threshold) Relative Strength performance crossed over/under specified threshold
Parameters:
delaCRSAndPrice(symbol, benchmark, offset1, offset2) Return the percentage outperformance of the ratio from offset1 to offset2 along with percentage symbol price change
Parameters:
Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
atOffset(symbol, benchmark, offset1, offset2) Relative strength comparison between two offsets
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset1: starting offset, must be greater than offset 2
- offset2: starting offset, must be less than offset 1, default is current candle
equilibriumPrice(symbol, benchmark, offset) Equilibrium price - The price as per today's symbol and benchmark close, that will make the symbol to perform equal to benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset: to measure under/out performance
thresholdCrossed(symbol, benchmark, offset, threshold) Relative Strength performance crossed over/under specified threshold
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset: to measure under/out performance
- threshold: threshold set for alert
delaCRSAndPrice(symbol, benchmark, offset1, offset2) Return the percentage outperformance of the ratio from offset1 to offset2 along with percentage symbol price change
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset1: starting offset, must be greater than offset 2
- offset2: starting offset, must be less than offset 1, default is current candle
Versionsinformation:
Library "RS"
Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
atOffset(symbol, benchmark, offset1, offset2) Relative strength comparison between two offsets
Parameters:
equilibriumPrice(symbol, benchmark, offset) Equilibrium price - The price as per today's symbol and benchmark close, that will make the symbol to perform equal to benchmark
Parameters:
thresholdCrossed(symbol, benchmark, offset, threshold) Relative Strength performance crossed over/under specified threshold
Parameters:
deltaCRSAndPrice(symbol, benchmark, offset1, offset2) Return the percentage outperformance of the ratio from offset1 to offset2 along with percentage symbol price change
Parameters:
Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
atOffset(symbol, benchmark, offset1, offset2) Relative strength comparison between two offsets
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset1: starting offset, must be greater than offset 2
- offset2: starting offset, must be less than offset 1, default is current candle
equilibriumPrice(symbol, benchmark, offset) Equilibrium price - The price as per today's symbol and benchmark close, that will make the symbol to perform equal to benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset: to measure under/out performance
thresholdCrossed(symbol, benchmark, offset, threshold) Relative Strength performance crossed over/under specified threshold
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset: to measure under/out performance
- threshold: threshold set for alert
deltaCRSAndPrice(symbol, benchmark, offset1, offset2) Return the percentage outperformance of the ratio from offset1 to offset2 along with percentage symbol price change
Parameters:
- symbol: to be compared
- benchmark: to be compared
- offset1: starting offset, must be greater than offset 2
- offset2: starting offset, must be less than offset 1, default is current candle