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 • 21 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 • 16 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 • 17 days ago #

    It would be great. Thank you!

  3. Doddge • 16 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 • 13 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 • 12 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
Related users ' posts
kats Bonsoir, cet indicateur est vraiment très bien avec plusieurs possibilités en coloration . ...
roccafragius Thank you Ivan for your indicators, very very interesting!!!!
kats Bonsoir, Pensez vous pouvoir répondre à ma question posée ci dessus? Ce serait vraiment tr...
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
Iván Hi! You should change $rbox, $gbox and $bbox variables. Also r,g,b for last box.
finplus Thanks Ivan.
roccafragius Ivan, I just want to say you.. very very great job!!!! Thank you so much for this indicator!...
Iván
3 weeks 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,...
P. Marlowe Quite an impressive work, Iván. Extremely useful and accurate. Congratulations. Keep it up¡
lkiklkik i love it !!! thanks.
Stenozar Hi Ivan, can you translate from tradingviwe the EMA TREND METER INDICATOR? It couid be inte...
Iván Hi Yes I can. Please, create a new topic for that I will translate it.
Stenozar Hi Ivan, I've created a new topic about the indicator: https://www.prorealcode.com/topic/ema...
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
2 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: ...
Iván
2 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
gidien
3 months ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Bateson
5 months ago
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
elcortijoverde Muy buen trabajo.Intuitivo y claro.Gracias por tu dedicación y aportación.
Nicolas Simple strategy with this indicator is available here: https://www.prorealcode.com/topic/ut-...
FXtonio Nicolas.... MERCI 1 millions de fois, cet indicateur gagne dans 75% des cas en scalping m1 ...
davy42 bonjour, à quel moment apparait le fleche, à l'ouverture ou la fermeture de la bougie? merci

Top