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 • 44 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 • 39 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 • 40 days ago #

    It would be great. Thank you!

  3. Doddge • 39 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 • 36 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 • 35 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
Xenotrax A première vue, sa à l'air d'être un indicateur très puissant sur de petites temporalités, j...
merri Bonjour Nicolas, Comment transformer cet indicateur en bot sur PRT ?
Nicolas Cela a déjà été fait, voir ce sujet: https://www.prorealcode.com/topic/strategia-con-lindica...
Nicolas change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Paolo.B Thanks ... works as i wanted.
Kanamax Bonjour Nicolas, comme Paolo.B je souhaiterais utiliser cette indicateur au sein d'un code. ...
zilliq Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Suzu Yuk He is right. MT and mavgMT are not defined and causing errors.....
RakeshPoluri I have a question about the bands on the candles. Is it bollinger bands or something else?
Nicolas I think that's 2 Bollinger Bands
Emperor.it "style(line,2)" C'è una guida ai parametri che si possono modificare ? Tipo stile della lin...
IV Mcm https://www.prorealcode.com/programming-with-prorealtime/
IV Mcm Good job !
StephFor //ind1 = ZigZagPoint[2*averagetruerange[200]](close) avr = 3 //3% ind1 = ZigZag[avr](close...
Manu L. @Steph un grand merci pour ton aide mais :-( J'ai copier le code tel quel mais cependant j...
AlphaMauss Je n'ai pas réussi à faire fonctionner l'indicateur avec le code fourni en commentaire sur P...
Daniele Maddaluno Écrivez-moi où vous préférez you can easily find me on LinkedIn
AK27 C'est payant visiblement sur linkdin je peux pas vous envoyer, discord vous avez ?
Nicolas C'est dans ce sujet: https://www.prorealcode.com/topic/trendline-une-approche-du-trading/ M...
Pensera Bonjour Nicolas, comment est-il possible de backtester cet indicateur? cela fait une erreu...
Nicolas Oui bien sûr, il doit y avoir pas mal de sujets dans le forum à ce propos.
IV Mcm Vous devez faire un clic droit sur le prix > propriété > ajouter indicateur Si vous...
punch1 Fonctionne pas chez moi il s'affiche rien pourtant j'ai bien fait le clic droit sur le prix ...
punch1 Je peux te faire un screen d'ecran si tu as un email :)
Fabian Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thomas Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
bertrandpinoy @MAKSIDE I would be grateful if you send me your version. have a nice day
Nicolas Il doit s'agir d'un mauvais copier/coller. Je suggère de télécharger le fichier itf contenu ...
Bard Hello @Nicolas, I can get this to display in a separate indicator panel but not on Price as ...
Stenozar Hi @Nicolas, how can I put the bands on price? Thanks, Stefano
Nicolas Oui c'est possible. Merci de ne pas poster des demandes qui sont hors sujets. Pour les deman...
Igor Merci pour cet itf. Question : comment faire pour instruire un screener ?
Nicolas tester le croisement du Close avec la première valeur de l'indicateur : "TrailingStop", faci...
imran Hi I have been trying to test a strategy to buy and sell based on the indicator cross overs...
Zigo I'am sorry that I answer so late, but the code seems to be working perfect. I use the indica...
Guillaume Mcm I gave the above message fix ;)
Tradingrob Is it possible to put the itf-file in the right way here in Prorealcode? so the right 'trend...
Guillaume Mcm Update link ;) https://www.prorealcode.com/topic/trend-histogramme-cci-mise-a-jour-suite-...
oliverkeim Hi, also here not working. Only white lines.
killerplatuze Dont work anymore with the current version?
KryptoKat tolle Arbeit, professionell

Top