SL and TP - ATRThis indicator is using ATR ( Average True Range ) to set the Target point and Stop loss.
Use the pink number as target, always.
If you are in Long position, use the green number as stop loss, so the red number is not useful in Buys.
If you are in Short position, use the Red number as stop loss, so the green number is not useful in Sells.
** Need to enter the numbers in ticks --> VERY IMPORTANT: Write it completely, even the numbers after the point sign but DO NOT WRITE the point sign itself. e.g. : if the target tick on indicator is 123.75, you have to write 12375 ticks for your TP. ( one more example: If the number is 0.0001203 , write 1203 ticks. )
Enter the information of the opening candle.
Most of the times, risk/reward ratio is a bit higher than 1.
Works on multi timeframes. P.S: Haven't checked the weekly timeframe.
Not trying to oversell the indicator, but this is perhaps the best TP/SL specifier.
For beauty purposes, change (Sl @ buy) and (TP @ sell) to histograms.
Histograms are only for visual purposes. Customize the indicator as you want :)) Hope you enjoy
D-ATR
Multiple MAs + No Trend Zone + ATR WidgetThis is my first Pine Script attempt. Nothing special, just an "all in one" for the most common things I use, and what I have found to be the most common in a lot of strategies.
Great for free and limited accounts as it combines 7 total indicators into one.
-- First 5 indicators are Independant Moving Averages:
-Each one can be set for length, as well as source and type (SMA, EMA, SMMA, WMA, VWMA) individually
-- Second type (6th) of indicator is one I find extremly useful for staying OUT of consolidation trading. It's called a "No Trend Zone" indicator I swipped from the Hoffman Startegy. Basically, its set for a small deviation (0.5) of a 35 EMA, which creates a "Band" around the 35 line. When you have this "Band" flat or with no discernable incline/decline, with price action OR some or multiple moving averages inside this banded zone, it typically indicates a zone of consolidation. This will help you identify when you may be in one of those zones, that way you don't get trapped "waiting for paint to dry" before the market starts to move again with your position, and keep you from entering should you be considering the market at that time.
The last indicator is my favorite, and one I will refine a little deeper soon.
-- The ATR widget finishes us out. This widget can be customized for colors, turned on or off, and automatically rounds the ATR (ATR period based on the chart timeframe) to a nice readable number for what you're trading. It has settings to show or not, the length, what rounding style to use (forex pip 0.0001, forex/stock/etf/indicies 0.01) where to show it on the pane, a Multiplier Factor (for stop loss calculations automatically) and the colors.
***NOTE ABOUT ATR WIDGET:
I am primarily a forex trader, so the defaults are for Forex 0.0001. If you see some odd numbers (like 55798 on a current chart), check the inputs tab on the settings, and change the "ATR Style" from "Forex 0.0001" to "Forex/Stock/ETF/Indicies 0.01", and you should arrive with the correct number.
Solution Zigma - Fibonacci Impulse'Solution Zigma' is strategy for any securities because this strategy use EMA of Fibonacci Level and Plot Like candle easy for analysis trend impulse. This strategy used DMI(ADX) for filter sideway but not greatest indicator, Please use this strategy with Risk Management.
Stop Loss With Average True Range (ATR)Stop Loss With Average True Range (ATR)
It simplifies the calculation of stop loss price for stop loss method using the average true range (ATR).
For example;
You want to stop loss below 3 ATR. Let's assume the price is 100, the average true range is 5. You will multiply the average true range by 3 and subtract from the price and enter a stop loss order at the 85 price you have reached. Instead of doing this calculation every time, you just need to use this script and set the multiplier to 3. A stop loss line will be drawn below the price candles.
You can set the method to be used when averaging the true range. Methods you can use to average: EMA (exponentially moving average), HMA (hull moving average), RMA (moving average used in RSI), SMA (simple moving average), SWMA (symmetrically weighted moving average), VWMA (volume-weighted moving average), WMA (weighted moving average).
You can set the length to be used when averaging the true range.
You can set the multiplier to be used when determining the stop loss price.
Turkish
Ortalama Gerçek Aralıkla (ATR) Zarar Durdurma
Gerçek aralığın ortalamasını kullanarak zarar durdurma yöntemi için zarar durdurma fiyatının hesaplanmasını kolaylaştırır.
Örneğin;
3 ATR kadar aşağıda zarar durdurmak istiyorsunuz. Fiyatın 100, ortalama gerçek aralığın 5 olduğunu varsayalım. Ortalama gerçek aralığı 3 ile çarparak fiyattan çıkaracaksınız ve ulaştığınız 85 fiyatına zarar durdurma emri gireceksiniz. Bu hesabı her seferinde yapmak yerine bu betiği kullanmanız ve çarpanı 3 olarak ayarlamanız yeterli. Bu sayede fiyat mumlarının altına zarar durdurma çizgisi çizilecektir.
Gerçek aralığın ortalaması alınırken kullanılacak yöntemi ayarlayabilirsiniz. Ortalama almak için seçebileceğiniz yöntemler: EMA (üstel hareketli ortalama), HMA (gövde hareketli ortalama), RMA (göreceli hareketli ortalama), SMA (basit hareketli ortalama), SWMA (simetrik ağırlıklı hareketli ortalama), VWMA (hacim ağırıklı hareketli ortalama), WMA (ağırlıklı hareketli ortalama).
Gerçek aralığın ortalaması alınırken kullanılacak periyot uzunluğunu ayarlayabilirsiniz.
Zarar durdurma fiyatını belirlerken kullanılacak çarpanı ayarlayabilirsiniz.
wnG - Spikes IdentifierThis indicator, based on the ATR, allows you to identify the potential reversal on price and helps you identify the Support and Resistance.
When the price moves far away from the multiple moving average, the background color changes :
- Red for Short potential entry
- Green for Long potential entry
There are 2 ways to use this script :
- Conservative : Use it in your trading system to Take Profit ==> when the background turns red, close LONG position (and green = close short).
- Aggressive : As soon as the background turns red, enter SHORT (and green = long).
For aggressive use, I recommand you to couple this script with an oscillator to confirm the signals (RSI stochastic for example).
You can customize the sensibility with 4 levels :
- low probability of reversal
- medium probability of reversal
- high probability of reversal
- very high probability of reversal
PS : the "High" and "Very High" probability setup are the only one I'm using in my trading systems.
ATR SL + Position Size Calculator [DoctaBot]Props to @Veryfid for his original script 'ATR Stop Loss Finder'.
The concept is simple. We use the average true range to determine an appropriate stop loss distance based on recent volatility. The original script calculated the stop loss offset from the current candle's high or low. Here, I've added the option to offset stop loss from the recent local low or local high (a better way in my opinion).
I have also added a feature to automatically calculate position size by either dollar amount or as a percent of your account size to suit your risk profile (percent of account at risk per trade). This calculator supports use of leverage to calculate the amount of margin required to open desired position size.
ATR Day Grid by RSUATR at the daily and intraday prompt lines, it is recommended to trade within 50%, and if it exceeds 50%, there is a risk of chasing high.
At the minute level,Day-level ATR grid line is displayed.
CCI SupertrendCCI Supertrend
+ This simple scripts base on CCI level to plot "Supertrend".
+ When CCI move above level 0, SuperTrend lowerBand is plotted.
+ When CCI move below level 0, SuperTrend upperBand is plotted.
ATR BandsIn many strategies, it's quite common to use a scaled ATR to help define a stop-loss, and it's not uncommon to use it for take-profit targets as well. While it's possible to use the built-in ATR indicator and manually calculate the offset value, we felt this wasn't particularly intuitive or efficient, and could lead to the potential for miscalculations. And while there are quite a few indicators that plot ATR bands in some form or another already on TV, we could not find one that actually performed the exact way that we wanted. They all had at least one of the following gaps:
The ATR offset was not configurable (usually hard-coded to be based off the high or low, while we generally prefer to use close)
It would only print a single band (either the upper or lower), which would require the same indicator to be added twice
The ATR scaling factor was either not configurable or only stepped in whole numbers (often time fractional factors like 1.5 yield better results)
To that end, we took to making this enhanced version to meet all of the above requirements. While we were doing so, we decided to take this opportunity to also make some non-functional enhancements as well:
Updated the indicator to the most recent version of Pine
Updated the indicator definition to allow alternate (non-chart) timeframe usage
Made the input types explicitly defined to improve consistency
Updated the inputs with appropriate minimum values and step sizes where appropriate
Separated settings into logical groups
Added helptext to the indicator settings noting usage and common settings values
Explicitly titled the on-chart plots of the ATR bands so that they can more easily be identified and referenced in other indicators/scripts, as well as the Data Window
Food for thought : When looking at some of the behaviors of these ATR bands, you can see that when price first levels out, you can draw a "consolidation zone" from the first peak of the upper ATR band to the first valley of the lower ATR band that price will generally respect. Look for price to break and close outside of that zone. When that happens, price will usually (but not always) make a notable move in that direction, which can be used as either a potential trigger or as an additional confluence with other indicators/price action.
Finally, while we have made what we feel are some noteworthy updates and enhancements to this indicator, and have every intention of continuing to do so as we find worthy opportunities for enhancement, credit is still due to the original author: AlexanderTeaH
StopLossThat indicator helps us to determine the stop loss levels or prices in terms of atr levels. It includes 4 (four) options which are 1-Don't Risk, 2-Low Risk, 3-High Risk, 4-Risk Lover their exploding rates are 1-2.4% , 2-3.9% , 3-6.7% , 4-16.7% in sort. It helps us to produce new methods to decreace our risk/reward ratio. It is ATR Trailing StopLoss indicator. The indicator is awesome in terms of comfortable. Thanks and waiting for your feedbacks.
ATR and IV Volatility TableThis is a volatility tool designed to get the daily bottom and top values calculated using a daily ATR and IV values.
ATR values can be calculated directly, however for IV I recommend to take the values from external sources for the asset that you want to trade.
Regarding of the usage, I always recommend to go at the end of the previous close day of the candle(with replay function) or beginning of the daily open candle and get the expected values for movements.
For example for 26April for SPX, we have an ATR of 77 points and the close of the candle was 4296.
So based on ATR for 27 April our TOP is going to be 4296 + 77 , while our BOT is going to be 4296-77
At the same time lets assume the IV for today is going to be around 25% -> this is translated to 25 / (sqrt (252)) = 1.57 aprox
So based on IV our TOP is going to be 4296 + 4296 * 0.0157 , while our BOT is going to be 4296 - 4296 * 0.0157
I found out from my calculations that 80-85% of the times these bot and top points act as an amazing support and resistence points for day trading, so I fully recommend you to start including them into your analysis.
If you have any questions let me know !
ATR stoploss bands ATR止损通道线计算方式为开盘价,方便一开始就知道这根k线的止损位置。
用21和1.618作为参数,在btc上经常能看见刚好差一点打破到这个止损,不知是否是我的错觉。
使用方法:
出现信号后,将止损设置在当前k线止损点处,也可以用前一根的止损点,或前几根k线之内的最高价K线的ATR来止损。
Average True Range - ImprovedAverage True Range - Improved is a small variation I have made to the standard ATR indicator. It will test the current ATR against the Historic Average ATR of your preference to see if the current volatility is high or low.
Once it has determined if it is high or low it will color code the circles at the top based on this information. Green means the current volatility is low and red means the current volatility is higher than the historic average.
In the settings I have also placed a couple styles, if you wish to show the ATR and Historic ATR in percent format instead of normal you can turn them on in the style settings. If you are using the percent format I recommend setting the Precision to 2-3 decimal places.
I hope you all enjoy this indicator, if you have any questions please feel free to post them in the comments.
Average True Range (VStop) GuppyThis script allows Volatility Stop, an average true range-based indicator, to be plotted like a "Guppy" multiple moving average indicator. Backtesting results seem pretty good when a solid majority of the lines are in agreement.
Of course, as is customary with my scripts, the user can select the length, source, and multiple for any of the ATR lines plotted and customize the visuals how they want.
Value added:
As far as I know, there aren't any ATR-based indicators that quite do this -- setting up a "Guppy" actually seems to help quite a lot with seeing the overall big picture & capturing the meat of a trend.
IR% - Intraday Range (% or $)Shows the percentage difference between the High and Low of the price bar expressed as a percent of the Open of that bar. In the settings, you can change to Price Change instead of percent change. This will show the price change between the High and Low for each price bar.
It can be used on any time frame.
I use it on the daily chart . I note the daily figure, and that lets me know how far the price tends to move during a typical day (no gaps included).
If using on another time frame other than the daily, then it is an intrabar calculation, not intraday.
Apply a moving average to it to see the average intraday movement after the open when using a daily chart .
The IR% of a 1-minute chart tells you the price range of that one-minute price bar, and a weekly chart will show the price range of each weekly price bar.
It only measures high to low versus the candle's open price. It does not include gaps between candles, which makes it different than the ATR. ATR is more useful for swing trading, where the trader may be holding through gaps in price, and thus wants to factor them in.
The IR% is useful for day traders because it shows how much a stock tends to move during the day (intraday range), when using a daily chart . ATR is not as effective for this because it includes gaps, which day traders can't generally capitalize on.
If the IR% is fluctuating between 5% and 10% over the last 50 days or so (on the daily chart ), day traders know that AFTER the open, the price is likely to move 5% to 10% from high point to low point. This can help with establishing profit targets, seeking out stocks that tend to move a lot within the day, or avoid these types of stocks if they are undesirable to you. Seek out low IR% stocks if you prefer lower movement during your selected time frame.
A stock may have an ATR% of 5% but ATR doesn't tell us if that movement occurred after the open or includes a gap. Some stocks are prone to gaps. They may gap 4% most days, and then only move 1% during the day. This will still be a 5% ATR%, but most of that movement ISN'T capturable each day. The IR% for this stock would only be 1%, not 5% like the ATR suggests.
I developed this because I like day trading volatile stocks, and I wanted a measure that ONLY includes movement during the day, and doesn't include price gaps in the calculation. Because as a day trader, gaps don't matter to me. I can only make money on what happens during the day, after the open.
It is similar to another indicator called Average Day Range (ADR). Although most ADR calculations are already calculated as an average (so I don't see each individual value) or plots things on the chart. This may be useful for some people, but I wanted to see the data on each price bar, have the option to add a moving average or not, and not have anything plotted on the price chart. It also nice to be able to flip from % to $ dollar movement if desired.
ATR Drift %This script plots an histogram calculated this way:
Get the previous ATR sample, calculated in the specified timeframe
Get the actual open price of the bar in the specified timeframe minus the actual price in the current timeframe
and plots the percent change between the the 2 values
For example, if you select DAY as timeframe for the ATR:
Plots the percent change between:
- ATR(daily) from yesterday
and
- open from today - actual price
Due to Tradingview limitations, only shows the plot if the actual timeframe of the graphic is equal or lower that the ATR selected timeframe
The background changes shows a new ATR sample taking place
I'm testing this for scalping in 5M timeframe with the ATR in 4H
All my published scripts at: es.tradingview.com
ATR Daily Drift %This script is an especial request from a user
Plots the percent change between:
- ATR(daily) from yesterday
and
- open from today - actual price
Due to Tradingview limitations, only shows the plot if the actual timeframe of the graphic is daily or lower.
All my published scripts at: es.tradingview.com
intraday_bondsStatistics for assisting with intraday bond trading, using five minute periods and one hour ranges. There are two tables, a volatility table and a correlation table. The correlation table shows the correlation of five minute returns (absolute) between the four different bond contracts that trade on the CME. The volatility table shows for each contract:
- The current realized volatility, based on the previous one hour of realized volatility. This figure is annualized for easy comparison with options contracts.
- The current realized volatility's z-score, based on all available data.
- The tick range of an "N" standard deviation move over one hour. Choose "N" using the stdevs input.
- The previous hour's true range (high - low).
The ranges are expressed in ticks.
Saty ATR LevelsThis indicator uses the previous period close and +/- 1 ATR to display significant day, multiday, swing, and position trading levels including:
- Trigger clouds for possibly going long/short @ 23.6 fib
- Mid-range level at 61.8 fib
- Full range level at +/- 1 ATR (from previous close)
- Extension level at 161.8 fib
Additionally, a convenient info table is provided that shows trend, range utilization, and numerical long/short values.
This indicator is most beneficial when you combine it with price, volume, and trend analysis. For educational content please check out the indicator website at atrlevels.com.
I am constantly improving this indicator, please use this one if you want to continue to get new features, bug fixes, and support.
SuperJump Turn Back Bollinger BandThis is a simple indicator using bolinger band return.
After the candle's bolinger band broke out,
Turn back inside BB is the entry point.
Usually there are more than two triangles, so you can wait after ordering a better price.
As you already know about it, it is very dangerous for the bolinger band to enter in the reverse direction when a strong trend is created.
That's why I made the Red Line. It is calculated by ATR and will suggest you an appropriate StopLoss value.
Super Scalper - 5 Min 15 MinThis strategy is based on RSI and ATR Bands which works better in 5 and 15 Mins time frame.
Perform enough back testing with 1:2R before using in real time.
Entry only on trade on screen symbols, use additional buy/sell alerts to book profit or to trail SL.
I have also added Golden Cross Over of 65 and 21 EMA to have confirmation on trend.
SuperTrend OptimizerHello!
This indicator attempts to optimize Supertrend parameters. To achieve this, 102 parameter combinations are tested concurrently - the top three performers are listed in descending order.
Parameters,
Factor: Changes to this parameter shifts the tested factor range. For instance, increasing the factor measure from 3.00 to 3.01 (+0.01) will remove 3.00 from the tested range - this setting controls the lower threshold of the range. The upper threshold, in all instances, is the lower Factor threshold + 3.3 (i.e. 3.0(lower) - 6.3(upper), 4.0(lower) - 7.3(upper), 2.5(lower) - 5.8(upper))
ATR period: Changes to this parameter shifts the tested ATR period range. For instance, increasing the ATR measure from 10 to 11 (+1) will remove 10 from the tested range - this setting controls the lower threshold of the range. The upper threshold, in all instances, is the lower threshold + 2 (i.e. 10(lower) - 12(upper), 11(lower) - 13(upper), 9(lower), - 11(upper))
The Factor parameter is modifiable to any positive decimal number; the ATR parameter is modifiable to any positive integer. Changing either parameter shifts the tested parameter combination range. Both parameters can be changed in the settings, to which you control the lower threshold of the range. If, for instance, you were to change the Factor measurement from 3.0 to 4.1 (+1.1) the 4.0 Factor measurement, and all Factor measures less than 4.0, will be excluded from the performance test.
Consequently, a Supertrend test will be performed with a Factor of 4.1 and an ATR period of 10 (default). This test repeats at 0.1 Factor intervals and 1.0 ATR intervals.
Therefore, assume you modify the Factor lower threshold to 3.1 and the ATR lower threshold to 10. The indicator will test three Supertrend systems with a Factor of 3.1 and an ATR period of 10.. then 11.. 12, then three systems with a Factor of 3.2 and an ATR period of 10.. then 11.. 12... until (lower Factor threshold + 3.3) and (lower ATR threshold + 2) are tested... which in this example is... a Factor of 6.4 and an ATR period of 12.
The tested Factor range and ATR range are displayed in a bottom right table alongside the top performing parameter combinations.
Of course, you can change the the lower thresholds, which means you can test numerous Supertrend parameter combinations! However, no greater than 102 parameter combinations will be tested simultaneously; the best performing Supertrend parameters are plotted on the chart automatically.
I will be working on this indicator more tomorrow! Let me know if you have questions or anything you would like included!
(I of course added something fun in the script. Be sure to try it with bar replay!)
ATR Trading SetupThis simple script base on function of ATR Trailing Stop (aka SuperTrend) to plot Trading Setup on chart with detail as below:
1. Type of Average True Range (ATR)
+ The function calculate ATR may base on 1 of 3 type of Average: RMA, SMA, EMA
2. Trading Setup
2.1 Long setup
+ SuperTrend is upTrend
+ Entry Long at (or below) last value ATR Trailing Stop of Previous Trend (DownTrend)
+ Stop loss at first value ATR Trailing Stop of now Trend (upTrend)
+ Take profit at first value ATR Trailing Stop of Previous Trend (downTrend)
+ Move stop loss follow ATR Trailing Stop (green dot)
2.1 Short setup
+ SuperTrend is downTrend
+ Entry Short at (or above) last value ATR Trailing Stop of Previous Trend (upTrend)
+ Stop loss at first value ATR Trailing Stop of now Trend (downTrend)
+ Take profit at first value ATR Trailing Stop of Previous Trend (upTrend)
+ Move stop loss follow ATR Trailing Stop (red dot)