PINE LIBRARY
Güncellendi RS

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:
Returns: ratio of symbol to benchmark
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
Returns: ratio of symbol to benchmark
Sürüm Notları
Library "RS"Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: ratio of symbol to benchmark
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: spread of symbol to benchmark
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: join of symbol to benchmark
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
Returns: performance in percentage between the 2 offset. A value greater than 0 indicates outperformance, less than 0 indicates underperformance
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
Returns: Price - This is the price if achieved will make the symbol perform equally w.r.t. benchmark on the offset bar
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
Returns: 1/0/-1. 1 - crossover, 0 - no signal, -1 crossunder
Sürüm Notları
Library "RS"Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: ratio of symbol to benchmark
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: spread of symbol to benchmark
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: join of symbol to benchmark
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
Returns: performance in percentage between the 2 offset. A value greater than 0 indicates outperformance, less than 0 indicates underperformance
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
Returns: Price - This is the price if achieved will make the symbol perform equally w.r.t. benchmark on the offset bar
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
Returns: 1/0/-1. 1 - crossover, 0 - no signal, -1 crossunder
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
Returns: deltacrs deltaprice as a 2 element array
Sürüm Notları
Library "RS"Utility methods for Relative Strength analysis
ratio(symbol, benchmark) Simple ratio of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: ratio of symbol to benchmark
spread(symbol, benchmark) Simple spread of symbol vs benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: spread of symbol to benchmark
join(symbol, benchmark) Simple add of symbol and benchmark
Parameters:
- symbol: to be compared
- benchmark: to be compared
Returns: join of symbol to benchmark
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
Returns: performance in percentage between the 2 offset. A value greater than 0 indicates outperformance, less than 0 indicates underperformance
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
Returns: Price - This is the price if achieved will make the symbol perform equally w.r.t. benchmark on the offset bar
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
Returns: 1/0/-1. 1 - crossover, 0 - no signal, -1 crossunder
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
Returns: deltacrs deltaprice as a 2 element array
Pine kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Pine kitaplığı
Gerçek TradingView ruhuyla, yazar bu Pine kodunu açık kaynaklı bir kütüphane olarak yayınladı, böylece topluluğumuzdaki diğer Pine programcıları onu yeniden kullanabilir. Yazara saygı! Bu kütüphaneyi özel olarak veya diğer açık kaynaklı yayınlarda kullanabilirsiniz, ancak bu kodun bir yayında yeniden kullanımı Site Kuralları tarafından yönetilmektedir.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.