The BSTrend indicator shows you the prevailing currency trend. Blue bars indicate uptrend (1). Violet bars indicate downtrend (-1).

Trading Signals:

  • BUY: Wait for the first blue bar.
  • SELL: Wait for the first violet bar.

(converted from MT4 version by request in the English 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?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. Teddy Coronak • 69 days ago #

    Merci Nicolas pour ce fabuleux indicateur.
    Top!!! Après avoir fait mes tests.

  2. SAM • 65 days ago #

    Hi Nicolas,
    Thank for this code…. i look that the picture that you have posted is for a tick-grafic. What is the best time frame for this indicator?

    • Nicolas • 65 days ago #

      I would prefer non time dependent “timeframe”. For any indicator, in my opinion, it is always better to rely only on price and not on time passing by..

  3. SAM • 64 days ago #


  4. JvdG • 46 days ago #

    Hi Nicolas,

    ld48 = 0.66 * ((ld16 – ld96) / (ld104 – ld96) – 0.5) + 0.67 * ld56
    ld48 = Min(Max(ld48, -0.999), 0.999)
    you assign two different expressions to the same parameter (ld48)…

    ld56 = ld48: this seems to me a circular code since ld48 is one of the constituents of ld56;
    ld80 = gda80: something similar goes for this assignment;

    The solution maybe is to give your parameters real names. That forces you to make clear what they refer to and it gives me an opportunity to elaborate on it.

    Best regards,
    Jerke van der Geest

    • Nicolas • 44 days ago #

      You are right about ld56. Since this is a translation from another programming language, I did it like a robot 🙂
      About ld48 referencing itself, it is normal, ld48 is comparing its own value with other Min/Max values and updating automatically this way.

  5. JvdG • 46 days ago #

    I meant of course: since ld56 is one of the constituents of ld48;

Register or


avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
PastaPesto Paul, Im sorry but where do I open a topic?
Paul in ProOrder support, at the bottom
Maik2404 wie kann ich den Code bekommen Paul?
osupero Buenisimo Sr Nicolas, seria posible que sólo marcara por encima o por debajo de una media mo...
cfta Hi Fulvio, many thanks for sharing this clever indicator, much appreciated. As Pepsmile ment...
cfta Sorry adding the PRT to code didn't work in the above comment so I guess we will have to set...
juanj Something appears to be wrong with this formula as graphing t shows t to almost never be wit...
5 months ago
Maxime Baudin Interesting, Thank you! :)
franck-david Bonjour Nicolas , actuellement je me forme grace a vos videos tres tres bien expliques mer...
Nicolas Merci. ça n'est pas le lieu pour poser ce genre de question :) Merci d'utiliser le forum Pro...
Vonasi Discussion on this indicator/filter can be found here:
pableitor Hola Domenec, un indicador muy original y util que ciertamente añade mucha informacion a la ...
Domenec Hola Pableitor porque aqui lo que pretendo es programar un nuevo codigao mas ajustado para q...
Juanjo Hola Domenec. He visto en los videos que hablas continuamente de mercado de futuros con grá...
Geronima Ortiz I watched the video three times, but I can not put the npips parameter as a variable. I do...
Geronima Ortiz I think the video is for an old version of prorealtime, the images do not correspond at all ...
Nicolas indicator1 = CALL “PRC_StopReversal”[npips, 1] and define npips in the optimization window ...
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
winnie37 Merci Nicolas. J'ai un bug d'affichage quand j'utilise ton indicateur. La bougie en cours ...
ullle73 nicolas, can you somehome make this to be in the background of the price chart?
Toto le Heros Thanks Nicolas. I read somewhere that in the calculation, we should round the value of the A...
Nicolas aADX = round(adx[10])
10 months ago
Rainbow Oscillator
Rainbow Oscillator
Maxime Baudin Interesting, thanks! Combine this indicator with the bollinger bands there is enough to make...
11 months ago
supertiti Bonsoir à tous For those who like me want to calibrate this indicator on a scale of 0 to ...
verdi55 You can find me at Ahh. So i got it ? 4 different supertrends without th...
juanj What? This has nothing to do with the website. The site is simply a service to help people ...
Nicolas Advertising is allowed,as long as people are helping others and if provided services are abo...
styrke Hello Nicolas, Nice screener, I appreciate the way you always try to condense at maximum th...
Nicolas There's no particular reason. RSI is widely use with its default period and results seems re...
Vonasi I noticed a couple of typo errors in the code. The list of variables lines 4 to 11 should be...
Genotik Thank you for your important contribution this week which is much appreciated! Happy New Yea...
Vonasi No problem. I hope they are useful to someone. Happy and hopefully prosperous New Year to y...
DarioMazza Hi Vonasi, i have a question for you, the comand "pricetype" where did you found it in the ...
Vonasi PriceType is just a variable that I use. The value decides what type of price is used in the...
Vonasi I noticed a couple of typo errors in the code. The list of variables lines 4 to 11 should be...
1 year ago
Trinity Impulse
Trinity Impulse
ribou bonjour Nicolas Bravo pour l'ensemble de ton oeuvre très riche en informations de qualité ...
Nicolas Cet indicateur nécessite que l'instrument possède des Volumes. Sinon il ne pourra pas se cal...
ribou ah d'accord merci beaucoup
1 year ago
Genotik Merci !