B-Xtrender

B-Xtrender

A trend following indicator published in IFTA Journal by Bharat Jhunjhunwala. It is mainly to be traded on big timeframes.

The B-Xtrender elucidates the dilemma of differentiating a trend change from a minor correction, thus providing specific entry, scaling and exit signals. It is an indicator created to give a single glance of the ongoing trend. Even a casual look at the system can acquaint the viewer about the long-term and shortterm trend.

Two indicators used in conjunction constitute the B-Xtrender.
The first indicator determines the short-term trend while the second indicator determines the long-term trend. Once the clarity over market movement is established, a myriad of entry techniques can be used to trade, with the help of the B-Xtrender.

For anyone looking into the indicators please have in the source below where logic behing the indicator is nicely explained.

ifta.org/public/file…_ifta_journal_19.pdf

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. superfalcio • 08/03/2023 #

    very interesting, i red the article. Nicolas are you going to create an automated strategy based on that? I will appreciate and I’d like to test it!!!

  2. luxrun • 08/03/2023 #

    Con la programmazione assistita, ho generato questi due screener, uno long e l’altro short. Le strategie non ho ancora provato a crearle. Posto i due screener e aspetto qualche commento. A me pare funzionino nel cercare titoli adatti, non
    ho provato con indici, forex e altro. Un saluto

    indicator1 , ignored , ignored , ignored , ignored , ignored = CALL
    “PRC_B-Xtrender” (close )
    c1 = (indicator1 [1] >= indicator1 [2])
    indicator2 , ignored , ignored , ignored , ignored , ignored = CALL
    “PRC_B-Xtrender” (close )
    c2 = (indicator2 >= 0)
    ignored , ignored , ignored , indicator3 , ignored , ignored = CALL
    “PRC_B-Xtrender” (close )
    c3 = (indicator3 [1] >= indicator3 [2])
    ignored , ignored , ignored , indicator4 , ignored , ignored = CALL
    “PRC_B-Xtrender” (close )
    c4 = (indicator4 >= 0)
    SCREENER [c1 AND c2 AND c3 AND c4] ((close /DClose (1)-1)*100 AS
    “% Var ieri” )

    indicator1 , ignored , ignored , ignored , ignored , ignored = CALL
    “PRC_B-Xtrender” (close )
    c1 = (indicator1 [1] <= indicator1 [2])
    indicator2 , ignored , ignored , ignored , ignored , ignored = CALL
    "PRC_B-Xtrender" (close )
    c2 = (indicator2 <= 0)
    ignored , ignored , ignored , indicator3 , ignored , ignored = CALL
    "PRC_B-Xtrender" (close )
    c3 = (indicator3 [1] <= indicator3 [2])
    ignored , ignored , ignored , indicator4 , ignored , ignored = CALL
    "PRC_B-Xtrender" (close )
    c4 = (indicator4 <= 0)
    SCREENER [c1 AND c2 AND c3 AND c4] ((close /DClose (1)-1)*100 AS
    "% Var ieri" )

  3. Fgats • 08/03/2023 #

    Hello Nicolas, I’d like to know why you chose to use simple average functions to define shortTermXtrender and longTermXtrender while Bharat Jhunjhunwala in the article you pointed out was using exponential average functions. Thank in advance for your answer. Gabriel

    • Nicolas • 08/03/2023 #

      The average used are EMA already, average[shortl1,1]
      1 stands for Exponential.

  4. Fgats • 08/03/2023 #

    I suspected something like this but in the PRT documentation I couldn’t find anything to explain the second parameter of the “average” function. So I suppose that by using this second parameter we can define other types of averages in the same way. Anyway, thank you for your quick response.

  5. 616248 • 08/03/2023 #

    Bonjour Nicolas,

    Peux tu nous expliquer le principe de fonctionnement ? Ou nous mettre un lien vers l’explication ?
    Te remerciant par avance

    • Nicolas • 08/03/2023 #

      Le lien vers l’article IFTA de l’auteur est dans le post déjà 🙂

  6. P. Marlowe • 349 days ago #

    Very poweful indeed. It deserves close attention. I really appreciate very much IFTA background, Thanks.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
