Nearest Percentile Moving Average BandsWhile coding some filters into another indicator for Long/Short I noticed that ta.nearest.percentile might be the most useful tool in pinescript I've ever encountered.
While percentile_nearest can be used for all kind of things I decided to code moving averages from it and made bands for bottom percentage and top percentage.
The indicator will calculate the top % price of the given bar length.
Example settings:
length: 150
percentile: 99
So when using 99% it will draw a green line when price is moving above the top 1% price of the last 150 candles. It then calculates if the price is below the bottom 1% of the last 150 candles.
Trading use:
Use this indicator to check if the market is leaving normal territory. This signals a breakout move for example the dogecoin pump or the top of the range. I use this indicator to catch bull/bear moves for botting purposes. An other use would be to countertrend trade after the move has ended. With price being in top 1% for a while it is very probable that we see a large correction.
Below example of dogecoin pumps:
Supporto e resistenza
XABCD Harmonic Pattern Custom Range Interactive█ OVERVIEW
This indicator was designed based on Harmonic Pattern Book written by Scott Carney. It was simplified to user who may always used tools such as XABCD Pattern and Long Position / Short Position, which consume a lot of time, recommended for both beginner and expert of Harmonic Pattern Traders. XABCD Pattern require tool usage of Magnet tool either Strong Magnet, Week Magnet or none, which cause error or human mistake especially daily practice.
Simplified Guideline by sequence for Harmonic Pattern if using manual tools :
Step 1 : Trade Identification - XABCD Pattern
Step 2 : Trade Execution - Any manual tools of your choice
Step 3 : Trade Management - Position / Short Position
█ INSPIRATION
Inspired by design, code and usage of CAGR. Basic usage of custom range / interactive, pretty much explained here . Credits to TradingView.
I use a lot of XABCD Pattern and Long Position / Short Position, require 5 to 10 minutes on average, upon determine the validity of harmonic pattern.
Upon creating this indicator, I believed that time can be reduced, gain more confidence, reduce error during drawing XABCD, which helps most of harmonic pattern users.
█ FEATURES
Table can positioned by any postion and font size can be resized.
Table can be display through optimized display or manual control.
Validility of harmonic pattern depends on BC ratio.
Harmonic pattern can be displayed fully or optimized while showing BC ratio validity.
Trade Execution at point D can be displayed on / off.
Stop Loss and Take Profit can be calculated automatically or manually.
Optimized table display based extend line setup and profit and loss setup.
Execution zone can be offset to Point C, by default using Point D.
Currency can be show or hide.
Profit and Loss can be displayed on axis once line is extended.
█ HOW TO USE
Step 1 : Trade Identification - Draw points from Point X to Point C. Dont worry about magnet, point will attached depends on High or Low of the candle.
Step 2 : Trade Execution - Check the validity of BC to determine the validity of harmonic pattern generated. Pattern only generate 1 pattern upon success. Otherwise, redraw to other points.
Step 3 : Trade Management - Determine the current candle either reach Point D or Potential Reversal Zone (PRZ). Check for Profit & Loss once reach PRZ.
█ USAGE LIMITATIONS
Harmonic Patterns only limits to patterns mentioned in Harmonic Trading Volume 3 due to other pattern may have other or different philosophy.
Only can be used for Daily timeframe and below due to bar_time is based on minutes by default.
Not recommended for Weekly and Monthly timeframe.
If Point X, A, B, C and D is next to each other, it is recommend to use lower timeframe.
Automated alert is not supported for this release. However, alert can be done manually. Alert will updated on the version.
█ PINE SCRIPT LIMITATIONS
Known bug for when calculate time in array, causing label may not appeared or offset.
Unable to convert to library due to usage of array.get(). I prefer usage for a combination of array.get(id, 0), array.get(id, 1), array.get(id, 2) into custom function, however I faced this issue during make arrays of label. Index can be simply refered as int, for id, i not sure, already try id refered as simple, nothing happens.
linefill.new() will appeared as diamond box if overused.
Text in box.new() unable to use ternary condition or switch to change color. Bgcolor also affected.
Label display is larger than XABCD tool. Hopefully in future, have function to resize label similar to XABCD tools.
█ IMPORTANTS
Trade Management (Profit & Loss) is calculated from Point A to D.
Take Profit is calculated based on ratio 0.382 and 0.618 of Point A to D.
Always check BC validity before proceed to Trade Management.
Length of XABCD is equal to XAB plus BCD, where XAB and BCD are one to one ratio. Length is measured in time.
Use other oscillator to countercheck. Normally use built-in Relative Strength Index (RSI) and Divergence Indicator to determine starting point of Point X and A.
█ HARMONIC PATTERNS SUPPORTED
// Credits to Scott M Carney, author of Harmonic Trading Volume 3: Reaction vs. Reversal
Alt Bat - Page 101
Bat - Page 98
Crab - Page 104
Gartley - Page 92
Butterfly - Page 113
Deep Crab - Page 107
Shark - Page 119 - 220
█ FAQ
Pattern such as 5-0, perfect XABCD and ABCD that not included, will updated on either next version or new release.
Point D time is for approximation only, not including holidays and extended session.
Basic explaination for Harmonic Trading System (Trade Identification, Trade Execution and Trade Management).
Harmonic Patterns values is pretty much summarized here including Stop Loss.
Basic explanation for Alt Bat, Bat, Crab, Gartley, Deep Crab and Butterfly.
█ USAGE / TIPS EXAMPLES (Description explained in each image)
Same high/low updateHere I made a strategy out of my indicator. So, the trigger is double low/high on 1 week candle chart.
Entrance: close of the next candle if it's low/high higher/lower than previous one. (in most cases it's precise for backtesting)
Stop loss: long:low-one tick, short:high+one tick
Take profit: ATR*Multiplier (you can tune it in properties)
SVDThis indicator aims to compare between two charts if trader isn't sure which one is more active and powerful, it does NOT show entries or help your chart analysis directly.
The main features of this indicator is to show vitality and range of any given chart.
Volatility: it calculates the average profit of every swing in the range and the final result will be the chart volatility, which indicate how profitable this chart is.
Range: it calculates the profit of the whole range compared to the total price. (E.g. range bottom is 0.1 and range top is 0.2 the range will be 100%)
Extra: indicator shows the total direction of the chart in term of (STRONG UPTREND, UPTREND, SIDEWAYS, DOWNTREND, STRONG DOWNTREND), if you got (Somthing_wrong) please contact me.
How to use: apply the indicator on different charts that you have chosen and the higher (volatility & range) the more profitable the chart is.
inputs:
Lookback length: how long the range is (how many candles are included).
How intense should the Swing be: how many candles should be counted as a confirmation complete swing.
Show counted Swings: if checked as true, will show the swings counted in the volatility calculation.
For any notes on the indicator to be edited, or for another indicator ideas please comment.
Swing Pivots High LowBINANCE:BTCUSDT
This indicator is an opensource merge of the built in 'Pivot Points High Low' and the most popular 'Swing-high-low-support-resistance' indicators. The original 'Pivot Points High Low' does not have extensions with better visibility, while the most popular 'Swing-high-low-support-resistance' has no source available. I've also added additional configurable alert conditions for Pivot High and Low Crossover/Crossunder.
Please read the official documentation for further information about the indicator.
Donchian Channel Strategy IdeaThis strategy idea is a variation of the "Donchian Channel" trading strategy. It is built with a highest-high band, a lowest-low band, and a baseline which is average the highest-high and the lowest-low bands. This strategy is very useful in trending instruments on 1W and 1D timeframes. This is the implementation used in the QuantCT app.
You can set the operation mode to be Long/Short or long-only.
You also can set a fixed stop-loss or ignore it so that the strategy acts solely based on entry and exit signals.
Trade Idea
When the close price breaks up the previous highest-high, it is a long signal, the market is considered rising (bullish), and the plotted indicator becomes green. Long positions are held until the close price crosses under the baseline.
When the close price breaks down the previous lowest-low, it is a short signal, the market is considered falling (bearish), and the plotted indicator becomes red. Short positions are held until the close price crosses above the baseline.
Otherwise, if we have no position in the market, the market is considered ranging, and the plotted indicator becomes orange.
Entry/Exit rules
Enter LONG if the close price breaks up the previous highest-high (i.e. when the plotted indicator becomes green).
Exit LONG if the close price crosses under the baseline (i.e. when the plotted indicator becomes orange).
Enter SHORT if the close price breaks down the previous lowest-low (i.e. when the plotted indicator becomes red).
Exit SHORT if the close price crosses above the baseline (i.e. when the plotted indicator becomes orange).
CAUTION
It's just a bare trading idea - a profitable one. However, you can enhance this idea and turn it into a full trading strategy with enhanced risk/money management and optimizing it, and you ABSOLUTELY should do this!
DON'T insist on using Long/Short mode on all instruments! This strategy performs much better in Long-Only mode on many (NOT All) trending instruments (Like BTC, ETH, etc.).
K's EnvelopesTrading is all about finding reactionary levels from where we assume prices will take a certain direction. And from that assumption, we initiate either a long (Buy) position or a short (Sell) position. Many techniques can be used to find support and resistance levels such as pivot points, Fibonacci retracements, and graphical levels. However, these techniques are all static in time, i.e. they do not move with real time data. In contrast, moving averages are dynamic and do a great job at finding support and resistance levels.
The idea of K's Envelopes is to form support and resistance zones so that we find good entry points. It is a combination of two 800-period moving averages where one is applied to the highs and the other applied to the lows, thus forming a moving zone used to support or place a ceiling on the market price.
Key Levels (Time Frames - Weekly,Monthly,Quarterly,Yearly)This indicator plots the 4h, Daily, Weekly, Monthly, Quarterly, Yearly Open High, Low and Mids.
You can watch how these institutional trading levels work as support and resistance.
Most Important you can add alerts to these levels with a few clicks.
Just add/remove unnecessary levels for scaling problems.
For any error/suggestion/improvement just let me know.
Jigga - Survival LevelHi All !!
Its always the case that we buy a stock and it starts falling !! What a new investor will do is to add few more on downfall and then few more until they stuck all their case to same falling stock.
I thought to create a level which can help long term investor on when to buy and sell.
Logic:
I have used multiple indicators logic all into one and find out when majority of them are showing positive sign.
Green /Red line will be shown when majority are in positive / negative territory.
Buy and sell signal will be generated based on this line only.
Note:
Use this on Weekly chart on good fundamental stock for long term investment.
CRC.i Bollinger Bands ®This script is yet another variant of the famous Bollinger Bands® TA tool used to track price volatility as it deviates from the mean of a security using standard deviations (positive &negative). Built for my own personal preferences. But perhaps you might like it, too.
Includes
+ Chart Lines: price, upper and lower bands
+ User Options: SMA length, stdev value
+ Heads up Display (HUD) with TARGET's and other related stats
Bugs? Comments? Requests? Ping me @calmrat
Trends & Pivots [SignalCave]Trends & Pivots Indicator helps you to identify primary and secondary trends and potential support/resistance zones.
Trend detection have three modes which are “Aggressive, Moderate and Conservative” . You can customize the mode on settings screen.
Alerts are available for various conditions such as "Uptrend Shift, Downtrend Shift, Primary Uptrend Begin, Primary Downtrend Begin, Secondary Uptrend Begin, Secondary Downtrend Begin"
Type asset name on symbol search area.
Adjust your timeframe that you wish to track.
Click "Create Alert"
Select one of the condition that you wish to get inform from create alert panel.
Select "Once Per Bar Close" option.
Click "Create" .
Multi-Purpose All in One [SignalCave]Multi-Purpose All in One Indicator Functions
1) Technical Analysis, Technical Ratings
2) Pivots, Primary & Secondary Trends
3) Swings, Engulfs, Golden & Death Crosses, Price Squeezes, Pullbacks, Breakout & Breakdowns, Volume Rushes
4) Momentum Strength
1) Technical Analysis, Technical Ratings
Technical analysis display real-time ratings. It based on the most popular technical indicators such as RSI, Stochastic, CCI, ADX, AO, Momentum, MACD, Stochastic RSI, Williams %, Ichimoku Cloud, SMA, EMA, VWMA and HMA.
Technical analysis is a built-in function on TradingView. You can access any asset’s technical analysis page and see it’s performance in real time.
"Multi-Purpose All in One" indicator brings this function into your TradingView charting screen. Indicator allows you to see the same output without visiting any external web page in TradingView. Indicator also works on every timeframe and asset class.
Technical Ratings is a technical analysis tool that combines the ratings of several technical indicators to make it easier for traders and investors to find profitable trades.
Technical Ratings can be a valuable technical analysis tool for many analysts or traders. Many traders use a selection of complementary indicators to make better decisions. Technical Ratings simplifies this task by combining the most popular indicators and their signals.
2) Pivots, Primary & Secondary Trends
Helps you to identify primary and secondary trends and potential support/resistance zones.
Trend detection have three modes which are “Aggressive, Moderate and Conservative” . You can customize the mode on settings screen.
3) Swings, Engulfs, Golden & Death Crosses, Price Squeezes, Pullbacks, Breakout & Breakdowns, Volume Rushes
A swing low is when price makes a low and is immediately followed by consecutive higher lows. Likewise, a swing high is when price makes a high and is followed by consecutive lower highs.
Swing Failure Pattern (SFP) is a type of reversal pattern that can be used as buy or sell signals.
Engulfing candles tend to signal a reversal of the current trend in the market. This specific pattern involves two candles with the latter candle 'engulfing' the entire body of the candle before it.
On this indicator, bullish engulfs visible only on downtrend and oversold conditions. Bearish engulfs visible only on uptrend and overbought conditions.
The death cross and golden cross are technical analysis terms for when a moving average (MA) intersects with another from either above or below.
The cross, depending on which it is, can signal the start of a new trend or the end of one.
Squeeze signs signifies low volatility, market preparing itself for an explosive move up or down direction.
Bullish Pullbacks are widely seen as buying opportunities after an asset has experienced a large upward price movement. Most pullbacks involve an asset's price moving to an area of technical support , such as a moving average, before resuming their uptrend.
Bearish Pullbacks are widely seen as selling opportunities after an asset has experienced a large downward price movement. Most pullbacks involve an asset's price moving to an area of technical resistance , such as a moving average, before resuming their downtrend.
A breakout refers to when the price of an asset moves above a resistance area, breakdown refers to when the price of an asset moves below a support area.
Breakouts/breakdowns indicate the potential for the price to start trending in the breakout direction.
For example, a breakout to the upside from a chart pattern could indicate the price will start trending higher.
Volume rush signs appears when the trading volume increases more then a usual period. It can be useful with combining breakout signals as a confirmation.
4) Momentum Strength
Momentum Indicator helps you to identify potential reversal areas .
Calculation done with using Relative Strength Index (RSI), Money Flow Index (MFI) and Average Directional Movement Index (ADX) indicators.
On full strength bearish movement bars paints as light red , full strength bullish movement bars paints as light green color.
They indicates that trend can be change to opposite direction in a short period of time.
Momentum Strength have three modes which are "Aggressive, Moderate and Conservative" . You can customize the mode on settings screen.
Demand & Supply Zones [eyes20xx]Demand & Supply Zones
This indicator helps to identify large moves driven by institutions.
What qualifies as a zone?
If the price moves (open to close) by more than a certain % in one candle or in a bullish / bearish run of candles, the zone is marked as a Demand or Supply zone .
0.8% is good for Crypto and Forex might be better with 0.4%. Play around with the % to match your requirements.
Active zones
A zone remains active until it is hit by the price. When it becomes inactive, the zone background becomes transparent.
Zone lines
Lines are displayed if the zone is active and within a certain % of the close. 3% is a good setting for Crypto.
A maximum of two lines are displayed for each zone type.
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, указанные индикатором.
Подробнее о всех возможностях стратегий, а также настройке и работе с индикатором, вы узнаете из нашей инструкции, которую выдаем персонально.
Speed DiamondSpeed Diamond allows the user to easily view their chosen price target in relation to the current price of the chart.
It displays a Diamond at the bar where the (theoretical) trade would have been entered and a line at the entry price.
Displayed on the line is the amount of bars it has taken to arrive at your price target (current price).
Price targets can be set in Percentage, Ticks, and Price.
This indicator was not developed to be predictive and is simply intended for reference.
A potential use case could be discovering potential support and resistance zones.
[Herif's] Harmonic PatternsFollowing things are displayed by default on the chart with harmonic patterns strategy. It can be use with automate trading platforms 3commas, zignally, frostybot, alertatron, wunderbit etc...
Bullish and bearish 5-point patterns are based on various Fibonacci retracement levels and signify potential reversal zones (PRZ).
As they become 80% complete, the dashed-line pattern will appear, displaying the PRZ and giving you time to prepare for a reversal.
Different combinations of specific fib retracements and extensions result in different patterns, and each is named for identification.
Bullish patterns signify a potential turn to the upside are colored green.
Bearish patterns signify a potential turn to the downside are colored red.
1- Live harmonic patterns which are still in trade with XABCD and ratio with labels.
2- Position Entry, Stop and Target levels on chart for all patterns.
3- Trades Stat table - Waves stat tables
in Settings:
Error Percent - This is error tollerance for matching pattern ratios. Cannot expect price ratios to be exactly as per books. Hence, adding few error tolerance will help identify patterns better.
When there are multiple patterns on chart, Entry, Stop, and Target labels and lines are created with specific distance from each other to provide clarity to the users.
Trailing and Targets
1-Trailing Start Stage - Defines when to start trailing stop-loss. It is recommended to set this value to either Target 1 or Target 2. Disabling the trailing or setting too far away may lead to being in trade on ranging market for too long. This may also result in drawing errors related to distance from current bar.
2- Custom Target Levels - Target and stop levels are set to optimal values based on individual patterns. If you want to override these levels, use the available input option to override targets and chose your custom Target1, Target2, Target3 and Target4
All Patterns you can enable or disable
Classic Patterns : Gartley, Bat, Butterfly, Crab, Deep Crab, Cypher, Shark, Nenstar
Anti Patterns: Anti Nenstar, Anti Shark, Anti Cypher, Anti Crab, Anti Butterfly, Anti Bat, Anti Gartley, Navarro 200
I will plan some updates and i will post some screen shots for settings as soon as possible.