alexgrover

EQma - Adaptive Smoothing Based On Optimal Markets Detection

Introduction

"You don’t put sunscreen when there is no sun, you don’t use an umbrella when there is no rain, you don’t use a kite when there is no wind, so why would you use a trend following strategy when there is no trend ?"

This is how i start my 4th paper "A New Technical Indicator For Optimal Markets Detection" where i present two new technical indicators. We talked about the first one, running equity, which aim to detect the best moment to enter trades, based on this new metric i made an adaptive moving average .

You can see the full paper here https://figshare.com/articles/A_New_Tech...

The Indicator

The moving average is based on exponential averaging and use a smoothing variable alpha based on the running equity metric, in order to calculate alpha the running equity is divided by the optimal equity which show the best returns possible for the conditions used. Basically the indicator work as follow :

When the running equity is close to the optimal equity it means that the price need no/little filtering since it does not contain information that need to be filtered, therefore alpha is high, however when the running equity is far from the optimal equity this mean that the price posses malign information that need to be removed.

This is why the indicator will be closer to the price when length is high :


See the full paper for an explanation on how this work.

I added various options for the indicator, one will reduce the lag by squaring alpha, thus giving for length = 14 :


The efficient option will make use of recursion to provide a more efficient indicator :


In green the efficient version, note how this option can allow a better fit with the price.

Conclusion

This is an indicator but at its core its rather a framework, if you have read the paper you'll see that the conditions are just 1 and -1 that changes with time, basically its like making a strategy with :

Condition = if buy then 1 else if sell then -1 else Precedent value of condition.

So those two indicators allow to give useful and usable information about your strategy. I hope it can be of use for anyone here, if so don't hesitate to send me what you made using the proposed indicator (and with all my indicators in general). If you are writing a paper and you think this indicator could fit in your work then let me know so i can be aware of it :)

Thanks for reading !

Acknowledgement

My papers are quite ridiculous but they still manage to get some views, some researchers don't even reach those number in so little time which is quite unfortunate but also really motivating for me, so thanks to those who take time to read them and give me some feedback :)







Sep 18
Release Notes: Options to change plot color based on indicator direction added.
Ta bort från favoritskript Lägg till som favoritskript
You can check my indicator papers here : https://figshare.com/authors/Alex_Pierrefeu/7339466
Excellent. Thanks.
+1 Svara
Thank you Alex for the creations and your article.
If combine to use with running equities it seem given good insight to trade or don't trade; however but need to test it in future. thanks again for your efforts =D
+1 Svara
@ICEKI, Thats a great idea :)
Svara
Thanks for adding color thing :)
+1 Svara
Nice!
+1 Svara
@dpanday, Thx, you took some time to check on my indicators at the end :D
Svara
Even more than the indicators themselves, I love the way you present them and explain how they work. Every single one of your scripts is presented like a university study!
Thanks for writing and keep up the good work mate!
+1 Svara
alexgrover Outback_Explorer
@Outback_Explorer, Thanks for your comment and for pointing my efforts in providing descriptions for the indicator, you'll notice that the structure is similar to a research papers, which is i believe the right way to present a technical indicator :)
Svara
@alexgrover, as a university researcher, I've certainly noticed your style of writing. Well done :)
+1 Svara
alexgrover Outback_Explorer
@Outback_Explorer, I'am glad i'am being read by other researchers :) Thanks for your praise
Svara
Hem Aktie-screener Forex-screener Krypto-screener Ekonomisk kalender Program Hur det fungerar Diagramfunktioner Priser Ordningsregler Moderatorer Webbsidor och mäklarlösningar Widgets Diagramlösningar Lightweight Charting Library Help Center Refer a friend Funktionsförfrågan Blogg och nyheter Frågor och svar Wiki Twitter
Profil Profilinställningar Konto och fakturering Refer a friend Mina kölappar Help Center Publicerade idéer Följare Följer Privata meddelanden Chatt Logga ut