OPEN-SOURCE SCRIPT

Eroina Indicator

Diupdate
//version=5
indicator("Trend Reversal Indicator with Confirmations", overlay=true)

// Параметры для настройки
resistanceLength = input(20, title="Длина сопротивления")
supportLength = input(20, title="Длина поддержки")
confirmationCandles = input(2, title="Количество свечей для подтверждения")

// Вычисление уровней сопротивления и поддержки
resistance = ta.highest(high, resistanceLength)
support = ta.lowest(low, supportLength)

// Проверка пробоя и закрепления
resistanceBroken = close > resistance
supportBroken = close < support

// Подтверждение пробоя уровня
resistanceConfirmed = resistanceBroken and ta.barssince(close > resistance) <= confirmationCandles
supportConfirmed = supportBroken and ta.barssince(close < support) <= confirmationCandles

// Сигналы для входа в Long и Short
longSignal = resistanceConfirmed
shortSignal = supportConfirmed

// Отображение стрелок и текста
plotshape(series=longSignal, style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(series=shortSignal, style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")

// Отображение уровней с помощью line.new
var line resistanceLine = na
var line supportLine = na

if (na(resistanceLine))
resistanceLine := line.new(x1=bar_index, y1=resistance, x2=bar_index + 1, y2=resistance, color=color.red, width=1)

if (na(supportLine))
supportLine := line.new(x1=bar_index, y1=support, x2=bar_index + 1, y2=support, color=color.green, width=1)

// Обновление уровней на новых барах
line.set_xy1(resistanceLine, x=bar_index, y=resistance)
line.set_xy2(resistanceLine, x=bar_index + 1, y=resistance)

line.set_xy1(supportLine, x=bar_index, y=support)
line.set_xy2(supportLine, x=bar_index + 1, y=support)
Catatan Rilis
//version=6
indicator("Eroina Reversal Indicator with Confirmations", overlay=true)

// Параметры
resistanceLength = input.int(20, title="Resistance Length", minval=1)
supportLength = input.int(20, title="Support Length", minval=1)
confirmationCandles = input.int(2, title="Number of Confirmation Candles", minval=1)

// Уровни сопротивления и поддержки
resistance = ta.highest(high, resistanceLength)
support = ta.lowest(low, supportLength)

// Проверка пробоя
resistanceBroken = close > resistance
supportBroken = close < support

// Подтверждение
resistanceConfirmed = resistanceBroken and ta.barssince(close > resistance) <= confirmationCandles
supportConfirmed = supportBroken and ta.barssince(close < support) <= confirmationCandles

// Сигналы
longSignal = resistanceConfirmed
shortSignal = supportConfirmed

// Отображение сигналов
plotshape(series=longSignal, style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(series=shortSignal, style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")
Catatan Rilis
//version=5
indicator("Eroina Reversal Indicator with Confirmations", overlay=true)

// Параметры для настройки
resistanceLength = input(20, title="Длина сопротивления")
supportLength = input(20, title="Длина поддержки")
confirmationCandles = input(2, title="Количество свечей для подтверждения")

// Вычисление уровней сопротивления и поддержки
resistance = ta.highest(high, resistanceLength)
support = ta.lowest(low, supportLength)

// Проверка пробоя и закрепления
resistanceBroken = close > resistance
supportBroken = close < support

// Подтверждение пробоя уровня
resistanceConfirmed = resistanceBroken and ta.barssince(close > resistance) <= confirmationCandles
supportConfirmed = supportBroken and ta.barssince(close < support) <= confirmationCandles

// Сигналы для входа в Long и Short
longSignal = resistanceConfirmed
shortSignal = supportConfirmed

// Отображение стрелок и текста
plotshape(series=longSignal, style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(series=shortSignal, style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")

// Отображение уровней с помощью line.new
var line resistanceLine = na
var line supportLine = na

if (na(resistanceLine))
resistanceLine := line.new(x1=bar_index, y1=resistance, x2=bar_index + 1, y2=resistance, color=color.red, width=1)

if (na(supportLine))
supportLine := line.new(x1=bar_index, y1=support, x2=bar_index + 1, y2=support, color=color.green, width=1)

// Обновление уровней на новых барах
line.set_xy1(resistanceLine, x=bar_index, y=resistance)
line.set_xy2(resistanceLine, x=bar_index + 1, y=resistance)

line.set_xy1(supportLine, x=bar_index, y=support)
line.set_xy2(supportLine, x=bar_index + 1, y=support)
Catatan Rilis
//version=5
indicator(" Eroina Trend Reversal Indicator with Confirmations", overlay=true)

// Параметры для настройки
resistanceLength = input(20, title="Длина сопротивления")
supportLength = input(20, title="Длина поддержки")
confirmationCandles = input(2, title="Количество свечей для подтверждения")

// Вычисление уровней сопротивления и поддержки
resistance = ta.highest(high, resistanceLength)
support = ta.lowest(low, supportLength)

// Проверка пробоя и закрепления
resistanceBroken = close > resistance
supportBroken = close < support

// Подтверждение пробоя уровня
resistanceConfirmed = resistanceBroken and ta.barssince(close > resistance) <= confirmationCandles
supportConfirmed = supportBroken and ta.barssince(close < support) <= confirmationCandles

// Сигналы для входа в Long и Short
longSignal = resistanceConfirmed
shortSignal = supportConfirmed

// Отображение стрелок и текста
plotshape(series=longSignal, style=shape.labelup, location=location.belowbar, color=color.green, text="LONG")
plotshape(series=shortSignal, style=shape.labeldown, location=location.abovebar, color=color.red, text="SHORT")

// Отображение уровней с помощью line.new
var line resistanceLine = na
var line supportLine = na

if (na(resistanceLine))
resistanceLine := line.new(x1=bar_index, y1=resistance, x2=bar_index + 1, y2=resistance, color=color.red, width=1)

if (na(supportLine))
supportLine := line.new(x1=bar_index, y1=support, x2=bar_index + 1, y2=support, color=color.green, width=1)

// Обновление уровней на новых барах
line.set_xy1(resistanceLine, x=bar_index, y=resistance)
line.set_xy2(resistanceLine, x=bar_index + 1, y=resistance)

line.set_xy1(supportLine, x=bar_index, y=support)
line.set_xy2(supportLine, x=bar_index + 1, y=support)
concepteducationalPivot points and levels

Skrip open-source

Dengan semangat TradingView yang sesungguhnya, penulis skrip ini telah menerbitkannya sebagai sumber terbuka, sehingga para trader dapat memahami dan memverifikasinya. Hormat untuk penulisnya! Anda dapat menggunakannya secara gratis, namun penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk digunakan pada chart

Inggin menggunakan skrip ini pada chart?


Juga di:

Pernyataan Penyangkalan