GraHal Yes sorry, I set up a link to a screen shot on my google drive and then I got locked into th...
gabri Here's the thread https://www.prorealcode.com/topic/multiframe-rsi-of-rsi/
Bernard13 Bonjour Nicolas, Pourriez-vous m'indiquer si cet indicateur fonctionne avec la V11 ? Le di...
HeikinAshi Do you have an update of this indicator since you've created them, or is this still the actu...
mcha Thank you for this work. Do you try to transform/put this indicator on candlesticks and is ...
David Balance thanks for sharing this excellent indicator.  Here are some thoughts.  please ad...
reb Hello Marc your strat seems very intersting, will take a look Reb
897148 What exactly is meant by Total price? Is r1 =28 in your example the no of days for "Total P...
otty82  THX looks good!
century nice one , thank you
arvindrao01 Hey! Does anyone have a pinescript (tradingview) code for this?
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
Inertia newlevel then multiplier=multiplier+1 oldlevel=newlevel newlevel=strategyprofit+startequi...
Inertia Hi Bjoern, I was playing around with your code this morning (EUR/USD 5'). Thank you to the...
CavalierDeCesDames Bonjour Nicolas, Thanks for your use full job. I tried this indicator on a shorter timefram...
Nicolas You are welcome. I'm glad you like it.
Bolbo It does not appear over the price indicator on V11. Thanks in advance.
bearbull As per PhilipSchultz question above, has anybody managed to add code for when it turns blue,...
Ybr35 Bonjour Nicolas, lorsque je lance l'indicateur, il m'est indiqué que je dois définir les var...
Nicolas L'idéal est de télécharger le fichier itf joint sur cette page et de l'importer dans la plat...
Nicolas Merci dans ce cas d'ouvrir un sujet dans le forum ProScreener svp.
Andrea Hi Nicolas, thx for your code. Please i need your help to understand this part of your code:...
Nicolas the MA200 is ascending since 20 periods.
Regan2020 Hi, has anybody update the above code to enable on a 15m or 5m TF?
gigi64 ik heb de code op mijn pro realtime gezet , en bij indicator staat hij erbij maar komt niet ...
gigi64 I have put the code on my pro realtime, and it is on the indicator, but it does not appear o...
supertiti Thanks you so much Lucassen
dreif123 hi, copied the above code, not working on 10.3 the system says "return can only be used at ...
LUCASSEN Hallo , i have no problem , and i have the same versie 10.3, maybe you can ask Nicolas, tha...
Krallenmann Hallo Nicolas, kannst du mir die Regeln für den Halftrend Indikator sagen? Aus dem Code kann...
davefransman Dear Nicolas, i want set a alert on the "HalfTrend "custom moving average" met Heikin Ashi w...
Nicolas Please post the question in a new forum topic, that would need custom coding I believe.
Lyam Pareil ne marche pas dommage
ahmedbouaziz89 Bonjour, quand j'ajoute le code ou le fichier dans l'outils screeners de Prorealtime je ne v...
tyvix Bonjour le code marche bien c est juste qu'il n y a pas d opportunité au moment ou vous le...
verdi55 Is there such a thing as a free lunch ?
maceng Thanks Nicolas for this great work! I would like to understand the math behind it in order t...
Nicolas Sorry I have no time to provide assistance for python programmers. Have a good day.
Maz Hi all, firstly happy to know that this is helping you. I look into updating it for PRT11 wh...
Nicolas just use 3 times a linear regression channel code you will find in the library.
leederbyshire Here's the link to alternative linear regression channel indicator Nicolas is referring to t...
Wing Yes, investigate as much as you want. For more insight, you can view the linet1, linet2 etc....
CKW Hi Wing, Thanks for your sharing. I am still trying to breakdown & understand your code...
Wing Hello CKW. No, the parameter, 7 in this case, is used when calling the RSI indicator to ide...
Nicolas Je vais faire l'indicateur et expliquer comment en même temps dans un sujet de forum. Plus s...
gregus merci nicolas toute ma gratitude est pour toi sa sera bien pratique car je pense ne pas etre...
Nicolas Ok merci donc d'ouvrir un sujet spécifique pour cette demande donc :) 
algotrader This indicator looks coolBut on attempt to use it for a strategy dev'I get an error.."The in...
dajvop @algotrader if you at the bottom of the code add: RETURN Buffer1 as "up", Buffer2 as "down",...
Bateson Si cela peut servir, l'indicateur Sadukey a été créé en utilisant un générateur de filtre ap...
Nicolas
9 years ago
ALMA MACD
ALMA MACD
7
Indicators
Arnaud HALVICK Great indicator, thank you!
JMat45 Hi Nicolas, just reviewing this indicator and noticed that you have double assigned the vari...
Nicolas That would not make any difference because the code is read from top to bottom.
MikeGC I don't know if you have used the variables a and b to optimise the parameters for the Super...
gianpiero75 I have not optimized, I multiplied the parameters for 6 (5,8), to use them on the 4  hoursTF...
bertrandpinoy bonjour Mike j utilise TrendChaser V2.0 et quand il prend position cela ne programme pas le ...

Top