Top Bottom indicator

v10.3
Top Bottom indicator

The Top and Bottom indicator is using the breakout of the most recent tops and bottoms of the last x periods to start counting the number of bars elapsed since the events.

  • When the bars count of the last bearish breakout is higher than the bars count of the last bullish breakout, a buy signal is generated.
  • When the bars count of the last bullish breakout is higher than the bars count of the last bearish breakout, a sell signal is generated.

Code converted from another trading platform programming language, as per a request in the indicators forum.

 

 

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. Xtian • 10/08/2020 #

    Bonjour Nicolas, est-il possible de vous contacter en message privé pour une demande d’un développement spécifique sur PRT ?

  2. Alai-n • 10/08/2020 #

    https://www.prorealcode.com/trading-programming-services/ 😉

  3. Madrosat • 10/08/2020 #

    Bonjour Je sèche quelqu’un peut il me détailler précisement cette ligne loc = low < lowest[per](low[1]) and low <= lowest[per](low[per])

  4. im3hdvpcyxlh • 10/08/2020 #

    Hi Nicolas. Is it possible to screen for those giving iBuy signal yesterday? Even better – those that were iSell 2 days ago? TIA

    • Nicolas • 10/08/2020 #

      I don’t know how what signals you are talking about, where and when? To get signals from the indicator just test if the Top value crosses over or under the Bottom one.

    • im3hdvpcyxlh • 10/08/2020 #

      I would like to implement screener for the first bar that signals now an iSell to iBuy state change, from previous bar[1] to latest bar, signaling a buy opportunity (and vice versa)

  5. LAMARRE • 10/08/2020 #

    Bonjour Nicolas,
    est ce que ton indicateur est utilisable sur toutes les UT ? Et sur la dernière version de PRT ?

    Meri pour ton retour

    • Nicolas • 10/08/2020 #

      Oui, il peut être appliqué sur toutes les unités de temps et fonctionne sur prorealtime v11.

  6. superprof • 10/08/2020 #

    salut
    merci pour ton indicateur. Pour bien comprendre , si suis acheteur à quelle comment je dois sortir du Trade ( graphiquent ??) et idem si je suis vendeur a quelle moment je ferme ma position.
    Merci beaucoup

    • Nicolas • 10/08/2020 #

      A discrétion, bon courage dans ton apprentissage du trading.

  7. Manu L. • 10/08/2020 #

    Bonjour Nicolas,

    j’ai créé un screener avec l’aide à la prog en TF weekly mais je voudrais adapter celui-ci en monthly.
    Une solution ?

    ignored, indicator1 = CALL “PRC_Top Bottom Indicator”[3, 4]
    c1 = (indicator1[1] > 0)

    ignored, indicator2 = CALL “PRC_Top Bottom Indicator”[3, 4]
    c2 = (indicator2 = 0)

    SCREENER[c1 AND c2] ((close/DClose(1)-1)*100 AS “% Veille”)

  8. wtangsiri • 10/08/2020 #

    C’est exactement le même signal que donne le croisement et le décroisement de deux EMA (7 et 20), comme par hasard ?

  9. PHAN100 • 10/08/2020 #

    bonjour,

    j’ai un bug sur le programme recopié prorealtime me dit qu’il y a un problème à la ligne 14, caractère 6..
    j’ai tout bien recopié , je ne comprends pas. si quelqu’un peut m’aider? merci.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+15 more likes

Related users ' posts
nicko Many Thanks Viv. It looks good
Nokis Bonjour Vivien, Comment je peux faire pour adapter ton code afin: De cibler les sociétés q...
sam00075 I tried it today and it gave great results. So a big Thanks !
Dunstan I would like to get guidance_ How do I access and attach this indicator to my MT5 platform...
Nicolas You can't, use prorealtime, it's way better
jc84 Thank you very much for this indicator , not provided by PRT I was actually working at thi...
Nicolas Oui le code est correct et il fonctionne, j'ai de bons résultats sur la liste NASDAQ par exe...
pincherman Bonjour :-) J'ai coller le script dans prorealtime pour jouer avec le supertrend et j'ai un...
Nicolas Vous l'avez sans doute collé au mauvais endroit, dans l'éditeur de code pour les stratégies,...
IV Mcm Bonjour, Je ne reconnais pas cette ligne dans le code, essayer de télécharger directement le...
Manu L. Bonjour, Possible de créer un screnner multiframe Mois dans Ichimoku semaine dans Ichimok...
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-...
Bard Hi @Vonasi, this is an excellent tool! I noticed you times by 180 and was wondering why? W...
Bard I have no idea what is wrong with the posting on this website. I have problems editing posts...
Bard And now my first post displays okay? It literally had copies of my orig post all added toget...
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...
Nicolas Pour créer des alertes, vous pouvez suivre ce petit tutoriel : https://www.prorealtime.com/f...
thibault76 Bonjour Nicolas, cette stratégie est intéressante. Par contre, en 2022, le code ne fonction...
Nicolas Aucun message d'erreur pour ma part en version 11.1. Tu es certain de créer un code d'indica...
carpentier Joffrey Bonjour à tous, Avant tout merci pour ce travail, cependant je suis bloqué quand je l'insta...
carpentier Joffrey Re, C'est ok, j'ai trouvé mon erreur... Cependant sur quel base peut on calculer son CALC...
Aragorna Hi Nicolas, How is it possible to use it in a higher timeframe plotted on a lower timeframe?...
Denis Hello Nicolas, Thank you and congratulations for your work. The entry signals seem interes...
mia Bonjour j'arrive pas a integrer l'indicateur sur mt4 comment faire svp mercii
Nicolas Il ne s'agit pas d'un indicateur MT4, je vous suggère d'utiliser ProRealTime qui est une mei...
Nicolas No mistake, few signals.
dawn168 Nicolas, I cannot get this one to work on tradingview. Got the following error message. Can ...
Nicolas There is no code for Tradingview on this website.
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 ...
Vinks_o_7 Thanks again Vonasi !
Bard Thank you, this is a great tool @Vonasi, especially for those that used to like shorting Ind...
Aragorna Hi Vonasi, is there a reason why it does not work anymore in new version ePRT Platform? tha...
sycomore Ça ne fonctionne sur aucune valeur, je dois être trop con...
Nicolas il faut appliquer l'indicateur sur le prix.
AntoGH Je crains de ne pas comprendre... Cela indique la probabilité de la prochaine bougie ou donn...
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
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
Hasardeur Hallo Nicolas, i tried to code the multi period heat map in combination with the Ehler’s ...
Nicolas Please open a new topic with the code in forum.

Top