Fractal-Dimension-Adaptive SMA (FDASMA) w/ DSL [Loxx]Fractal-Dimension-Adaptive SMA (FDASMA) w/ DSL is a fractal-dimension-index-adaptive SMA. The SMA is accelerated during a trend and slowed down during a sideways market, so as to avoid false signals. This indicator uses the fractal dimension to compute an ingest period length into the SMA to output the FDASMA.
What is the Fractal Dimension Index?
The goal of the fractal dimension index is to determine whether the market is trending or in a trading range. It does not measure the direction of the trend. A value less than 1.5 indicates that the price series is persistent or that the market is trending. Lower values of the FDI indicate a stronger trend. A value greater than 1.5 indicates that the market is in a trading range and is acting in a more random fashion.
What are DSL Discontinued Signal Line?
A lot of indicators are using signal lines in order to determine the trend (or some desired state of the indicator) easier. The idea of the signal line is easy : comparing the value to it's smoothed (slightly lagging) state, the idea of current momentum/state is made.
Discontinued signal line is inheriting that simple signal line idea and it is extending it : instead of having one signal line, more lines depending on the current value of the indicator.
"Signal" line is calculated the following way :
When a certain level is crossed into the desired direction, the EMA of that value is calculated for the desired signal line
When that level is crossed into the opposite direction, the previous "signal" line value is simply "inherited" and it becomes a kind of a level
This way it becomes a combination of signal lines and levels that are trying to combine both the good from both methods.
In simple terms, DSL uses the concept of a signal line and betters it by inheriting the previous signal line's value & makes it a level.
Included
2 Signal types
Alerts
Loxx's Expanded Source Types
Bar coloring
Moyenne mobile simple (SMA)
Variety MA Cluster Filter [Loxx]Variety MA Cluster Filter is one method of creating a low-lag digital filter. This is done by calculating two moving averages and then comparing their output to the past value of the combined output and then choosing the max and min between the two moving averages to then determine the combined output. I've included standard deviation filtering for smoothing.
What is a Standard Deviation Filter?
If price or output or both don't move more than the (standard deviation) * multiplier then the trend stays the previous bar trend. This will appear on the chart as "stepping" of the moving average line. This works similar to Super Trend or Parabolic SAR but is a more naive technique of filtering.
Included
Bar coloring
Signals
Alerts
Loxx's Expanded Source Types
Loxx's Moving Averages
Simple Mean Breach .v01The script is based on moving averages, therefore the underbelly is no different from existing indicators. I've also borrowed ideas from existing scripts. However, this script is meant to help you automate your trading. I removed all the noise of multiple SMA lines, so it's easy to focus on what's important for entering or exiting the position; the top and bottom line at any point in time or price level.
Recommended use and markets:
You buy or sell when the price breaches the band. I would recommend focusing on one direction when using this indicator; I prefer going long. This works well with major indices (SPX, NDX, DJI) at 15m or 30m or even 10m, but not the crypto or individual stocks.
Notice that even when the S&P500 is in decline, you can still profit from the occasional powerful rally...if you stick to the script. This script is a visualisation that could help you take emotions out of your trading....you're welcome :)
STD- and Clutter-Filtered, Non-Lag Moving Average [Loxx]STD- and Clutter-Filtered, Non-Lag Moving Average is a Weighted Moving Average with a minimal lag using a damping cosine wave as the line of weight coefficients. The indicator has two filters. They are static (in points) and dynamic (expressed as a decimal). They allow cutting the price noise giving a stepped shape to the Moving Average. Moreover, there is the possibility to highlight the trend direction by color. This also includes a standard deviation and clutter filter. This filter is a FIR filter.
What is a Generic or Direct Form FIR Filter?
In signal processing, a finite impulse response (FIR) filter is a filter whose impulse response (or response to any finite length input) is of finite duration, because it settles to zero in finite time. This is in contrast to infinite impulse response (IIR) filters, which may have internal feedback and may continue to respond indefinitely (usually decaying).
The impulse response (that is, the output in response to a Kronecker delta input) of an Nth-order discrete-time FIR filter lasts exactly {\displaystyle N+1}N+1 samples (from first nonzero element through last nonzero element) before it then settles to zero.
FIR filters can be discrete-time or continuous-time, and digital or analog.
A FIR filter is (similar to, or) just a weighted moving average filter, where (unlike a typical equally weighted moving average filter) the weights of each delay tap are not constrained to be identical or even of the same sign. By changing various values in the array of weights (the impulse response, or time shifted and sampled version of the same), the frequency response of a FIR filter can be completely changed.
An FIR filter simply CONVOLVES the input time series (price data) with its IMPULSE RESPONSE. The impulse response is just a set of weights (or "coefficients") that multiply each data point. Then you just add up all the products and divide by the sum of the weights and that is it; e.g., for a 10-bar SMA you just add up 10 bars of price data (each multiplied by 1) and divide by 10. For a weighted-MA you add up the product of the price data with triangular-number weights and divide by the total weight.
What is a Clutter Filter?
For our purposes here, this is a filter that compares the slope of the trading filter output to a threshold to determine whether to shift trends. If the slope is up but the slope doesn't exceed the threshold, then the color is gray and this indicates a chop zone. If the slope is down but the slope doesn't exceed the threshold, then the color is gray and this indicates a chop zone. Alternatively if either up or down slope exceeds the threshold then the trend turns green for up and red for down. Fro demonstration purposes, an EMA is used as the moving average. This acts to reduce the noise in the signal.
What is a Dual Element Lag Reducer?
Modifies an array of coefficients to reduce lag by the Lag Reduction Factor uses a generic version of a Kalman velocity component to accomplish this lag reduction is achieved by applying the following to the array:
2 * coeff - coeff
The response time vs noise battle still holds true, high lag reduction means more noise is present in your data! Please note that the beginning coefficients which the modifying matrix cannot be applied to (coef whose indecies are < LagReductionFactor) are simply multiplied by two for additional smoothing .
Included
Bar coloring
Loxx's Expanded Source Types
Signals
Alerts
Clutter-Filtered, D-Lag Reducer, Spec. Ops FIR Filter [Loxx]Clutter-Filtered, D-Lag Reducer, Spec. Ops FIR Filter is a FIR filter moving average with extreme lag reduction and noise elimination technology. This is a special instance of a static weight FIR filter designed specifically for Forex trading. This is not only a useful indictor, but also a demonstration of how one would create their own moving average using FIR filtering weights. This moving average has static period and weighting inputs. You can change the lag reduction and the clutter filtering but you can't change the weights or the numbers of bars the weights are applied to in history.
Plot of weighting coefficients used in this indicator
These coefficients were derived from a smoothed cardinal sine weighed SMA on EURUSD in Matlab. You can see the coefficients in the code.
What is Normalized Cardinal Sine?
The sinc function sinc (x), also called the "sampling function," is a function that arises frequently in signal processing and the theory of Fourier transforms.
In mathematics, the historical unnormalized sinc function is defined for x ≠ 0 by
sinc x = sinx / x
In digital signal processing and information theory, the normalized sinc function is commonly defined for x ≠ 0 by
sinc x = sin(pi * x) / (pi * x)
What is a Generic or Direct Form FIR Filter?
In signal processing, a finite impulse response (FIR) filter is a filter whose impulse response (or response to any finite length input) is of finite duration, because it settles to zero in finite time. This is in contrast to infinite impulse response (IIR) filters, which may have internal feedback and may continue to respond indefinitely (usually decaying).
The impulse response (that is, the output in response to a Kronecker delta input) of an Nth-order discrete-time FIR filter lasts exactly {\displaystyle N+1}N+1 samples (from first nonzero element through last nonzero element) before it then settles to zero.
FIR filters can be discrete-time or continuous-time, and digital or analog.
A FIR filter is (similar to, or) just a weighted moving average filter, where (unlike a typical equally weighted moving average filter) the weights of each delay tap are not constrained to be identical or even of the same sign. By changing various values in the array of weights (the impulse response, or time shifted and sampled version of the same), the frequency response of a FIR filter can be completely changed.
An FIR filter simply CONVOLVES the input time series (price data) with its IMPULSE RESPONSE. The impulse response is just a set of weights (or "coefficients") that multiply each data point. Then you just add up all the products and divide by the sum of the weights and that is it; e.g., for a 10-bar SMA you just add up 10 bars of price data (each multiplied by 1) and divide by 10. For a weighted-MA you add up the product of the price data with triangular-number weights and divide by the total weight.
Ultra Low Lag Moving Average's weights are designed to have MAXIMUM possible smoothing and MINIMUM possible lag compatible with as-flat-as-possible phase response.
What is a Clutter Filter?
For our purposes here, this is a filter that compares the slope of the trading filter output to a threshold to determine whether to shift trends. If the slope is up but the slope doesn't exceed the threshold, then the color is gray and this indicates a chop zone. If the slope is down but the slope doesn't exceed the threshold, then the color is gray and this indicates a chop zone. Alternatively if either up or down slope exceeds the threshold then the trend turns green for up and red for down. Fro demonstration purposes, an EMA is used as the moving average. This acts to reduce the noise in the signal.
What is a Dual Element Lag Reducer?
Modifies an array of coefficients to reduce lag by the Lag Reduction Factor uses a generic version of a Kalman velocity component to accomplish this lag reduction is achieved by applying the following to the array:
2 * coeff - coeff
The response time vs noise battle still holds true, high lag reduction means more noise is present in your data! Please note that the beginning coefficients which the modifying matrix cannot be applied to (coef whose indecies are < LagReductionFactor) are simply multiplied by two for additional smoothing .
Things to note
Due to the computational demands of this indicator, there is a bars back input modifier that controls how many bars back the indicator is calculated on. Because of this, the first few bars of the indicator will sometimes appear crazy, just ignore this as it doesn't effect the calculation.
Related Indicators
STD-Filtered, Ultra Low Lag Moving Average
Included
Bar coloring
Loxx's Expanded Source Types
Signals
Alerts
The Hummingbird - MA Ribbon by Joe (EMA, SMA, SMMA, WMA, VWMA)Tired of having to add multiple moving average indicators to your chart? Well, stop doing that. No, really. Listen. Adding duplicate indicators is totally not cool. And, it won't go over well at the next HOA meeting if you keep doing it.
Here's the sweet moving average ribbon you've been waiting for (with 1-10 moving average lines!). It will make your charts look much cooler 😎. And you'll gain the respect of all your neighbors if you add it to your charts.
In all seriousness, this is a slimmed-down version of my other super-awesome script with a stupid name, "Joe's Ultimate MA Ribbon (w/ Crossover Triggers)."
Basically, I removed the crossover signals from it and changed the name to a much superior name, "The Hummingbird."
Yeah. Right on. So, if you don't want or need the crossover signals, go right on humming with "The Hummingbird."
Enjoy, friends. 🍻
If you still want the original ribbon with crossover signals, get it here .
Options:
Show/Hide MA Lines: Only show the lines you wanna see. No more. No less.
MA Type (can be different for each line!): EMA , SMA , SMMA (RMA), WMA , VWMA
MA Source (for each line): open, close, high, low, hl2 , hlc3, ohlc4, hlcc4
MA Length (for each line): any number between 1 and 4999
Line Colors: Ooh, pretty.
MARKAY MOVING AVERAGESMarkay Moving Averages
EMA's
5 - RED
10 - NAVY
20 - TEAL
50 - GREEN
SMA's
100 - ORANGE
200 - RED
RSI SMA Crossover StrategyOverview
RSI SMA Crossover Strategy works the same way as traditional MA crossover strategies, but using RSI instead of price. When RSI crosses over the SMA, a long position is opened (buy). When RSI crosses under the SMA, the long position is closed (sell).
This strategy can be very effective when the right inputs are used (see below). Be sure to use the backtesting tool to determine the optimal parameters for a given asset/timeframe.
Inputs/Parameters
RSI Length: length for RSI calculation (default = 50)
SMA Length: length for SMA calculation (default = 25)
Strategy Properties
Initial Capital = $1000
No default properties are defined for Slippage, Commission, etc, so be sure to set these values to get accurate backtesting results. This script is being published open-source for a reason - save yourself a copy and adjust the settings as you like!
Backtesting Results
Testing on Bitcoin (all time index) 1D chart, with all default parameters.
$1,000 initial investment on 10/07/2010 turns into almost $2.5 billion as of 08/30/2022 (compared to $334 million if the initial investment was held over the same period)
Remember, results can vary greatly based on the variables mentioned above, so always be sure to backtest.
Jay Multi SMAIt's strategy of swing & positional trades.. It's based on the concept of crossing of SMA with there diff length...
Percent above or Below Moving Average Candle colourFilter:
If green candle is 'x' % above moving average than colour of candle is turn in blue colour.
If red candle is 'x' % below moving average than colour of candle is turn in orange colour.
MFTA - Multi Timeframe AnalysisThis indicator plots moving averages from higher timeframes for increasing the probability of a successful trade without using multiple charts for the same ticker.
You can configure the desired higher timeframe (i.e. if you are using a 1 min chart you can plot the 5 Min time frame moving averages).
Pranoyama MA/RSI toolEng: The indicator highlights the overbought and oversold RSI levels on the bars. Also draws two moving averages: sma or ema. The RSI levels, the type of moving averages and their period are set by the user.
Rus: Индикатор подсвечивает на барах уровни перекупленности и перепроданности по RSI, а так же рисует две скользящие средние на выбор: sma или ema. Уровни RSI, тип скользящих средних и их период устанавливаются пользователем.
p.s. Это адаптация ранее опубликованного мной индикатора
CL PMAThis is and indicator Using SMAs of the High+Low+Close/3 pivot point strategy outlines by Mark Fisher. This indicator is meant to be used as another layer adding confirmation to the ACD system. I mostly use this script to track Crude Oil ( CL ) but it can be used for many other products . However, this indicator is most useful in volatile markets.
This is not meant to be used as a primary indicator but rather third level of confirmation after ACD and Number lines outlined by Mark Fishers system.
CL PMAPivot moving averages useing SMA's. This study is just a tweak from the study already done by @QUANTCT. I just cleaned it up and used SMAs instead of EMAs so he deserves most credit.
Trend with Supply & Demand by KalyanBetaTrend with Supply & Demand by KalyanBeta
This indicator gives Supply and demand levels for Intraday, Swing trades.
Helps in Multi-timeframe analysis.
Trend analysis can be done by using the band.
Simple and Exponential Moving Averages (20, 50, 200)Displays the 20, 50, and 200 simple and exponential moving averages in 1 indicator.
Simple Moving Averages (20, 50, 200)Allows you to plot 20 day, 50 day, and 200 day simple moving averages using only 1 indicator.
München's Momentum WaveMUNICH'S MOMENTUM WAVE:
This momentum tracker has features sampled from Madrid's moving average ribbon but has differentiated many values, parameters, and usage of integers. It is derived using momentum and then creates moving averages and mean lengths to help support the strength of a move in price action, and also has the key mean length that helps determine HL/LH or rejections into trend continuation. This indicator works on ALL TIME FRAMES, ALL ASSET CLASSES ON ALL SETTINGS!!
HOW DO I USE IT?
*First off, I have arranged the input settings into groups based on the parts of the indicator it affects.
*You want to use the aqua/white/yellow (Munich's line) as your leading indicator, this is a combined average of the MoM indicator.
* When using Munich's line you want to look at the relation to the mean line (the flat line that adjusts based on price action. You will often see rejections of this line into trend continuation. I personally have caught perfect LH/HL bounce trades off of this indicator.
* Use the Background and other colored moving averages to help pre-determine moves based on the -3 offset value of Munich's line. This was by design not to create 'accurate' results, but to help predict momentum swings based on sharper moves in price action better than if all values lined up to the current bar.
Cheat Code's Notes:
I hope you guys find this indicator to be useful, this is most likely the best indicator that I have written. Simply for the fact it is useful on any chart, any timeframe with any setting. If you guys have any issues with it, shoot me a pm or drop a comment. Thanks!
-CheatCode1
BINANCE:BTCUSDT BITSTAMP:ETHUSD BITSTAMP:BTCUSD PEPPERSTONE:JPYX TVC:DXY TVC:NDQ AMEX:SPY
Short Term RSI and SMA Percentage ChangeThis strategy utilises common indicators like RSI and moving averages in order to enter and exit trades. The Relative Strength Index (RSI) is a momentum indicator that has a value between 0 and 100, where a value greater than 70 is considered overbought and a value less than 30 is oversold. If the RSI value is above or below these values, then it can signal a possible trend reversal.
The second indicator used in this strategy is the Simple Moving Average (SMA). A SMA is an arithmetic moving average calculated by adding recent prices and then dividing that figure by the number of time periods in the calculation average. For example, one could add the closing price of a coin for a number of time periods and then divide this total by that same number of periods. Short-term averages respond quickly to changes in the price of the underlying coin, while long-term averages are slower to react.
Long/Exit orders are placed when three basic signals are triggered.
Long Position:
RSI is greater than 50
MA9 is greater than MA100
MA9 increases by 6%
Exit Position:
Price increases 5% trailing
Price decreases 5% trailing
The script is backtested from 1 May 2022 and provides good returns.
A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
This script also works well on AVAX 45m/1h, MATIC 15m/45m/1h and ETH 4h.
Stochastic Rsi+Ema - Auto Buy Scalper Scirpt v.0.3Simple concept for a scalping script, written for 5 minute candles, optimized for BTC.
1st script I've created from scratch, somewhat from scratch. Also part of the goal of this one is to hold coin as often as possible, whenever it's sideways or not dropping significantly.
Designed to buy on the stochastic bottoms (K>D and rising, and <17)
Then and sell after 1 of 3 conditions;
a. After the price goes back up at least 1 % and then 1-2 period ema reversal
b. After the rsi reversal (is dropping) and K<D Flip
c. Stop loss at -1.5%
Moving Averages Ribbon (7 EMAs/SMAs)This Indicator provides a combination which is suitable for visualizing many Simple Moving Averages (SMAs) and Exponential Moving Averages (EMAs). There are 7 possible periods 5,9,20,50,100,200,250. There is a possibility to show only EMAs or only SMAs or both. EMAs have thinner curves by default, to be able to distinguish them from SMAs. Additionally, there are highlighted channels between the MAs of the highs and the MAs of the lows, showing a channel of specific moving averages. It comes with a presetting showing EMAs 5,9,20,50,200 and SMAs 9,20,50,200, while the MA channels are only visible for 9 and 50.
EMAs:
SMAs:
Both
Multi Type RSI [Misu]█ This Indicator is based on RSI ( Relative Strength Index ) & multiple type of MA (Moving Average) to show different variations of RSI.
The relative strength index (RSI) is a momentum indicator used in technical analysis to evaluate overvalued or undervalued conditions in the price of that security.
█ Usages:
The purpose of this indicator is to obtain the RSI calculated with different MAs modes instead of the classic RMA.
The red and green zones indicate the oversold and overbought zones.
Buy or sell signals are marked by the green and red circles
We have 2 different signal modes : when the different size RSIs cross and when the fast RSI crosses the extreme bands.
Alerts are setup.
█ Parameters:
Lenght RSI: The lenght of the RSI. (14 by default)
RSI MA Type: The type of MA with which the rsi will be calculated. ("SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA")
Fast Lenght MA: The fast lenght smoothing MA.
Slow Lenght MA: The Slow lenght smoothing MA.
Lower Band: The lenght of the lower band. (25 by default)
Upper Band: The lenght of the upper band. (75 by default)
Signal Type: The mode with which buy and sell signals are triggered. ("Cross 2 Mas", "Cross Ma/Bands")
Moving Averages Proximity Oscillator [LuxAlgo]This indicator returns the percentage or count of prices greater than simple moving averages with periods in a user set range, as well as the moving average period that is the closest to price values.
Settings
Minimum Length: Minimum SMA period
Maximum Length: Maximum SMA period
Smooth: Control the degree of smoothness of the indicator outputs
Normalized: Normalize the indicator outputs in a range (0, 100)
Src: Input source of the indicator
Usage
The indicator returns two outputs.
The "Price Above MA's" output returns for a current price value the number of times this one is greater than simple moving averages with periods ranging from Minimum Length to Maximum Length . This oscillator can be expressed as a percentage if Normalized is selected.
This oscillator allows identifying the direction of an underlying trend in the price. Higher Minimum Length and Maximum Length settings will return indications regarding longer term price variations, while shorter ranges will return less detailed outputs. This can be seen in the chart above where Minimum Length = 80 to Maximum Length = 100 .
The "Proximity Index" output on the other end does not return information regarding the direction of an underlying trend but the period of the simple moving average with periods ranging from Minimum Length to Maximum Length that is the closest to the current price value.
For various simple moving averages of differing periods, we can see that SMA's with shorter periods will tend to stay closer to the price, when price start reverting it will reach higher periods moving averages.
As such, this second indicator output can help identify the start of new trends, with higher values indicating price is reverting toward longer-term moving averages, suggesting a new trend forming.