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 • 359 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 • 354 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 • 355 days ago #

    It would be great. Thank you!

  3. Doddge • 354 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 • 351 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 • 350 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 avatar
Related users ' posts
Godo Bonjour Souhait Sam, Après de nombreux essais pour le mettre en format afin d'utiliser ce c...
Nicolas Il faut supprimer celles qui existent dans la fenêtre d'optimisation et les créer en dur dan...
crusoe76 hi there, anyone can help making this strategy work, i have a message saying replace variabl...
Screw27 Salut nicolas j'aimerais savoir tes résulats grace a cettte methode
eva.g.forsgren It dose not work, I get a strap instead of candels???????????????????????????????????????????
Nicolas That indicator is the one below the chart. The indicator to put on the price chart is this o...
pyhrus P.S : IG , que j'ai contacté ,m'indique que la version V11 , ne sera pas disponible avant un...
Hasardeur Dear Nicolas, is there someting at the arry to modify in order to run the trend at the actu...
MALIMALO Dear Nicolas, just try touse your indicator with backtest but it's not working. is anybody...
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
ipbvba Est il possible de le transformer en indicateur (pour ne plus avoir les lignes mais uniqueme...
supertiti Bonjour Nicolas, Je ne comprend pas bien , le trend change de couleur quand les prix sont a...
Nicolas Oui ce serait possible, cependant l'indicateur est bien prévu pour conserver la couleur de l...
supertiti Quand tu pourras si tu peux nous coder la troisième couleur cela améliorerait les trades cou...
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
Nicolas remplacer les valeurs de coloured(0,255,0) par coloured(r,g,b) et ajouter ces noms de variab...
mohamed merci Nicolas!
sacram14 Merci Nicolas pour ce set-up que je ne connaissais pas ! J'ai tenté de reprendre le code pou...
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
Alessandro Furlani Hi Ian, hope you still use PRT and so you can read this post. I have tested a lot your work ...
Stockastiss Can this code be simply transferred into Backtestingcode so one doesnt need to use call ? (i...
Vonasi Sorry for the late reply. Add the code to your strategy and remove line 5 and line 39. Chang...
viktorthunss Hi! How many averages are there? Can I see the somewhere?
leofi https://www.prorealcode.com/topic/simple-average-with-visual-color/
leofi Go visit www.prorealcode.com/topic/simple-average-with-visual-color/ and watch 2em post
Dritan Hi,I am new on Prorealtime and coding.I downloaded the indi but I have it on a separate wind...
Nicolas Just add it on the price series.
yomisadiku Hello Nicolas, Can I use high and low price at lines hh=max(hh,close) and ll=min(ll,close) ...
Nicolas Yes you can do that, the impact will be that the trailing stop line will be much close to th...
Byggtrader Hi Nicolas! How do I get the indicator in the price chart? It only stays under i new chart.
Nicolas Just add it on the price chart by using the wrench on the left upper side of the chart (pric...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...
Globalmarkets79 Thank you Vonasi for the answer. I have an other question. When i tried to run the indicator...
Vonasi Lines is either 0 or 1 to turn on or off the drawing of them. Once again if you download and...
Globalmarkets79 Thank you Vonasi, this indicator is very helpful!!!
Nicolas
6 years ago
Bateson Merci pour la réponse Nicolas. C'est bien ce que j'ai fait mais ça ne fonctionne toujours pa...
Enzo Paliotti Veramente ottimo, era quello che cercavo, si potrebbe modificare inserendo come variazione a...
Nicolas Perché no, chiedetelo con una descrizione dettagliata nel forum degli indicatori, per favore!
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
LucioleLucide Clean view, thanks for sharing
dertopen hi where i can found the window for candle configuration?
paolosab69 Ciao! . I have seen the pictures that explain this metod but i don't understand when is mome...

Top