Moving Average Color Direction Detection Moving Average Color Direction Detection, possibility to configure:
- Type: SMA, EMA, WMA, VWMA, SMMA, DEMA, TEMA, HULLMA, ZEMA, TMA, SSMA
- Lenght
- Source
- Colour direction
Trend
Adaptive Trailing StopIntroduction
The ability to adapt to possible markets states is important in technical analysis, this is why making adaptive indicator might help get better results. I propose a trailing stop indicator using recursion that can adapt to the efficiency ratio. I have added alerts since it's a often requested feature.
The Indicator
Its quite classical, bands are firstly made then a trailing stop is built around them. The bands are recursive, this allow for faster calculations in general but it also allow for a faster adaptivity. An higher length or factor will make the indicator detect longer term trends, factor determine the raising power of the efficiency ratio.
When smooth is checked the trailing stop will appear smoother.
When adaptive is unchecked the indicator will still act as a trailing stop but might be more affected to ranging markets.
Set a static/trailing stop loss :
You can set your stop loss based on the indicator, a static stop loss can be set at the value of the trailing stop when you enter the market. You can also set it as trailing stop, the indicator will follow the trend thus allowing for potential profits to grow's.
Determine The Trend Direction :
You can generate buy sell signals based on the indicator position relative to the price, when the indicator is lower than the price this indicate a up trending market, when the indicator is higher than the price this indicate a down trending market. If the trailing stop move this indicate a strong current trend.
False signals with trailing stops can happen, the price might go toward the trailing stop making it generate another signal, when market is ranging and exhibiting cyclical behaviour this can affect the indicator and the user might get stuck in a series of false signals, higher length/factor values can fix that at the cost of less early signals.
Identification Of Support And Resistance
Bands during low volatility/ranging markets can return potential reversal points when crossing with the price. The indicator can also do it, even if high/low crosses are better suited to determine support and resistance levels when using a trailing stop. You can use support/resistance identification in conjonction of the current trend detected by the indicator.
Conclusion
The indicator is fully operational in fixed mode while having potential down points in adaptive mode. As you can see the code that return the bands is fully recursive and might provide a great way to create adaptive bands in the future.
I have been asked to give more detail about the indicator uses rather than the construction, i hope the showcased uses are convenient.
Note that the showcased uses can be applied to any trailing stop.
Thanks for reading.
QuantNomad - SuperTrend - XBTUSD - 1mInteresting performance for Super Trend strategy for XBTUSD 1m chart.
Params: ST Mult: 2, ST Period 14.
Performance: 144% profit, 1988 trades, only 41% prof, 2.04% dd , 2.51 Sharpe.
On its own, it might be not a very good strategy, but the big amount of trades allows you to add more filters and improve it.
And remember:
Past performance does not guarantee future results.
QuantNomad - SuperTrend - TSLA - 1mInteresting performance for Super Trend strategy for Tesla ( TSLA ) 1m chart.
Params: ST Mult: 3, ST Period 120.
Performance:61% profit, 637 trades, only 33% prof, 4.84% dd , 0.4 Sharpe.
On its own, it might be not a very good strategy, but the big amount of trades allows you to add more filters and improve it.
The strategy is not bad both with "when" params when strategy executed on open of next bar and with stop orders when strategy enters on exact Super Trend level.
You can comment/uncomment lines in the code and switch from one approach to another.
And remember:
Past performance does not guarantee future results.
VWMA Trend FilterHere's a simple tool for determining long term trend direction using two Volume Weighted Moving Averages (VWMA). The VWMA's emphasis on volume often makes it a better measurement for trend direction than the more popular Exponential Moving Average (EMA).
Trend direction is determined by comparing a fast and slow VWMA. The default length for the fast VWMA is 50 periods, while the slow uses a default length of 200. Both of these lengths can be modified in the input options menu. The default source for the VWMA's is HLC3((high + low + close) / 3).
If the fast VWMA is greater than the slow VWMA, then the trend is bullish and the background color is green. If the fast VWMA is less than the slow VWMA, then it is bearish and the background color is red.
We included an option to change the candle color based on whether the VWMA's indicate a bullish or bearish trend as well.
Overall, this is one of those utility tools that we like to use as an overlay over the main price chart and in conjunction with other signal generating indicators. Its purpose isn't to generate buy and sell signals, but it works well as a visual confirmation tool to help traders gauge trend direction.
Linear Trailing StopBased on my latest script "Linear Channels"
This is a trailing stop version of the linear channels. Thanks to capissimo for helping me fix several issues with the linear extrapolation part.
In order to know how the indicator work i recommend reading the post on the Linear Channels indicator here
Hope you like it and feel free to leave your suggestions :)
Linear ChannelsIntroduction
I already made an indicator (simple line) that tried to make lines on price such that the results would not repaint and give a good fit to the price, today i publish a channels indicator based on the simple line indicator. The indicator aim to show possible support and resistance levels when the central line posses a low sum of squares with the price, a linear extrapolation was also provided in order to show possible future price positions respective to the channels.
The Indicator
The emphasis parameter of the simple line indicator has been removed, instead we keep length and mult as numerical input parameters. In general length control how persistent the lines are, larger values will create longer lines on average, mult help make the line fit to the price better but might as well affect how spread the channels are as well as the lines average length. When mult > length the lines will fit better the price while when length >= mult the fit might not be the best.
The point parameter allow you to fix the indicator when using it on high market price values or when the indicator exhibit a weird behaviour.
point = false on btcusd
point = true
If the lines still does not fit well enough try to lower length.
I know this might result inconvenient in so many ways but i'am working on simplifying things. Therefore some larger price values might use lower length and use mult instead. For market not using the point parameters a settings of : length > 1 and mult = length*2 might provide a good to go setup.
The channel spreading parameter allow to make spread the channels by a certain factor.
Issues
I'am still not good with line extensions, if it bother you deactivate the extrapolation parameter. Sorry for the inconvenience.
Conclusion
It is possible to make non repainting linear indicators, and i'am working on some of them. While some might argue that price is not linear thus not requiring the use of linear indicators it can still be interesting to use those if they, unlike the linear regression, don't repaints and provide a way to change their directions according to the price trend.
Thanks for reading !
Hull Trend with KahlmanThis is an update to the idea of
The Kahlman smoother makes the signal more precise (by one candle).
Smooth Moving Average Ribbon [STUDY] @PuppyTherapyThe Smooth moving average ribbon script is an enhancement of the script I posted yesterday. But will help you also create a very simple trend-following strategy or a simple trend-following filter.
You are able to select from a large variety of moving averages add Heikin Ashi Candles as a source and also add additional smoothing to every single of the moving averages.
The Study script is equipped with alerts.
It is a showcase that a simple strategy like buy when we going up and sell when we going down actually works especially on a bigger timeframe.
Thanks to all supporters and everget for some of the moving average scripts.
Smooth Moving Average Ribbon [STRATEGY] @PuppyTherapyThe Smooth moving average ribbon script is an enhancement of the script I posted yesterday. But will help you also create a very simple trend-following strategy or a simple trend-following filter.
You are able to select from a large variety of moving averages add Heikin Ashi Candles as a source and also add additional smoothing to every single of the moving averages.
The Strategy is using the basic backtesting engine.
It is a showcase that a simple strategy like buy when we going up and sell when we going down actually works especially on a bigger timeframe.
Thanks to all supporters and everget for some of the moving average scripts.
Smooth Moving Average [STUDY] @PuppyTherapyThe Smooth moving average script combo combines the ability to help you create a very simple trend-following strategy or a simple trend-following filter.
You are able to select from a large variety of moving averages add Heikin Ashi Candles as a source and also add additional smoothing to every single of the moving averages.
The Study is equipped with alerts.
It is a showcase that a simple strategy like buy when we going up and sell when we going down actually works especially on a bigger timeframe.
Thanks to all supporters and everget for some of the moving average scripts.
Smooth Moving Average [STRATEGY] @PuppyTherapyThe Smooth moving average script combo combines the ability to help you create a very simple trend-following strategy or a simple trend-following filter.
You are able to select from a large variety of moving averages add Heikin Ashi Candles as a source and also add additional smoothing to every single of the moving averages.
The Strategy is using the Tradingview backtesting framework.
It is a showcase that a simple strategy like buy when we going up and sell when we going down actually works especially on a bigger timeframe.
Thanks to all supporters and everget for some of the moving average scripts.
SVAMA - A Non Parametric Adaptive Moving Average Based On VolumeIntroduction
Technical indicators often have parameters settings that the user must enter, those are inconvenient when the user must design a strategy because such settings must be optimized, it must also been noted that the optimal settings at time t could change at time t+n , this is why non parametric indicators are more efficient. Today i propose a moving average adapting to the market volume without using parameters affecting the smoothing.
The Indicator
The volume is rescaled in a range of (1,0) by using max or min normalization. Exponential averaging is used to provide the moving average.
When using max normalization the moving average react faster when the volume is closer to its all time high, when using min normalization the moving average react faster when the volume is closer to its all time low. You can select the method (max or min) from the "Method" parameter.
Volume tend to be higher and more periodic with higher time-frames, this is why lower time-frames might return smoother results when using the Max method. It is recommended to use the Max method when we want a faster moving average while the Min method is more suited to get a slower moving average.
Both methods can provide an interesting MA-Cross system when used on higher time frames.
Conclusion
There should be more non parametric indicators, this would allow for faster and easier optimization processes when creating a strategy, in theory any indicator using a moving average or highest/lowest could be made non parametric by using a running mean or running max/min but the indicator might loose important information.
This is one of my main focus right now since such indicators could also allow for improvements when used with artificial intelligence. I hope you find an use to it, don't hesitate to send me your suggestions.
Thanks for reading !
Vortex Trend Tracker 2.0 + RSIHere's an updated version of our Vortex Trend Tracker indicator.
Here's the link to the original if anyone wants to read more about the Vortex or see the first version:
We've added in 4 rsi's of varying lengths for this second version(2 fast and 2 slow) that create the background color effect.
New extremum trendScript for filtering out periods when market is not trending.
It defines downtrend as following:
Lowest price of last 2 days is equal or lower then lowest price of last 100 days.
Values 2 and 100 are customizable.
Uptrend analogically with highs.
SSL 4EMA Kinjun-Sen mnovo IndicatorFor thos who prefer Kinjun-Sen from the Ichimoku algo to use as your baseline.
Trade safe
mnovo
AntiRekt RibbonThis script is a fork of the Madrid Ribbon, the only difference is that you can color your bars depending on the trend.
No Nonsense NNFX VP Strategy for Back Testing 3 x Indicators| jhAfter testing your individual indicators, it's time to build up your algo with additional indicators and further backtest the strategy.
Using SSL twice here, faster SSL for 1st confirmation, slower SSL for 2nd confirmation and TDFI for volume validation.
No Nonsense NNFX VP Strategy for Back Testing Indicators| jhAfter putting the whole system together, sat down to benchmark the various confirmation indicators, shrink it down to backtest individual confirmation indicators.
Results for 24 periods way better than 10, then again it's only one pair. :)
More details below.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//For testing your individual indicators before the full system
//Originated from causecelebre
//Tried to put in as much VP rules as possible
///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry from 1 x confirmation
// - Exit conditions
//// - Exit on confirmation flip
///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Confirmtion = SSL 10
///////////////////////////////////////////////////
//Credits
// Strategy causecelebre www.tradingview.com
// SSL Channel ErwinBeckers www.tradingview.com
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Change log
//First release. Testing of indicators
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////