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
Gaspare Ciao Ivan si puo' inserire una strategia su questo indicatore per ottimizzare le variabil...
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.
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
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
Nicolas
9 months ago
Anthony2A Bjr, j ai des erreurs sur la ligne 69, 74, 78 et 80. sur drawcandle drawtext et endif. si ...
Lucas0000 Hello, Congratulations on this programming, it seems incredible to me, I am new to this but ...
plbourse Hello, I am trying to use this singal (in fact I have converted it to an indicateur giving B...
FXtonio @RICOU en 1 minutes avec un filtre de tendance ZLSMA 200 et eventuellement un rsi 7 , 69% de...
JC_Bywan For people interested in the screener: https://www.prorealcode.com/topic/screener-buy-sell-m...
octum Gracias NJicolas. Las lineas 35 y 36 dan fallo. (¿Es adrede para iniciados?) Puedes co...
Nicolas Je ne rencontre pas ce problème avec le NASDAQ par exemple, ce serait plus simple d'ouvrir u...
YvesRobert Bonjour Nicolas, en effet ca marche, je me suis trompé, j'ai bien tout le tracé. C'est parce...
oliTR Bonjour, les conditions longCond et shortCond ne contiennent-elles pas une condition qui s'a...
JohnScher Postscript: It's running in the live right now. One position after the other is opened. ...
ullle73 nice!! how's it been since your last post on going live? :)
thomas2004ch Hi, Is this strategy suitable for daily SPY? Regards
AndPar Buongiorno Nicolas, vorrei provare questo indicatore, ma quando lo inserisco in PRT mi vengo...
Nicolas Basta aggiungerlo al prezzo https://www.prorealcode.com/blog/video-tutorials/how-to-add-an-i...
Aragorna hello Nicolas, this indicator works with the last Beta version of PRT? Ive seen tha many in...
wally Hola soy nuevo en el mudo robots. Alguien seria tan amable de poner el archivo itf.file ya q...
Darren Nash I found this works well on the DOW
thomas2004ch Hi John, Is your strategy suitable for daily SPY? Regards
KAMJKAZE thanks, really interesting!
2c95 thanks, why do U prefer average than lowest ? to close under average does'nt mean another...
Stenozar Hi Sever, how can I visualize the coloured areas?
Sever Hi Stenozar, You need to add the color zones yourself , just go to Add Color Zone To set ...
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. ...
Boris Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
IV Mcm With pleasure and thanks!
ashiash how to use this indicator can i use tradingview platform
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.....
Maxime Baudin Super travail !
Yanic c'est top j'adore
Maxime Baudin Merci l'ami, passe une bonne semaine
IV Mcm Merci de même ;)

Top