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/
發布通知:
  • 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.

僅限邀請腳本

僅限作者授權的用戶訪問此腳本,並且通常需要付費。您可以將其增加到收藏腳本中,但是只有在向作者請求並獲得許可之後,才能使用它。 請與AlphaTrading-WolfPack聯繫以獲取更多資訊,或按照以下作者的說明進行操作。

在您100%信任腳本作者並了解腳本的工作原理之前,TradingView不建議您購買腳本並使用它。在很多情況下,您可以在我們的社群腳本庫中免費找到一個不錯的開源替代品。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

作者的說明

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

想在圖表上使用此腳本?

警告:請閱讀,然後再請求訪問權限。