MTF Rsi + Dashboard MTF

 

Indicateur MTF RSI - Guide d'utilisation

Introduction :
Le script Pine MTF RSI (Relative Strength Index sur plusieurs périodes) a pour objectif de fournir aux traders une vue complète de l'indice de force relative (RSI) sur plusieurs périodes. Le script comprend un graphique principal affichant les valeurs du RSI et un tableau de bord résumant les tendances du RSI pour différentes périodes.

Installation :

Copiez le script Pine fourni.
Ouvrez la plateforme TradingView.
Créez un nouveau script.
Collez le code copié dans l'éditeur de script.
Enregistrez et appliquez le script à votre graphique.
Graphique Principal :

Le graphique principal affiche les valeurs du RSI pour la période sélectionnée (5, 15, 60, 240, 1440 minutes).
Les lignes de différentes couleurs représentent les valeurs du RSI pour différentes périodes.
Niveaux de Surachat et de Survente :Les niveaux de surachat (70) sont marqués en rouge, tandis que les niveaux de survente (30) sont marqués en bleu pour différentes périodes.
Tableau de Bord :

Le tableau de bord est une référence rapide pour les tendances du RSI sur plusieurs périodes.
Chaque ligne représente une période avec des informations de tendance du RSI correspondantes.
Les flèches (▲ pour haussier, ▼ pour baissier) indiquent la tendance actuelle du RSI.
Les couleurs des flèches représentent la tendance : bleu pour haussier, rouge pour baissier.
Paramètres :

Les utilisateurs peuvent personnaliser la longueur du RSI, la couleur de fond et d'autres paramètres.
La couleur de fond du tableau de bord peut être ajustée pour des thèmes clairs ou sombres.
Interprétation :

Tendance Haussière : Flèche ▲ et couleur bleue.
Tendance Baissière : Flèche ▼ et couleur rouge.
Des valeurs du RSI au-dessus de 65 peuvent indiquer des conditions de surachat, tandis que des valeurs en dessous de 35 peuvent indiquer des conditions de survente.
Conseils Pratiques :

Sélection de la Période : Considérez l'alignement des tendances sur différentes périodes pour une analyse de marché complète.
Confirmation : Utilisez des indicateurs supplémentaires ou une analyse technique pour confirmer les signaux du RSI.
Tests en Arrière : Avant de l'appliquer en trading réel, effectuez des tests en arrière approfondis pour évaluer la performance du script.
Ajustement : Modifiez les paramètres selon vos préférences de trading et les conditions du marché.
Clause de non-responsabilité :
Ce script est un outil d'analyse technique et doit être utilisé en conjonction avec d'autres indicateurs. Il ne s'agit pas de conseils financiers, et les utilisateurs doivent effectuer leurs propres recherches avant de prendre des décisions de trading. Ajustez les paramètres en fonction de vos préférences personnelles et de votre tolérance au risque. Utilisez le script de manière responsable et à vos propres risques.

 

________________________________________________________________________________________CODE   PINE SCRIPT  ________________________________________________

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © SESE04 TRADERS JOURNAL

//@version=5
indicator('MTF Rsi + Dashboard MTF ', overlay=false)

indicator_1 = ta.rsi(close, 14)

tf1 = input.timeframe('15')
tf2 = input.timeframe('60')
tf3 = input.timeframe('240')
tf4 = input.timeframe('1440')

s0 = request.security(syminfo.tickerid, timeframe.period, indicator_1)
s1 = request.security(syminfo.tickerid, tf1, indicator_1)
s2 = request.security(syminfo.tickerid, tf2, indicator_1)
s3 = request.security(syminfo.tickerid, tf3, indicator_1)
s4 = request.security(syminfo.tickerid, tf4, indicator_1)

// Plotting RSI values
plot(s0, title='5-Min', color=color.new(color.blue, 0))
plot(s1, title='15-Min', color=color.new(color.green, 0))
plot(s2, title='60-Min', color=color.new(color.black, 0))
plot(s3, title='240-Min', color=color.new(color.orange, 0))
plot(s4, title='1440-Min', color=color.new(color.red, 0))

