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
Related users ' posts
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...
Nicolas Try to restrain to trading hours when Volumes are present (customized trading hours: righ cl...
Choliver Bonsoir Nicolas, Merci pour cet indicateur. Même s'il n'y a officiellement pas de volume s...
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...
Vonasi Discussion on this indicator/filter can be found here: https://www.prorealcode.com/topic/121...
Vonasi Forum discussion on these indicators can be found here: https://www.prorealcode.com/topic/av...
jennr29 Hi. Is it possible to convert this code to an mq4 file?
Nicolas Sorry but our website is dedicated to prorealtime programming. However, you can ask for priv...
anametsinwha Is it possible to change it to highs and lows rather than open and close?
apachx Hi. Please, describe the algorithm in words. I want to understand how it works, but for now...
Vonasi The indicator code can easily be adapted for use as a filter in strategies as well. For exam...
AVT Tested today in manual DAX trading (transcripted to MT and changed look into aka oszillator)...
Vonasi I think that short time frame charts will be too noisy for this indicator. One blue bar real...
Vonasi I forgot to mention in the description that Sunday pivot lines are ignored and Monday's pivo...
AVT Like that, simple and clear!
Vonasi Thanks AVT. I like simple - some people would say that I do simple very well! Sometimes you ...
Madrosat Bonjour Nicolas la formule du stop loss est elle vraiment valable ?? il n'y a pas au depart ...
Nicolas Il y a peut-être un erreur en effet, essayer avec: set stop ploss (averagetruerange[14] * ...
Madrosat ok merci Nicolas c'est avec /pipsize que ça fonctionne
Robin von Bauhn Oh, it's "cs" that's missing. I don't have the code right now but it's the exact same condit...
Manuel9z Hola Francesco, gracias por tu estrategia. Cuando intento activarla en ProOrder, no lo permi...
Manuel9z ok, sorry, I've already configured it with a = 10 b = 30 thanks Francesco for your post
Nicolas No sorry, please use this file instead into a prorealtime trading platform.
rdabbs I just installed this indicator. It opens in its own pane rather than overlaid on the chart ...
Nicolas Just apply it on your price chart instead and you're ok.
Wilko Thanks for letting the community know!
Mattzi Hi Wilko! Is there a screener for this one? Trying to make one myself but cant seem to get i...
Wilko I am not familiar with the screener function, but I am quite certain it should be quite simp...
Francesco78 hi Lizmerril, yes, that is correct
lizmerrill Thanks for replying, so.... I assume in your backtest, the fullness calculations using dclos...
DANY overfit
diegofe_2000 cordial saludo NICOLAS , gracias por excelente indicador. ¿ es posible obtenerlo en MT4 ? ...
Nicolas Lo siento, pero no estoy trabajando para ayudar a la gente aquí de forma gratuita para promo...
diegofe_2000 Nicolas , gracias por tu atención. La pregunta era por curiosidad (yo no trabajo ni manejo ...

Top