Trending and Mean Reversal Simulation

v10.3
Trending and Mean Reversal Simulation

This indicator is a new and improved version of my Floating Mean Reversal Equity Indicator that can be found here:

https://www.prorealcode.com/prorealtime-indicators/floating-mean-reversal-equity-indicator/

This new version thanks to the use of loops allows you to select any quantity of trades to be used in the calculation (the original version was fixed at twenty trades).

This new version also now plots simulated equity curves for trend trading as well as mean reversal trading.

The indicator plots what the equity curve would have been for the last [qty] trades if you had done any of the following and then closed the trade one bar later:

Mean Reversal Long – Buying on red bar close.
Mean Reversal Short – Selling on green bar close.
Trending Long – Buying on green bar close.
Trending Short – Selling on red bar close.

The darker green and red lines represent long and short mean reversal trades and the lighter green and red represent long and short trending trades.

If a line is rising then that style of trading is becoming more successful in the look back period and if it is declining then that style of trading is becoming less successful. Any line above zero shows that that style of trading would have been profitable in the look back period.

By turning ‘Rising’ on or off you can highlight or not any line that is rising.

The indicator can be slow to plot and was written mainly to be used as a trading filter for weekly and daily charts. I suggest using the CalculateOnLastBars set to a low number if you want to speed up the loading of the indicator.

I have found my original indicator to be a very good filter and hopefully this new version will be even more powerful.

I recommend downloading and importing the ITF file to get full functionality.

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

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Bard Not optimised values. Simply tried Len = 5 (well 5 days in the week and all that). Buy on ...
Bard Nice going Nicolas, It's now like the original indicator with the colour coded signal line.
Sofitech @rama could you tell use what do you trade and the fimeframe you use with Len=1 ? Would like...
Screw27 Hi man, I installed the indicator and i don't know why but my graph it is so big
HelixKing sounds interesting I'll take a look
eva.g.forsgren I cant make it work in anyway.
Nicolas Play with the "highpassLength" settings and add more units displayed on your chart.
MrEastwood Interesting indicator! Can anyone get it working for longer "highpasslengths"? I've been tes...
Vinks_o_7 Thanks Doc !
Maxime Baudin Intresting, thank you!
Morrissey38 Buenas tardes Nicolás . Como podría introducir una línea cero a este indicador? . Muchas gra...
Nicolas Change the last line with : RETURN Reflex, 0
Morrissey38 Muchísimas gracias Nicolás , muy amable.
Sapo Thank you for your indicators. As always it's perfect, I thank you for your help it's preci...
Jan Wind What I meant is if you could suggest a trading concept: for instance if the color becomes d...
supertiti Hello Jan You must use this code in correspondence with other indicators, a code alone do...
Franro Hi, this looks very good is this something you worked towards a strategy?
Vonasi Sure that is possible. I will code it and make a post in the English ProBuilder forum and pu...
Vonasi Vama v2 with Hull moving average included can be found here: https://www.prorealcode.com/top...
JMat45 Thank you, Vonasi.
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks
FabiusMor Hi Nicolas, as you suggested I made a screener out of your indicator and the results are rea...
gildaslm Hi Nicolas, could you help me to set up the screener for this. Thank you !!
Nicolas Sure, please open a new topic in the screener forum and respect the posting rules.
ggolfet Thanks Nicolas, I imported the itf file and solved the problem.
Hasardeur Hallo Nicolas, i tried to code the multi period heat map in combination with the Ehler’s ...
Nicolas Please open a new topic with the code in forum.
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...
coscar Ottimo lavoro. come sempre!
luxrun Nello studio di Sepiashvili viene descritto anche un altro indicatore, il Q-indicator, che è...
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,...
juanj @zebra would you be so kind as to post your latest 4H USD/JPY results here: https://www.pror...
Holy Grail Thank you juanj for sharing this code, Backtests looks great in USDJPY and Crude Oil Is a...
juanj @Holy Grail, glad you like it. Would you perhaps mind sharing your results here: https://www...
arnaudat Bonjour, je suis tombé sur cet indicateur par des recherches sur les écarts types et il me...
Nicolas Il y a peut-être une erreur de calcul causée par un division par zéro, j'ai retrouvé une aut...
arnaudat Merci nicolas, j'ai déjà pris cette version et en plus je suis sur les futures. Par contre d...
Marcos Alvarez Dominguez Hello Nicolas, is it possible to stablish a bullish screener for this indicator when the cen...
Nicolas Please open a topic in the screener section to ask for this specific query.
abd78 @Vonasi I saw that you did some work on seasonality, I wondered if you wanted to go here and...
Vonasi Sorry - my understanding of Italian is zero so if I watch the video I won't understand it I'...
Gianluca Hello Nicolas, my prt become stuck when i load the indicator, is there any problem with it?
m-zeter Has anyone found a solution for Sofitech? Would it be possible to draw two lines? An upper l...
m-zeter Hm, i dont know exactly why, but I think, that the indicator needs lots of power. I need als...

Top