Aroon Impulse

Aroon Impulse

This code is designed to visually represent the “Aroon” indicator, a popular tool in financial trading. The Aroon indicator helps determine the strength and direction of a trend in the market.

Here’s what the code does step by step:

  1. Aroon Values:
    up = AroonUp[period]: This gets the value of the “Aroon Up” for a specified period.
    dn = AroonDown[period]: Similarly, this gets the value of the “Aroon Down” for the same period. These two values show how long it’s been since the highest high (for “Aroon Up”) and the lowest low (for “Aroon Down”) were last seen within that period.
  2. Setting Default Colors r=255 and g=255: Sets up default red (r) and green (g) values to a maximum (255 is the max value in RGB color code). This combination results in a yellow color.
  3. Checking Aroon Values and Adjusting Colors: – If the “Aroon Up” value is greater than the “Aroon Down” value and surpasses a certain level (determined by leveltrigger), the color is set to green (r=0 and g=255). – If the “Aroon Down” value is greater than the “Aroon Up” value and it exceeds the leveltrigger, the color is set to red (r=255 and g=0).
  4. Output: return 100 coloured(r,g,0) style(histogram)`: This is displaying a histogram (like a bar chart) with a height of 100 units, and the color of the histogram bar will be either green or red based on the conditions above. The height value “100” here is arbitrary and is likely for visualization consistency.

In simpler terms: The code checks the strength and direction of the market trend using the Aroon values. If the market trend is going upwards and is strong, it displays a green bar. If it’s heading downwards and is strong, it displays a red bar. If neither condition is met, it might display a yellow bar, depending on how the rest of the code is structured.

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. Florian • 255 days ago #

    Hello Nicolas,
    This indicator repainting ?

    • Nicolas • 255 days ago #

      It’s impossible for it to repaint the values of the past.

avatar
Register or

Likes

avatar avatar avatar avatar avatar
Related users ' posts
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...
larouedegann Très Très bon indicateur. Je l'utilise en 1minute
NEOMKEY Excelente trabajo. Lo uso también en scalping de 1 minuto.
philippe59139 bonjour zeiiermantrading , merci pour ton excellent travail, je me suis permis de rajouter ...
DELBERT Bonjour , Nicolas , je voudrais installer cet indicateur sur ma PRT , version 10.3 , mais je...
Nicolas En effet, il faut à minima une version 11. La 10.3 est tellement ancienne maintenant.. Je pe...
DELBERT Bonjour , Nicolas , merci pour ta réponse , je fais un essai et je verrais . Salutations .
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...
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...
ak5hay2 Works like crazy on bitcoin. Use different timeframes. Thanks a lot Doc!!!
richyowen Hi, great code thanks. Very new to this forum. Is there a way to add a 100point target on an...
lisamitch50 Morning all, Just backtested on quite a few instruments, worked well on backtesting, but tel...
bazilou pouvez expliquer donchian bias merci
rb-72 Thank you, area of twist by dilatacion of the price, missing part of the code that is not pu...
Thomas007 after reading your blog now I understand why there is only a part of your code here. I'm try...
Juanjo Hola¡¡ la estrategia se podria aplicar sobre acciones con marco temporal diario?? gracias.
Marcel If you are interested in my way of trading, please follow me on Twitter @MvvTrading
Genotik Excellent, merci !
diegofe_2000 Excelente indicador, felicitaciones, muy bueno
TempusFugit Masala, thanks for your contribution. I don´t like the offmarket spreads neither ;) I unders...
Uveus Tempus, me da un error al validar el codigo, sobre la variable N. Al crear el indicador me ...
TempusFugit Hi Uveus, I am guessing you inserted the code of the indicator into the system code, is ...
JR1976 Dear Mike , your screener seem interest and simple... Do you try to envelope an automat...
Player Hi Mike, What is the name of the indicator just under the MMA ? Thanks Regards Marc
Igor Hi Mike, What is the name of the indicator just under the MMA ? Thanks Regards
wtangsiri Bonjour J'ai importé le fichier ITF en question, mais cela me donne, en bas de l'écran, un...
Nicolas Il faut ajouter l'indicateur sur le graphique du prix.
skuggan89 This is a great indicator, works very well!! Is there any algo based on this indicator that ...

Top