UT Bot Alerts indicator

UT Bot Alerts indicator

The UT Bot alerts indicator is a typical trend following indicator.

The UT Bot Alerts is based on the price position and its trail stop.

When the price is above its trail stop the indicator is in an uptrend, and therefore the candles are coloured green, signalling the beginning of a trend with a green arrow.

When the price is below its trail stop the indicator is in a downtrend and the candlesticks are coloured red, marking the beginning of the trend with a red arrow.

Accompanying the price is a trail stop line which is based on the difference between the price and x times its ATR. This makes it a suitable indicator for all types of volatility, as it adjusts according to the market.

Indicator configuration:
– Type of closure: heikin ashi or not.
– a: factor that multiplies the ATR. Provides more or less sensitivity to price movements.
– c: ATR periods.

You can also configure the indicator to show or not the arrows and the colour of the candles.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

  1. RTR • 225 days ago #

    Hi Ivan,
    Could you make a Proscreener with this indicator when a buy and a sell signal (green and red arrows) appear? Also, how would you filter the arrows (buy or sell order) when there is no much movement in the market to avoid entering in the market?

    • Iván • 220 days ago #

      Hi, to avoid range markets you could combine this indicator with ADX for example or another one.
      If you want to create a screener you only have to delete all drawing/plotting lines and delete variables not used in the screener.

      //PRC_UT Bot Alerts
      //version = 1
      //15.02.24
      //Iván González @ http://www.prorealcode.com
      //Sharing ProRealTime knowledge
      ///inputs
      a = 1.3 //Key Vaule. ‘This changes the sensitivity’ – Decimal
      c = 10 //ATR period – Integer
      heikin = 1 // boolean. True work as Heikin A
      /////////////////
      xatr = averagetruerange[c](close)
      nLoss = a * xatr

      if heikin then
      src = (open+close+high+low)/4
      else
      src = close
      endif

      if barindex < c then
      xatrTrailingStop = undefined
      pos = 0
      else
      if src > xatrTrailingStop[1] and src[1] > xatrTrailingStop[1] then
      xAtrTrailingStop = max(xatrTrailingStop[1],src-nLoss)
      else
      if src < xatrTrailingStop[1] and src[1] < xatrTrailingStop[1] then
      xAtrTrailingStop = min(xatrTrailingStop[1],src+nLoss)
      else
      if src > xatrTrailingStop[1] then
      xAtrTrailingStop = src-nLoss
      else
      xAtrTrailingStop = src+nLoss
      endif
      endif
      endif

      if src[1] < xatrTrailingStop[1] and src > xAtrTrailingStop[1] then
      pos = 1
      else
      if src[1] > xatrTrailingStop[1] and src < xatrTrailingStop[1] then
      pos = -1
      else
      pos = pos[1]
      endif
      endif
      endif

      ///////Trading conditions
      ema = average[1](src)
      above = ema crosses over xatrTrailingStop
      //below = ema crosses under xatrTrailingStop

      buy1 = src > xatrTrailingStop and above
      //sell1 = src < xatrTrailingStop and below

      screener[buy1]

  2. RTR • 221 days ago #

    It would be great. Thank you!

  3. Doddge • 220 days ago #

    Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indicador “Linear Regression Candles” cruzan por encima de este indicador UT Bot Alerts indicator?

    Muchas gracias

  4. RTR • 217 days ago #

    Ivan thank you for the pro-screener. I a trying to understand how to write the signals from your indicator into code. I am looking at your proscreener and indicator but I don´t get where the “buy” and “sell” signals are triggered or what part of the code is for “buy” and what part is for “sell”. Can you please tell us what the code for “buy” and for “sell” is? I would like to use them.

    • Iván • 216 days ago #

      Hi,
      Lines 62 and 63. These lines define buy and sell conditions.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Iván
2 weeks ago
Madrosat Bonjour ivan Quelle différence il y a t il entre Extra trend et ultra trend lequel est le p...
P. Marlowe Muy bueno. ¿Podría hacerse para señalar extremos por el lado bajista? Lo mismo a la inversa....
Miro Esta es una versión del indicador, para ambos extremos. //-------------------------------...
P. Marlowe Muchas gracias ¡¡
MaoRai54 dear Ivan, it seems to be very interesting but please clarify what are all the lines I see i...
Iván Hi! you have the answer in the last line of code... MacdMiddle as "histo" style(histogra...
kats Le Top , a utiliser avec le nuage violet et alerte TN pour plus de précision.
roccafragius Hello Ivan, very good job! May I ask you to translate teh script from TradingView named Tre...
Iván Hi! yes. You can ask for it here: https://www.prorealcode.com/free-code-conversion/
roccafragius Thank you so much Ivan! I created this request in english Translate from TradingView Indicat...
Regisnew très bel indicateur merci
Jean2139 Bonjour Yvan, Merci pour ton indicateur que je trouve très intéressant. Je suppose que tu ...
Suffi Hier eine kleine Korrektur: //-----Inputs-----------------------------------------// MALengt...
kats Bonjour, J'ai une question etes vous trader? Je m'explique , j'ai téléchargé tous les indi...
Faisalx Hola Ivan. Thanks for your great job. I would appreciate if you have look at my request http...
roccafragius Thank you for all these useful information!! Very great job Ivan! THank you so much
geroniman Merci Ivan, super travail. On peut toujours compter sur toi pour apporter des innovations su...
Stenozar Ciao mi restituisce errore line 1; forse è perchè utilizzo la versione 11 ? in questo caso d...
Stenozar Ciao IVAN , mi da errore per la riga 49 "print tema low"; puoi suggerirmi la modifica da met...
Iván Avete provato a scaricare il file .itf?
Iván Allora crei un nuovo post. Lo aspetterò.
Stenozar Ciao Ivan, ho inserito il post con la richiesta di traduzione. Se puoi vedere, grazie!
Iván perfect!
kats BONSOIR c bon merci j ai trouve ce weekend merci de votre reponse cdlt
the_giorgio Hi, nice work I would like to understand something about prorealtime code. With your ...
Iván Hello. When you use the drawcandle() instruction then in the configuration window you add ...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
larouedegann TIMEFRAME(15minutes) apparemment ne fonctionne pas
Iván Bonjour Je ne comprends pas bien le problème. L'indicateur fonctionne dans n'importe quelle...
larouedegann OUI je le sais, il fonctionne dans toutes les unités de temps. Mais je souhaite utiliser l'i...
Iván
7 months ago
Iván Si lo descargas e importas en tu PRT verás que se han creado las variables para luego config...
WhyAskOZ Hi, Ivan As always you are doing great coding. The code works on my PRT, however the issu...
Iván You can delete in the last line (return) the configuration for color. Delete coloured(xx,xx,...
Bernard13 (Je réécris mon commentaire -français- en français car certains mots ne correspondaient pas ...
Iván 1000 indicateurs !!! brutaux
Lean Me parece muy buen indicador, y se complementa muy bien en mi sistema, ¿podrías crear un scr...
Iván Gracias! Para el screener sólo tienes que copiar el indicador y poner como condición de búsq...
Lean Muchas gracias Iván, ya lo he podido crear.
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Iván
9 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...

Top