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 • 345 days ago #

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

  2. SAM • 341 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 • 341 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 • 340 days ago #


  4. JvdG • 321 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 • 320 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 • 321 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 avatar
Related users ' posts
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])
2 years ago
Rainbow Oscillator
Rainbow Oscillator
Maxime Baudin Interesting, thanks! Combine this indicator with the bollinger bands there is enough to make...
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...
2 years ago
Trinity Impulse
Trinity Impulse
ribou ah d'accord merci beaucoup
domenico nlevel1 non modifica la curva al variare del suo valore
tiger_man_no1 Very nice ; what is the best period input date for DAILY CHART ?
2 years ago
Genotik Merci !
Nicolas Des nouvelles ?
Whisper74 Hi Nicolas, I have build supertrend in excel for research and database purposes, but I actua...
Nicolas Sorry, I can afford to make custom programming for everyone. If you want to have codes trans...
2 years ago
Marcel For those who are interested, I post trade opportunities with this indicator on Twitter. (@M...
swapping Thank you for sharing, best regards
Tellie2015 tack ska du ha för dina delningar både här o twitter
Genotik Merci de votre contribution !
Leo Hi all, I posted a new version of this indicator ( I just add arrows to spot the local maxi...
Trading_En_El_Ibex35 Muchas Gracias por compartir este interesante indicador. Un saludo
2 years ago
primo1 Bonjour Nicolas, sur quelle échelle de temps minimum tu utilises l indicateur je pense...
primo1 Bonjour Nicolas Pour créer la strategie comment peux tu traduire l"apparition des points....
Nicolas Exemple dans ce sujet du forum ProOrder :
bolsatrilera Hi Nicolas, I have this version of the True Balance Power ,created by eykpunter on Tradingvi...
bolsatrilera and the code : REM TRUE BALANCE OF POWER // código original de eykpunter para la plataform...
Steven Bahia Hi Nicolas - great indicator - is there a way to place a alert when the Oscillator crosses ...
Nicolas Alerts can't be programmed, you have to set them yourself with the Alert tool of the platfor...
Steven Bahia just to add to this would there be a way to establish a entry price from the Oscillator