Levels Of Greed [AstrideUnicorn]The Levels Of Greed indicator is based on the same idea as the Levels Of Fear one and was suggested by several traders in the comment section. It helps analyze price advances to find the best levels for closing a long position in an asset after a quick surge or longer up-trend. In finance, volatility is a term that describes the degree of variation of an asset price over time. It is usually denoted by the letter σ (sigma) and estimated as the standard deviation of the asset price or price returns. The Levels Of Greed indicator helps measure the current price advance in the standard deviation units. It plots seven levels at distances of 1, 2, 3, 4, 5, 6, and 7 standard deviations (sigmas) above the base price (the recent lowest price or lower bound of the established range). In what follows, we will refer to these levels as levels of greed.
HOW TO USE
When the price in its surge reaches a certain level of greed, it means that it has surged from its recent lowest value by a corresponding number of standard deviations. The indicator helps traders see the maximum levels to which the price may rise and estimate the potential height of the current surge. Five-seven sigma surges are relatively rare events and correspond to significant market exuberance. Careful traders and shorter-term ones would not want to participate in the bandwagon effect and herd behavior that drive market bubbles. They prefer to take their profits when the market is not exceedingly overbought.
SETTINGS
Window : the averaging window or period of the indicator. The algorithm uses this parameter to calculate the base level and standard deviations. Higher values are better for measuring deeper and longer surges.
Levels Stability : the parameter used in the up-move detection. The higher the value is, the more stable and long the greed levels are, but at the same time, the lag increases. The lower it is, the faster the indicator responds to the price changes, but the greed levels are recalculated more frequently and are less stable. This parameter is mostly for fine-tuning. It does not change the overall picture much.
Mode : the parameter that defines the style for the labels. In the Cool Guys Mode , the indicator displays the labels as emojis. In the Serious Guys Mode , labels show the distance from the base level measured in standard deviation units or sigmas.
Trend
Trendlines with Breaks [LuxAlgo]The trendlines with breaks indicator return pivot point based trendlines with highlighted breakouts. Users can control the steepness of the trendlines as well as their slope calculation method.
Trendline breakouts occur in real-time and are not subject to backpainting. Trendlines can however be subject to repainting unless turned off from the user settings.
The indicator includes integrated alerts for trendline breakouts.
🔶 USAGE
Any valid trendlines methodology can be used with the indicator, users can identify breakouts in order to infer future price movements.
The calculation method of the slope greatly affects the trendline's behaviors. By default, an average true range is used, returning a more constant slope amongst trendlines. Other methods might return trendlines with significantly different slopes.
Stdev makes use of the standard deviation for the slope calculation, while Linreg makes use of the slope of a linear regression.
The above chart shows the indicator using "Stdev" as a slope calculation method. The chart below makes use of the "Linreg" method.
By default trendlines are subject to backpainting, and as such are offset by length bars in the past. Disabling backpainting will not offset the trendlines.
🔶 SETTINGS
Length: Pivot points period
Slope: Slope steepness, values greater than 1 return a steeper slope. Using a slope of 0 would be equivalent to obtaining levels.
Slope Calculation Method: Determines how the slope is calculated.
Backpaint: Determine whether trendlines are backpainted, that is offset to past.
[PS] Mini-Meter psRSIThis single oscillator, the cyclic RSI, is being measured for weakness in the underlying trend over a period of time and will identify divergences in price and the oscillator.
Two lines are drawn on the oscillator when a potential correction is detected.
Crossing the red line signifies invalidation of the potential correction and trend continuation.
Crossing the green line signals the potential counter-trend move.
Three symbols also appear on the oscillator.
Dots indicate the beginning of the diverging period.
X's indicate invalidation and trend continuation.
Triangles indicate the confirmation of the counter-trend move.
Alerts are integrated for each condition and are available to select individually as needed.
I will typically use alerts on a Bullish Setup to notify me of a chart preparing for a bullish correction.
I'll look at the chart and identify relevant support and resistance levels.
Upon a Bullish Trigger alert I'll return to the chart and evaluate my risk according to the current price level in relation to support/resistance.
I'll also look for a confirming price action signal for entry into a bullish trade.
Sometimes Bullish Triggers at support and Bearish Triggers at resistance can show those price levels potentially holding up.
In open positions triggers can be used as market-dictated take profit points as they are showing weakness in the directionality of price.
This script does not make use of the pivot function to identify lower/higher lows/highs, but there IS a 5 bar buffer in pivot points. Backtesting of methods show this has more statistical validity in the signal.
@theprivacysmurf
*The MM psRSI is a constituent of the PrivacySmurf Correction Strength Meter*
Dow Theory Trend Direction VisualizerJapanese below / 日本語説明は下記
Overview
What is difficult for beginner traders is to identify trend occurrence, continuation and reversal.
This indicator visualizes market direction by changing background colors based on Dow Theory so that traders can visually grasp trends.
Sample chart
Functions
1.MTF Higher High/Lower High/Higher Low/Lower Low(HH/LH/HL/LL)
Indicator shows HH/LH/HL/LL of an upper timeframe(MTF) and those of chart’s timeframe at the same time.
As usual, HH/LH/HL/LL of chart’s timeframe can be used to identify trend continuation based on Dow Theory while MTF HH/LH/HL/LL can be used as support/resistance.
Auto and manual mode for MTF
When you select “Auto” mode, then an upper timeframe will be automatically determined as MTF based on chart’s timeframe. If “Manual “ mode selected, then you need to specify MTF timeframe.
MTF HH/LH/HL/LL are displayed only below the selected MTF timeframe so it will not disturb when you open higher timeframe.
For instance, if you select daily timeframe as MTF, then HH/LH/HL/LL of daily timeframe will be shown on 4 hour or below timeframes.
Auto and manual mode for MTF
When you select “Auto” mode, then an upper timeframe will be automatically determined as MTF based on chart’s timeframe. If “Manual “ mode selected, then you need to specify MTF timeframe.
MTF HH/LH/HL/LL are displayed only below the selected MTF timeframe so it will not disturb when you open higher timeframe.
For instance, if you select daily timeframe as MTF, then HH/LH/HL/LL of daily timeframe will be shown on 4 hour or below timeframes.
Sample chart (AUDJPY 4H + Daily timeframe HH/LH/HL/LL )
In this chart, you can see two different timeframe’s trend.
In 4hour timeframe, a new high recorded as HH and in daily timeframe, lows going up from LL to HL and high going up from LH to HH hence daily chart is uptrend.
Also, you can predict that Daily HH would be respected as resistance line.
2.Visualize trends direction with colors based on HH/LH/HL/LL.
Background color will change based on break up/down of HH/LH/HL/LL.
———————
トレードを習得する上で多くの人が苦手意識を持つ「目線付け」。
この目線付けをダウ理論を元に訓練するためのインジケーターを開発しました。
高値·安値の更新状況に応じて相場の方向性を色で可視化するため、視覚的に目線付けをすることが可能です。
サンプルチャート
ダウ理論による目線付けの二つの方法
これは僕の持論ですが、ダウ理論による目線付けの方法には、「トレンドは明確なシグナルが出るまで継続する」という原則を共通の拠り所とする二つの方法があると考えています。
一つは日本人投資家/トレーダーにも良く知られている押し安値·戻り高値を基準とする方法。そしてもう一つは高値·安値の切り上げ·切り下げのみを基準とする方法です。
このインジケーターは後者の方法で目線を可視化します。
(もちろん押し安値·戻り高値と併用した目線判断にも活用可能です。)
機能
1.上位足とチャートの時間軸両方のHigher High/Lower High/Higher Low/Lower Low(HH/LH/HL/LL)の表示(MTF機能)
上位足タイムフレームのHH/LH/HL/LLとチャートタイムフレームのHH/LH/HL/LLを同時に表示することができます。
チャートタイムフレームのHH/LH/HL/LLはダウ理論に基づくトレンドの継続・反転の判断用に、上位足のHH/LH/HL/LLは上位足での高値・安値の切り上げ/切り下げ判断及びレジスタンス・サポートとして使うことができます。
上位足の選択には自動モードとマニュアルモードが選択可能です。自動モードを選択した場合、チャートのタイムフレームに応じて上位足が自動的に決定されます。マニュアルモードの場合は選択した時間軸が上位足タイムフレームとして適用されます。
上位足のHH/LH/HL/LLは選択したタイムフレーム未満でのみ表示されます。例えば上位足のタイムフレームとして日足を選択した場合、日足のHH/LH/HL/LLは日足未満でのみ表示されます。
サンプルチャート (AUDJPY 4H に日足のHH/LH/HL/LL を表示)
このチャートでは二つの異なるタイムフレームの高値・安値更新状況を一度に把握することができます。
4Hでは高値の切り上げが発生しているため、安値を更新しなければ上昇トレンド確定です。一方日足では安値がLLからHLへ(赤の矢印)、高値がLHからHHへと切り上がり(緑の矢印)、上昇トレンドであることがわかります。
また、この場面では上位足のHHがレジスタンスとして機能する可能性も予測できます。
2.目線の方向を色で可視化
HH/LH/HL/LLの更新状況から目線を判断し、背景色とともに可視化します。
Higher High/Lower High/Higher Low/Lower Lowとは何か?
日本人投資家/トレーダーの中にはあまり馴染みのない方もいるかと思いますので、定義を記載します。
Higher High(HH)
切り上がった高値を意味します。当インジケーターでは一つ前の高値(HH/LH)から切り上がった場合にHHとしています。
Lower High(LH)
切り下がった高値を意味します。Lower Highなのでより低い方の高値という意味です。当インジケーターでは一つ前の高値(HH/LH)から切り下がった場合にLHとしています。
Higher Low(HL)
切り上がった安値を意味します。Higher Lowなのでより高い方の安値という意味です。当インジケーターでは一つ前の安値(HL/LL)から切り上がった場合にHLとしています。
Lower Low(LL)
切り下がった安値を意味します。当インジケーターでは一つ前の安値(HL/LL)から切り下がった場合にLLとしています。
使い方
高値·安値の切り上げ·切り下げの判断及びトレンド継続·転換の判断に活用
The Namib SpikeThank you to Karl S who coded my idea. Below are the trigger conditions. Testing would be welcomed. I have not looked at the effectivity on higher or lower timeframes. Feedback highly appreciated.
A 3-tiered alert/notification system:
Level 1 Alert (Pop-up notification "Level 1 Bullish Alert" or "Level 1 Bearish Alert"
1. Determine bullish or bearish trend of price above or below 200 EMA
2. RSI level (customizable level)
3. ADX (customizable level as well as option to filter that the current ADX value is higher/lower as 1,2,3,4,or 5 candles ago)
AND/OR
Level 2 Alert (Pop-up notification "Level 2 Bullish Alert" or "Level 2 Bearish Alert"
1. Determine bullish or bearish trend of price above or below 200 EMA
2. RSI level (customizable level)
3. ADX (customizable level as well as option to filter that the current ADX value is higher/lower as 1,2,3,4,or 5 candles ago)
4. Higher Timeframe trends for 2 higher Timeframes (price above/below 200EMA) agrees with current Timeframe
AND/OR
Level 3 Alert (Pop-up notification "Level 3 Bullish Alert" or "Level 3 Bearish Alert"
1. Determine bullish or bearish trend of price above or below 200 EMA
2. RSI level (customizable level)
3. ADX (customizable level as well as option to filter that the current ADX value is higher/lower as 1,2,3,4,or 5 candles ago)
4. Higher Timeframe trends for 2 higher Timeframes (price above/below 200EMA) agrees with current Timeframe
5. Percentage (customizable) from previous H1/H4/D1/W1's (customizable) high & low prices
Bitcoin Movement vs. Coin's Movement MTFThis script tracks the percent change of Bitcoin vs. the percent change of the coin on the chart. Crypto markets are usually affected greatly by Bitcoin swings so being able to see if the given coin is trending above or below Bitcoin is useful market data. All choices made with this script are your own! Thanks.
SmartProfit - Trend Indicator (Main Version) - RUSmartProfit - Trend Indicator (Main Version) detects trend direction and gives trading signals for Short and Long positions.
You can use "SmartProdit - Trend Indicator" for any timeframe, from daily, 4h, to fewer ones, even minute timeframe.
We recommend using those timeframes:
4h. and 3h. - for swing trading
15min. и 30min. - for scalping
"SmartProfit - Trend Indicator" features:
1. Sell and Buy signals ( For setup, we have three parameters: HB, sensitivity, and stop )
2. TakeProfit values for Long and Short signals ( Prices for profit fixing )
3. Profit table ( Show profit of current indicator settings for chosen time range )
4. Current position table ( Show data for the current position in real-time. At this table you have all that you need to enter the position )
5. Trend lines ( Draw Global and local trend lines. )
6. Fibonacci levels ( Automatically draw global and local Fibonacci levels )
7. Fibonacci channel ( Automatically draw global and local Fibonacci channels )
8. Auto setting - sorts out more than 6000 variants of settings at one loop and gives the best one.
For best results, you should set up an indicator for each trading pair. For setup, we have three parameters: HB, sensitivity, and stop. We have an additional feature for auto setting, which sorts out more than 6000 variants of settings at one loop and give the best one.
For work with indicators we made 3 strategies:
First - we enter the position after the signal is approved. Close and reenter to position with approved signal for another side.
Second and third - the same, we enter the position after the signal is approved, but we use TakeProfit and StopLoss values to fix the position.
"SmartProdit - Trend Indicator" определяет направления тренда и дает торговые сигналы для входа в Короткую или Длинную позицию.
Индикатор позволяет торговать на любых Таймфреймах , как на дневных, так и на более мелких временных интервалах, вплоть до минутных.
Мы рекомендуем использовать Таймфреймы:
4ч. или 3ч. - для Свинг-торговли
15мин. и 30мин. - для Скальпинга
Подробнее о функционале индикатора SmartProfit:
1. Сигналы Покупки или Продажи ( Для настройки используется уникальные параметры HB и Чувствительность )
2. Значения TakeProfit для Long и Short сигналов ( Зоны фиксации прибыли )
3. Таблица прибыльности ( Отображает прибыльность текущей настройки на выбранном интервале времени )
4. Таблица Текущей позиции ( Показывает текущую позицию в режиме реального времени - в ней есть всё, что нужно для входа в позицию )
5. Трендовые линии ( Рисует как Глобальные, так и локальные трендовые линии, в зависимости от настроек )
6. Уровни Фибоначчи ( Автоматически строит уровни Фибоначчи, как Глобальные так и Локальные )
7. Каналы по Фибоначчи ( Автоматически строит каналы по Фибоначчи, как Глобальные так и Локальные )
8. Автоподсчет всех настроек индикатора - автоматически делает подбор более 6000 вариаций настроек за раз и выдаёт лучшие под каждый актив. Вам не надо тратить недели и месяцы чтобы вручную подбирать настройки, наш инструмент подберет лучшие настройки для Вас.
Для более лучших результатов, для каждого актива индикатор настраивается отдельно !
Для настройки индикатора используются три Уникальных параметра:
HB, Чувствительность, Стоп.
Для работы с индикатором разработаны три стратегии:
Первая - мы входим в позицию при закреплении сигнала и переворачиваемся (то есть выходим из позиции и заходим в противоположную сторону) по обратному сигналу.
По 2-ой и 3-ей стратегии мы также входим после закрепления сигнала, но для фиксации прибыли используем зоны TakeProfit, указанные индикатором.
Подробнее о всех возможностях стратегий, а также настройке и работе с индикатором, вы узнаете из нашей инструкции, которую выдаем персонально.
8X Trend ATR SAR Dingue V58X Trend ATR SAR Dingue V5 - This is the updated version for Pine Script 5.
8x indicator into 1 :
2x ATR indicator - 3x Trend indicator - 3x SAR indicator
Trends are helpful to spot reversal and support resistance, especially on bigger time frames.
This indicator gives you a global view of various trends all at once. You can easily turn them On or Off as to not clog the screen.
Each trend is also color-coded to visualize quickly the position of the price compared to it.
You can customize lengths, adjust line sizes, have the start of a new trend marked with a circle, fill in colors.
'Tool tips' explain other settings and if you have any questions, feel free to ask in the comments below.
Thank you for the feedback and check all my ‘Dingue’ indicators.
Levels Of Fear [AstrideUnicorn]"Buy at the level of maximum fear when everyone is selling." - says a well-known among traders wisdom. If an asset's price declines significantly from the most recent highest value or established range, traders start to worry. The higher the drawdown gets, the more fear market participants experience. During a sell-off, a feedback loop arises, in which the escalating fear and price decline strengthen each other.
The Levels Of Fear indicator helps analyze price declines and find the best times to buy an asset after a sell-off. In finance, volatility is a term that describes the degree of variation of an asset price over time. It is usually denoted by the letter σ (sigma) and estimated as the standard deviation of the asset price or price returns. The Levels Of Fear indicator helps measure the current price decline in the standard deviation units. It plots seven levels at distances of 1, 2, 3, 4, 5, 6, and 7 standard deviations (sigmas) below the base price (the recent highest price or upper bound of the established range). In what follows, we will refer to these levels as levels of fear.
HOW TO USE
When the price in its decline reaches a certain level of fear, it means that it has declined from its recent highest value by a corresponding number of standard deviations. The indicator helps traders see the minimum levels to which the price may fall and estimate the potential depth of the current decline based on the cause of the actual market shock. Five-seven sigma declines are relatively rare events and correspond to significant market shocks. In the lack of information, 5-7 sigma levels are good for buying an asset. Because when the price falls that deep, it corresponds to the maximum fear and pessimism in the market when most people are selling. In such situations, contrarian logic becomes the best decision.
SETTINGS
Window: the averaging window or period of the indicator. The algorithm uses this parameter to calculate the base level and standard deviations. Higher values are better for measuring deeper and longer declines.
Levels Stability: the parameter used in the decline detection. The higher the value is, the more stable and long the fear levels are, but at the same time, the lag increases. The lower it is, the faster the indicator responds to the price changes, but the fear levels are recalculated more frequently and are less stable. This parameter is mostly for fine-tuning. It does not change the overall picture much.
Mode: the parameter that defines the style for the labels. In the Cool Guys Mode , the indicator displays the labels as emojis. In the Serious Guys Mode , labels show the distance from the base level measured in standard deviation units or sigmas.
[H] Multi Coin Compare
Use a focal point to compare multiple coins price action to one another in real time
View the price of up to 5 coins in an easy to view table
Fully Customizable
TFO + ATR Strategy with Trailing Stop LossThis strategy is an experiment to learn what happens when The Trend Flex Oscillator (by Dr. John Ehlers) is used in conjunction with a volatility indicator like ATR. It was designed with cryptocurrency trading in mind.
The way I coded this experiment makes it unsuitable for bear market conditions.
When applied to a bull market, this trend-following strategy will open long positions when oversold price action appear to be reversing. It will typically close a position within a few days unless it gets caught in a bear market, in which case it holds on for dear life. I have tried to make back-testing very simple, but you should never trust it. It's merely and interesting tool for adjusting the many parameters that I've made editable in the configuration window. Those values include the ATR and TFO parameters, as well as setting a trailing stop loss. When closing a position, the strategy can optionally be told to ignore the trend analysis and only obey the trailing stop loss value. I've made an attempt to allow the user to define the minimum profit necessary to allow the strategy to close all all positions. In my observations, the 2H candlestick charts seem to produce the best results, although the parameters of the strategy could theoretically be adjusted to suit other time periods.
In summary...
This strategy has a bias for HODL (Holds on to Losses) meaning that it provides NO STOP LOSS protection!
Also note that the default behavior is designed for up to 15 open long orders, and executes one order to close them all at once.
Opening a long position is predicated on The Trend Flex Oscillator (TFO) rising after being oversold, and ATR above a certain volatility threshold.
Closing a long is handled either by TFO showing overbought while above a certain ATR level, or the Trailing Stop Loss. Pick one or both.
If the strategy is allowed to sell before a Trailing Stop Loss is triggered, you can set a "must exceed %". Do not mistake this for a stop loss.
Short positions are not supported in this version. Back-testing should NEVER be considered an accurate representation of actual trading results.
// portions © allanster (date window code)
// portions © Dr. John Ehlers (Trend Flex Oscillator)
This code is provided for educational purposes only. The results of this strategy should not be considered investment advice.
The user of this script acknowledges that it can result in serious financial loss when used as a trading tool
Retail Insider Trend Following (HTF ONLY)Before I begin, here is a disclaimer: None of this is financial advice, and I'll recommend you to do your own research or talk to your financial advisor, if you want to use this. And also make sure you understand the risks properly before taking any trades. This particular indicator is a work of experiment, and I am publishing the optimized code. Please leave a comment below if you have any queries.
As per the logic, I am taking the highest point in a particular time window (used the in built ta.highest function) , and the lowest point in a particular time window (used the ta.lowest), and averaged it using the in built function (
RMA(which is the B33 Mean.)
For the offset, I am simply calculating and adding some values (which can also be input by the user.)
and this user input is in percentage.
So if you observe the lines, the Red line in between is the mean, and the Yellow lines are the offsets. (Everything can be changed in settings)
In simple layperson terms, if the price goes above the Red line, it's an uptrend,
and if the price goes below the Red line, it is in a downtrend.
Now I just wanted to keep the offset because I wanted more confirmation before actually entering a trade. (the offset can be changed again, from the settings, and the offset is in percentage)
A lot of times, you will see that the price is kind of going sideways, where, a lot of traders get trapped, as there is no clear trend.
So in order to eliminate that choppy price action and stay out, I'm using this offset. This should probably save a lot of bad trades.
So basically, if the price goes and closes above the higher offset, it will confirm a trend change, and a possible bull market.
Similarly, if the price goes and closes below the lower offset, it will confirm the end of the bull market, or a corrective phase, or a bear market.
A few things to note, however...
If you change the timeframe, you will see that the lines are not shifting/changing that much. This is because, it will consider the highest and the lowest points and average it.
So, basically, if you do the math, you will understand why,... and this logic is purely for a higher timeframe analysis/confirmation.
I'll personally recommend this kind of a setup for swing trading/confirmation on the daily or the 4H charts, mostly for longer timeframes. (If you are on the pro/pro+ or premium, you can try out 6H or 12H timeframes as well)
If you are looking for scalping, setups and indicators, this is not the right one.
If you liked it, don't forget to give a follow :)
Adaptive Trend Cipher loxx]Adaptive Trend Cipher
Highly experimental!
Features:
-Implements 5 different Dominant Adaptive Cycle Measures to determine optimal inputs for correlation functions. These cycle calculations include the following: **
* Ehler's Autocorrelation Dominant Cycle
* Ehler's Instantaneous Dominant Cycle
* Ehler's Band-pass Dominant Cycle
* Ehler's Hilbert Period Dominant Cycle
* Ehler's Dual Differentiator Dominant Cycle
**additional cycle measures to be added in future releases
-Uses price to time correlation with look-back periods determined by the dominant cycle measures
-Allows users to manipulate the range of Dominant Cycle inputs, also allows the user to change the size % of the the output Dominant cycle to be used to determine correlation lengths
-Bars are colored according to correlation extremes. Green bars are uptrend, Red bars are downtrend; Yellow bars are high correlation, Fuchsia bars are low correlation
Uses
-Trend cipher is a novel approach to teasing out macro trends in the market. This version is geared to be used on the daily time frame only
-Reversals at yellow and fuchsia bars when they appear, it shows price exhaustion using
Warning: This may not work on certain assets due to the high processing power required to calculate cycle dominance. This also uses a custom correlation function since the data being input intot he correlation function is not constant but variable based on cycle dominance at every bar. To correct this in most circumstances you must change the max_bars_back constant in the indicator method call
If you use parts of the code, please let me know, I would love to hear what you do with it.
Happy trading!
Universal logarithmic growth curves, with support and resistanceLogarithmic regression is used to model data where growth or decay accelerates rapidly at first and then slows over time. This model is for the long term series data (such as 10 years time span).
The user can consider entering the market when the price below 25% or 5% confidence and consider take profit when the price goes above 75% or 95% confidence line.
This script is:
- Designed to be usable in all tickers. (not only for bitcoin now!)
- Logarithmic regression and shows support-resistance level
- Shape of lines are all linear adjustable
- Height difference of levels and zones are customizable
- Support and resistance levels are highlighted
Input panel:
- Steps of drawing: Won't change it unless there are display problems.
- Resistance, support, other level color: self-explanatory.
- Stdev multipliers: A constant variable to adjust regression boundaries.
- Fib level N: Base on the relative position of top line and base line. If you don't want all fib levels, you might set all fib levels = 0.5.
- Linear lift up: vertically lift up the whole set of lines. By linear multiplication.
- Curvature constant: It is the base value of the exponential transform before converting it back to the chart and plotting it. A bigger base value will make a more upward curvy line.
FAQ:
Q: How to use it?
A: Click "Fx" in your chart then search this script to get it into your chart. Then right click the price axis, then select "Logarithmic" scale to show the curves probably.
Q: Why release this script?
A: - This script is intended to to fix the current issues of bitcoins growth curve script, and to provide a better version of the logarithmic curve, which is not only for bitcoin , but for all kinds of tickers.
- In the public library there is a hardcoded logarithmic growth curve by @quantadelic . But unfortunately that curve was hardcoded by his manual inputs, which makes the curve stop updating its value since 2019 the date he publish that code. Many users of that script love using it but they realize it was stop updating, many users out there based on @quantadelic version of "bitcoin logarithmic growth curves" and they tried their best to update the coordinates with their own hardcode input values. Eventually, a lot of redundant hardcoded "Bitcoin growth curve" scripts was born in the public library. Which is not a good thing.
Q: What about looking at the regression result with a log scale price axis?
A: You can use this script that I published in a year ago. This script display the result in a log scale price axis.
NEXT VWAP SlopeOverview:
This customizable oscillator tracks slope of the Volume-Weighted Average Price ( VWAP ) line, positive and negative, over a user-specified run (bar distance). It is highly responsive, far more so than VWAP alone, making it suitable for issuing long and short signals (especially around 0 crossovers) as well as exit signals at positive and negative extremes (corresponding to price-volume momentum exhaustion).
NASDAQ 100 Futures ( CME_MINI:NQ1! ) 1-minute trend following
The example below shows a NEXT VWAP Slope 0-crossover strategy, issuing long signals when the VWAP Slope line crosses over 0 and short when it crosses under it. You will need the NEXT Strategy Visualizer (free) to plot NEXT VWAP Slope's signals.
NEXT VWAP Slope is highly customizable, allowing you to change the length of the run (for smoother slopes), as well as the midline level - in the above example it is 0. The latter is useful if you want to introduce a bias into your strategies: long, if negative, short, if positive.
Input Parameters:
There are 2 groups of input.
Slope Settings
Slope Run - controls the length of time (in bars) for slope calculation with higher values yielding a smoother, more filtered, but less responsive curve
Midline - the NEXT VWAP Slope level above which market is considered long, below short; default is 0
Upper Limit - the NEXT VWAP Slope level above which market is considered overbought; default is 0 (off)
Lower Limit - the NEXT VWAP Slope level under which market is considered oversold; default is 0 (off)
VWAP Settings
Anchor Period - controls the origin of VWAP calculations, start of session being the default.
Source - data used for calculating the VWAP, typically HLC /3, but can be used with other price formats and data sources as well.
Offset - shifting of the VWAP line forward (+) or backward (-).
Here is how to set NEXT VWAP Slope crossing 0 alerts: open a chart, attach NEXT VWAP Slope, and right-click on chart -> Add Alert. Condition: NEXT VWAP Slope >> VWAP >> Crossing >> Value >> 0 >> Once Per Bar Close.
Volume Bar Breakout and Breakdown IndicatorVolume shows strength of a movement and highest volume shows the region that pushed price to certain extent with full strength. Breakout or Breakout of the highest volume bar range shows continuity further push by sellers or buyers indicating a trend continuation for a small period if not for long duration. Entries can be taken once signal is generated with stoploss as recommended.
Guidelines:
Don't trade if range is too large
Don't trade if Breakdown or Breakdown candle body / range is too large or if there is high volatility
Use additional indicator to get the idea of overall trend analysis
Logarithmic Trend ChannelThis indicator automatically draws a regression channel plotted on logarithmic scale from the first quotation.
This model is useful for the long term series data (such as 10 or 20 years time span).
The Pearson correlation measures the strength of the linear relationship between two variables. It has a value between to 1, with a value of 0 meaning no correlation, and + 1 meaning a total positive correlation.
Logarithmic price scales are a type of scale used on a chart, plotted such that two equivalent price changes are represented by the same vertical changes on the scale.
They differ from linear price scales because they display percentage points and not dollar price increases for a stock.
Technical issues
*The user have to pan over the chart from the beginning to the end of the study range (such as 10 years of bars) so the pine script could generate those lines on the chart.
*If on the chart the number of bar is less than the lookback period, it won't generate any lines as well.
Market System Quality Number (Market SQN)––––History & Credit
Developed by Dr. Van Tharp, SQN it is the ratio between the R-expectancy and its standard deviation, multiplied by the square root of the number of trades.
Here is an extract of Dr.Tharp's blog post:
Importance of Market Type
Basically, my definition of a bull market is one that’s going up. A neutral (or sideways) market is one that moves sideways in a range — or perhaps a bigger range if volatile. And a bear market goes down.
Market type has no predictive value, it is just descriptive. In other words, you never will know how long it is going to last. But you don’t need prediction to make money. You just need wins that are bigger or more numerous than your losses which need to be smaller or fewer.
In addition, you can learn a lot about what works and what doesn’t work when you use a particular market type that fits your time frame and how you want to trade. That concept is extremely important because two key Tharp Think principles are:
It’s easy to design a good system that works well in any one market type and
It’s insane to expect that same system to work well in all market types.
In fact, I have recently focused our Systems Development workshop upon the principle of creating trading systems for particular market types.
–––––How to use it
If you are a directional, momentum trader, the Market SQN can give you an unbaised measure of wether you are in an uptrend, sideways or downtrending market.
Color legend
Lime = Super Bullish trend
Green = Bullish trend
Cyan = Neutral trend
Dark Red = Bearish trend
Red = Super Bearish trend
Keltner Channels BandsKeltner Channel Bands
Great indicator for mean reversion strategies.
Alerts you can set:
Crossover EMA
Crossunder EMA
Crossover upper band
Crossunder upper band
Crossover lower band
Crossunder lower band
Have fun!
RSI Moving Average CrossoversThis script is an improved version of the RSI indicator, using a moving average on the RSI itself, as well as two other moving averages used to determine the current trend.
A small screener indicating the current movement is displayed in the bottom-left zone of the chart: trend (Bullish/Bearish/Uncertain) and status (Impulse or Correction)
Trends are simply based on moving averages crossovers, coupled to the fact that the current candle closes above the fast MA in a bull trend, and under the fast MA in a bear trend. In other cases, the trend and the movement are considered as "Uncertain" by the indicator.
Options
Various types of moving averages for the RSI and trend MA
Show/Hide crossovers between the RSI and its MA
Color the RSI normal zone with the current trend/movement colors
Show/Hide the screener indicating the current movement
Defaults Parameters
Fast MA 20
Slow MA 50
MA source: Close
RSI Length 14
RSI MA: SMMA (RMA)
RSI MA Length: 20
Don't hesitate to suggest any idea which could improve this indicator.
SequenceSee the highs and lows easily!
Up sequence:
The close of each candle is higher from the low of the previous candle.
* The reference will always be to the low of the highest candle in the up sequence
Down sequence:
The close of each candle is lower from the high of the previous candle.
* The reference will always be to the high of the lowest candle in the down sequence
Moving Average Multitool CrossoverAs per request, this is a moving average crossover version of my original moving average multitool script .
It allows you to easily access and switch between different types of moving averages, without having to continuously add and remove different moving averages from your chart. This should make backtesting moving average crossovers much, much more easier. It also has the option to show buy and sell signals for the crossovers of the chosen moving averages.
It contains the following moving averages:
Exponential Moving Average (EMA)
Simple Moving Average (SMA)
Weighted Moving Average (WMA)
Double Exponential Moving Average (DEMA)
Triple Exponential Moving Average (TEMA)
Triangular Moving Average (TMA)
Volume-Weighted Moving Average (VWMA)
Smoothed Moving Average (SMMA)
Hull Moving Average (HMA)
Least Squares Moving Average (LSMA)
Kijun-Sen line from the Ichimoku Kinko-Hyo system (Kijun)
McGinley Dynamic (MD)
Rolling Moving Average (RMA)
Jurik Moving Average (JMA)
Arnaud Legoux Moving Average (ALMA)
Vector Autoregression Moving Average (VAR)
Welles Wilder Moving Average (WWMA)
Sine Weighted Moving Average (SWMA)
Leo Moving Average (LMA)
Variable Index Dynamic Average (VIDYA)
Fractal Adaptive Moving Average (FRAMA)
Variable Moving Average (VAR)
Geometric Mean Moving Average (GMMA)
Corrective Moving Average (CMA)
Moving Median (MM)
Quick Moving Average (QMA)
Kaufman's Adaptive Moving Average (KAMA)
Volatility-Adjusted Moving Average (VAMA)
Modular Filter (MF)