Percentile Nearest Rank Using Arrays [LuxAlgo]The new array feature is extremely powerful, as it will allow pinescript users to do more complex things, or compute existing calculations more efficiently, it will also be possible to shine some light to some already existing functions, one of them being percentile_nearest_rank .
We have been working on this new feature with our pal alexgrover, and made this script which computes a rolling percentile using the nearest rank method.
Settings
Length: Window of the rolling percentile, determine the number of past data to be used.
Percentage: Return the current value if Percentage % of the data fall below that value, the setting is in a range (0,100).
Src: Input source of the indicator.
Usage
A rolling percentile can have many usages when it comes to technical analysis, this is due to its ability to return the value of three common rolling statistics, the rolling median, which can be obtained using a percentage equal to 50, the rolling maximum, obtained with a percentage equal to 100, and the rolling minimum, obtained with a percentage equal to 0.
When we use our rolling percentile as a rolling median, we can obtain a robust estimation of the underlying trend in the price, while using it as a rolling maximum/minimum can allow us to determine if the market is trending, and at which direction. The rolling maximum/minimum is a rolling statistic used to calculate the well known stochastic oscillator and Donchian channel indicator.
We can also compute rolling quartiles, which can be obtained using a percentage of 25 or 75, with one of 25 returning the lower quartile and 75 the upper quartile.
In blue the upper rolling quartile (%75), in orange the lower rolling quartile (%25), both using a window size of 100.
Details
In order to compute a rolling percentile nearest rank, we must first take the most recent length closing prices, then order them in ascending order, we then return the value of the ordered observations at index (percentage/100*length) - 1 (we use - 1 because our array index starts at 0).
Filter
TradeChartist Range Bands ™TradeChartist Range Bands is an exceptionally well designed Entry/Exit indicator that plots fluid Range Bands and dynamic Support/Resistance levels on chart, along with trade entries by using both trend following and mean reversion principles.
===================================================================================================================
How does ™TradeChartist Range Bands work?
The Indicator plots Range Bands with Upper, Lower and Mean, calculated using trading models that use both Trend Following and Mean Reversion principles . It is the Range Bands that decide the trade Entries as the breakouts above upper band generates long entries and the breakouts below the lower band generates the short entries.
The Range Bands Type (Automatic, Aggressive or Normal) can be chosen from the settings. Default is Automatic and it uses Aggressive for non 24 hr markets and Normal for 24 hr markets like Cryptocurrencies.
The width of the Range Bands can be changed using the Range Multiplier from the settings. Default is 1.618 , minimum value is 0.618 and maximum value is 2.0.
The frequency of the Trade Signals depends on both Range Bands type and Range Multiplier. So it is worth spending some time to test the indicator based on these 2 factors on the asset traded, to maximise the profit potential by optimising the type and multiplier value.
In addition to the Range Bands, the indicator also plots Dynamic Support and Resistance bands that are more sensitive to price action and helps the user determine growing support/resistance which is indicated by coloured dots. These dots normally appear when the Support or Resistance stays at the same level for a few bars.
The expansion and contraction of the Support and Resistance bands also help in visualising the price volatility, and an extremely narrow squeeze of these levels within the Range Bands normally signals a lucrative market move. This is usually followed by a breakout from the bands and will be signalled by the Trade Entry plots (BUY and SELL).
The Dynamic Support and Resistance levels can be enabled or disabled from the settings. The fill between these dynamic levels helps the user to visualise the Bull and Bear strength/power. This fill can also be disabled from the settings if not required.
The indicator has a nice Fibonacci levels generator companion that helps spot near support and resistance levels using Fibonacci Retracement tool.
There are 3 types of Fib plots that can be chosen from the settings - Auto-Fibs, Fibs based on Lookback, Fibs based on Price Input .
The Auto-Fibs feature is used as default and it automatically plots fib retracement based on nearby significant high/low (highest from previous up and down trends). This is normally based on nearby trade entries too. Occasionally, during choppy markets/sideways movement, the range of these levels can be quite small and if close price exceeds the 4.618 fib level, one of the other Fib plot options can be used. Alternatively, Plot fibs from current high/low can also be used.
Fibs based on lookback can be used by choosing the number of candles or days lookback to help the indicator automatically find the high and low of the period to generate fib levels. Similarly, Fibs based on price input requires, user to manually enter the high and low price points for the indicator to generate fib levels based on user input.
The indicator has two colour schemes for the Dynamic Support/Resistance fill and bar colours. The coloured bars and the fill will help visualise the price trend. This can be changed or disabled from the settings.
The Fib levels can be disabled by unchecking lines and labels from the styles tab of indicator settings.
Long and Short entry Alerts can be created by using Once Per Bar Close .
The indicator does not repaint. Alerts may display potential repaint warning, but this is because the code uses bar index for fib labels. For confidence in the indicator, it can be tested using bar replay to make sure the real-time and bar replay trade entries and plots stay on the same bar/timestamp.
The different elements of the indicator are shown below in the chart.
===================================================================================================================
™TradeChartist Range Bands can also be connected to ™TradeChartist Plug and Trade to generate Targets, Stop Loss Plot etc. and other alerts can also be created. Use Range Bands Trend Identifier to connect as an Oscillatory Signal to Plug and Trade. Example chart shown below.
===================================================================================================================
Example charts:
1. ADA-USDT 4hr chart using Aggressive type and 1.618 Range Multiplier
2. ADA-USDT 4hr chart using Normal type and 1.618 Range Multiplier
3. XAU-USD 15m chart using Normal type and 1.618 Range Multiplier - Fibs based on 3 days lookback
4. DJI 4hr chart using Normal type and 2.0 Range Multiplier
5. GBP-USD 15m chart using Normal type and 1.618 Range Multiplier
6. LINK-USDT 1hr chart using Normal type and 1.236 Range Multiplier
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
This is not a free to use indicator. Get in touch with me (PM me directly if you would like trial access to test the indicator)
Premium Scripts - Trial access and Information
Trial access offered on all Premium scripts.
PM me directly to request trial access to the scripts or for more information.
===================================================================================================================
Truenomic's Dynamic FilterThis indicator is based on the deviation of the average price value given the dynamics of the volume.
Thus, receiving a negative value, the mood becomes more bullish. But when a colored background appears, it signals an even more amplified signal. The colored background is based on an abnormality.
Bollinger Bands Breakout StrategyBollinger Bands Breakout Strategy is the strategy version of Bollinger Bands Filter study version, which can be found under my scripts page. The strategy goes long when price closes above the upper band and goes short signal when price closes below the lower band.
Bollinger Bands is a classic indicator that uses a simple moving average of 20 periods, along with plots of upper and lower bands that are 2 standard deviations away from the basis line. These bands help visualize price volatility and trend based on where the price is, in relation to the bands.
The strategy doesn't take into account any other parameters such as Volume / RSI / Fundamentals etc, so user must use discretion based on confirmations from another indicator or based on fundamentals. The strategy results are based on purely long and short trades and doesn't take into account any user defined targets or stop losses.
The strategy works great when the price closes above/below upper/lower bands with continuation on next bar. It is definitely useful to have this strategy or the Bollinger Bands filter along with other indicators to get early glimpse of breach/fail of bands on candle close during BB squeeze or based on volatility .
This can be used on Heikin Ashi candles for spotting trends, but HA candles are not recommended for trade entries as they don't reflect true price of the asset.
The strategy settings default is 55 SMA and 1 standard deviation for Bollinger Bands filter, but these can be changed from settings.
It is definitely worth reading the 22 rules of Bollinger Bands written by John Bollinger if interested in trading Bollinger Bands successfully.
[A618]Improved Wave channel 3D The Script is an Amalgamation of Two prominent Scripts in One
1. Ehlers 2 Pole ButterWorth Filter
2. Wave Channel 3D
Intuitively,
Buy when Candles are above all the filter Lines
Sell when Candles are below the Filter Lines
CREDITS
[A618] Vortex Indicator Alert Screener [Noise Filtered]This Indicator helps you get alerts from Vortex Indicator if a trend is Established.
One of my followers asked me to do this: @Kiran_05
How this is made ?
1. Vortex Crossovers are taken into consideration in a noise filtered manner
2. Noise filtering is done by trend establishment due to Ehlers 2 pole ButterWorth Filter and EMA50 Crosses
How to use it ?
1. Can be used as a screener on the Script to generate the screened Securities from a Watchlist of Securities
2. Wait for a Candle break above of the generate green signal to get into trade, and vice versa
Credits :
@CheatCountry
For Ehlers 2 Pole Butterworth Filter V2
Hope this Helps
Awesome Trend BandsHere I propose another band indicator, it is tuned to consider volatility expansion and compression, average possible movement, and RSI position to identify dominant sentiment in the market.
When you should go long that center band line will be colored lime when you are to enter shorts it will be red, this signal is great for trading both trending and contracting markets, so you can even trade mean reversion, it catches good moves.
And the best thing of all, it works on all markets/instruments and timeframes- without any inputs from the user.
Here are some charts>
Past performance is not an assurance of future performance, author is not responsible for your profit or loss.
Enjoy~
Band-Pass FilterJust a clean script that can be applied on top of other indicators/sources or you can take the function out of the source and use it in other scripts.
The idea for this was taken from www.pinecoders.com except I am utilizing an EMA instead of SMA. Simply put, we are combining a low-pass filter (moving average) with a high-pass filter (smoothed difference between the source and moving average). The result is a filter/moving average that provides a great combination of minimizing noise while still reacting strongly to price and trend changes.
I like to use this filter in place of other MAs in Pine Scripts to smooth my data. So instead of doing something like sma(stochastic,5) I can easily plug in bp(stochastic,5). It works just fine for your primary moving averages against price as well.
Tool: Chop & Trade ZonesA simple yet powerful way to filter out choppy ranges or sideways moves without missing out on good trades
It calculates the %-distance of the price to a moving average so you can ignore buy/sell signals around the center line.
The upper and lower line are thresholds to catch reversals of the trend when the distance to moving average is increasing.
Thanks @dgtrd and @imzeeshan for the inspiration 🙏
Musashi MTF Trend HeatMapThis indicator compliments the Musashi TrendBars and allows convenient multi time frame analysis.
This HeatMap, shows 5 different time zones, each with color codes to indicate the trend expression of a corresponding timeframe.
- Dark Green = Good Uptrend (ok to enter short)
- Light Green = Uptrend but it can be exhausted (put in protective stops)
- Cyan = In Bull Trend but pulling back (be careful, maybe put in protective stops)
- Dark Red = Good Downtrend (ok to enter short)
- Orange = Downtrend but it can be exhausted (put in protective stops)
- Magenta = In Bear Trend but pulling back (be careful, maybe put in protective stops)
The dark grey markers on the Heat Map show when markets are not having strong trends.
*If you wish to license this indicator, please contact me via private message for details regarding access. Thank you.
LEGAL STUFF:
Risk Disclosure
Futures , forex, stock, crypto and derivative trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Risk capital is money that can be lost without jeopardizing ones’ financial security or life style. Only risk capital should be used for trading and only those with sufficient risk capital should consider trading. Past performance is not necessarily indicative of future results
Hypothetical Performance Disclosure
Hypothetical performance results have many inherent limitations, some of which are described below. no representation is being made that any account will or is likely to achieve profits or losses similar to those shown; in fact, there are frequently sharp differences between hypothetical performance results and the actual results subsequently achieved by any particular trading program. One of the limitations of hypothetical performance results is that they are generally prepared with the benefit of hindsight. In addition, hypothetical trading does not involve financial risk, and no hypothetical trading record can completely account for the impact of financial risk of actual trading. for example, the ability to withstand losses or to adhere to a particular trading program in spite of trading losses are material points which can also adversely affect actual trading results. There are numerous other factors related to the markets in general or to the implementation of any specific trading program which cannot be fully accounted for in the preparation of hypothetical performance results and all which can adversely affect trading results
TradeChartist Transformer ™TradeChartist Transformer is an extremely useful indicator that transforms any indicator plot, Oscillatory or Non-Oscillatory into Support/Resistance levels, thereby generating trade entries on Price chart.
How does ™TradeChartist Transformer work?
1. Connect any external indicator plot to Transformer by choosing it from the Transformer's Plug Indicator Here dropdown from the settings.
2. Choose whether the connected plot is Oscillatory or Non-Oscillatory from Indicator Type .
3. If connected indicator is an oscillator, enter the values for Transformer to generate Trade Entries. For example, if the connected Indicator is RSI, user can define RSI level 60 for BUY entries and RSI level 40 for SELL entries. For most oscillators, the value is 0 which is the default value.
4. There are two types of Trade Entries, one based on Fail/breach of Nearby Support/Resistance and the other based on Fail/breach of Ultimate Support/Resistance plotted by Transformer. For Higher Time-Frames like Daily, Fail/breach of Nearby S/R entry type will ensure early trade entries. This could vary from indicator to indicator and a thorough testing/observation on timeframe traded using paper trades is highly recommended before trading with real money.
5. Once Steps 1-4 are complete, BUY and SELL plots based on above will be plotted by Transformer on Price chart.
6. BUY and SELL plots are also decided by an ATR (Average True Range) condition + Indicator plot acting as filter itself along with fail/breach of Support/Resistance, as this helps minimise unproductive trade signals.
7. Enabling Dynamic Support/Resistance plots moving Support/Resistance levels for each bar. For most assets/timeframes, this doesn't alter the Trade entries.
8. Bar Colors and Profit Taking Bars can be enables from settings as these help identify the trend visually and also help recommend bars where profit taking is recommended.
9. Alerts can be created for Long and Short entries by using Once Per Bar Close as Alert Frequency. Entries are generated on Real time bars as close price fails Support or breaches Resistance. It is recommended to wait for bar close before taking a position based on Transformer Trade Entries.
10. Trade Entries or Transformer plots don't repaint. This can be verified using Bar Replay by confirming real time plots with historical plots. Also, when creating alerts, there will be no Alert Warning for repainting as the code doesn't use Security function or other functions that cause potential repainting.
===================================================================================================================
™TradeChartist Transformer can also be connected to ™TradeChartist Plug and Trade to generate Targets, Stop Loss Plot etc. and other alerts can also be created. Example chart shown below - Transformer connected to RSI to generate BUYs when RSI > 60 and SELLs when RSI < 40, connected to Plug and Trade.
===================================================================================================================
Example Charts:
1. CCI - (CCI>100 - Bullish and CCI<-100 - Bearish) connected to Transformer - BTC 1hr chart
2. Chaikin Money Flow with default values connected to Transformer - BTC 1hr chart
3. EMA connected to Transformer- BTC Daily chart
4. Awesome Oscillator connected to Transformer - GBPUSD Daily Chart
5. Ichimoku Cloud Conversion Line connected to Transformer - USOIL 1hr chart
===================================================================================================================
Best Practice: Test with different settings first using Paper Trades before trading with real money
===================================================================================================================
This is not a free to use indicator. Get in touch with me (PM me directly if you would like trial access to test the indicator)
Premium Scripts - Trial access and Information
Trial access offered on all Premium scripts.
PM me directly to request trial access to the scripts or for more information.
===================================================================================================================
KINSKI Laguerre Filter WaveThe "Laguerre Filter Wave" Indicator usually shows market cycles and is a perfect fit for swing traders who trade with market fluctuations. Upward-trends are shown as green lines and optional bands. Downward trends are represented by the color red. Each of the 18 available lines can be adjusted to your own preferences via a gamma factor.
You also have the following display options:
- "Up/Down Movements: On/Off" - Shows ascending and descending of lines
- "Bands: On/Off" - Fills the space between the lines with colors to indicate up or down trends
- "Bands: Transparency" - sets the transparency of the fill color
- "MA Line: Size" - sets the width of the lines
- "MA Line: Transparency" - sets the transparency of the lines
Index Trend Filter - Weekend Trend TraderThis little script simply gives you a quick visual cue of where price is compared to a particular EMA of another security or underlying index.
It is based on Nick Radge's broader market filter weekend trend trader system, but can be applied to other timeframes if you want to confirm if the index is in an up trend or down trend.
• Green means the underlying index price is above the EMA
• Red means the underlying index price is below the EMA
Ehlers 2 Pole Butterworth Filter V2 [CC]The 2 Pole Butterworth Filter was created by John Ehlers (Cycle Analytics For Traders pg 32) and this is an updated version of his original 2 pole Butterworth Filter script that seems to follow the price even closer. Buy when the indicator line turns green and sell when it turns red.
Let me know if there are other scripts you would like to see me publish or if you want something custom done!
Ehlers 2 Pole Butterworth Filter V1 [CC]The 2 Pole Butterworth Filter was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pg 192) and this is one of his many filters that cuts out the noise and follows the price very closely. I recommend combining a 2 pole and 3 pole system of the same type of filter. Buy when the indicator line is green and sell when it is red.
Let me know if there are other indicators you would like to see or if you want something custom done!
Ehlers Super PassBand Filter [CC]The Super PassBand Filter was created by John Ehlers (Stocks & Commodities V. 34:07 (10–13)) and this is a pretty useful indicator to let you know how volatile the market is right now. This is useful for scalpers because this lets you avoid the choppy markets (usually when the rms is 1.50 or less but feel free to choose your own level) and gives you good entry and exit points. Buy when the indicator line is green and sell when it is red.
Let me know if there are other indicators you would like to see me publish or if you want something custom done!
Ehlers 2 Pole Super Smoother Filter V1 [CC]The 2 Pole Super Smoother Filter was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pg 202) and this one of his filters that follows the price very closely. I would recommend to change the default settings to what fits your trading style the best. Buy when the indicator line turns green and sell when it turns red.
Let me know if there are other scripts you would like to see or if you want something custom done!
Ehlers Laguerre Filter [CC]The Laguerre Filter was created by John Ehlers (Cybernetic Analysis For Stocks And Futures pg 216) and this indicator works well with letting you know both the short and long term trend as well as a pretty good moving average. If the indicator line is above the black line then it is a long term uptrend and below the black line is a long term downtrend. Buy when the indicator line is green and sell when it turns red.
Let me know if there are other scripts you would like to see me publish or if you want something custom done!
Ehlers Roofing Filter [CC]The Roofing Filter was created by John Ehlers (Cycle Analytics For Traders pgs 81-82) and this can be interpreted in a few ways. When the indicator crosses over its signal then it is a short term uptrend and when it crosses below its signal then it is a short term downtrend. It is also in a major uptrend or downtrend when it is above 0 and below 0 respectively. Buy when the indicator line is green and sell when the indicator line turns red.
Let me know if there are other indicators you would like to see me publish or if you want something custom done!
Ehlers Truncated BandPass Filter [CC]Hot off the presses! The Truncated BandPass Filter was created by John Ehlers (Stocks & Commodities July 2020) and this is a much more reactive version of his original bandpass filter. When the indicator rises above 0 then it is an uptrend and when it falls below 0 then it is in a downtrend. Buy when the indicator line is red and sell when it is green.
Let me know if there are other scripts you would like to see me publish or if you want something custom done!
Ehlers HighPass-LowPass Roofing Filter [CC]The HighPass-LowPass Roofing Filter was created by John Ehlers (Cycle Analytics For Traders pg78) and this is a variation of a roofing filter that will let you know which direction the stock is trending. If it falls below 0 then the stock is in a downtrend and if it rises above 0 then it is an uptrend. Buy when the indicator line is green and sell when it is red.
Let me know if there are other scripts you would like me to publish or if you want something custom done!
Ehlers 3 Pole Butterworth Filter [CC]The 3 Pole Butterworth Filter was created by John Ehlers (Cycle Analytics For Traders pg 32) and this is a nice filter that follows the price very closely. Buy when the indicator is green and sell when it turns red.
This was a custom request so let me know if you would like me to publish any other scripts or if you want something custom done!