MeanReversion - LogReturn/Vola ZScoreShows the z-Score of log-return (blue line) and volatility (black line). In statistics, the z-score is the number of standard deviations by which a value of a raw score is above or below the mean value.
This indicator aggregates z-score based on two indicators:
MeanReversion by Logarithmic Returns
MeanReversion by Volatility
Change the time period in bars for longer or shorter time frames. At a daily chart 252 mean on trading year, 21 mean one trading month.
Quant
Rocket Grid Algorithm - The Quant ScienceThe Rocket Grid Algorithm is a trading strategy that enables traders to engage in both long and short selling strategies. The script allows traders to backtest their strategies with a date range of their choice, in addition to selecting the desired strategy - either SMA Based Crossunder or SMA Based Crossover.
The script is a combination of trend following and short-term mean reversing strategies. Trend following involves identifying the current market trend and riding it for as long as possible until it changes direction. This type of strategy can be used over a medium- to long-term time horizon, typically several months to a few years.
Short-term mean reversing, on the other hand, involves taking advantage of short-term price movements that deviate from the average price. This type of strategy is usually applied over a much shorter time horizon, such as a few days to a few weeks. By rapidly entering and exiting positions, the strategy seeks to capture small, quick gains in volatile market conditions.
Overall, the script blends the best of both worlds by combining the long-term stability of trend following with the quick gains of short-term mean reversing, allowing traders to potentially benefit from both short-term and long-term market trends.
Traders can configure the start and end dates, months, and years, and choose the length of the data they want to work with. Additionally, they can set the percentage grid and the upper and lower destroyers to manage their trades effectively. The script also calculates the Simple Moving Average of the chosen data length and plots it on the chart.
The trigger for entering a trade is defined as a crossunder or crossover of the close price with the Simple Moving Average. Once the trigger is activated, the script calculates the total percentage of the side and creates a grid range. The grid range is then divided into ten equal parts, with each part representing a unique grid level. The script keeps track of each grid level, and once the close price reaches the grid level, it opens a trade in the specified direction.
The equity management strategy in the script involves a dynamic allocation of equity to each trade. The first order placed uses 10% of the available equity, while each subsequent order uses 1% less of the available equity. This results in the allocation of 9% for the second order, 8% for the third order, and so on, until a maximum of 10 open trades. This approach allows for risk management and can help to limit potential losses.
Overall, the Rocket Grid Algorithm is a flexible and powerful trading strategy that can be customized to meet the specific needs of individual traders. Its user-friendly interface and robust backtesting capabilities make it an excellent tool for traders looking to enhance their trading experience.
Grid Indicator - The Quant ScienceQuickly draw a 10-level grid on your chart with our open-source tool.
Our grid tool offers a unique solution to traders looking to maximize their profits in volatile market conditions. With its advanced features, you can create customized grids based on your preferred start price and line distance, allowing you to easily execute trades and capitalize on price movements. The tool works automatically, freeing up your time to focus on other important aspects of your trading strategy.
The benefits of using this tool are numerous. Firstly, it eliminates the need for manual calculation, making the analysis process much more efficient. Secondly, the automatic nature of the tool ensures that each grids are draw at precisely prices, giving you the best possible chance of maximizing your analysis. Finally, the ability to easily customize grids means that you can adapt your strategy quickly and effectively, even in rapidly changing market conditions.
So why wait? Take control of your trading and start using our innovative grid tool today! With its advanced features and ease of use, it's the perfect solution for traders of all levels looking to take their trading to the next level.
HOW TO USE
Using it is easy. Add the script to your chart and set the price and distance between the grids.
Probabilities Module - The Quant Science This module can be integrate in your code strategy or indicator and will help you to calculate the percentage probability on specific event inside your strategy. The main goal is improve and simplify the workflow if you are trying to build a quantitative strategy or indicator based on statistics or reinforcement model.
Logic
The script made a simulation inside your code based on a single event. For single event mean a trading logic composed by three different objects: entry, take profit, stop loss.
The script scrape in the past through a look back function and return the positive percentage probability about the positive event inside the data sample. In this way you are able to understand and calculate how many time (in percentage term) the conditions inside the single event are positive, helping to create your statistical edge.
You can adjust the look back period in you user interface.
How can set up the module for your use case
At the top of the script you can find:
1. entry_condition : replace the default condition with your specific entry condition.
2. TPcondition_exit : replace the default condition with your specific take profit condition.
3. SLcondition_exit : replace the default condition with your specific stop loss condition.
Extreme Volume Support Resistance LevelsExtreme Volume Support Resistance Levels are S/R levels(zones, basically), based on extreme volume .
Settings:
Lookback -- number of bars, which algorithm will be using;
Volume Threshold Period -- period of MA (Volume MA), which smoothers volume in order to find the extremes;
Volume Threshold Multiplier -- multiplier for Volume MA, which "lift" Volume MA and thus will provide the algorithm with more accurate extreme volume ;
Number of zones to show -- number of last S/R zones, which will be shown on the chart.
RU:
Extreme Volume Support Resistance Levels — это уровни S/R (зоны, в основном), основанные на избыточном объеме.
Параметры:
Lookback -- число баров, которое алгоритм будет использовать для расчётов;
Volume Threshold Period -- период MA (Volume MA), которая сглаживает объем для нахождения экстремумов объёма;
Volume Threshold Multiplier -- множитель для Volume MA, который "поднимает" Volume MA и тем самым обеспечивает алгоритм более точными значениями экстремального объёма;
Количество зон для отображения -- количество оставшихся зон S/R, которые отображаются на графике.
Real Cummulative Delta (New TV Function)Thanks to the new TradingView indicator Up/Down Volume, it is now possible to get accurate information on Agression (market buying vs market selling)
However, as they only provide the value of delta, I've made this indicator to show the cummulative value, in the form of candles.
It is great to detect divergences in the macro and in the micro scale (As in divergences in each candle and divergences in higher or lower tops or bottoms)
Hope you can make good use of it!
Q-TrendQ-Trend is an multipurpose indicatorm that can be used for swing- and trend-trading equally on any timeframe (non-volatile markets are better for this thing).
Settings:
Trend period - used to calculate trend line in the special moments(will explain below);
ATR Multiplier - changes sensitivity. The higher the multiplier = the more sensitive it is.
Also option to smooth source data (helps get cleaner signals, as always).
How to use?
Signals are given on the chart. Also ou can use trend line as S/R line.
The idea behind:
Terms:
SRС = Source
TL = trend line;
MP = ATR multiplier;
ATR = ATR :)
TL = (highest of source P-bars back + lowest of source P-bars back) / 2
Epsilon = MP * ATR
I was thinking for a week about combining volatility and relation between highest and lowest price point. That why I called indicator Q-Trend = Quantitative Trend , as I was trying to think about price in a mathematical way.
Okay, time to go philosophical:
1) TL is shows good price trend, but as it is slow enough and not enough informative, we need add additional conditions to produce signals.
2) Okay, so what can we add as conditions? We need to take volatility into account, as it is crucial in the moments of market uncertainty. So let's use ATR (Average True Range) somehow. My idea is that if SRC breaks TL + ATR , then it means that there will be upmove and we update our TL . Analogically for SRC breaking TL - ATR (breaks are crosses of TL +- ATR lines) .
Conclusion:
- if SRC breaks TL + ATR , it is a BUY signal and update of trend line;
- if SRC breaks TL - ATR , it is a SELL signal and update of trend line;
I think that such indicator already exisits on TradingView, as I've already saw something similar, but long ago, so please don't report, if such thing already exists.
But if not, then I hope, that you will gain some profits with Q-Trend :)
I will continue my work on this thing, so stay tuned.
Trade with your own risks and have your profits!
Wish you all the best!
- Tarasenko Fyodor
[EDU] Close Open Estimation Signals (COE Signals)EN:
Close Open Estimation ( aka COE ) is a very simple swing-trading indicator based on even simpler idea. This indicator is from my educational series, which means that I just want to share with another way to look at the market in order to broaden your knowledge .
Idea :
Let's take n previous bars and make a sum a of close - open -values of each bar. Knowledgeable of you may already see the similarity to RSI calculation idea . Now let's plot this sum and see what we have now.
We can see, that whenever COE crosses over 0-level, uptrend begins, and if COE crosses under 0-level, downtrend begins. The speed of such signals can be adjusted by changing lookback period: the lower the lookback, the faster signals you get, but high-quality ones can be obtained only via not-so-fast lookback as when the market is consolidating or volatility is to high, there can be many garbage signals, like 95+% of other indicators have.
Let's explore more and calculate volatility of COE(v_coe in the code): current COE - previous CEO .
Now it appears that when v_coe crosses over 0-level, it's a signal, that this is a new low and soon the uptrend will follow. Analogically for crossing under 0-level .
I guess now you understood what these all are about: COE crossings show global trend signals , while Volatility COE ( v_coe or VCOE ) crossings show reversal points .
For signals I further calculated volatility of VCOE(VVCOE) and then volatility of VVCOE(VVVCOE). Why? Because for me they seem to be more accurate, but you are welcome to experiment and figure best setups for yourself and by yourself, I just share my opinion and experience .
COE can be helpful only in high liquidity markets with good trend or wide sideways .
If you want to experiment with COE, just copy the code and play with it. Curious of you will probably find it helpful eventhough the idea is way too simple.
By it's perfomance COE can probably beat QQE at open price settings.
(use open of the price at indicator to get zero repaint! )
Examples :
If you any questions, feel free to DM me or leave comments.
Good luck and take your profits!
- Fyodor Tarasenko
RU:
Close Open Estimation ( aka COE ) — это очень простой индикатор свинг-трейдинга, основанный на еще более простой идее. Этот индикатор из моей образовательной серии, а это значит, что я просто хочу поделиться с другим взглядом на рынок , чтобы расширить ваши знания .
Идея :
Возьмем n предыдущих баров и составим сумму a из close - open -значений каждого бара. Знающие люди могут уже заметить сходство с идеей расчета RSI . Теперь давайте построим эту сумму и посмотрим, что у нас сейчас есть.
Мы видим, что всякий раз, когда COE пересекает выше 0-уровня, начинается восходящий тренд , а если COE пересекает ниже 0-уровня, начинается нисходящий тренд. Скорость таких сигналов можно регулировать изменением ретроспективы: чем меньше ретроспектива, тем быстрее вы получаете сигналы, но качественные можно получить только через не- такой быстрый взгляд назад, как когда рынок консолидируется или волатильность слишком высока, может быть много мусорных сигналов, как у 95+% других индикаторов.
Давайте рассмотрим больше и рассчитаем волатильность COE(v_coe в коде): текущий COE - предыдущий CEO .
Теперь кажется, что когда v_coe пересекает уровень 0, это сигнал о том, что это новый минимум и вскоре последует восходящий тренд . Аналогично для пересечения под 0-уровнем .
Думаю, теперь вы поняли, о чем все это: COE пересечения показывают глобальные сигналы тренда , а пересечения Volatility COE ( v_coe или VCOE ) показывают точки разворота .
Для сигналов я дополнительно рассчитал волатильность VCOE(VVCOE), а затем волатильность VVCOE(VVVCOE). Почему? Потому что для меня они кажутся более точными, но вы можете поэкспериментировать и подобрать оптимальные настройки для себя и для себя, я просто делюсь своим мнением и опытом .
COE может быть полезен только на рынках с высокой ликвидностью и хорошим трендом или широким боковиком .
Если вы хотите поэкспериментировать с COE, просто скопируйте код и поэкспериментируйте с ним. Любознательные из вас, вероятно, сочтут это полезным, хотя идея слишком проста.
По своей результативности СОЕ может составить конкуренцию широко известному QQE, используя open цены.
(используйте open цены на индикаторе, чтобы получить нулевую перерисовку! )
Примеры :
Если у вас есть вопросы, пишите мне в личные сообщения или оставляйте комментарии.
Удачи и профита всем!
- Федор Тарасенко
Probabilistic Analysis Table - The Quant ScienceProbabilistic Analysis Table - The Quant Science ™ is the quantitative table measuring the probability of price changes and quantifies the ratio of sessions for three different assets.
This table measures the ratios of bull and bear events and measures the probability of each event through data generated automatically by the algorithm.
The data are calculated for three different assets:
1. Main asset: set on the chart.
2. Second asset: set by user interface.
3. Third asset: set by the user interface.
The timeframe is set by the chart and is the same for all three assets. You can change the timeframes directly from the chart.
The user can add tickers and adjust the analysis period directly from the user interface. The user can edit the percentage changes and the values to be analyzed for each asset, directly from the user interface.
TABLE DESCRIPTION
1. Total global trade session: are the total number of bars for each asset.
2. Total positive trade session: are the number of positive bars for each asset.
3. Probability positive trade session: is the ratio of total sessions to positive sessions.
4. Total negative trade session: are the number of negative bars for each asset.
5. Probability negative trade session: is the ratio of total sessions to negative sessions.
6. Positive trade session 0.50%: are the number of positive bars greater than 0.50% for each asset.
7. Probability positive trade session 0.50%: is the ratio of total sessions to positive sessions with increases greater than 0.50% (this value is set by default, you can change it from the user interface).
8. Negative trade session -0.50%: are the number of negative bars smaller than -0.50% for each asset.
9. Probability negative trade session -0.50%: is the ratio of total sessions to negative sessions with declines less than -0.50% (this value is set by default, you can change it from the user interface).
10. Positive trade session 1%: are the number of positive bars greater than 1% for each asset.
11. Probability positive trade session 1%: is the ratio of total sessions to positive sessions with increases greater than 1% (this value is set by default, you can change it from the user interface).
12. Negative trade session -1%: are the number of negative bars less than -1% for each asset.
13. Probability negative trade session -1%: is the ratio of total sessions to negative sessions with declines less than -1% (this value is set by default, you can change it from the user interface).
This table was created for traders and quantitative investors who need to quickly analyze session ratios and probabilities.
Yield Trend Indicator - The Quant ScienceYield Trend Indicator - The Quant Science™ is a quantitative indicator representing percentage yields and average percentage yields of three different assets.
Percentage yields are fundamental data for all quantitative analysts. This indicator was created to offer immediate calculations and represent them through an indicator consisting of lines and columns. The columns represent the percentage yield of the current timeframe, for each asset. The lines represent the average percentage yield, of the current timeframe, for each asset.
The user easily adds tickers from the user interface and the algorithm will automatically create the quantitative data of the chosen assets.
The blue refers to the main asset, the main set on the chart.
The yellow refers to the second asset, added by the user interface.
The red refers to the third asset, added by the user interface.
The timeframe is for all assets the one set to the chart, if you use a chart with timeframe D, all data is processed on this timeframe. You can use this indicator on all timeframes without any restrictions.
The user can change the type of formula for calculating the average yield easily via the user interface. This software includes the following formulas:
1. SMA (Simple Moving Average)
2. EMA (Exponential Moving Average)
3. WMA (Weighted Moving Average)
4. VWMA (Volume Weighted Moving Average)
The user can customize the indicator easily through the user interface, changing colours and many other parameters to represent the data on the chart.
Ethereum OnChain Data Indicator - The Quant ScienceEthereum On Chain Data Indicator - The Quant Science™ is a quantitative indicator created for mid-long term analysis.
The indicator uses quantitative statistics to recreate a model that represents the most important data from the on-chain analysis for the Ethereum blockchain.
The on-chain data used to create this model are:
1. Total weekly transactions
2. Total monthly transactions
3. Frequency of transactions per second on a daily scale
4. Frequency of transactions per second on a weekly scale
5. Amount of Ethereum burned on a daily scale
6. Amount of Ethereum burned on a weekly scale
7. Volume of short positions on a daily scale
8. Volume of short positions on a weekly scale
9. Volume of short positions more/less than average on a daily scale
10. Volume of short positions more/less than average on a weekly scale
All these data were extrapolated and manipulated using the mean and standard deviation.
The end result is a powerful tool that enables mid-long term investors and traders to analyze on-chain data through quantitative analysis.
FEATURES
The blue color area refers to the average change in data on a weekly scale. The light blue colored area indicates the monthly changes in the data. It is interesting to observe the correlation relationship between price and times when short-run data increases compared to long-run data and vice versa.
The more intense purple histograms refer to the standard deviation of the mean change in data on an annual scale. Histograms of less intense purple color refer to the standard deviation of the mean variation of data on a monthly scale. It is interesting to observe the ratio of the standard deviation between two different time periods.
This indicator can be used to perform statistical comparative analysis for manual and mid-long term investments. It can also be used to create auto trading strategies when used and integrated within an algorithm.
On-chain data are updated every 24 hours, so the timeframes to be used for analysis with this indicator are: D, 4H, 1H.
Average Daily Pip Ranges by monthShows historical average daily pip ranges for specific months for FOREX pairs
useful for guaging typical seasonal volatility; or rough expected daily pip ranges for different months
works on both DXY and foreign currencies
option to plot 10yrs worth of data; with 10yr average of the average daily range for specific months
cast back to any previous 10yrs of your choosing
@twingall
Directional ExpectancyThe Directional Expectancy tool is a volatility based indicator, It is a Directional Correlation to the Volatility given by the Historical Volatility Percentile.
We calculate this correlation function then visually color plot it across a moving average of the HVP.
Use this tool to not only gauge the Historical Volatility that is present as well as the Directional Expectancy of the volatility and price!
SIVE 1.0 [Soldi]SIVE 1.0
What is SIVE?
SIVE stands for Systematic Institutional Volatility Expansion, SIVE uses a variety of different statistical indicators to gauge volatility along with trend correlation and other measures to filter and define a price move. This system was originally set out to redefine what a 'Trend Following System' could be; we achieved more than just that. We had created what is considered to be one of the first retail quantitative trading system, that incorporates trend following mechanics as well as trend reversal techniques. All while being aligned/correlated to trend and volatility . Something truly powerful to put into the hands of the every day trader, demystifying what quant trading can be while easily presenting it in a way where even your mom could learn how to use the system without being overwhelmed.
What makes this different from any other trading system?
SIVE raises the bar on what traditional indicators and trading systems can do, traditionally you have lagging indicators that only tell you what happened in the past with no correlation to the market or what can happen in the future. Really providing little to no statistical value, yet completely idolized by the retail world. Where SIVE exceeds these systems is all in the math and the application of those formulas to the time/price, finding the synchronicities to exploit for profits as well as exploiting the high probabilities of non-random events. How we do it? well that's in the secret crabby patty formula.
Where we are now, and where we plan to go
SIVE as it stands right now is the very first iteration of the retail quantitative trading system, it is performing exceptionally well but we aren't take that as our standard as we want to always raise the bar. as it stands, we are already working on the updates to come that will dwarf anything we've done in the past.
Our goal with SIVE is to be able to provide an easy to learn and easy to profit trading system that will provide the retail public with a trust worthy system to use. In the future our updates will carry heavier weight on key aspects like Risk to Reward, Win rates and capturing those big parabolic movements that everyone dreams of. Far fetched? for the traditional indicator junkies, but for a Quant it is just a matter of time.
What does it perform best on?
Simply put, yes... We set out to create this to be used for any trading instrument and any timeframe. Intraday timeframes have been shown to give more trades and typically higher reward trades as your able to execute with a high degree of accuracy 1:2 is very modest and can easily be achieved but we have also seen so so many trades run higher than 1:10 and even 1:20!! but as you already may know the market doesn't always give those favorable conditions to trade that high of a Risk to Reward all the time.
Stocks, Crypto, Forex, Metals, Energies, Indices, etc. are all tradeable with SIVE
Precision Price Channel [AstrideUnicorn]Precision Price Channel (PPC) is a channel indicator based on advanced Kalman filtering. As one can see, the PPC channel is very narrow, but the price stays inside it with a very high probability. It is a precise model that shows the bounds for price swings in trending or ranging markets.
The indicator helps to determine optimal prices to enter a long or short trade. One can also use it for mean reversion trading when the market is in a range regime, just like other channel indicators.
How to use
The trader can use PPC in pair with their trading system to find the best price to enter a long or short trade suggested by their strategy.
For example, if you feel bullish about a market, you can enter a long position at the moment when the price crosses the bottom PPC line and leaves the channel. A green circle arrives below this candle, indicating the best price for a long trade. Such entry points ensure that you “buy very low” if the market will surge eventually.
If the trader thinks that the price of an asset is to decrease, they can wait for the indicator to show the best price for a short trade. The best moment to enter a sell position is when a candle breaks out of the PPC channel through the upper line. A red circle will show above such a candle.
In this use case, one should look at the red and green circles not as at signals that forecast the market will go up or down but real-time signals showing that now it is the best price to enter a long or short trade.
One can also use the PPC indicator to get entry signals. If the market is in a range regime, the red and green circles give mean-reversion signals for short-term trades inside the range.
The price crossing the blue middle line can serve as a signal to enter a trend.
The PPC indicator is auto-adjustable and does not have any user settings.
Reticulata Enhanced - StrategyThis script is the backtesting for Reticulata Enhanced.
Building on our core script - Reticulata, the enhanced version features several requested extras to give you more flexibility with your trading style.
What is Reticulata Enhanced?
The Reticulata core leverages a blend of MA/RSI strategies mixed with the Bull Bear Bots optimised logic for risk management. This enhanced version takes it a step further with additional risk management features:
Trailing Stop
Fixed Stop
Fixed Stop, but move at TP
Trend confirmation
Usage
Using the indicator is as simple as:
1. Select the strategy, or combination of strategies you want to use
2. If desired, select one or more of the available trend filters
3. Adjust your stop options
4. Review backtest results
Markets
Like the core, the enhanced algo also supports a range of markets and timeframes, including the majors (EURUSD, etc...) in Forex and a variety of Cryptocurrencies including Bitcoin (BTC/XBT etc...).
All of our scripts are designed for manual traders but are ready to use with automated trading bots.