TradingView – Indicator Key Threshold
Dans ce tutoriel vidéo, je vais vous expliquer comment ajouter cet indicateur à votre plateforme TradingView. Nous verrons aussi, comment modifier les couleurs et l’apparence des différentes symboles qui composent cet outil.
Tutoriel vidéo
Code Indicateur
Je tiens à remercier KrustyHack d’avoir contribué à l’amélioration de cet indicateur avec l’ajout d’alerte dès détection d’un nouveau seuil clé.
//--------------------------------------------------------------------------- // Key threshold detection tool // Created by Guillaume POIS by ChartsInside.fr // Updated by Nicolas Hug <@KrustyHack> // At the request of Khalid El Bouzidi // Discover my Ichimoku and other market scanners for // ProRealTime, MetaTrader4, MetaTrader5 & TradingStation on ChartsInside.fr // All rights reserved - Copyright 2020 ChartsInside // // Contact : guillaume@chartsinside.fr // WebSite : https://www.chartsinside.fr/ // FaceBook : https://www.facebook.com/chartsinside.pro.1 // Twitter : https://twitter.com/ChartsInside //--------------------------------------------------------------------------- //@version=4 study(title = "Key Threshold", shorttitle = "Key Threshold", overlay = true) //-- Custom Indicator ------------------------------------------------------- ColorUp = color.red // Color Arrow Up Signal ColorDown = color.green // Color Arrow Down Signal SizeSignal = size.tiny // Signal Size (tiny, auto, small, normal, large, huge) Transparency = 0 // Signal Opacity //-- Do not touch the code below -------------------------------------------- t1 = high[9]>=high[8] and high[9]>=high[7] and high[9]>=high[6] and high[9]>=high[5] and high[9]>=high[4] and high[9]>=high[3] and high[9]>=high[2] and high[9]>=high[1] t2 = high[9]>=high[10] and high[9]>=high[11] and high[9]>=high[12] and high[9]>=high[13] and high[9]>=high[14] and high[9]>=high[15] and high[9]>=high[16] and high[9]>=high[17] r = t1 and t2 b1 = low[9]<=low[8] and low[9]<=low[7] and low[9]<=low[6] and low[9]<=low[5] and low[9]<=low[4] and low[9]<=low[3] and low[9]<=low[2] and low[9]<=low[1] b2 = low[9]<=low[10] and low[9]<=low[11] and low[9]<=low[12] and low[9]<=low[13] and low[9]<=low[14] and low[9]<=low[15] and low[9]<=low[16] and low[9]<=low[17] s = b1 and b2 plotshape(r, style=shape.triangleup, location=location.abovebar, offset=-9, color = ColorUp, size = SizeSignal, transp=Transparency) plotshape(s, style=shape.triangledown, location=location.belowbar, offset=-9, color = ColorDown, size = SizeSignal, transp=Transparency) alertcondition(r, title='Ichimoku Key Thresold Triangle Down', message='Ichimoku Key Thresold Triangle Down') alertcondition(s, title='Ichimoku Key Thresold Triangle Up', message='Ichimoku Key Thresold Triangle Up')
Note : Il y a une manière plus professionnelle de coder cet indicateur mais cette autre manière n’identifiait pas tous les signaux, c’est pour cela que j’ai préféré opter pour ce code. 😉