OPEN-SOURCE SCRIPT
Atualizado

Jitesh-jain-Ultimate-Silver

80
//version=6
indicator('Jitesh-jain-Ultimate-Silver', overlay = true)
// Define the 200 EMA
ema200 = ta.ema(close, 200)
// Create an input for the threshold value, allowing manual adjustment
threshold = input.int(150, title="Proximity Threshold", minval=1)
// Condition for Green Alert (Candle close is near and above the EMA)
greenCondition = close >= ema200 - threshold and close <= ema200 + threshold
// Condition for Red Alert (Candle close is near and below the EMA)
redCondition = close >= ema200 - threshold and close <= ema200 + threshold
// Define the RSI length
rsiLength = 50
// Get RSI from Daily and 4-Hour Timeframes using `request.security`
rsiDaily = request.security(syminfo.tickerid, 'D', ta.rsi(close, rsiLength))
rsi4H = request.security(syminfo.tickerid, '240', ta.rsi(close, rsiLength))
// Calculate RSI for the current timeframe
rsiCurrent = ta.rsi(close, rsiLength)
// Define an SMA period for the RSI
smaRSILength = 14 // You can adjust this length
smaRSI = ta.sma(rsiCurrent, smaRSILength) // Calculate the SMA of the current RSI
// Define Big Volume Condition
length = 20 // Look-back period for average volume
avgVolume = ta.sma(volume, length) // Average volume over 'length' periods
bigVolumeCondition = volume > avgVolume * 2 // Big volume is 2x the average volume
// Plot the EMA on the chart
plot(ema200, color = color.blue, linewidth = 2, title = 'EMA 200')
// Trigger the alert conditions for green and red alerts
alertcondition(greenCondition, title = 'Green Got', message = 'Green Got: Candle Close is Above EMA 200 and Candle Close is within 150 points.')
alertcondition(redCondition, title = 'Red Got', message = 'Red Got: Candle Close is Below EMA 200 and Candle Close is within 150 points.')
// Trigger the alert condition for big volume
alertcondition(bigVolumeCondition, title = 'Big Volume', message = 'Big Volume: Volume is greater than 2x the average volume.')
// Optional: Highlight the conditions with background color for visual assistance
bgcolor(greenCondition ? color.new(#00db07, 90) : na)
bgcolor(redCondition ? color.new(#ff0000, 90) : na)
bgcolor(bigVolumeCondition ? color.new(#0000ff, 90) : na) // Highlight the big volume condition with blue background
// Plot RSI values for Daily and 4-Hour Timeframe
plot(rsiDaily, color = color.blue, title = 'RSI Daily', linewidth = 2)
plot(rsi4H, color = color.red, title = 'RSI 4H', linewidth = 2)
// Plot the current RSI and its SMA
plot(rsiCurrent, color = color.green, title = 'Current RSI', linewidth = 1)
plot(smaRSI, color = color.orange, title = 'SMA of RSI', linewidth = 2)
Notas de Lançamento
//version=6
indicator('Jitesh-jain-Ultimate-Silver', overlay = true)
// Define the 200 EMA
ema200 = ta.ema(close, 200)
// Create an input for the threshold value, allowing manual adjustment
threshold = input.int(150, title="Proximity Threshold", minval=1)
// Condition for Green Alert (Candle close is near and above the EMA)
greenCondition = close >= ema200 - threshold and close <= ema200 + threshold
// Condition for Red Alert (Candle close is near and below the EMA)
redCondition = close >= ema200 - threshold and close <= ema200 + threshold
// Define the RSI length
rsiLength = 50
// Get RSI from Daily and 4-Hour Timeframes using `request.security`
rsiDaily = request.security(syminfo.tickerid, 'D', ta.rsi(close, rsiLength))
rsi4H = request.security(syminfo.tickerid, '240', ta.rsi(close, rsiLength))
// Calculate RSI for the current timeframe
rsiCurrent = ta.rsi(close, rsiLength)
// Define an SMA period for the RSI
smaRSILength = 14 // You can adjust this length
smaRSI = ta.sma(rsiCurrent, smaRSILength) // Calculate the SMA of the current RSI
// Define Big Volume Condition
length = 20 // Look-back period for average volume
avgVolume = ta.sma(volume, length) // Average volume over 'length' periods
bigVolumeCondition = volume > avgVolume * 2 // Big volume is 2x the average volume
// Plot the EMA on the chart
plot(ema200, color = color.blue, linewidth = 2, title = 'EMA 200')
// Trigger the alert conditions for green and red alerts
alertcondition(greenCondition, title = 'Green Got', message = 'Green Got: Candle Close is Above EMA 200 and Candle Close is within 150 points.')
alertcondition(redCondition, title = 'Red Got', message = 'Red Got: Candle Close is Below EMA 200 and Candle Close is within 150 points.')
// Trigger the alert condition for big volume
alertcondition(bigVolumeCondition, title = 'Big Volume', message = 'Big Volume: Volume is greater than 2x the average volume.')
// Optional: Highlight the conditions with background color for visual assistance
bgcolor(greenCondition ? color.new(#00db07, 90) : na)
bgcolor(redCondition ? color.new(#ff0000, 90) : na)
bgcolor(bigVolumeCondition ? color.new(#0000ff, 90) : na) // Highlight the big volume condition with blue background
// Plot RSI values for Daily and 4-Hour Timeframe
plot(rsiDaily, color = color.blue, title = 'RSI Daily', linewidth = 2)
plot(rsi4H, color = color.red, title = 'RSI 4H', linewidth = 2)
// Plot the current RSI and its SMA
plot(rsiCurrent, color = color.green, title = 'Current RSI', linewidth = 1)
plot(smaRSI, color = color.orange, title = 'SMA of RSI', linewidth = 2)

// Plot "B" and "S" signals with arrows
plotshape(series=greenCondition, title="Green Buy Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="B", size=size.small)
plotshape(series=redCondition, title="Red Sell Signal", location=location.abovebar, color=color.red, style=shape.labeldown, text="S", size=size.small)

// Adding arrows to indicate buy and sell signals
plotarrow(greenCondition ? 1 : na, offset=-1, colorup=color.green, maxheight=30, minheight=30) // Green arrow (buy)
plotarrow(redCondition ? -1 : na, offset=-1, colordown=color.red, maxheight=30, minheight=30) // Red arrow (sell)

// Plot "V" for Big Volume
plotshape(series=bigVolumeCondition, title="Big Volume Signal", location=location.belowbar, color=color.blue, style=shape.triangledown, text="V", size=size.small)
Notas de Lançamento
//version=5
indicator("Jitesh-jain-Ultimate-Silver", overlay=true)

// Define the timeframes
daily = "D"
fourHour = "240"
oneHour = "60"

// EMA
ema200_daily = request.security(syminfo.tickerid, daily, ta.ema(close, 200))
ema200_4hr = request.security(syminfo.tickerid, fourHour, ta.ema(close, 200))
ema200_1hr = request.security(syminfo.tickerid, oneHour, ta.ema(close, 200))

// RSI
rsi_daily = request.security(syminfo.tickerid, daily, ta.rsi(close, 50))
rsi_4hr = request.security(syminfo.tickerid, fourHour, ta.rsi(close, 50))
rsi_1hr = request.security(syminfo.tickerid, oneHour, ta.rsi(close, 50))

// Conditions to check if price is near the 1-hour EMA (within 0 to 150 points)
price_near_ema = math.abs(low - ema200_1hr) <= 250 or math.abs(ema200_1hr - high) <= 250 or math.abs(ema200_1hr - open) <= 250 or math.abs(close - ema200_1hr) <= 250

// Conditions to check if price is above all EMAs
price_above_all_emas = close > ema200_daily and close > ema200_4hr and close > ema200_1hr

// Conditions to check if RSI is above 50 for Daily, 4H, and 1H
rsi_above_50 = rsi_daily >= 50 and rsi_4hr >= 50 and rsi_1hr >= 50

// Combine all conditions
condition_to_mark = price_near_ema and price_above_all_emas and rsi_above_50

// Plot EMA, SMA, and RSI values on the chart
plot(ema200_daily, title="EMA 200 Daily", color=color.blue, linewidth=2)
plot(ema200_4hr, title="EMA 200 4H", color=color.green, linewidth=2)
plot(ema200_1hr, title="EMA 200 1H", color=color.red, linewidth=2)

// Display RSI as labels on the chart
plotchar(rsi_daily, title="RSI Daily", location=location.top, color=color.blue, offset=-1)
plotchar(rsi_4hr, title="RSI 4H", location=location.top, color=color.green, offset=-2)
plotchar(rsi_1hr, title="RSI 1H", location=location.top, color=color.red, offset=-3)

// Mark candles that meet the conditions
plotshape(series=condition_to_mark, title="Ready?", location=location.belowbar, color=color.rgb(217, 0, 255), style=shape.triangledown, text="P", size=size.small)


// Define Big Volume Condition
length = 20 // Look-back period for average volume
avgVolume = ta.sma(volume, length) // Average volume over 'length' periods
bigVolumeCondition = volume > avgVolume * 2 // Big volume is 2x the average volume
// Trigger the alert condition for big volume
alertcondition(bigVolumeCondition, title = 'Big Volume', message = 'Big Volume: Volume is greater than 2x the average volume.')
Notas de Lançamento
//version=5
indicator("Buying-1hr", overlay=true)

// Define the timeframes
daily = "D"
fourHour = "240"
oneHour = "60"

// EMA
ema200_daily = request.security(syminfo.tickerid, daily, ta.ema(close, 200))
ema200_4hr = request.security(syminfo.tickerid, fourHour, ta.ema(close, 200))
ema200_1hr = request.security(syminfo.tickerid, oneHour, ta.ema(close, 200))

// RSI
rsi_daily = request.security(syminfo.tickerid, daily, ta.rsi(close, 50))
rsi_4hr = request.security(syminfo.tickerid, fourHour, ta.rsi(close, 50))
rsi_1hr = request.security(syminfo.tickerid, oneHour, ta.rsi(close, 50))

// Manually adjustable input for RANGEFROMEMA
RANGEFROMEMA = input.int(250, title="Range from EMA", minval=1, maxval=1000, step=1)

// Conditions to check if price is near the 1-hour EMA (within 0 to RANGEFROMEMA points)
price_near_ema = (math.abs(low - ema200_1hr) <= RANGEFROMEMA) or (math.abs(ema200_1hr - high) <= RANGEFROMEMA) or (math.abs(ema200_1hr - open) <= RANGEFROMEMA) or (math.abs(close - ema200_1hr) <= RANGEFROMEMA)

// Conditions to check if price is above all EMAs
price_above_all_emas = (close >= ema200_daily) and (close >= ema200_4hr) and (close >= ema200_1hr)

// Conditions to check if RSI is above 50 for Daily, 4H, and 1H
rsi_above_50 = (rsi_daily >= 50) and (rsi_4hr >= 50) and (rsi_1hr >= 50)

// Combine all conditions
condition_to_mark = price_near_ema and price_above_all_emas and rsi_above_50

// Define Big Volume Condition
length = 20 // Look-back period for average volume
avgVolume = ta.sma(volume, length) // Average volume over 'length' periods
bigVolumeCondition = volume > avgVolume * 2 // Big volume is 2x the average volume

// Trigger the alert condition for big volume
alertcondition(bigVolumeCondition, title = 'Big Volume', message = 'Big Volume: Volume is greater than 2x the average volume.')

// Trigger the alert condition for price condition
alertcondition(condition_to_mark, title = 'Price Condition', message = 'Price is near EMA and above all EMAs with RSI above 50.')

// Plot EMA, SMA, and RSI values on the chart
plot(ema200_daily, title="EMA 200 Daily", color=color.blue, linewidth=2)
plot(ema200_4hr, title="EMA 200 4H", color=color.green, linewidth=2)
plot(ema200_1hr, title="EMA 200 1H", color=color.red, linewidth=2)

// Display RSI as labels on the chart
plotchar(rsi_daily, title="RSI Daily", location=location.top, color=color.blue, offset=-1)
plotchar(rsi_4hr, title="RSI 4H", location=location.top, color=color.green, offset=-2)
plotchar(rsi_1hr, title="RSI 1H", location=location.top, color=color.red, offset=-3)

// Mark candles that meet the conditions
plotshape(series=condition_to_mark, title="Ready?", location=location.belowbar, color=color.rgb(217, 0, 255), style=shape.triangledown, text="P", size=size.small)

// Plot "V" for Big Volume
plotshape(series=bigVolumeCondition, title="Big Volume Signal", location=location.belowbar, color=color.blue, style=shape.triangledown, text="V", size=size.small)
Notas de Lançamento
//version=5
indicator("Jitesh-Jain-buying", overlay=true)

// Input for timeframes (user-adjustable)
daily = input.timeframe("D", title="Daily Timeframe")
fourHour = input.timeframe("240", title="4-Hour Timeframe")
oneHour = input.timeframe("60", title="1-Hour Timeframe")

// EMA
ema200_daily = request.security(syminfo.tickerid, daily, ta.ema(close, 200))
ema200_4hr = request.security(syminfo.tickerid, fourHour, ta.ema(close, 200))
ema200_1hr = request.security(syminfo.tickerid, oneHour, ta.ema(close, 200))

// RSI
rsi_daily = request.security(syminfo.tickerid, daily, ta.rsi(close, 50))
rsi_4hr = request.security(syminfo.tickerid, fourHour, ta.rsi(close, 50))
rsi_1hr = request.security(syminfo.tickerid, oneHour, ta.rsi(close, 50))

// Manually adjustable input for RANGEFROMEMA
RANGEFROMEMA = input.int(250, title="Range from EMA", minval=1, maxval=1000, step=1)

// Conditions to check if price is near the 1-hour EMA (within 0 to RANGEFROMEMA points)
price_near_ema = (math.abs(low - ema200_1hr) <= RANGEFROMEMA) or (math.abs(ema200_1hr - high) <= RANGEFROMEMA) or (math.abs(ema200_1hr - open) <= RANGEFROMEMA) or (math.abs(close - ema200_1hr) <= RANGEFROMEMA)

// Conditions to check if price is above all EMAs
price_above_all_emas = (close >= ema200_daily) and (close >= ema200_4hr) and (close >= ema200_1hr)

// Conditions to check if RSI is above 50 for Daily, 4H, and 1H
rsi_above_50 = (rsi_daily >= 50) and (rsi_4hr >= 50) and (rsi_1hr >= 50)

// Combine all conditions
condition_to_mark = price_near_ema and price_above_all_emas and rsi_above_50

// Define Big Volume Condition
length = 20 // Look-back period for average volume
avgVolume = ta.sma(volume, length) // Average volume over 'length' periods
bigVolumeCondition = volume > avgVolume * 2 // Big volume is 2x the average volume

// Trigger the alert condition for big volume
alertcondition(bigVolumeCondition, title = 'Big Volume', message = 'Big Volume: Volume is greater than 2x the average volume.')

// Trigger the alert condition for price condition
alertcondition(condition_to_mark, title = 'Price Condition', message = 'Price is near EMA and above all EMAs with RSI above 50.')

// Plot EMA, SMA, and RSI values on the chart
plot(ema200_daily, title="EMA 200 Daily", color=color.blue, linewidth=2)
plot(ema200_4hr, title="EMA 200 4H", color=color.green, linewidth=2)
plot(ema200_1hr, title="EMA 200 1H", color=color.red, linewidth=2)

// Display RSI as labels on the chart
plotchar(rsi_daily, title="RSI Daily", location=location.top, color=color.blue, offset=-1)
plotchar(rsi_4hr, title="RSI 4H", location=location.top, color=color.green, offset=-2)
plotchar(rsi_1hr, title="RSI 1H", location=location.top, color=color.red, offset=-3)

// Mark candles that meet the conditions
plotshape(series=condition_to_mark, title="Ready?", location=location.belowbar, color=color.rgb(217, 0, 255), style=shape.triangledown, text="P", size=size.small)

// Plot "V" for Big Volume
plotshape(series=bigVolumeCondition, title="Big Volume Signal", location=location.belowbar, color=color.blue, style=shape.triangledown, text="V", size=size.small)
Notas de Lançamento
//version=5
indicator("Jitesh-Jain-buying", overlay=true)

// Input for timeframes (user-adjustable)
daily = input.timeframe("D", title="Daily Timeframe")
fourHour = input.timeframe("240", title="4-Hour Timeframe")
oneHour = input.timeframe("60", title="1-Hour Timeframe")

// EMA
ema200_daily = request.security(syminfo.tickerid, daily, ta.ema(close, 200))
ema200_4hr = request.security(syminfo.tickerid, fourHour, ta.ema(close, 200))
ema200_1hr = request.security(syminfo.tickerid, oneHour, ta.ema(close, 200))

// RSI
rsi_daily = request.security(syminfo.tickerid, daily, ta.rsi(close, 50))
rsi_4hr = request.security(syminfo.tickerid, fourHour, ta.rsi(close, 50))
rsi_1hr = request.security(syminfo.tickerid, oneHour, ta.rsi(close, 50))

// Manually adjustable input for RANGEFROMEMA
RANGEFROMEMA = input.int(250, title="Range from EMA", minval=1, maxval=1000, step=1)

// Conditions to check if price is near the 1-hour EMA (within 0 to RANGEFROMEMA points)
price_near_ema = (math.abs(low - ema200_1hr) <= RANGEFROMEMA) or (math.abs(ema200_1hr - high) <= RANGEFROMEMA) or (math.abs(ema200_1hr - open) <= RANGEFROMEMA) or (math.abs(close - ema200_1hr) <= RANGEFROMEMA)

// Conditions to check if price is above all EMAs
price_above_all_emas = (close >= ema200_daily) and (close >= ema200_4hr) and (close >= ema200_1hr)

// Conditions to check if RSI is above 50 for Daily, 4H, and 1H
rsi_above_50 = (rsi_daily >= 50) and (rsi_4hr >= 50) and (rsi_1hr >= 50)

// Combine all conditions
condition_to_mark = price_near_ema and price_above_all_emas and rsi_above_50

// Define Big Volume Condition
length = 20 // Look-back period for average volume
avgVolume = ta.sma(volume, length) // Average volume over 'length' periods
bigVolumeCondition = volume > avgVolume * 2 // Big volume is 2x the average volume

// Trigger the alert condition for big volume
alertcondition(bigVolumeCondition, title = 'Big Volume', message = 'Big Volume: Volume is greater than 2x the average volume.')

// Trigger the alert condition for price condition
alertcondition(condition_to_mark, title = 'Price Condition', message = 'Price is near EMA and above all EMAs with RSI above 50.')

// Plot EMA, SMA, and RSI values on the chart
plot(ema200_daily, title="EMA 200 Daily", color=color.blue, linewidth=2)
plot(ema200_4hr, title="EMA 200 4H", color=color.green, linewidth=2)
plot(ema200_1hr, title="EMA 200 1H", color=color.red, linewidth=2)

// Display RSI as labels on the chart
plotchar(rsi_daily, title="RSI Daily", location=location.top, color=color.blue, offset=-1)
plotchar(rsi_4hr, title="RSI 4H", location=location.top, color=color.green, offset=-2)
plotchar(rsi_1hr, title="RSI 1H", location=location.top, color=color.red, offset=-3)

// Mark candles that meet the conditions
plotshape(series=condition_to_mark, title="Ready?", location=location.belowbar, color=color.rgb(217, 0, 255), style=shape.triangledown, text="P", size=size.small)

// Plot "V" for Big Volume
plotshape(series=bigVolumeCondition, title="Big Volume Signal", location=location.belowbar, color=color.blue, style=shape.triangledown, text="V", size=size.small)

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.