Moving Stop Loss (Most) by ceyhunATR is an indicator that has been removed and replaced with a moving average.Bar colors and infopanel have been added.
//Barcolor
Green = ExMov > Most and close > Most and low > Most
Blue = ExMov > Most and close > Most and low < Most
Red = Most > ExMov and close < Most and high < Most
Yellow = Most > ExMov and close < Most and high > Most
//It gives White color where there is deterioration.
//InfoPanel
Buy Price = Blue draws the circles at the purchase price.
Profit Long>20 = Risk level taken as a percentage, I got the highest 20%, you can determine as you wish.
Sell Price = Red draws the circles at the purchase price.
Profit Short>20 = Risk level taken as a percentage, I got the highest 20%, you can determine as you wish.
==Atr Original Code==
CDC ATR Trailing Stop V2.1 (2013)
==Most Code==
MOST by Anıl ÖZEKŞİ
Barcolor
Barcolor
Stoploss
2% StopThis indicator is simply based on the 2% rule, you must insert the entry point (the price at what you bought) by clicking the gear on the top left.
If you see the chart different is becouse the default entry is set to 1 and but it fixes if you set the proper entry price.
a little bit about the 2% rule :
Following the 2% Rule will keep any loss in your account to a rela-
tively small, livable size.
The 2% Rule prohibits you from risking more than 2% of your account
equity on any single trade.
This Rule does
not limit your position size—it only limits your risk.
Of course, if you are planning to hold your position down to zero,
then its maximum size would have to be capped at 2%. On the
other hand, if you do a much more sensible thing and use a stop, your
risk per share will decrease, and your permitted size will increase.
The distance from your entry price to the stop level defines your
maximum dollar risk per coin.
The 2% Rule defines your maximum risk for the entire position.
Knowing the risk per share and the total permitted risk makes it
easy to calculate the maximum number of coins /shares you may trade.
Credit about this idea goes to Dr Elder Alexander.
High/Low stopFirst of all let me quote some important points :
• You need stops; a trade without a stop is a gamble.
• You need to know where you’ll put your stop before you enter
a trade.
• Everybody needs hard stops.
• Whenever you change a stop, you may move it only in the direc-
tion of the trade.
There is a variety of techniques available to traders who like to use
trailing stops:
• You can use a multibar low as a trailing stop; for example, you
can keep moving your stop to the lowest low of the last three
bars (but never against your trade).
• You can trail prices with a very short moving average and use its
level for a trailing stop.
• You can use a Chandelier stop—every time the market makes a
new high, move the stop within a certain distance from the top—
either a specific price range or a number based on an ATR (aver-
age true range). Any time your stock makes a new high, you place
your stop within that distance from the top, like hanging a chan-
delier (this method is described in Come into My Trading Room).
• You can use a Parabolic stop .
• You can use a SafeZone stop .
• You can use a Volatility-Drop stop (described below, for the first
time in trading literature).
• You can use a Time Stop to get out of your trade if it does not
move within a certain time. For example, if you enter a day-trade
and the stock does not move within 10 or 15 minutes, it is clearly
not doing what you expected and it is best to scratch that trade.
If you put on a swing trade which you expect to last several
days, but then a week goes by and the stock is still flat, it is
clearly not confirming your analysis and the safest action would
be to get out.
This is a summary taken from Dr Elder book and this indicator i coded from one of his book where he briefly mention this trailing stop technique but don't dive a lot into it, but still i found to be very effective.
You can use even the short stop (the green dots) as an entry point.
Pivot Point SuperTrend [Backtest]Hello All,
This is backtesting result of following indicator/strategy. I didn't work on adding other indicators. maybe in the future I can try to combine this with other indicators.
You can visit following link to see "Pivot Point SuperTrend" . by using this backtesting tool, you can test&find better options
There is option "Use Center Line to Close Entry for 50%" . by default it's not enabled. if you enable this option, pivot point center line may push you to close your entry for 50% (can be used as early stoploss/take profit line if you think it's risky)
Enjoy!
ST0PST0P is a kind of a TRAILING STOP LOSS INDICATOR in which users can set up LONG or SHORT trade versions and also can set up a STOP LOSS level by percent % or unit difference.
It tries to solve the problem of stop loss indicators' default BUY or SELL settings and non adjustable stop levels of % and difference change in price levels.
(Will try to make updates to add user defined start bars.)
Kıvanç Özbilgiç
Moving Average profit targets with var sizeProfit target:
Profit targets are those scenarios where the system expects to be greater than the actual return at the end of the transaction: they may be short-term benefits, such as a favorable price shock model.
In short-term transactions, profit objectives are essential. Price fluctuations make any favorable event likely to turn around in an instant. Moreover, profit objectives are more difficult to integrate into the longer-term trading system, because they are afraid of losing larger profits at risk, so they will replace them with smaller but more frequent gains. As a follower of the trend, once you make a profit and stop earning, but the trend direction is still intact, you need to find a way to re-enter the transaction to avoid losing the rare but very large market situation.
Profit target is best calculated based on price volatility (V), and the most commonly used method:
For Long, the system buy point (E), needs to be multiplied by the average true volatility or annualized volatility :E+f×V.
The net value multiplier f used to calculate the profit level is usually obtained through data mining.
GMS: Mean Reversion StrategyThis is based on my GMS: Mean Reversion Indicator ()
Features:
- % Based Profit Target and Stop Loss
- SMA Trend Filter
- Can choose trade exit based off a moving average or linear regression curve
- Filter for long only trades, short only trades, or both at the same time.
Source code is open, so feel free to take a look!
I hope it helps,
Andre
RSI and Smoothed RSI Bull Div Strategy [BigBitsIO]This strategy focuses on finding a low RSI value, then targeting a low Smoothed RSI value while the price is below the low RSI in the lookback period to trigger a buy signal.
Features Take Profit, Stop Loss, and Plot Target inputs. As well as many inputs to manage how the RSI and Smoothed RSI are configured within the strategy.
Explanation of all the inputs
Take Profit %: % change in price from position entry where strategy takes profit
Stop Loss %: % change in price from position entry where strategy stops losses
RSI Lookback Period: # of candles used to calculate RSI
Buy Below Lowest Low In RSI Divergence Lookback Target %: % change in price from lowest RSI candle in divergence lookback if set
Source of Buy Below Target Price: Source of price (close, open, high, low, etc..) used to calculated buy below %
Smoothed RSI Lookback Period: # of candles used to calculate RSI
RSI Currently Below: Value the current RSI must be below to trigger a buy
RSI Divergence Lookback Period: # of candles used to lookback for lowest RSI in the divergence lookback period
RSI Lowest In Divergence Lookback Currently Below: Require the lowest RSI in the divergence lookback to be below this value
RSI Sell Above: If take profit or stop loss is not hit, the position will sell when RSI rises above this value
Minimum SRSI Downtrend Length: Require that the downtrend length of the SRSI be this value or higher to trigger a buy
Smoothed RSI Currently Below: Value the current SRSI must be below to trigger a buy
Trailing SL Alerts [QuantNomad]It's alerts version of my Trailing SL strategy:
Use "Once Per Bar" param when creating alerts.
Profit and Stoploss CalculatorThis script is designed to display three stop loss areas to assist either with automation of risk management or identify and alert when price is in a range of a trade for risk to reward ratio.
In this version there are three stop losses and 1 PT. Mainly because i will most likely only be using 1 of the SL to pair with the PT.
Stoploss areas are displayed on both sides of the price for long and short calculations along with the two profit factors but the settings in the indicator it self apply to both sides in terms of percentage.
Trailing SL Strategy [QuantNomad]I'm a big fan of simple strategies.
This one is a very simple one. So it consists only from one Trailing SL. When SL is hit, the position is reversed and SL is tracked for a new position.
You can choose one of 3 types of SL:
% of your price
ATR - it is calculated as current ATR * multiplier
Absolute
As you can see even this simple strategy can show pretty good results.
ATR based Stop and Take-Profit levels in realtime Little tool to quickly identify stops and take-profit levels based on Average True Range. User can change ATR multipiers, as well as the ATR length used. Green and red lines show these levels; plot is visible over last 8 bars only to reduce clutter. Label showing the current ATR, up above the last bar
Trend TrailingAndrew Abraham
It can be used as:
- stop loss indicator
- indicator of support and resistance
- buy and sell signals
Trailing Stop Loss ATR + AlertI share this TSL indicator with alert (I use it only for Stocks), the configuration is very simple, you must select if it is a Short or Long operation, time at which the operation was opened,% of the daily ATR for TSL. It also contains:
- Alert
- Panel Info
Calculator (weighted) - evoA tool to calculate the average price and position size.
The "Risk Amount" input means the amount of dollars you lose if the trade gets stopped out (it should be based on a small percentage of your account).
TIPS
- If you use the weights to calculate an average price, make sure it adds up to 100% in total or you will get a weird number.
- Keep an eye on the risk amount if you take a trade, if I ever update the script it might set back to default which will change your position size.
- I tested it all but you might trade in a different way than me, so do your own calculation for every new thing you try with it.
If you find any bug please tell me so that no one ends up with a weird calculation or position size.
BEST Trailing Stop StrategyHello traders
Here we go again.... with the second strategy snippet.
Reminder: the first snipper was a Trailing Profit strategy script
What's on the menu?
A trailing stop is designed to protect gains by enabling a trade to remain open and continue to profit as long as the price is moving in the investor's favor.
The order closes the trade if the price changes direction by a specified percentage or dollar amount.
Trigger me I'm famous
I developed many trading strategies in my career and often I've been asked to trigger a trailing-stop once a certain % move has been made.
On the screenshot below, the SL trigger is plotted in maroon.
Once the price goes past that level for the first time, I'll start trailing the trailing stop level.
In other words, when we see a price makes an interesting move in percentage value - we decide to trail the stop for at least not losing any more
All the BEST
Dave
Maximum True RamgePlots the the highest true range for the entire dataset.
Beneficial for determine an emergency stopp loss.
Guppy CBLThis is the Count Back Line script from the book Guppy Trading by Daryl Guppy.
It is usually used as a stop loss line, but can also be used to find entries.
Hope someone finds it usefull, if you find anything that is wrong with it, please let me know and I will try to fix it.
This is my first PineScript, hope it is working as intended.
Market Adaptive Stop-LossI realized that the zone changes in the stoploss remained slow, so I couldn't make enough use of the characteristics of technical indicators when opening positions.
This pushed me to keep stop-loss under the influence of a dependent variable.
This script helped me a lot (everget) :
I've redesigned the stop-loss to be affected by intersections.
Therefore, this script is also suitable for adaptive moving averages, fractional periods.
Script features:
1.You can select calculation methods created by using various technical analysis methods from the scripts' settings:
-Moving Average Convergence Divergence ( Macd )
-Stochastic Oscillator ( Stoch )
-Stochastic Relative Strength Index (StochRSI)
-Stochastic Money Flow Index (StochMFI ) (More info : )
-Know Sure Thing ( KST )
-OBV ( On Balance Volume )
-SMA ( Simple Moving Average )
-EMA ( Exponential Moving Average )
-FISHERTRANSFORM ( Fisher Transform )
-AWESOMEOSCILLATOR( Awesome Oscillator )
-PSAR ( Parabolic Stop and Reverse - Parabolic SAR )
-HULLMA( Hull Moving Average )
-VWMA ( Volume Weighted Moving Average )
-RMA (Moving Average using in Relative Strength Index calculations.)
-COG (Center of Gravity )
-ACC-DIST ( Accumulation / Distribution Index )
2 - The region is determined according to the above calculation methods and if it is larger or smaller than the previous stop loss level.
And if the price in the negative zone is lower than the stoploss, it is the exact signal and is shown with more highlighted colors.
And, in the positive zone, where the price is greater than the stoploss, the trade zones are certain.
Shown with more highlighted colors.
If the zones are correct but stop-loss is not suitable for opening positions:
In other words, if the stop-loss is above/under the highest-lowest levels in the positive zone or if the stop loss is located in the lower zone in the negative zone, these zones are shown to be darker and dimmed so that they do not cause false movements.
*** SUMMARY : As a result, you can use this script with support and resistances,and trend lines to get good results.
I hope it helps in your analyzes. Best regards.
Experimental Entry Interface (Buy Arrows with TP & SL)This script provides high probability entry points and includes Take Profit and Stop Loss targets.
It attempts to predict when the market conditions are set to move up, and prints long positions.
In addition to Long Entry Arrows, it will print Take Profit / Stop Loss targets.
This indicator is highly adjustable. Hence the name 'Experimental' in the title. Experiment with it to find the results you want.
Designed for use on the 1H timeframe in Forex, but could possibly be useful elsewhere. Do your own testing.
This indicator can repaint. It is best used with alerts set for once per bar close, so that your alerts do not repaint and your trades are solid.
Not ever signal is a winner. Backtest thoroughly. Adjust accordingly.
Arrows
Four sets of colored arrows are included.
💵 💶 Green and Blue Entry Arrows are formed when the market is in an uptrend, and has a momentary pullback.
💴 💷 Yellow and Purple Entry Arrows are formed when the market is just starting to recover from being severely oversold.
Backtest Mode
Turn on Backtest Mode to easily see if an entry ended up as a winner or loser. A Take Profit and Stop Loss line will be drawn to show results.
Take Profit & Stop Loss Targets
You have two options for this.
Price will show you where your TP/SL exits should be placed. These values will show up under the arrow, based on your Risk/Reward ratio.
Pips are much more simple, and will only show you the market entry point and how many pips up/down to place your SL/TP. Warning: This is fixed at a 1:1 RRR .
Risk/Reward Adjustment
Each entry arrow color allows custom risk/reward ratio adjustment.
Dollar Amounts Displayed
Change your account value and leverage to see how much you would have won on each trade.
How to trade with it?
(Forex, 1H) Open the settings, and turn on all the arrow entries. Turn on Backtest mode to see how past trades would have played out. Turn on TakeProfit/StopLoss Targets to see where to set your targets, for each arrow. Set an alert to notify you once per candle close when there is an Entry. Trade happy!
Bill Williams Alligators are also included, if you want. Not necessary though. Some of the calculations depend on them for trend direction analysis.
Scripting Tutorial A - TManyMA - StopsThis script is for a triple moving average strategy where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually.
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish, bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter. Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
- Converted the existing study into a strategy.
- Strategy only enters long positions with a market order when MA crossovers occur.
- Strategy exits positions when crossunders occur.
- Trades 100% of the equity with one order/position by default.
- Ability to disable trading certain crosses with input checks.
- Ability to exit trades with a take profit or stop loss.
- User input to allow quick changes to the take profit or stop loss percentages.
This script is meant as an educational script with well-formatted styling, and references for specific functions.
*** PLEASE NOTE - THIS STRATEGY IS MEANT FOR LEARNING PURPOSES. DEPENDING ON IT'S CONFIGURATION IT MAY OR MAY NOT BE USEFUL FOR ACTUAL TRADING. THE STRATEGY IS NOT FINANCIAL ADVICE ***
Average True Range Multiplied (Volatility Stop)Plots crosses above and below the current price giving you the ability to quickly set your stop loss (or the 1st profit target) depending on a custom variable by which the average true range is multiplied with the option to specify the length as well as the type of the moving average (RMA, SMA, EMA or WMA) that are taking into account.
Optionally, you can disable showing of the crosses on the chart and just let the indicator display the calculated value by itself.