// Plotting overbought and oversold levels
hline(70, 'Overbought 15-Min', color=color.red, linestyle=hline.style_solid, linewidth=2)
hline(30, 'Oversold 15-Min', color=#2707fc, linestyle=hline.style_solid, linewidth=2)

hline(70, 'Overbought 60-Min', color=color.red, linestyle=hline.style_solid, linewidth=2)
hline(30, 'Oversold 60-Min', color=#0934f3, linestyle=hline.style_solid, linewidth=2)

hline(70, 'Overbought 240-Min', color=color.red, linestyle=hline.style_solid, linewidth=2)
hline(30, 'Oversold 240-Min', color=color.rgb(5, 48, 238), linestyle=hline.style_solid, linewidth=2)

hline(70, 'Overbought 1440-Min', color=color.red, linestyle=hline.style_solid, linewidth=2)
hline(30, 'Oversold 1440-Min', color=#1207f3, linestyle=hline.style_solid, linewidth=2)

//DASHBOARD


rsiLength = input(14, title='RSI Length')
rsiSource = close
rsiValue = ta.rsi(rsiSource, rsiLength)

rsiValue_5min = request.security(syminfo.tickerid, '15', rsiValue)
rsiValue_15min = request.security(syminfo.tickerid, '60', rsiValue)
rsiValue_1hour = request.security(syminfo.tickerid, '240', rsiValue)
rsiValue_4hour = request.security(syminfo.tickerid, '1440', rsiValue)

// Determine Bullish and Bearish conditions
isBullish_5min = rsiValue_5min > rsiValue_5min[1]
isBearish_5min = rsiValue_5min < rsiValue_5min[1]

isBullish_15min = rsiValue_15min > rsiValue_15min[1]
isBearish_15min = rsiValue_15min < rsiValue_15min[1]

isBullish_1hour = rsiValue_1hour > rsiValue_1hour[1]
isBearish_1hour = rsiValue_1hour < rsiValue_1hour[1]

isBullish_4hour = rsiValue_4hour > rsiValue_4hour[1]
isBearish_4hour = rsiValue_4hour < rsiValue_4hour[1]

// Determine theme based on background color
bgcolor = input(#ffffff, title="Background Color")

var frame_color = bgcolor == color.white ? color.new(#070000e6, 10) : color.new(#000000, 10)
var border_color = bgcolor == color.white ? color.new(#090000, 10) : color.new(#000000, 10)
var text_color = bgcolor == color.white ? color.new(#ffffff, 0) : color.new(#000000, 0)

// Determine arrow colors
arrowColorBullish = color.new(color.blue, 0)
arrowColorBearish = color.new(color.red, 0)

// Create dashboard
var table trendTable = table.new(position.top_center, 9, 7, bgcolor=bgcolor, frame_color=frame_color, frame_width=1, border_color=border_color, border_width=1)

table.cell(trendTable, 1, 1, "", text_color=text_color)
table.cell(trendTable, 1, 2, "RSI", text_color=text_color)

table.cell(trendTable, 2, 1, "5M", text_color=text_color)
table.cell(trendTable, 2, 2, isBullish_5min ? "▲" : isBearish_5min ? "▼" : "", text_color=isBullish_5min ? arrowColorBullish : isBearish_5min ? arrowColorBearish : color.new(color.white, 0))

table.cell(trendTable, 3, 1, "15M", text_color=text_color)
table.cell(trendTable, 3, 2, isBullish_15min ? "▲" : isBearish_15min ? "▼" : "", text_color=isBullish_15min ? arrowColorBullish : isBearish_15min ? arrowColorBearish : color.new(color.white, 0))

table.cell(trendTable, 5, 1, "1H", text_color=text_color)
table.cell(trendTable, 5, 2, isBullish_1hour ? "▲" : isBearish_1hour ? "▼" : "", text_color=isBullish_1hour ? arrowColorBullish : isBearish_1hour ? arrowColorBearish : color.new(color.white, 0))

table.cell(trendTable, 6, 1, "4H", text_color=text_color)
table.cell(trendTable, 6, 2, isBullish_4hour ? "▲" : isBearish_4hour ? "▼" : "", text_color=isBullish_4hour ? arrowColorBullish : isBearish_4hour ? arrowColorBearish : color.new(color.white, 0))