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
winnie37 yes. "No ground breaking math here, but I am finding very useful and some algo based on it i...
Jan Wind Also interesting to know what does not work, which set up you use, saves me investigating ! ...
winnie37 i just set the proorder like this: buy when 50/100/200 phase >0 and sell when under 0, go...
Vinks_o_7
5 years ago
IV Mcm I've always wondered how to make the ADX faster, thank you!
Vinks_o_7 You welcome !
Vinks_o_7 Another variation that may be more accurate : we calculate the average of normalized DI's in...
nfulcher Please could someone explain how the following code is calculated:- iDI = TEMA[3](DI[DI2]...
oakenstream Jan, I find sometimes that the priceexit variable is never set. It seems to happen when the ...
Matt66612 I do not understand the first time I launch the backtest I got the same result as you. but ...
Vonasi Yes that was the issue. I have posted an updated ITF file here: https://www.prorealcode.com/...
crolakstrading @vonasi Thank you for fixing the issue! This is a great indicator.
gregoire good evening vonasi , I had made the request to create this indicator a few years ago and I ...
tobytarczy Hi Vonasi, Sounds lovely, I race yachts around europe myself. Most regattas cancelled unfor...
mlouys Hello Vonasi thank for your work ! A question how can we do it for minutes ( or 15 min or x ...
Vonasi I think that would be possible but probably in a whole new indicator as detecting when a new...
sir_i Bonjour à tous, Je suis nouveau sur le forum et sur la plateforme, pourriez-vous me dire com...
Nicolas Il faut simplement l'appliquer sur le prix.
sir_i Merci pour la réponse, je ne suis pas familier avec l'application de cette procédure simple,...
Nicolas change the lastline with: RETURN lastsig and check if lastsig change its value with the a...
nectouxg Hello Nicolas, I will try tonight when I get home, just one last question, I trade the DA...
FXtonio Bonjour, j'ai un problème avec le code, il me dit que ce n'est pas correct ligne 26-27-28: ...
Vonasi There is another version of this indicator that can plot the same lines but onto an indicato...
Martin35 Hello Vonasi, do you think it is possible with PRT to code with the same principle as on thi...
avatar
unkown ;-) sfido chiunque a riuscirci!
avatar
unkown infatti basta leggere i post degli altri....
nicola papangelo ciao Francesco vorrei contattarti su facebook o in privato. Grazie
Janfi Hello, I'm new to ProRealCode and I do not understand the following summation[n](indicator...
Kaci It seems he's just checking that the previous MACD is < 0 for maximum one period ? I'...
Daniel Martin Hi do you know how have and entry after the second cross? There is crosses below 0 and cross...
lokbuscas is it possible to make a screener with this conditions??? thank you
achel I believe so but I leave it to Nicolas to decide if it is possible
Nicolas Please open a new topic in the screeners forum
Paul the last update can be found in topic Strategy DayOpen Straddle for DAX on page 14.
bertrandpinoy l instruction GRAPH pose problème sur PRT... pas vous? cordialement
Nicolas Supprimer simplement les lignes avec GRAPH pour passer en ProOrder, trading live.
fredfilm Hi Nicolas, how could we add a price screen to this? eg stock prices between $1 to $3 etc
Vonasi Discussion on this indicator/filter can be found here: https://www.prorealcode.com/topic/121...
Vonasi Forum discussion on these indicators can be found here: https://www.prorealcode.com/topic/av...
jennr29 Hi. Is it possible to convert this code to an mq4 file?
Nicolas Sorry but our website is dedicated to prorealtime programming. However, you can ask for priv...
snow_onar Very interesting indicator. Thanks for contributing it. What volume node or volume profile i...
Domenec Claro Juanjo de todas maneras en deinversoratrader.com tienes estsos osciladores evolucionad...
Dron Hola Domenec, en la descripción hablas del indicador velas de colores, no lo encuentro en la...
Domenec Hola Dron mira en el blog deinversoratrader.com en formacion indicadores ahi hay varios grat...

Top