AlphaTrading-WolfPack

AT - Reverse Mean Log Returns - Coder Wolves

Reverse Mean Log Returns (RMLR) indicator

Here at Alpha Trading, we create indicators that are based on Volatility, Probability and Statistics. We always add our own secret sauce, to turn mathematical principles into indicators that are tradeable. If you have been here for a while, or even if you are new, you have most likely heard us talk about Returns in our other indicators such as the Wolfsbane, RMS Z-Score or some of our returns based oscillators.


Theory

Log Returns of Price are commonly used to normalize price action. In contrast to price which never reverts to the mean, log returns are mean reverting.

In addition we assume that log returns are normally distributed, whereas price is never normally distributed. Price is log normal distributed, therefore it is wrong to calculate standard deviation directly on price, like in Bollinger bands. But for the normal distributed log returns it is mathematically correct and can be used to find extremes of the market.


Why did we create the RMLR

What if we could see that mean (where the log returns will reverse) and market extremes (multiples of standard deviations) on a price scale? Well, that's our Reverse Mean Log Returns (RMLR) indicator.

RMLR shows the Reverse Mean of Log Returns and their first, second and third standard deviation. These levels represent the probability that the current price action will not exceed that certain band. For the 1st level (1st std-dev) it is 68.3%, for the second level 95.4% and the third 99.7% that the price will close not exceeding that level, assuming normal distribution of underlying log returns.


Meaning of the future prediction of RMLR

If the Direction of past Price Action is UP then the Direction of the related RMLR IN THE FUTURE will most probably be UP.
If the Direction of past Price Action is DOWN then the Direction of the related RMLR IN THE FUTURE will most probably be DOWN.

In other words, Past Price Action of any specific candle determines the Direction of the Future RMLR produced from that past PA candle.

In other words, when RMLR is working on normal settings, Past Price Action does in fact predict future RML Returns.


RMLR Input Settings

SAMPLE SIZE - the lookback period.
SHOW STANDARD DEVIATION BANDS - the ability to choose 1st, 2nd or 3rd standard deviation ranges.
SWITCH BAR COLOR BY TREND - when selected the bar color will show bullish trend above the mean and bearish trend below the mean.
SHOW RMLR PREDICTION - when selected you can view the predicted future RMLR based on past price action.
LOCK ON - options to choose what future prediction you want to view. mean, 1st, 2nd and 3rd standard deviations are your choices.
OVERRIDE CONTINUOUS MARKET PROTECTION - when selected you can view the future RMLR prediction on non-continuous markets. USE AT YOUR OWN RISK.
CORRELATION COEFFICIENT SETTINGS - option to set the lookback length for the correlation between the RMLR and price action.
RMLR DISPLAY SETTINGS - allows you to choose from 5 different color schemes for the inner, 1st and 2nd outside lines for the RMLR. You can also adjust the border line widths and the colors for correlation coefficient direction and significant correlation.
DIRECTION PREDICTOR COLORS - allows you to set up predictor lengths, sensitivity settings and color options.
DIRECTION TREND COLORS - allows you to set up trend lengths, sensitivity settings and color options.





References

quantivity.wordpress.../21/why-log-returns/
Versionsinformation:
  • Prediction model: enhanced for continuous markets.
  • Prediction model: shows multiple bands and RMLR predictions at once.
  • Enhanced coloring options.
  • Band plot with custom sample size.
  • Prediction customizations.

Endast inbjudanskript.

Tillgången till detta skript är begränsat till användare som har godkänts av författaren och kräver vanligtvis betalning. Du kan lägga till det till dina favoriter men du kan bara använda det efter att ha begärt och fått författarens tillstånd. Kontakta AlphaTrading-WolfPack för mer information eller följ författarens instruktioner här under.

TradingView rekommenderar inte att du betalar för ett skript och använder det om du inte litar till 100% på författaren och förstår hur skriptet fungerar. I många fall kan du hitta ett bra alternativ med öppen källkod gratis i våra Community skripts .

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Författarens instruktioner

discord.gg/TdczYdQzpT To gain access to this script get support in the Alpha Trading Discord.

Vill du använda det här skriptet i ett diagram?

Varning:Var god läs innan du begär åtkomst.