Coding the Profitable BCI Mean Reversion Indicator
Forums › ProRealTime English forum › ProBuilder support › Coding the Profitable BCI Mean Reversion Indicator
- This topic has 22 replies, 6 voices, and was last updated 5 years ago by Nicolas.
-
-
03/23/2017 at 11:51 PM #29717
This Balanced Centreline Indicator (BCI) when placed on a chart resembles a tight short moving average or a (John Ehlers) Kalman Filter and is designed to calculate the true market price at any given time and for any timeframe.
The indicator will give a near mid point value between the high and low of a market and represents the estimated point where the market wants to trade at.The formula is: BCI = the Square Root of the (High x Low): Pls see calculation image.
The rules are:
If Tomorrows Open is below the BCI line, then go Long.
and
If Tomorrows Open is above the BCI line, then go Short.It’s very profitable results were derived using $250 a point on the S&P – pls see the screenshots:
I’m wondering if anyone can program this for PRT?Imagine getting out in 2007…
Thanks.
2 users thanked author for this post.
03/25/2017 at 11:12 AM #2979703/25/2017 at 2:25 PM #2981603/25/2017 at 3:12 PM #29827Always interesting how some people do new things with old things …
BCI is just equivalent to the median price as you see on the picture = exact the same curve
Go directly in the trash…
Thanks Bard
123ind=SQRT(high*low)return ind,medianprice03/25/2017 at 5:12 PM #29845@zilliq
Again an impolitic and disrespectful useless intervention and I will be forced to moderate your remarks. Please respect the comments and ideas of each one. This forum is a place of exchange, discussion and assistance, open to all and all questions and ideas are welcome.03/26/2017 at 2:23 AM #29869@zilliq: The next time you refer to me as “some people” Nicolas might need to moderate my comments, lol.
Best take it up with Earik Beann – the guy that owns the successful Wave59 platform, built winning trading systems and who’s S&P results I posted above.
03/26/2017 at 8:42 AM #29877Sorry bard there is misunderstanding, it wasn’t against you… You just give an information
It was against all People on the net, who rename something who already exist for different reasons (money, popularity…)
I quit mt4 notably for this reason. And it exist since many many years for example the stochastic is the same thing as the %r of Williams and so on
Have a nice day
Zilliq
03/26/2017 at 9:55 AM #29881I’m used to say that everything has already been discovered. Funny things is that sometimes when I do research and coding ideas, I recode without realizing the indicators that already exist under a different name.
@zilliq, This kind of misunderstanding can be easily avoided with a simple smiley 🙂 that’s why I use them very often, the messages always go much better with a smile!
Have a nice Sunday everyone.03/26/2017 at 11:31 AM #29900Hi. Thanks to all of you for sharing your knowledge again.
It seems a nice indicator to study.
I want to test it with Probacktest, but the one that I built doesn’t give me any result. I wrote it without the for-next condition, because I don’t understand the need of it (sorry). Shall I write it here (as I do), or better in the Probacktest-Proorder forum?
123456789101112131415161718192021222324252627282930// Definición de los parámetros del códigoDEFPARAM CumulateOrders = False // Acumulación de posiciones desactivadaREM BCI MEAN REVERSIONBCI= SQRT(high*low)sl=50// Condiciones para entrada de posiciones largasIF Time=080000 AND open<BCI THENBUY 1 CONTRACT AT MARKETENDIF// Condiciones de salida de posiciones largasIF Time=210000 THENSELL AT MARKETENDIF// Condiciones de entrada de posiciones cortasIF Time=080000 AND open>BCI THENSELLSHORT 1 CONTRACT AT MARKETENDIF// Condiciones de salida de posiciones cortasIF Time=210000 THENEXITSHORT AT MARKETENDIF// Stops y objetivosSET STOP pLOSS sl03/26/2017 at 12:02 PM #2990505/16/2017 at 7:20 AM #35660I changed the code provided by Petrus and trie to be as nearest possible to the rules Bard has posted, but the results are bad. Are there any other rules Bard?
123456789101112131415DEFPARAM CumulateOrders = FalseREM BCI MEAN REVERSIONBCI= SQRT(dhigh(0)*dlow(0))IF dopen(0)<BCI THENBUY 1 CONTRACT AT MARKETENDIFIF dopen(0)>BCI THENSELLSHORT 1 CONTRACT AT MARKETENDIFgraph dopen(0)graph bci05/16/2017 at 7:32 PM #3574405/20/2017 at 5:54 PM #36173Hi Nicolas,
Actually, no. Earik Beann quotes: “And that’s the entire system!” It’s on p86 of the book I sent you, you did finally get it, right? The code is in this screenshot below from the appendix on p272. The code is effectively a linear regression as @robdav pointed out.
@Zilliq, No worries, have a great day.05/20/2017 at 7:03 PM #36177This version is a modified one that respect the rules. Because the code is only read once per bar at Close, the strategy has been adapted to an intraday timeframe where a trade could be initiated next after the daily open. So please test it on 5 minutes bars or a 1 hour one like in the attached example.
123456789101112131415161718DEFPARAM CumulateOrders = FalseREM BCI MEAN REVERSIONBCI= SQRT(dhigh(0)*dlow(0))if intradaybarindex=0 thenindi=bciendifIF dopen(0)<indi THENBUY 1 CONTRACT AT MARKETENDIFIF dopen(0)>indi THENSELL AT MARKETENDIFgraph indi05/21/2017 at 8:55 PM #36241Appreciated Nicolas,
I am not sure how Beann got these results in the screenshots above. I also set it to the same date range and tried (x) 23 Hour timeframe with little similarity to the high accuracy and gain/loss ratios he achieved.
It immediately occurred to me that instead of fading the buy/sell signals (reversing), the logical thing to do is use a longer period for the high and low.
Excel question for anyone experienced with charts:
Optimising the gain versus the period of the high/low in PRT produces a fairly stable range results (albeit with a few gain spikes) “according” to the Excel chart (I’m looking forward to PRT incorporating a Fitness Function feature into the platform) yet the chart doesn’t seem to reflect the reality of what has happened with the period optimisation versus the gain. E.g I noticed (see screenshot) the 23 period shows a £3.631 gain and yet the graph does not – ditto with the £9,120 at 43 days. I ordered the “a” column (optimised period for high/low) from high to low (like usual with no problems before when doing this) and then highlighted it and also the gain column and then went to (Excel) charts and used “Clustered Column.”
Any ideas?
Cheers
Bard -
AuthorPosts
Find exclusive trading pro-tools on