ATR
ATR for Trailing StopAn ATR (Average True Range) can be used to position a trailing stop
In this script, the true range of today is calculated based on the low of yesterday in order to be more stable.
It only goes up, as a trailing stop should do.
It only goes down when the trailing stop is reached by the price.
ATR for Trailing StopThe calculation of this ATR is based on the low of yesterday in order to not change continuously during the day.
You can use this indicator to create a trailing stop taking into account volatility on the nATRPeriod previous days.
It also always go up as a trailing stop should. It only goes down the price reaches the trailing stop.
xSuperTrend_AGThis is only for education purpose.
Sell if the below line cross to above.
But if the above line cross to below.
Manual Back Test LinesI created this indicator to primarily manually test other indicators in replay mode.
To use this indicator generally you will:
Select trade type: long or short
Enter your ATR (enter the actual ATR). The indicator will then calculate and plot your SL and targets based on your values
Default Stop Loss is ATR * 1.5
Default Target 1 is ATR * 1.5
Default Target 2 is ATR * 3
Using this indicator on Replay mode is great. What you do is go back in time. Hit play and as the indicator(s) you use provide signals pause.
Pull up options:
Select trade type
Update ATR value
Change date to entry date. Typically if you are trading off the daily timeframe you are going to wait for your current day candle to close to provide signal. That would mean your entry would be on the next day.
Click play and watch, track and record how trade unfolds.
Future updates:
I'd like to be able to have some way to click one button and have it fire that enter trade right now on chart. Also I'm working on figuring out how to calculate the ATR on the entry date so that isn't required to be entered.
Finally, I'd like to have some auto calculation on when targets and SL are hit. I have this partially done but it's more important that I use this indicator than spend time or funds to update it to do that. But I do plan on updating.
PA Extremely Early version
Experimenting with traditional "market structure" and candlestick patterns for trend analysis
HMA_ATR_TSIA combination of signals trigger this strategy.
HMA crossovers (short period & long period) -Hull moving average-
ATR (smoothed with HMA ) -Average true range-
TSI -True strength index-
The final close price is not known until right at the end of the bar.
This means that the indicator is constantly “repainting” during the bar.
You will see that indicators are constantly moving with each tick received
Use Open instead, the value is set and does not change even after refreshing the page.
An attempt to reduce repainting.
INDICATOR VERSION FOR USE WITH ALERTS
HMA_ATR_TSIA combination of signals trigger this strategy.
HMA crossovers (short period & long period) -Hull moving average-
ATR (smoothed with HMA) -Average true range-
TSI -True strength index-
The final close price is not known until right at the end of the bar.
This means that the indicator is constantly “repainting” during the bar.
You will see that indicators are constantly moving with each tick received
Use Open instead, the value is set and does not change even after refreshing the page.
An attempt to reduce repainting.
ATR smoothed by Hull MAThis is Average True Range indicator, but it is smoothed with Hull MA ( not WMA etc )
It is set to overlay the candles so looks different from normal ATR but i assure you it is ATR
Script open so you can see for yourself.
perhaps different settings are better,
Help me test it, and suggest improvements thankyou
Megatrend Alerts — SharkCIAThis method of trend analysis uses breakouts from the Average True Range to determine if an instrument is bullish or bearish.
AG ATR ImpulseThis is an indicator we built to look for "Impulse" moves in the markets. It uses Average True Range (ATR) calculations. We use a fastATR setting of 1 to show the current candle/period's ATR. The black line is a second, slowATR, that we use to see whether the fastATR is higher than the slowATR. If so, the bar is green, if not, grey.
The background is coloured by a "Change Factor" that can be customised. It essentially uses more ATR calculations to suggest whether to be looking for longs (green background) or shorts (red background). Setting the Change Factor lower than default to 1 makes the underlying calculations more sensitive, and thus, the background filter will change more often, but the signal will have less accuracy. Setting the Change Factor higher than default to, say, 3, will make the underlying calculations less sensitive, and thus, the background filter will change less often, but the signal will be more accurate.
In the chart example attached, I have included some trade ideas that could have been taken using this indicator to give you an idea of how to use the indicator.
THD ATR Support & ResistanceThe TradersHelpDesk ATR Support & Resistance indicator identifies the support and resistance based on average true range for multiple timeframes. For more information, click here.
THD Trend ATRThe THD Trend ATR identifies current trend (blue for uptrend, red for downtrend) and support and resistance using the average true range stop algorithms. The lowest point of risk is always at the ATR (either the plus signs or the dots). Simply wait for a bar in the direction of the trend to form (bullish for an uptrend and bearish for a downtrend).
Normalized Average True RangeThis is a Normalized ATR, which means it displays ATR as a percentage instead of absolute price. For example, a value of 1 indicates a true range of 1% in a given period.
This indicator creates a moving average of the volatility of a product going back X number of periods and is useful for deciding what to trade. For example, if used on a daily chart, one product displays a value of 4 you can reasonably expect it to have larger price swings and movement compared to another product that displays 1.
It does not predict direction, rather the size of moves.
ATRMSRATRMSR
MTF ATR Horizontal S/R deviations
MTF ATR trailing stops
MTF ATR High/low
Will be updated soon.
V.01
Improved Multi-Timeframe (MTF) 21 ATR - plots same as live dataThis multi-timeframe 21-period average true range uses an improved calculation to accurately calculate the indicator's value with every new bar on the time frame your chart is set to. Previously the indicator only recalculated with every new update on the timeframe used in its security function. This means that this improved script plots the real, current value of your indicator across your chosen timeframes on your chart's resolution and no longer only plots only the indicator's monthly/weekly/daily/4 hour/ect closing value on the your chart.
Input values are fixed to their default (close,21) configuration to make this indicator's improved calculation possible.
When using "Plot Higher Timeframe?" the script will set the indicator to only plot its value in closest larger timeframe. This option overrides the two following options. For example, when using the daily resolution , only the weekly value will plot, or when using the one hour (60m) resolution, only the 4 hour (240m) value will plot.
The "Omit Higher Timeframes?" option will set the indicator to only plot starting from the 1/2/3/4/5/6/7th closest larger timeframe. For example, when using the daily resolution and this option set to 0, all values from the weekly resolution and up will plot, but if set to 1, all values from the monthly resolution and up will plot instead.
The "Plot Yearly/Quarterly/Monthly/Weekly/Daily/4 Hour/1 Hour/15 Minute/5 Minute?" options allow enabling/disabling a specific timeframe. All are enabled by default. For example, if you do not want the yearly value of the indicator to ever plot, you can disable the "Plot Yearly?" option.
Basecamp AutoFibAutomatic Fibonacci Support and Resistance derived from the recent Average True Range.
This tool is used as a guideline for where mathematically evident support and resistances are estimated to be.
Unlike typical methods, this will adjust as candles print and the ATR expands or contracts assisting the user in ensuring realistic price targets relative to the current movement.
True Range AutoFibAutomatic Adjusting Fib Support and Resistance
Adjustable Candle Length Average True Range centered on the 34 MA Fibonacci Support and Resistance lines for all timescales on all instruments.
**These lines do move as candles print adjusting slowly to the changing ATR. This generally should indicate the realistic expected move for the current time frame.
RSI-ATR Divine Strategy (Backtesting)Live, non-repainting strategy using ATR and RSI mixed together to multiple types of long and short positions.
- Features -
Live entry direction with trade warnings and alerts
Live trade building buy and sell stops (for buy/sell stop limits)
Entry location icons as well as pyramid entries (to add to existing position)
2 separate targets based on the ATR setting and entry location
1 scalp target based on the ATR setting and entry location
2 separate trailing stops, 1 for "absolute stop" and 1 for "scalp trades"
Alert conditions for every update and condition change of the strategy (Provided by indicator study )
4 pre-built color themes, including candlestick coloring
This strategy is best used with my RSI Shaded Indicator using the identical RSI settings.
The linked script is identical and used solely for alerts, because Trading View still after 3 years of requesting does not provide the ability to use alert conditions inside a strategy script, only an indicator script. This strategy should be used to backtest your settings.
The approach to this strategy uses several parallel trades of different types. In order to generate multiple trade types the "pyramid trades" setting of the strategy (second tab of the settings that lets you adjust the number of pyramid contracts) should be used.
- Trade Types -
Swing: This trade is entered on the solid arrows after the RSI has become oversold or overbought. It is key that all trades wait for some degree of pullback before entering, even after the trend flips between positive and negative. This trade is held until stopped out or an opposite trade is triggered that reverses the position.
Target: These trades are entered at both the initial swing trade, or any subsequent pyramid/greedy trades that present themselves along the way while the trend remains in the same direction. The difference between these trades and the swing trade is that they have targets calculated as: Target = +/- * ATR. Until the target price is reached it does not change. When exceeded the next target trade will have a new target price.
Scalp: These trades have a limit buy/sell entry and a target. The target is very similar to the ATR Multiplier calculation for Target trades, but uses the instead.
Turning on/off the different trade types (strategy only) is simple done by decreasing the number of contracts used for that trade type to zero. When the quantity is set to zero, that trade is not considered.
- Session -
The session filter is used to narrow trade executions by only allowing trades that are inside the session boundaries. This can be used to isolate the London or New York session for example. The default is 24 x 7 which filters no trades (Trading View has a bug when resetting this, so simply reset the indicator to get it back to 24x7).
All feature requests or bug reports are welcome either by direct messaging or comments on this page or the linked indicator page.
Please PM for access. Cheers.
RSI-ATR Divine StrategyLive, non-repainting strategy using ATR and RSI mixed together to take long and short positions. Includes:
Live entry direction with trade warnings and alerts
Live trade building buy and sell stops (for buy/sell stop limits)
Entry location icons as well as pyramid entries (to add to existing position)
3 separate targets based on the ATR setting and entry location
2 separate trailing stops, 1 for "absolute stop" and 1 for "take profit stop"
Alert conditions for every update and condition change of the strategy
4 pre-built color themes, including candlestick coloring
This strategy is best used with my RSI Shaded Indicator using the identical RSI settings.