Stoploss
exponential moving average + ATRThis script simplifies and gives more control to the user when using EMA with ATR in a bands form.
The default values has to be changed according to your plan.
Probability of Touch [racer8]This indicator calculates the probability of touch for a stop loss...the probability that it will be triggered. Does it really calculate probability? Yes, it gives you an idea of the probability of being stopped out of a trade... but results are not guaranteed as this is a theoretical formula I developed on my own. Nevertheless, use this at your own discretion...and hope you enjoy it ;)
FYI: This indicator was inspired by the Probability of Touch concept in options trading!
PG ATR based Stop LossA stoploss system that enables traders to exit with limited loss or even trailing loss.
Use the levels of indicator against the candle that has seen signidicant move for running positions and the candle in which a new position is taken.
Example : For long Nifty Future at 14990 levels, when Indicator is showing 14820 at bottom on a 30 min chart, 14820 can be used as a stop loss,
similarly for short conditions upper values above top of he candle will be followed.
For medium term ongoing positions, use the levels marked against candle that offered a major move, or the candles that has put the underlying in a new price zone or range.
15-30 minutes are suitable period for intraday / short term trades. Two hours or day periods can be used for positional trades.
**Queries are welcme.**
CUT MY LOSSESS - Levereged Stop loss + R / R ratio checker Hello traders!
We have heard many times that keep your losses small and allow your profits to grow. But what happens is that we often make the mistake of doing high-margin trades that we cannot afford to lose. The main reason for this problem, in my opinion, is the rush to open a position and not paying attention to how much acceptable loss in each trade is for us? Is our stop loss point compatible with the loss we are willing to accept?
Many of the losses we incur are not due to our erroneous analysis but to the wrong trading strategy, miscalculation of Stop Loss and failure to calculate the Risk/Reward for each trade. At least for most novice traders, these mistakes happen .
This script does not have complicated logic and is designed only as a help for those who are not interested in working with calculators !! I hope that sometimes that we are very excited to buy, looking at this script can give us a serious flip to avoid risk .
This is a basic script that helps us to intuitively check our stop loss in according to our leverage and to guess the approximate risk/reward of our trade. This script assumes that you always trade with half of your total capital. It is also assumed that you routinely use up to ten percent of your capital for each trade. Therefore, the first variable in this script is the amount of tolerable loss in each trade for you, which is set to 25% by default. So if you follow the previous assumptions, each trade will endanger 2.5% of your capital.
Since not all analyzes are ever accurate, we need to enter into positions that have good Risk/Reward ratio, so that even if half of our analysis fails, we will profitable. Therefore, the second variable in this script is the acceptable Risk/Reward ratio for us, which is set to 1:4 by default.
Also, to check the efficiency of the stop-loss with different trading leverage, I add five leverage by default from 1 to 5 as lines on the side of your stop-loss point.
LeV A (Lowest Leverage-WHITE): 1 by default
LeV B (AQUA): 2 by default
LeV C (YELLOW): 3 by default
LeV D (ORANGE): 4 by default
LeV E (Highest Leverage-RED):5 by default
You can change all these leverages and Acceptable margin loss and R/R ratio according to your needs.
You can also hide the leverage lines you are not dealing with through the script settings .
You will also see lines on the side of your target point to check your risk/reward ,so you can approximate your target according to your trading leverage and the risk/reward you accept. you can also hide these R/R lines from the setting.
Important Note: This script is not designed to give you a stop loss point or take profit point.
To find these points, you must use technical analysis methods , and then use this script to check the coordination of these points with your trading strategy.
Using the script is simple, but I will try to explain it with a few examples.
Risk Management: Position Size & Risk RewardHere is a Risk Management Indicator that calculates stop loss and position sizing based on the volatility of the stock. Most traders use a basic 1 or 2% Risk Rule, where they will not risk more than 1 or 2% of their capital on any one trade. I went further and applied four levels of risk: 0.25%, 0.50%, 1% and 2%. How you apply these different levels of risk is what makes this indicator extremely useful. Here are some common ways to apply this script:
• If the stock is extremely volatile and has a better than 50% chance of hitting the stop loss, then risk only 0.25% of your capital on that trade.
• If a stock has low volatility and has less than 20% change of hitting the stop loss, then risk 2% of your capital on that trade.
• Risking anywhere between 0.25% and 2% is purely based on your intuition and assessment of the market.
• If you are on a losing streak and you want to cut back on your position sizing, then lowering the Risk % can help you weather the storm.
• If you are on a winning streak and your entries are experiencing a higher level of success, then gradually increase the Risk % to reap bigger profits.
• If you want to trade outside the noise of the market or take on more noise/risk, you can adjust the ATR Factor.
• … and whatever else you can imagine using it to benefit your trading.
The position size is calculated using the Capital and Risk % fields, which is the percentage of your total trading capital (a.k.a net liquidity or Capital at Risk). If you instead want to calculate the position size based on a specific amount of money, then enter the amount in the Custom Risk Amt input box. Any amount greater than 0 in the Custom Risk Amt field will override the values in the Capital and Risk % fields.
The stop loss is calculated by using the ATR. The default setting is the 14 RMA, but you can change the length and smoothing of the true range moving average to your liking. Selecting a different length and smoothing affects the stop loss and position size, so choose these values very carefully.
The ATR Factor is a multiplier of the ATR. The ATR Factor can be used to adjust the stop loss and move it outside of the market noise. For the more volatile stock, increase the factor to lower the stop loss and reduce the chance of getting stopped out. For stocks with less volatility , you can lower the factor to raise the stop loss and increase position size. Adjusting the ATR Factor can also be useful when you want the stop loss to be at or below key levels of support.
The Market Session is the hours the market is open. The Market Session only affects the Opening Range Breakout (ORB) option, so it’s important to change these values if you’re trading the ORB and you’re outside of Eastern Standard Time or you’re trading in a foreign exchange.
The ORB is a bonus to the script. When enabled, the indicator will only appear in the first green candle of the day (09:30:00 or 09:30 AM EST or the start time specified in Market Session). When using the ORB, the stop loss is based on the spread of the first candle at the Open. The spread is the difference between the High and Low of the green candle. On 1-day or higher timeframes, the indicator will be the spread of the last (or current) candle.
The output of the indicator is a label overlaying the chart:
1. ATR (14 RMA x2) – This indicated that the stop loss is determined by the ATR. The x2 is the ATR Factor. If ORB is selected, then the first line will show SPREAD, instead of ATR.
2. Capital – This is your total capital or capital at risk.
3. Risk X% of Capital – The amount you’re risking on a % of the Capital. If a Custom Risk Amt is entered, then Risk Amount will be shown in place of Capital and Risk % of Capital.
4. Entry – The current price.
5. Stop Loss – The stop loss price.
6. -1R – The stop loss price and the amount that will be lost of the stop loss is hit.
7. – These are the target prices, or levels where you will want to take profit.
This script is primarily meant for people who are new to active trading and who are looking for a sound risk management strategy based on market volatility . This script can also be used by the more experienced trader who is using a similar system, but also wants to see it applied as an indicator on TradingView. I’m looking forward to maintaining this script and making it better in future revisions. If you want to include or change anything you believe will be a good change or feature, then please contact me in TradingView.
coates moving averages (cma)This indicator uses three moving averages:
2 period low simple ma
2 period high simple ma
9 period least squares ma
The trend is determined by the angle of the moving averages, current close relative the the 9 least squares ma (lsm) and the current close relative to the prior two periods high and low.
When there are consecutive closes inside the prior two candles high and low then a range is signaled:
In ranges the buy zone is between the lowest low and the lowest close of the current range. The sell zone is between the highest high and the highest close. The zones are adjusted as long as the new close is within the prior two candles range:
When price closes above the 2 high ma and the 9 lsm then a bull trend is signaled if all moving averages are angled upward (as seen at #4 in the chart above and #1 the chart below ). If the 9 lsm and / or the 2 low ma continue to angle downward, following a close above the 2 high ma and 9 lsm, then a prolonged range or reversal is expected (#2 in the chart below):
During a bull trend the buy zone is between the 2 low ma and the 9 lsm. The profit target is the 2 high ma:
During dip buying opportunities price should resist closing below the 9 lsm. If there is one close below the 9 lsm then it is a canary in the coalmine that tells us to proceed with caution. This will often signal a range, based on the conditions outlined above. To avoid a prolonged range, or reversal, price needs to immediately react in the direction of the prevailing trend:
If the moving averages are angled down and the most recent close is below the 2 low ma and 9 lsm then trend is fully bearish:
During a bear trend the short zone is between the 2 high ma and 9 lsm. The profit target is the 2 low ma:
When the 2 high ma angles down and the 2 low ma angles up while price closes inside both mas then it indicates a cma squeeze:
Volatility is expected in the direction of the breakout following the squeeze. In this situation traps / shakeouts are common. If there is a wick outside the cma, with a close inside, then it indicates a trap / shakeout. If there is a close outside the 2 high / low ma then it signals a breakout.
A trend is considered balanced when the 9 lsm is roughly equidistant from the 2 low and 2 high mas. If the 9 lsm crosses the 2 high or 2 low ma then it signals exhaustion / imbalance.
For a stop loss I use the prior three periods low, for bull trends, and the prior three periods high for bear trends. I would expect other reliable stops, such as the parabolic sar or bill williams fractal, to be effective as well. The default moving averages should be very effective on all timeframes and assets classes, however this indicator was developed for bitcoin with a focus on higher timeframes such as the 4h, daily and weekly.
As with any other technical indicator there will be bad signals. Proceed with caution and never risk more than you are willing to lose.
ATR Without OutliersIt is an ATR indicator which filters out outliers.
Outliers are values which are higher than the standard deviation of the true range.
It may be better than normal ATR for stop loss, because it does not keep large values after pump or dump.
It is very useful for high volatile markets like crypto markets.
Shares Risk (Long)Ever struggle to know how many shares you should be placing your order with? Risk is different for every person and every stock. This can help.
In the example above, I've added this indicator the the chart.
I then specified:
Risk Amount ($) = $500. (The max amount I'm willing to risk.)
Risk Source = (another indicator) Lower Limit 3 . (See Lower Limits for more details)
Source Risk (%) = 0.0 (The default is 5.0 expecting the Risk Source to be the close.**)
Based upon how much I'm willing to risk, and the price difference between the close and Risk Source , this indicator will show the number of shares to purchase such that if the price drops to the stop level specified, my value loss should be limited to the Risk Amount .
333 shares is the value calculated for this example (latest bar). You can easily see how many shares you need to purchase for the lastest bar as well as track the previous values on the chart and the indicator cursor data.
---
** WARNING: There's no magic here. It's just math. So if you specify another indicator as the source, the values could get a bit strange and if the price is very close to the stop level, the number of shares could be unreasonably high. To help avoid this you can increase the minimum percent.
Tiger's Stop - Objective Stoploss SettingTrading is a lot about risk management too. I created this script to help with setting and moving a proper stop-loss. It plots an area that is a result of adding and subtracting both average true range and something I call "false range".
►The Average True Range is calculated as the candle's high-low. If there is a gap, it is added to complete the result.
►My own False Range just candle bodies. It is calculated as an absolute value of (close-open).
Then, Rolling Moving Average is applied on both ATR and False Range to get an idea of how far the price tends to extend out of pure randomness. The resulting value is multiplied by a Multiplier.
The next step is an addition of the values to the higher part of the candle for short or a lower part of the candle for long. I prefer a special calculation instead of using Highs and Lows because it allows for more precise observation and stop-loss set up for less wicky symbols.
►►►Additional Functions
• Smoothing - applies moving average to candles from which range distance is calculated. This can achieve good smoothness but higher values will lead to using outdated price in the SL area calculation.
• Enable/Disable - if you know the direction you are going to trade in, it is good to disable either Long Stop-Loss Area or Short Stop-Loss Area. Just untick it in the settings.
►►►Actual Using
Before using the script to set your stop-loss, check the historical data and find a similar set-up. Is it engulfing you use as a trigger? Find a different one and see how effective the stop-loss based on the ATR*multiplier was. This will help you to optimize Multiplier value. A picture shows such research for a double top. You should find more similar situations to find an optimal value.
Ultimately, the indicator still gives you relatively a lot of freedom with your stop-loss settings (at least, that is with the default settings). You need to decide how loose stop-loss you want to set. Average True Range is the furthermost part which will make for a very large stop-loss, on the other hand, False Range might be triggered by a villainous wick unnecessarily. The choice should depend on the specific symbol you trade and perhaps, you will learn to set stops regardless of the indicator.
A little trick : 1. You can set the loosest stop-loss and set a TradingView alert for where the tightest stop-loss would be. When alerted, you will get the opportunity to reconsider the trade and take a loss if needs be or exit if a candle closes there. 2. Mostly for cryptocurrencies, you can set the tightest stop-loss to protect yourself from sudden spikes. If the price approaches it slowly enough, you can move the stop-loss to the further part of the channel. This is not the same as moving stop-loss indefinitely with hopes of reversal if you plan it from the beginning and a smaller stop is meant to protect you from spikes that are not always predictable and drive to both directions.
►►►Advantages of trailing stop-loss
I usually stick with my original stop-loss instead of moving to break even. If my entry area was functional support once, it may work again and is, therefore, still a good entry zone. But an alternative used to preserve as much of the profit as possible is trailing.
Trailing is setting a specific value in ticks or a calculation of how to move the stop-loss whenever the price moves in your favor. Tiger's Stop can be used this way. Whenever there is a new value as the candle closes and that value is closer to price than your current stop-loss, you can update it. However, if it moves further from your price, don't change the stop-loss. This can be a little tiresome if you do it manually but should be worth the effort.
I usually start trailing only after the price moves significantly in my favor that allowing it to return to the entry price would not make any sense.
►►►Feedback and optimization
The preview chart is chosen entirely at random and the values are not optimized for any specific symbol. If you opt to use it, let me know which values work for you the best, I'll add it to the description when I update it.
Furthermore, let me know if you think any sort of alerts would be useful with my script.
Good luck!
Anti-Volume Stop Loss multi timeframe [LM]Hello Traders,
I would like to introduce you fork of popular indicator Anti-Volume Stop Loss created by Buff Dormeier and cracked here on tradingview by @Rafka so shout out to him. I have tried to crack it myself as well as I'm big fan of Dormeier's work but it's not easy so really big thanks to Rafka
I have refactored original script and have included multi timeframe setting.
As its shown below you can select higher timeframe to track lower one:
Enjoy!
MA, MATR, ChEx | All in One - 4CR CUPIn trade position setup, we always need to determine the market structure and manage the position sizing in a short period of decision time. Indicators such as moving average, initial stop loss and trailing stop loss are always helpful.
This indicator put all these handy tools into a single toolkit, which includes the following price action and risk management indicators:
MA - Moving Average
MATR - Moving Average less Average True Range
ChEx - Chandelier Exit
This script further enhances the setting so that you can easily customize the indicators.
For both the Moving Averages and the Moving Average less Average True Range , you can pick a type of moving average which suits your analysis style from a list of commonly used moving average formulations: namely, EMA , HMA , RMA, SMA and WMA , where EMA is selected as default.
The Moving Average less Average True Range , MATR, is usually applied as a reference to set the initial stop loss whenever opening a new position.
The abbreviation, MATR, is picked, so that this can serve as a handy reminder of a very good trading framework as elaborates as below:
M – Market Structure
A – Area of Value
T – Trigger
R – Risk Management (aka. Exit Strategy)
ATR Stop PriceSet stop price and add-position price according to the cost and current ATR.
You may set an alert with the condition when the stock price crossing down the Stop Price.
Example:
stock price: $150
volatility multiple: 2
current ATR: $3
stop price = $150 - $3 * 2 = $144
add-position price = $150 + $3 * 2 / 2 = $153
Indicator - ATR Profit Loss - DGHi Traders,
This is an on chart indicator that can be used for setting take profit and stop losses very easily using the Average True Range Indicator (ATR). Using a volatility adjusted TP and SL will allow you to set your targets and losses based on market conditions. In the settings, you are able to adjust how much of a multiplier you require depending on your risk tolerance and strategy. For those that follow the NNFX method, the defult settings are preset to 1xATR TP and 1.5xATR SL.
How to use:
- For longs, 'isLong' box must be ticked, for shorts, this box is unticked
- For longs, green line is TP, red line is SL
- For shorts, red line is TP, green line is SL
Regards,
Dillon Grech
SMA + Trend Strength + Trailing Stop LossThe 'SMA + Trend Strength + Trailing Stop Loss' indicator was designed for swing trading long positions over the course of days/weeks. The benefit of the indicator is to identify areas where the market of a given asset is showing signs of a strong uptrend, divergences, and fear. A 13-bar simple moving average is color coded to four colors based on 5 given conditions at a time, which are represented as a trend meter on the bottom right of the screen. A trailing stop loss indicator is included to secure your profits or limit your loss in case the market reverses on you unexpected. Please use this indicator responsibly with proper risk management, and never rely on the indicator by itself for buy and sell signals.
When the simple moving average color is green, it means that at least 4 of 5 conditions are confirming a move upwards, this is when you can take an entry into a trade based on your entry strategy. As the trend continues, the color will eventually change to yellow signaling a divergence. This is when you can use your exit strategy to find a good point to sell. It is wise not to take new positions when the color is trending yellow.
If the color changes from yellow to orange, that is a warning sign that the trend is about to change or has begun to change. Prices may have already fallen. However, sometimes the color will change from yellow back to green signaling a continuation of the trend. You can either keep holding or take a new position in this instance.
When the color is red, this signals fear in the market, you should stay out of the market at first. However, as the market consolidates and the color starts changing back to orange, this is an opportunity to take a long position at a reasonably low price.
Simple Moving Average (13-Bar) Color Explanation:
The colors change based on 5 market conditions represented in the trend meter.
Green: Strong Uptrend
Yellow: Divergence Present
Orange: Warning
Red: Fear
Trend Meter Explanation:
The trend meter draws 5 arrows indicating bullish or bearish presence.
LL = Lower Lows - Detects when the market is trending with lower lows.
HH = Higher Highs - Detects when the market is trending with higher highs.
MA = SMA Direction - A formula is used to determine the direction of the SMA.
DI = Directional Index - Identifies when upwards momentum is trending.
RSI = Relative Strength Index - Identifies when the RSI is in an uptrend state.
Note: For advanced users, this indicator has a hidden DMI(4, 4, 4) and RSI(14) indicator used to determine the last two conditions. The Directional Index is based on a DI Plus momentum moving average to determine a momentum trend and the RSI trending over 50 will constitute an uptrend signal as below 50 it will point down.
Trailing stop loss:
The trailing stop loss is determined based on the lowest price of the last 8 bars.
A gray step-line is drawn at the suggested stop activation price.
A red step-line is drawn at the suggested stop limit price.
When the price breaches the trailing stop, a red X will appear below the bar.
You can turn each of these features on or off based on your preference. Happy trading!
Percent Drop from Highest HighBuy and hold investors may decide to use trailing stops to protect profits and capital from market crashes, especially during bull markets.
The purpose of this indicator is to hep investors to identify a location to place them. The indicator plots the highest high from 'x' bars ago. It then plots a trailing stop loss 'y' percent below that line.
The indicator enables its users to input different 'x' and 'y' values to observe what they think works best for them in different markets.
Users might choose to pair the indicator with trend confirming indicators, such as moving average cross overs, to determine that the market is trending and not ranging.
There is no magic in this indicator, only maths. Like every indicator, it has no ability to predict anything. Just because the market is doing one thing now, it might do something different later. The past does not equal the present nor the future. Make your own decisions and be responsible for them.
All the best to you and your family.
Chandelier Exit | SAR/Long Only (4CUP)As introduced by StockCharts.com, Chandelier Exit was developed by Charles Le Beau and featured in Alexander Elder's books, this sets a trailing stop-loss based on the Average True Range (ATR).
Chandelier Exit can be formulated as a stop-and-reverse (SAR) or as a traditional trailing stop-loss version shown by Stockcharts.com.
The main difference is that, in SAR version, the indicator is usually formulated in a higher of previous or spot indicator (HPS) for long and lower of previous and spot indicator (LPS) for short position.
This indicator is coded to show both the SAR version and the traditional one shown by Stockcharts.com (for long position) by simply clicking a tick in the Version box.
The ATR multiplier is relaxed to allow non-integer input, like 3.5, 4.25, ... for a greater flexibility to tailor your best-fit exit strategy.
If you find this indicator is useful to you, Star it, Follow, Donate, Like and Share.
Your support is a highly motivation for me.
TimeframeBoxes(DailyBox) With E3Levels - SaeedKhakestar Method*** This is a Repaint Indicator that uses HIGH & LOW of Previous Range in the Custom Period(12H,1D,2D,3D & Weekly) for Trading In the Present with E3 Levels
TimeframeBoxes(DailyBox) With E3Levels - SaeedKhakestar Method
Version 1.00
Created by TWA_TradeWithAmir(TWA_PriceActionTips)
Updated 10/29/2020
Based On SaeedKhakestar Method(Trigger Price Action)
*With Entry Range
*With E3 Levels
*12H,1D,2D,3D & Weekly Boxes
*Entry Range & E3 Levels Belongs to Previous Box
*TRex Method
Stop Loss PanelHere is a label panel that shows the stop-loss number for Long or Short trades based on volatility using average true range and and a mult of that.
Triple ATR multiplier - 3 ATR Values in OneHere you can choose to plot 3 different ATR values in 1 window. I use this indicator to get the values of my stop loss and take profits.
You can change the multiplier value for each ATR Line and the length of the base ATR.
Ty
Stop-Loss order according to Average PenetrationAs a engineer, the view of signal and noise in the book of "Trading for a living"really interests me. For a trader the biggest issue is when should we enter and exit the market. The view of safety range stop loss may help to solve this problem for some beginner and give you a new idea of stoploss for you trade system
Here is the content from Trading for a Living
you may use the slope of a 22-day EMA to define the trend. You need to choose the length of the lookback period for measuring noise level. it has to be long enough to track recent behavior but short enough to be relevant for current trading. A period of 10 to 20 days works well, or we can make our lookback period 100 days or so if we want to average long-term market
if the trend is up, mark all downside penetrations during the look-back period, add their depths, and divide the sum by the number of penetrations。 This gives you the Average Downside Penetration for the selected look back
if today's low is lower than yesterday's, do not move your stop lower since we are only allowed to raise stops on long positions, not lower them
Reverse these rules in downtrends. When a 22-day EMA identifies a downtrend, count all the upside penetrations during the look-back period and find the Average Upside Penetration. Multiply it by a coefficient, starting with two. When you go short, place a stop twice he Average Upside Penetration above the previous day's high. Lower your stop whenever the market makes a lower high, but never raise it.
The important thing when you make an order is to hold your earning during a trending scenario. To avoid stopping loss by the variance in the market and to avoid big loss if the market shift to another direction in a short time.
From the graph there, I select the most recent trend up period in the Bitcoin and adjust the parameters according to this trend.
As you can see, the stop loss is away from the lowest price in bar, so that you will not be forced to exit the trade by small turbulence. You can hold your order and need to worry about missing the trend. But there are always sharp plunges in the uptrend. you can see two cursors on the graphic. The stop loss will help you avoid this plunge.
But in my opinion, this will be the hard stop loss in your trade. Help you to keep profit and avoid big loss. To maximize the profit, you had better to build you own strategy.
When I try to create this indicator, it is found that two rule for this indicator
1. you had better to use it in a clear trend range. Since the stop loss can only be higher in a long condition and lower in a short condition. If you use it in a volatile market., then stop loss doesn’t make any senses.
2. you need to adjust those parameters according to the market and the trend you are in. Some people like to avoid big loss, you can set them this depending on you experience
Last, this is getting from the view in the book, i didn’t do any back test for it. So please be careful to use it and let me know if you have any suggestions or ideas.
[CP]ATR Triple Stop Loss LevelsATR based Triple Stop Loss levels that are plotted on the chart (like moving averages!).
With ATR Levels plotted on the price chart itself, you can better set your volatility based trailing Stop Loss.
Also helps to define the SL when making an entry into a stock.
Note:
This indicator is supposed to be used on Daily and Weekly Charts.
For other timeframes you would need to tweek the default parameters.