888 BOT #alerts█ 888 BOT #alerts (open source)
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security ()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA , DEMA , AMA or T3.
There are two ways to decrease noise using JMA . Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish , Red: Bearish .
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish , Red: Bearish .
3. Average Directional Index ( ADX Classic) and ( ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns ( SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI .
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish .
6. Moving Average Convergence Divergence ( MACD ) and ( MAC-Z )
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP ( volume weighted average price ) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume , the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED' wich is calculated according with: '%EQUITY ON EACH ENTRY'. Only works with Stop Loss on 'NORMAL' or 'BOTH' mode.
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ ALERTS
There is an alert for each leverage, therefore a maximum of 8 alerts can be set for 'long' and 8 for 'short', plus an alert to close the trade with Take Profit or Stop Loss in market mode. You can also place Take Profit limit and Stop Loss limit orders a few seconds after filling the position entry order.
- 'MAXIMUM LEVERAGE': It is the maximum allowed multiplier of the % quantity entered on each entry for 1X according to the volume condition.
- 'ADVANCE ALERTS': There is always a time delay from when the alert is triggered until it reaches the exchange and can be between 1-15 seconds. With this parameter, you can advance the alert by the necessary seconds to activate it earlier. In this way it can be synchronized with the exchange so that the execution time of the entry order to the position coincides with the opening of the bar.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 15 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
ADX
888 BOT #backtest█ 888 BOT #backtest (open source)
This is an Expert Advisor 'EA' or Automated trading script for ‘longs’ and ‘shorts’, which uses only a Take Profit or, in the worst case, a Stop Loss to close the trade.
It's a much improved version of the previous ‘Repanocha’. It doesn`t use 'Trailing Stop' or 'security()' functions (although using a security function doesn`t mean that the script repaints) and all signals are confirmed, therefore the script doesn`t repaint in alert mode and is accurate in backtest mode.
Apart from the previous indicators, some more and other functions have been added for Stop-Loss, re-entry and leverage.
It uses 8 indicators, (many of you already know what they are, but in case there is someone new), these are the following:
1. Jurik Moving Average
It's a moving average created by Mark Jurik for professionals which eliminates the 'lag' or delay of the signal. It's better than other moving averages like EMA , DEMA , AMA or T3.
There are two ways to decrease noise using JMA . Increasing the 'LENGTH' parameter will cause JMA to move more slowly and therefore reduce noise at the expense of adding 'lag'
The 'JMA LENGTH', 'PHASE' and 'POWER' parameters offer a way to select the optimal balance between 'lag' and over boost.
Green: Bullish , Red: Bearish .
2. Range filter
Created by Donovan Wall, its function is to filter or eliminate noise and to better determine the price trend in the short term.
First, a uniform average price range 'SAMPLING PERIOD' is calculated for the filter base and multiplied by a specific quantity 'RANGE MULTIPLIER'.
The filter is then calculated by adjusting price movements that do not exceed the specified range.
Finally, the target ranges are plotted to show the prices that will trigger the filter movement.
Green: Bullish , Red: Bearish .
3. Average Directional Index ( ADX Classic) and ( ADX Masanakamura)
It's an indicator designed by Welles Wilder to measure the strength and direction of the market trend. The price movement is strong when the ADX has a positive slope and is above a certain minimum level 'ADX THRESHOLD' and for a given period 'ADX LENGTH'.
The green color of the bars indicates that the trend is bullish and that the ADX is above the level established by the threshold.
The red color of the bars indicates that the trend is down and that the ADX is above the threshold level.
The orange color of the bars indicates that the price is not strong and will surely lateralize.
You can choose between the classic option and the one created by a certain 'Masanakamura'. The main difference between the two is that in the first it uses RMA () and in the second SMA () in its calculation.
4. Parabolic SAR
This indicator, also created by Welles Wilder, places points that help define a trend. The Parabolic SAR can follow the price above or below, the peculiarity that it offers is that when the price touches the indicator, it jumps to the other side of the price (if the Parabolic SAR was below the price it jumps up and vice versa) to a distance predetermined by the indicator. At this time the indicator continues to follow the price, reducing the distance with each candle until it is finally touched again by the price and the process starts again. This procedure explains the name of the indicator: the Parabolic SAR follows the price generating a characteristic parabolic shape, when the price touches it, stops and turns ( SAR is the acronym for 'stop and reverse'), giving rise to a new cycle. When the points are below the price, the trend is up, while the points above the price indicate a downward trend.
5. RSI with Volume
This indicator was created by LazyBear from the popular RSI .
The RSI is an oscillator-type indicator used in technical analysis and also created by Welles Wilder that shows the strength of the price by comparing individual movements up or down in successive closing prices.
LazyBear added a volume parameter that makes it more accurate to the market movement.
A good way to use RSI is by considering the 50 'RSI CENTER LINE' centerline. When the oscillator is above, the trend is bullish and when it is below, the trend is bearish .
6. Moving Average Convergence Divergence ( MACD ) and ( MAC-Z )
It was created by Gerald Appel. Subsequently, the histogram was added to anticipate the crossing of MA. Broadly speaking, we can say that the MACD is an oscillator consisting of two moving averages that rotate around the zero line. The MACD line is the difference between a short moving average 'MACD FAST MA LENGTH' and a long moving average 'MACD SLOW MA LENGTH'. It's an indicator that allows us to have a reference on the trend of the asset on which it is operating, thus generating market entry and exit signals.
We can talk about a bull market when the MACD histogram is above the zero line, along with the signal line, while we are talking about a bear market when the MACD histogram is below the zero line.
There is the option of using the MAC-Z indicator created by LazyBear, which according to its author is more effective, by using the parameter VWAP ( volume weighted average price ) 'Z-VWAP LENGTH' together with a standard deviation 'STDEV LENGTH' in its calculation.
7. Volume Condition
Volume indicates the number of participants in this war between bulls and bears, the more volume the more likely the price will move in favor of the trend. A low trading volume indicates a lower number of participants and interest in the instrument in question. Low volumes may reveal weakness behind a price movement.
With this condition, those signals whose volume is less than the volume SMA for a period 'SMA VOLUME LENGTH' multiplied by a factor 'VOLUME FACTOR' are filtered. In addition, it determines the leverage used, the more volume , the more participants, the more probability that the price will move in our favor, that is, we can use more leverage. The leverage in this script is determined by how many times the volume is above the SMA line.
The maximum leverage is 8.
8. Bollinger Bands
This indicator was created by John Bollinger and consists of three bands that are drawn superimposed on the price evolution graph.
The central band is a moving average, normally a simple moving average calculated with 20 periods is used. ('BB LENGTH' Number of periods of the moving average)
The upper band is calculated by adding the value of the simple moving average X times the standard deviation of the moving average. ('BB MULTIPLIER' Number of times the standard deviation of the moving average)
The lower band is calculated by subtracting the simple moving average X times the standard deviation of the moving average.
the band between the upper and lower bands contains, statistically, almost 90% of the possible price variations, which means that any movement of the price outside the bands has special relevance.
In practical terms, Bollinger bands behave as if they were an elastic band so that, if the price touches them, it has a high probability of bouncing.
Sometimes, after the entry order is filled, the price is returned to the opposite side. If price touch the Bollinger band in the same previous conditions, another order is filled in the same direction of the position to improve the average entry price, (% MINIMUM BETTER PRICE ': Minimum price for the re-entry to be executed and that is better than the price of the previous position in a given %) in this way we give the trade a chance that the Take Profit is executed before. The downside is that the position is doubled in size. 'ACTIVATE DIVIDE TP': Divide the size of the TP in half. More probability of the trade closing but less profit.
█ STOP LOSS and RISK MANAGEMENT.
A good risk management is what can make your equity go up or be liquidated.
The % risk is the percentage of our capital that we are willing to lose by operation. This is recommended to be between 1-5%.
% Risk: (% Stop Loss x % Equity per trade x Leverage) / 100
First the strategy is calculated with Stop Loss, then the risk per operation is determined and from there, the amount per operation is calculated and not vice versa.
In this script you can use a normal Stop Loss or one according to the ATR. Also activate the option to trigger it earlier if the risk percentage is reached. '% RISK ALLOWED'
'STOP LOSS CONFIRMED': The Stop Loss is only activated if the closing of the previous bar is in the loss limit condition. It's useful to prevent the SL from triggering when they do a ‘pump’ to sweep Stops and then return the price to the previous state.
█ BACKTEST
The objective of the Backtest is to evaluate the effectiveness of our strategy. A good Backtest is determined by some parameters such as:
- RECOVERY FACTOR: It consists of dividing the 'net profit' by the 'drawdown’. An excellent trading system has a recovery factor of 10 or more; that is, it generates 10 times more net profit than drawdown.
- PROFIT FACTOR: The ‘Profit Factor’ is another popular measure of system performance. It's as simple as dividing what win trades earn by what loser trades lose. If the strategy is profitable then by definition the 'Profit Factor' is going to be greater than 1. Strategies that are not profitable produce profit factors less than one. A good system has a profit factor of 2 or more. The good thing about the ‘Profit Factor’ is that it tells us what we are going to earn for each dollar we lose. A profit factor of 2.5 tells us that for every dollar we lose operating we will earn 2.5.
- SHARPE: (Return system - Return without risk) / Deviation of returns.
When the variations of gains and losses are very high, the deviation is very high and that leads to a very poor ‘Sharpe’ ratio. If the operations are very close to the average (little deviation) the result is a fairly high 'Sharpe' ratio. If a strategy has a 'Sharpe' ratio greater than 1 it is a good strategy. If it has a 'Sharpe' ratio greater than 2, it is excellent. If it has a ‘Sharpe’ ratio less than 1 then we don't know if it is good or bad, we have to look at other parameters.
- MATHEMATICAL EXPECTATION: (% winning trades X average profit) + (% losing trades X average loss).
To earn money with a Trading system, it is not necessary to win all the operations, what is really important is the final result of the operation. A Trading system has to have positive mathematical expectation as is the case with this script: ME = (0.87 x 30.74$) - (0.13 x 56.16$) = (26.74 - 7.30) = 19.44$ > 0
The game of roulette, for example, has negative mathematical expectation for the player, it can have positive winning streaks, but in the long term, if you continue playing you will end up losing, and casinos know this very well.
PARAMETERS
'BACKTEST DAYS': Number of days back of historical data for the calculation of the Backtest.
'ENTRY TYPE': For '% EQUITY' if you have $ 10,000 of capital and select 7.5%, for example, your entry would be $ 750 without leverage. If you select CONTRACTS for the 'BTCUSDT' pair, for example, it would be the amount in 'Bitcoins' and if you select 'CASH' it would be the amount in $ dollars.
'QUANTITY (LEVERAGE 1X)': The amount for an entry with X1 leverage according to the previous section.
'MAXIMUM LEVERAGE': It's the maximum allowed multiplier of the quantity entered in the previous section according to the volume condition.
The settings are for Bitcoin at Binance Futures (BTC: USDTPERP) in 15 minutes.
For other pairs and other timeframes, the settings have to be adjusted again. And within a month, the settings will be different because we all know the market and the trend are changing.
Simple Moving Average + ADX + DMI + Time Range Test
Use long and short moving average to look for a potential price in/out. (default as 14 and 7, bases on the history experience)
ADX and DMI to prevent the small volatility and tangling MA.
This script allows you to set the beginning & end time to test the bullish & bearish market.
If you want an indicator version, here is it.
Thanks.
!BooM!Hello
The indicator measures the relationship between Average True Range (ATR) that shows how much an asset moves, on average, during a given time frame and Standard Deviation that measuring how widely asset prices are dispersed from the average price. If prices trade in a narrow trading range, the relationship between the ATR and SD will return a low value that indicates low volatility that will lead to potential price quick movement.
To increase the accuracy of the indicator and reduce false signals, it generates three circles, each indicate protentional price quick movement coming. For circle to print, following criteria must meet:
• Green Circle is based on low volatility and both ATR and SD are at minimum value for a short pre-defined time frame.
• Magenta Circle is based on low volatility and SD are at minimum value for a long pre-defined time frame.
• Yellow Circle is based on low volatility and SD are at minimum value for a short pre-defined time frame and Average Directional Movement Index reaching to pre-defined level.
The indicator focuses mainly on identifying potential price quick movement. However, it is equipped with two signal that is generated upon crossing the keltner channel upper or lower bands to help identifying the direction of the price movements but the user shall study the chart on big time frame to confirm the direction of the price movement.
If you would like to use it, please drop a message or find other contact under my signature.
After purchase, open the TradingView indicator library. Under the Invite-Only Scripts section, you will see it. Add it to your chart and save your chart layout.
DMI-ADX HistogramThe Average Direction Index (ADX) coupled with the Direction Movement Index (DMI), developed by J. Welles Wilder, is a popular indicator that measures trend direction and strength.
The AX line (blue) is used to show the strength of the current trend. It does not tell you the trend direction. The under laid histogram shows relative movements of the price with green showing positive momentum and red showing negative momentum. Use these ADX and DMI together to find trend strength and direction.
- ADX line below 20 indicates that the underlying is in accumulation/distribution.
- ADX line above 20 mean that the underlying is trending with over 60 being very strong.
*When the ADX line is below 20 it is likely to see many reversal signals on the DMI Histogram. It is best to use the DMI signals when the ADX line is above 20 or higher. This is also a good level to play around with.
Motivation
Normally the direction movements are plotted as lines with the DI+ being green and the DI- being red. When the DI+ (green) crosses over DI- (red) this may indicate a buy signal, and vice versa. I found this visual representation made it difficult to see signals as well as lacked the ability to easy see the relative strength of other moves.
I have also noticed that the histogram values will periodically cross the ADX line, but not for very long periods. This could be a useful signal to explore further in the future.
In this image the top indicator is using the normal DI+/- lines, where the bottom indicator is using an absolute histogram.
[astropark] DMI/ADX strategy [strategy]Dear Followers,
today I'm happy to share with you my DMI / ADX Strategy .
It provides directional trend information, so if a bullish or a bearish trend is going to start. Statistically it works better on lower timeframes (from 5 minutes to 1 hour).
It is both a Swing and Scalping Strategy indicator , based on a simple trend following theory , good for trading FOREX, Indexes, Stocks, Commodities and Cryptocurrencies.
To help in Taking Profits, the strategy integrates 2 special other than bull/bear signals:
Overbought and Oversold RSI Signals , which appear both as darker background (the darker the color, the more the price is in overbought/oversold) and green "ob"-"tp" / red "os"-"tp" labels (they optionally pop up only on a configurable stronger overbought/oversold condition) (you can enable/disable it optionally)
Peak Profit Tracker , which resets every time a new trade starts and keeps track of price fluctuation during the trade: the message is don't be too greedy and take profits or lock them with a stoploss in profit (you can enable/disable it optionally)
You can edit many options in order to
have more/less bull/bear signals
enable/disable showing bull/bear signals
enable/disable showing RSI TP signals (you can edit RSI length, overbought (OB) and oversold (OS) levels)
enable/disable showing peak profits on each trade
The user who wants to use this strategy, especially via an automated bot, must always set a stoploss (example 150$ from entry on bitcoin ) or use a proper risk management strategy .
This is not the "Holy Grail", so use it with caution. It's highly suggested to use a proper money management .
This script will let you backtest performance of the indicator based on bear/bull signals.
You can find the alarms version by searching for my DMI / ADX Strategy and choosing the "alarms" named.
Here there are some examples how this DMI / ADX strategy works on many markets:
LTC/USDT 15m
BTC/USD 15m
BNB/BTC 15m
ETH/USD 15m
GOLD (XAU/USD) 15m
GOLD (XAU/USD) 1h
FB 15m
AAPL 15m
TSLA 1h
BANKNIFTY Index 5m
NIFTY 50 Index 5m
This is a premium indicator , so send me a private message in order to get access to this script .
Support and Resistance levels - DMI - DI trailing stop linesThis can be used to compliment the Directional Movement Index if used as a standalone trading system. In addition to using the ADX and DI lines, a trailing stop can be used when the DI lines cross. If the plus line is above to show a buy signal, then the low of the price of when which the cross took place is used as a trailing stop. If the minus line is above to show a sell signal, then the high of the price of when which the cross took place is used as a trailing stop. This helps cut losses sooner whenever the price would end up going through these trailing stops or support/resistance levels yet the DMI system would show an upward or downward move.
M ADX BARBar colors based on ADX and DI strength.
How to study:
ADX is less then 20 (adjustable value) is SILVER (no trend)
ADX >0 and DI delta (DI plus - DI minus) is >0 color LIME (trend up)
ADX>0 and DI delta <0 color RED (trend down)
ADX cross ADX Index ( adx+adx 14 period back)/2 color is BLACK and means start/end of trend
Converting the ADX into Bars for ease of use... (combining with RSI gives best results.. Timeframe 3min or more
ADX + RSI + EMA55 FilterThis is a kind of trend indicators.
Signal to buy/sell comes when adx surpasses +5/-5 and RSI comes to buy/sell area.
Filtering with distance from ema55 (far above or far below position blocks entries) and with RSI overbought/oversold areas.
Needs to be adjusted for specific timeframes.
Default settings for 4H.
ADX Histogram with DI linesInspired by the user scarf from Tradingview. In contrast with that other indicator, this one instead of a simple moving average (SMA) for the ADX calculations, uses a running moving average (RMA) or also known as Wilder's Average. I like having a histogram for the DI lines over just having lines alone because it makes it easier to see. In addition I made it so that values less than 5 for the DI lines are colored lightly to note that the movement was less significant(might not matter but some might care about it, atleast I do). The ADX has a color fainting effect too, and when it goes above the threshold then it becomes black to note that it is trending, as the indicator suggests.
The advantages with these additions and changes are that it shows a more traditional moving average like the original author Wellers Wilder suggested and you can see the crossings and directional movement changes easier from seeing the colors on the histogram easier than you would by looking at the DI lines alone. The disadvantages are you won't be able to tell when the ADX line is above both DI lines and when the ADX then makes a decrease from there(which can sometimes show a reversal), but personally it doesn't matter too much to me and perhaps to those who care more about seeing the direction than having to focus on all those 3 lines crossing all over the place.
ADX Extrapolation Is calculated by using the formula y(x)=y1+ (x−x1/x2−x1) * (y2−y1). Linear Extrapolation.
You can edit the x1 and x2 coordinate distance, where x is the current point, x1 is the number of periods previous, and x2 is two times the previous periods.
Measures the differences between a line of best fit and average line and issues signals when they exceed a multiplier of the extrapolated values.
It is ADX and +DI and -DI.
The ADX and +DI and -DI is set to be and oscillation as we are not calulating the values themselves, but the difference from the mean/best fit.
DI+ and DI- are simple to read, minus is orange, while plus is aqua. They operate as a normal 14 length DI plotted, but will turn red when they are trending stronger than expected, and green when trending weaker than expected.
The yellow line is the ADX, oscillating around the colored line 0. When the ADX is red it signals that the current trend is significantly stronger than expected and has a high chance of reversal. When the line is green is signifies the trend is significantly weaker than expected. A clear shortcoming is most trends ADX will read to be weaker than normal after a significant blow off or drop.
To make it as simple as possible, I included a large line at 0 under the ADX oscillation so you can just read that if you wish.
Bull Reversals:
green = stronger than extrap ADX and minus ***great signal
blue = stronger than extrap ADX and plus < minus ***good signal
purple = stronger than extrap minus and weaker than expected ADX ***ok signal
Bear Reversals:
red = stronger than extrap ADX and plus ***great signal
orange = stronger than extrap ADX and minus < plus ***good signal
yellow = stronger than extrap plus and weaker than expected ADX ***ok signal
Other than that is treated as normal ADX.
ADX strategy (considering ADX and +DI only )I have been checking the strategies on ADX indicator.
I have found that +DI crossing above ADX line under threshold 30 and exit on crossdown when ADX above 30 has better results than just following crossovers of +DI and -DI , ADX crossing above 30 .
BUY Rule
========
fast ema is above slow ema (default 13 and 55 , you can change these values in settings)
+DI cross above ADX well beloe threshold level (default 30)
Exit reule
========
when +DI cross down ADX , well above on threshold level
Stop Loss
=========
Default is set to 8%
Take a look and let me know how your symbol works with this strategy
Note : Bar color changes to yellow when the BUY condition is met.
Bar color and Background color shows to blue --- if Long position is active
fast ema and long ema doesnt print on the chart -- please add manually to the chart
Warning : for the use of educational purposes only
Adaptive ADX and DIThis is part 2 of 11 in the system named Ninetales/Volt V2 you can find on Tradingview.
It simply measures all of the combinations of the defined parameters of a typical ADX + DI , and returns the most logically accurate values.
Use it however you would use a standard ADX + DI, just add your preferred values to test against each other, and set the period you would like for it to backtest.
Standard use would be to wait for ADX(red line) to be above the threshold(yellow shaded area). The short when orange is above the blue line, and long when the blue line is above the orange line.
Volt v2Change your candle view to line or bar.
This script uses the most common strategies for the following indicators. : RSI , Moving Averages, Stochastic , ADX , MACD , VWMA , Support and Resistance , Bollinger Bands , Ichimoku Cloud , Parabolic SAR , and Commodity Channel.
It compares the default values defined by the user to the other values which are specified, determining which has been most effective over the lookback period, which also is defined by the user.
It then groups the most effective settings over the defined period for lagging and leading indicators, and issues a positive or negative score for each individual indicator.
For this iteration there are 4 leading, and 7 lagging indicators.
Green candles show the sum of leading, and also lagging indicator is a positive total greater than 1.
Blue shows a positive sum.
Yellow shows a negative sum.
Red shows a negative sum of leading and also lagging indicators greater than 1.
White shows no defined direction.
Trades are entered on the first red or green candle, and exited on red or yellow for longs, or green or blue for shorts.
ADX and DI Advance [SystemAlpha]Our version of ADX DMI indicator with option to show ADX as histogram or line.
ADX + DI x Upgraded to Pine v4 x KingThiesAverage Directional Movement Index
Momentum based tool to measure trend strength on scale of 1-100
Similar to the aroon but incorporates a 3rd measure, while aroon uses two
The majority of these calculations were pre-existing in older pine scripts but have since been updated
signals are given when -DI and +DI cross, ADX illustrates corresponding strength at time of cross
Full Intro
ADX can help investors to identify trend strengths, as di - di determines the trend direction, while d - d is an impulse indicator. If the ADX is below 20, it can be considered impulsive, while it is above 25 on a trend line.
A trading signal can be generated when the di - DI line is switched to d - d and vice versa. If the di-line crosses and the ADX is above 20 (ideally 25), a potential buy signal could ebb away.
If the ADX is above 20, there is the possibility of potential short selling if the DI crosses over DI. You can also use crosses to get out of the current deal if you need it for a long time.
If the di-line is crossed and the Adx is below 20 (or 25), there may be opportunities to enter the potential for short trading, but only if di are above or below DI or if the price is trendy and may not prove to be the ideal time to start trading.
ADX + DI w/ Colored Candles [CW_Trades]The Average Directional Index (ADX) is a technical analysis indicator used to determine price trend and price strength by comparing current price to recent price history. The price trend can be either up or down(bullish/bearish), and this is shown by two accompanying indicators, the Negative Directional Indicator (-DI, purple line) and the Positive Directional Indicator (+DI, green line) which compare price highs to price lows on a 14-period lookback. The strength of the trend is shown by the histogram in the background and also utilizes a 14-period lookback in its calculation.
When the +DI is trending above the -DI it indicates a short-term bullish trend in price. If the histogram is rising while the +DI is above the -DI it indicates strength in the bullish trend. If the histogram is declining while the +DI is above the -DI it indicates weakness in the bullish trend.
When the -DI is trending above the +DI it indicates a short-term bullish trend in price. If the histogram is rising while the -DI is above the +DI it indicates strength in the bearish trend. If the histogram is declining while the -DI is above the +DI it indicates weakness in the bearish trend.
When the +DI is above the -DI the histogram will be colored shades of green. When the -DI is above the +DI the histogram will be colored shades of purple.
The ADX has 3 key levels to watch, and they are 10, 25 and 50.
-When the ADX histogram bars are below 10 it indicates no identifiable strength in the price trend, or neutral. The histogram bars will be colored gray when the ADX is below 10.
-When the ADX histogram bars are between 10 and 25 it indicates a weak trend in price. The histogram bars will be shades of dark green or dark purple when in this zone.
-When the ADX histogram bars are above 25 and below 50 it indicates a strong trend in price. The histogram bars will be shades of medium green/purple or bright green/purple when the ADX is between 25
and 50. Bright green or bright purple indicate that the current histogram bar is higher than the preceding histogram bar, medium shades of either green or purple indicate that the current histogram bar is
lower than the preceding histogram bar. The brighter the shade of green or purple, the stronger the trend.
-When the ADX histogram bars are above 50 it indicates potential trend exhaustion. When the +DI is above the -DI and the ADX is above 50 the histogram will be colored yellow which indicates a potential
end of the bull trend. When the -DI is above the +DI and the histogram bars are above 50 the histogram will be colored red which indicates a potential end of the bearish trend.
Trend Cloud
The clouds reflect a possible overextension of the trend. Traders could use it as a signal to scale out the positions in the direction of the present trend or avoid scaling in.
The indicator plots the difference between ADX over the 45 level proportionate to the range between an ATR multiplier around MA. By default, the ADX is calculated with a DI length of 14 and an ADX smoothing of 14, an ATR length of 14, MA length of 20 and a multiplier of 2.
On the chart, I have highlighted with the vertical line the candles when the indicator was activated on all four timeframes simultaneously.
indicatorenindicatoren is one non-overlaying indicator with multiple oscillators combined.
indicatoren provides the following functions:
- RSI (Relative Strength Index)
- Stochastics (representation of mathematically calculated momentum)
- Configurable MAcd (Moving Average Convergence Divergence) visually compressed to 0-100 range
- DMI & ADX (Directional Movement Index & Average Directional indeX) with visual lowering option
- Bollinger Bands direction
- COMBI Average
- Hourly, 4Hourly, Daily and Weekly time-indications
The length and appearance for each element can be adjusted. The MAcd has several modes and the brightness
of its elements can be adjusted with one single control.
The COMBI Average consists of a weighted average of the RSI, Stochastics, MAcd, DMI and the BB Direction.
It has its own definable length. Depending on the timeframe used, a visual indication of Hours, 4 Hours,
Days and Weeks might prove handy, especially on shorter timeframes.
Displaying this number of oscillators all at once may look like a carnival, therefore, each function can easily
be switched on or off. indicatoren can be used as just an advanced MAcd for example, or have it show the
combination of functions suiting you the most.
In order to combine a MAcd (+/- infinite scale) with Stochastics or RSI (0-100 scale), the MAcd is being visually
compressed and a Visual Multiplier parameter is provided to make it fit under any circumstances on any timeframe.
The DMI +/- and ADX scale are divided by 2.5 by default. Having the DMI’s on the lower portion of the indicator
does still provide decent info at a glance while it is not in the way of the other oscillators.
Books have been written and many articles and videos have been made about the meaning and possible applications
of these oscillators in trading.
The unique combination of these oscillators within indicatoren , together with the simple, yet useful,
visual options, make it to quite a versatile indicator on every timeframe on any chart.
GuidoN - November 2019, July 2020
[WJ] - ADX v2 [DMI, Alerts, Histogram, Customizable]A handy all-in-one package for DMI and ADX
Color-coordinated line for DMI with an EMA and histogram to gauge momentum, mark potential reversals, and quickly gather all the information you need to make your decisions.
Quick take-aways:
- Color of the ADX line indicates the current trend
- An ADX below the EMA indicates a potentially falling/reversing trend
- Customizable line w/ alerts for ADX crossovers
- Histogram to help catch potential reversals faster, and to gauge the momentum
Please let me know what you think, and in any features you think would increase the effectiveness of this amazing tool.
jlmora ADX IndicatorThe ADX also informs us of the prevailing market trend through the positive / negative movement indicators. Being able to determine the existence of a trend in the market and its strength is fundamental, since not all indicators or systems work correctly in different types of markets.
1. Operate only from long positions when the positive directional line is above the negative. Trade only from short positions when the negative directional line is above the positive. The best time to trade is when the ADX is on the rise, showing that the dominant group is strengthening.
2. When the ADX falls, it shows that the market is becoming less discretionary. There are likely to be a few unexpected turns. When the ADX points down, it is preferable not to use trend tracking methods.
3. When the ADX falls below both directional lines, this identifies a flat and sleepy market. Do not use a trend tracking system, but be prepared to trade as major trends emerge from such calm periods.
4. The best individual directional signal is given after the ADX falls below both directional lines. The longer it stays there, the stronger the base of the next move will be. When the ADX rebounds from below both directional lines, it shows that the market is waking up from a calm period. When the ADX grows four or more steps (for example, 9 to 13) from its lowest point below both directional lines, it is "ringing the bell" on a new trend. It shows that a new bull or bear market is emerging, depending on which directional line is above it. When the ADX rebounds above both directional lines, it is identifying an overheated market. When the ADX crosses both directional lines down, it shows that a major trend has entered. It is a good time to collect benefits in a directional operation. If you trade from long positions, you will definitely want to pick up partial gains. Market indicators give strong signals and weak signals. For example, when a moving average changes direction, it is a strong signal. A downward inflection of the ADX is a weak signal. Once you see that the ADX has been turned down, you should be very careful adding to open positions. You should start to collect profits, reduce positions and try to exit.
Directional Movement IndexThis is a standard ADX DMI indicator with Background colour and the option to draw the Background colour of the next higher timeframe.
ADX | DMI Trend StrategyThis strategy takes the ADX Indicator I wrote and applies it to a strategy for back testing purposes.
I've also applied a date filter so you can back test specific date ranges and a moving average filter so you can choose whether to filter your longs/shorts based on a moving average.