Professional Documents
Culture Documents
Indikator Skripta2
Indikator Skripta2
0 at
https://mozilla.org/MPL/2.0/
// © Mango2Juice
// Description:
// The concept of Relative Strength to Robert A. Levy is based on the assumption
that,
// securities which exhibited a large relative strength in the past
// will also develop relatively strongly in future, and conversely.
//
// It is compare on the performance of the past with the performance of last observa-
tion period.
// Calculation:
// Arithmetic mean of the candle closing price over the observation period.
// The result is plotted around the 1.0 mark.
// RSL = Close / MA
// Interpretation:
// If an instrument has an RSL of greater than 1, it is more likely than not, the in-
strument is more than weak in the past.
// Second interpretation of Levy is to first divide the standard deviations of the
last 27 weekly closing prices.
// The intention of this method is to determine the volatility of the securities be-
ing observed.
//@version=4
study("Relative Strength Levy", "RSL", precision = 5)
// Inputs
CS0 = "Lime/Red", CS1 = "Aqua/Pink", CS2 = "Coral/Violet", CS3 = "Blue/Yellow"
colorScheme= input(CS0, "Color Scheme", options = [CS0, CS1, CS2, CS3])
display = input("Line", "Display", input.string, options = ["Line", "Columns"])
maLen = input(26, "Length", input.integer)
maType = input("SMA", "MA Type", input.string, options = ["ALMA", "EMA", "DEMA",
"TEMA", "WMA", "VWMA", "SMA", "SMMA", "HMA", "LSMA", "Kijun", "McGinley"])
lsmaOffset = input(0, "* Least Squares (LSMA) Only - Offset Value", minval=0)
almaOffset = input(0.85, "* Arnaud Legoux (ALMA) Only - Offset Value", minval=0,
step=0.01)
almaSigma = input(6, "* Arnaud Legoux (ALMA) Only - Sigma Value", minval=0)
// Colors
// Plots
column = rsl >= 1.0 ? rsl - 1.0 : rsl < 1.0 ? -(1.0 - rsl) : 0.0
_line = display == "Line"
style = _line ? plot.style_line : plot.style_columns