SuperTrailThe SuperTrail indicator is similar to the very popular and widely used SuperTrend but it has been improved to use a percentage value instead that helps users to determine the natural trading range of a stock over a period of time, and set stop losses (especially trailing stops) accordingly.
The best way to use it is to find stocks in a steady trend (upwards if you are going long or downwards if you are going short) and keep changing the indicator percentage levels until you identify a percentage that keeps you in the trade for longer without getting stopped out too often. You can then set this value in your trading program, or set an alert within Trading View to notify you if something changes and you need to take an action.
Some stocks might have little volatility and only require an 8% trail. Some might be more volatile and work better with a wider 20% trail. It also depends on your time frame. Shorter time frames are typically shorter stops. Longer time frames work better with wider stop values. The best thing about this tool is that it helps you identify the best optimised stop loss range to set for each individual stock based on its range.
The indicator works on any time frame - minutes to hours to weeks. If you want to hold stocks for a shorter time you might look at the natural range over the last 7 days, medium term the range over the last 3 months, or if you want to hold a stock for a much longer period of time then perhaps look to identify the range over the last 12 months. If you get stopped out of a stock you like, then set an alert, and when the stock moves back up within its range you can decide on whether or not you re-enter.
It is a super simple indicator. As always it is meant only as a visual guide to assist you with your trading and you will get better results by combining it with another indicator like an OBV or RSI. You can check out my Trading View channel to see how I have used it across different stocks and based it on different time periods.
I have also made and uploaded a video to my Trading View account showing how it works and how I use it.
Message me if you would like access.
Trailingstop
SwingArm ATR Trend IndicatorThe general idea of using SwingArms is to provide a visual confirmation of a trend change.
Green for bullish (BUY)
Red for bearish (SELL)
A color-coded system providing an easy way for a novice to understand.
Converted to TradingView based on the work of Jose Azcarate.
I hope you guys enjoy.
Simple Moving Average Double HelixThis one is a mix of colour-coded moving averages and Ichimoku. It features two pairs of SMAs--default values of 9/20 and 50/200. Each SMA will be green when it rises and red when it falls. The spaces between each pair will fill with green or red depending on which line is on top. 9 over 20 or 50 over 200 makes a green cloud; if 9 or 50 falls below, the cloud will switch to green.
There's also the Ichimoku lagging span and a 35-period SMA (grey) that can be used as a trailing stop loss guideline.
Ideal long setup:
9, 20, 50, and 200 SMA are all green
both clouds are green
lagging span is above historic price action
Ideal short setup:
9, 20, 50, and 200 SMA are all red
both clouds are red
lagging span is below historic price action
TradeChartist PowerTracer Pro Backtester™TradeChartist PowerTracer Pro Backtester is the strategy script for backtesting ™TradeChartist PowerTracer Pro for best performance settings which can then be used with ™TradeChartist PowerTrader Pro to plot Trades emulating the backtester and use Alerts (once per bar) on real time price chart.
PowerTracer Backtester includes the following options in the settings.
PowerTracer setting - Power Plot Type - (PowerTracer, Bar-wise Power Holder)
PowerTracer setting - Timeframe Multiplier
PowerTracer setting - Smoothing Factor
Backtester setting - Trade Direction - (Both Longs and Shorts, Only Longs, Only Shorts)
Backtester setting - SL Type (Fixed Stop Loss, Trailing Stop Loss)
Backtester setting - Reference for Trailing SL (Close, High/Low)
Backtester setting - Stop Loss %
Backtester setting - Take Profit %
Backtester setting - Quantity to trade at TP %
Using combinations of the settings, the user can find optimal settings for the asset to deliver lucrative entry and exit signals with high ROI and minimal Drawdown which can then be used on PowerTracer Pro and PowerTrader Pro to plot signals and create alerts to start trading in real-time.
Example charts:
GBP-USD 1hr chart - (2,1,Trailing SL, close, 1,1,25)
BTC-USDT 15m chart - (4,5, Trailing SL, high/low, 3.9,1.2,15)
SPX 1hr chart - (1,3, Trailing SL, high/low, 3, 2, 50)
This backtester needs the following scripts to generate signals and plots on main price chart and for real-time alerts
™TradeChartist PowerTracer Pro
™TradeChartist PowerTrader Pro
===================================================================================================================
This is not a free to use indicator. Get in touch with me (PM me directly if you would like trial access to test the indicator)
Premium Scripts - Trial access and Information
Trial access offered on all Premium scripts.
PM me directly to request trial access to the scripts or for more information.
===================================================================================================================
Trailing Stop LossTrailing stop loss indicator to determine when to exit a position.
Multiple trailing stop loss calculation techniques are implemented:
ATR: Determines stop loss using a gap from recent highest value, that gap is defined by the ATR value and a multiplier
MA: Just a simple moving average used as a stop-loss
Percentage: Uses a percentage of the price
The script also implements alerting to be notified when the stop loss price is reached.
WOMBO COMBO: EMA & VWAP & MACD & BB & STCHello my fellow investors,
After hours of reading, backtesting, and YouTube video watching I discovered that EMA, VWAP, BB, MACD, and STC produce the most consistent results for investment planning. This strategy allows you to pick between the aforementioned indicators or layer them together.
It works on the pricipal of:
1) Always follow the market trend - buy/sell above/below 200EMA
2) Follow corporate investing trends - buy/sell above/below VWAP
3) Apply MACD check - buy--> MACD line above signal line and corssover below histogram \\ sell --> MACD line below signal line and crossover above histogram.
4) Check volitility with price against BB limits upper/Sell or lower/buy
5) When STC crosses about 10 buy and when it drops below 90 sell
6) Exit position when stop loss is triggered or profit target is hit. BB also provides a parameter to exit positions.
This code is the product of many hours of hard work on the part of the greater tradingview community. The credit goes to everyone in the community who has put code out there for the greater good.
Swing trading StrategyThis indicator based on capturing historical swing. It predicts future swing based on historical swing data. This is very useful for short term swing trading and gives best result on 30 minute chart.
Jsa Moving Average [CC]The Jsa Moving Average was created by George R. Arrington, Ph .D. (Stocks & Commodities V. 11:10 (427-431)) and it is an extremely simple formula but has very many great uses. For one thing it acts as support and resistance levels and it also acts like a trailing stop. It gives a wide enough berth during extended up or down trends to let you ride the wave up or down and when it gets close to the price it means that it is a choppy market. Buy when the indicator line is green and sell when it turns red.
Let me know if you would like to see me publish other indicators or if you want something custom done!
Note: I'm republishing this because the original script couldn't be found in searches so this will fix that.
Nikesh Price CycleEvery Script has a pattern and it follows a cyclic movement which results into many small and big swings. We have tried to capture these cyclic pattern. Division line acts here as a pivot point which defines a holistic view of bulls and bear power. Price moving above division line indicates bullish trend and price moving below division line indicates bearish trend. Price scale bar defines trend momentum. when price crosses price scale bar with green scale bar colour it shows we should enter. we will keep on booking our profit on near next fib level. we will exit the trend once price candle crosses linear regression line. for safe entry in case of bulls entry-- price scale bar,linear regression line and mid avg term line should be below price candle. In case of bears entry--price scale bar,linear regression line and mid avg term line should be above price candle.
Nik Price CycleEvery script follow a pattern in their price cycle. This can be defined by division of price cycle. Division line will act as pivot point.Above this bar this any price movement is indication of bullish trend while below this line any price movement is indication of bearish trend. This Nik price signal will give great result in combination of magicsignal which is also one of our developed signal. Although we have included various calculation for analysis purpose in this indicator. i suggest to go in setting and uncheck all channel lines and shapes for getting clear picture of trend and entry point. for more details on how to use this indicator people can message us
ATR Trailing Stop by ceyhunSame coding only coloring and information panel was added.
CDC ATR Trailing Stop V2.1 (2013)
//Barcolor
Green = Trail1 > Trail2 and close > Trail2 and low > Trail2
Blue = Trail1 > Trail2 and close > Trail2 and low < Trail2
Red = Trail2 > Trail1 and close < Trail2 and high < Trail2
Yellow = Trail2 > Trail1 and close < Trail2 and high > Trail2
//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.
ALL-STAR STRATEGY TP-SL-TSHello!
This strategy combines multiple following stop and take profit strategies. Basically, after purchasing depending on the MOST Strategy, with the values you will determine from the settings section;
stop loss with percentage (settings > Manuel Stop Loss Ratio),
sell and take profit if it is at max profit level (settings > Take Profit Ratio),
activate the trailing stop after it exceeds a certain profit rate, and if it has dropped from this value by a certain rate, sell and take profit (settings > Trailing Stop Start Ratio) > (settings > Trailing Stop Ratio)
you can have your transactions done. In addition, the transaction, which is stopped according to the MOST strategy, also goes into a sell state.
The bars that are in the Sell state, switch to the Buy state, enter the trailing stop area, and are in the state of Buy despite the Most are shown in different colors.
Türkçe
Bu strateji birden fazla takip eden stop ve kar al stratejisini birleştirmektedir. Temelde MOST Stratejisine bağlı olarak alım yaptıktan sonra, ayarlar bölümünden belirleyeceğiniz değerler ile;
yüzde ile zarar durdur (ayarlar> Manuel Stop Loss Ratio),
max kar al seviyesine geldiyse sat ve kar al (ayarlar> Take Profit Ratio),
belirli bir kar oranını geçtikten sonra takip eden stop aktif et ve bu değerden belirli bir oranda düştü ise sat ve kar al (ayarlar> Trailing Stop Start Ratio) > (ayarlar> Trailing Stop Ratio)
işlemlerini yaptırabilirsiniz. Bunların yanında, MOST'a göre stop olan işlem de sat durumuna geçer.
Sat durumunda olan, Al durumuna geçen, Takip eden stop alanına giren, Most'a göre al durumunda olduğu halde kar al işleminden sonraki barlar farklı renklerle gösterilmiştir.
TrenderTrender is a popular trailing stop indicator on the Bloomberg system and since I didn't have source code to work with, this is a close approximation of that indicator. Let me know if you spot any discrepancies and I will adjust accordingly.
This indicator is a trailing stop system along with a trend confirmation. When the blue line falls below the black line, that is a confirmation of a down trend and when it rises above the black line, it is a confirmation of an up trend. When the trender line is above the price, then that means the stock is in a general down trend and vice versa. I have color coded the trender line to show you when to buy or sell that stock to keep it easy.
This was a special request so let me know if you want to see more scripts from me or if you want something custom!
Guppy Count Back LineThe Guppy Count Back Line was created by Daryl Guppy and is essentially a trailing stop indicator. I have color coded the indicator to tell you if you should go long or short.
This was a special request so let me know if you would like me to write more scripts for other indicators!
MTF Trailing SL Alerts [QuantNomad]These are alerts for my MTF Trailing SL Strategy.
Entry Long position if all 4 time-frames agree on the long signal.
Exit Long positions when at least 2 time-frames disagree on the long signals.
Entry to Short position if all 4 time-frames agree on Short signal.
Exit from Short positions when at least 2 time-frames disagree on Short signal.
Use "Once Per Bar Close" when creating alerts.
Link to the strategy:
Williams Fractal Trailing StopsUnlike the built-in version, you can configure how many bars it takes to confirm a fractal. This indicator plots all Williams high and low fractals, and a stop line that trails the fractals up and down. Includes long and short stop alerts. You can choose whether the trail flips long-short based on the price being exceeded within a candle or on candle close. This indicator deals only with fractals and doesn't get into the Alligator or anything else.
I've commented it extensively, so that it might be useful for people learning Pinescript. Enjoy!
MTF Trailing SL Strategy [QuantNomad]This is a Multi-Timeframe version of my Trailing SL Strategy.
Few weeks ago I published Trailing SL Strategy. There I used only basic Trailing SL to enter positions.
It worked pretty well so I tried to work on it a bit. I thought what if you can use the same ATR TSL on different timeframes and combine them into one signal.
In this strategy you can use only ATR stops and choose 3 other higher timeframes in addition to your current timeframe.
You'll see Trailing SL plotted on the chart form all these timeframes.
Entry Long position if all 4 time-frames agree on long signal.
Exit Long positions when at least 2 time-frames disagree on long signal.
Entry to Short position if all 4 time-frames agree on Short signal.
Exit from Short positions when at least 2 time-frames disagree on Short signal.
Here is the link to my basic Trailing SL Strategy:
XPloRR S&P500 Stock Market Crash Detection Strategy v2XPloRR S&P500 Stock Market Crash Detection Strategy v2
Long-Term Trailing-Stop strategy detecting S&P500 Stock Market Crashes/Corrections and showing Volatility as warning signal for upcoming crashes
Detecting or avoiding stock market crashes seems to be the 'Holy Grail' of strategies.
Since none of the strategies that I tested can beat the long term Buy&Hold strategy, the purpose was to detect a stock market crash on the S&P500 and step out in time to minimize losses and beat the Buy&Hold strategy. So beat the Buy&Hold strategy with around 10 trades. 100% capitalize sold trade into new trade.
With the default parameters the strategy generates 10262% profit (starting at 01/01/1962 until release date), with 10 closed trades, 100% profitable, while the Buy&Hold strategy only generates 3633% profit, so this strategy beats the Buy&Hold strategy by 2.82 times !
Also the strategy detects all major S&P500 stock market crashes and corrections since 1962 depending on the Trailing Stop Smoothness parameter, and steps out in time to cut losses and steps in again after the bottom has been reached. The 5 major crashes/corrections of 1987, 1990, 2001, 2008 and 2010 were successfully detected with the default parameters.
The script was first released on November 03 2019 and detected the Corona Crash on March 04 2020 with a Volatility crash-alert and a Sell crash-alert.
I have also created an Alerter Study Script based on the engine of this script, which generates Buy, Sell and Volatility signals.
If you are interested in this Alerter version script, please drop me a mail.
The script shows a lot of graphical information:
the Close value is shown in light-green. When the Close value is temporarily lower than the Buy value, the Close value is shown in light-red. This way it is possible to evaluate the virtual losses during the current trade.
the Trailing Stop value is shown in dark-green. When the Sell value is lower than the Buy value, the last color of the trade will be red (best viewed when zoomed)
the EMA and SMA values for both Buy and Sell signals are shown as colored graphs
the Buy signals are labeled in blue and the Sell signals are labeled in purple
the Volatility is shown below in green and red. The Alert Threshold (red) is default set to 2 (see Volatility Threshold parameter below)
How to use this Strategy?
Select the SPX (S&P500) graph and add this script to the graph.
Look in the strategy tester overview to optimize the values Percent Profitable and Net Profit (using the strategy settings icon, you can increase/decrease the parameters), then keep using these parameters for future Buy/Sell signals on the S&P500.
More trades don't necessarily generate more overall profit. It is important to detect only the major crashes and avoid closing trades on the smaller corrections. Bearing the smaller corrections generates a higher profit.
Watch out for the Volatility Alerts generated at the bottom (red). The Threshold can by changed by the Volatility Threshold parameter (default=2% ATR). In almost all crashes/corrections there is an alert ahead of the crash.
Although the signal doesn't predict the exact timing of the crash/correction, it is a clear warning signal that bearish times are ahead!
The correction in December 2018 was not a major crash but there was already a red Volatility warning alert. If the Volatility Alert repeats the next weeks/months, chances are higher that a bigger crash or correction is near. As can be seen in the graphic, the deeper the crash is, the higher and wider the red Volatility signal goes. So keep an eye on the red flag!
Here are the parameters:
Fast MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 10-20)
Slow MA Buy: buy trigger when Fast MA Buy crosses over the Slow MA Buy value (use values between 21-50)
Minimum Buy Strength: minimum upward trend value of the Fast MA Buy value (directional coefficient)(use values between 10-100)
Fast MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 10-20)
Slow MA Sell: sell trigger when Fast MA Sell crosses under the Slow MA Sell value (use values between 21-50)
Minimum Sell Strength: minimum downward trend value of the Fast MA Sell value (directional coefficient)(use values between 10-100)
Trailing Stop ATR: trailing stop % distance from the smoothed Close value (use values between 2-20)
Trailing Stop Smoothness: MA value for smoothing out the Trailing Stop close value
Buy On Start Date: force Buy on start date even without Buy signal (default: true)
Sell On End Date: force Sell on end date even without Sell signal (default: true)
Volatility EMA Period: MA value of the Volatility value (default 15)
Volatility Threshold: Threshold value to change volatility graph to red (default 2)
Volatility Graph Scaler: Scaling of the volatility graph (default 5)
Important : optimizing and using these parameters is no guarantee for future winning trades!
Reticulata Enhanced - StudyBuilding on our core script - Reticulata, the enhanced version features several requested extras to give you more flexibility with your trading style.
What is Reticulata Enhanced?
The Reticulata core leverages a blend of MA/RSI strategies mixed with the BBB optimised logic for risk management. This enhanced version takes it a step further with additional risk management features:
Trailing Stop
Fixed Stop
Fixed Stop, but move at TP
Trend confirmation
Usage
Using the indicator is as simple as:
1. Select the strategy, or combination of strategies you want to use
2. If desired, select one or more of the available trend filters
3. Adjust your stop options
4. Review backtest results
Markets
Like the core, the enhanced algo also supports a range of markets and timeframes, including the majors ( EURUSD , etc...) in Forex and a variety of Cryptocurrencies including Bitcoin (BTC/XBT etc...).
All of our scripts are designed for manual traders but are ready to use with automated trading bots.
PM us to obtain access.
Trailing SL Alerts [QuantNomad]It's alerts version of my Trailing SL strategy:
Use "Once Per Bar" param when creating alerts.
Easy Loot Trailing Stop Bot - (PSAR) StrategyHello World,
Today I am bringing you a Parabolic Stop and Reverse Strategy that uses a 5% trailing stop loss.
Tested the strategy on the 1D timeframe of Bitcoin from the time period starting from 2018 onwards.
As you may know the price in the start of 2018 for Bitcoin was around $11,000 meaning if you bought and HODL'd since then you'd be down a good %, as current price is $8650.
Below is the strategy testing results, up 844% profits in the last two years.
Easy Loot Members Only, contact me if you'd like access to the strategy.
Parabolic Stop and Reverse (PSAR) Strategy
Parabolic SAR is a time and price technical analysis tool primarily used to identify points of potential stops and reverses. In fact, the SAR in Parabolic SAR stands for "Stop and Reverse". The indicator's calculations create a parabola which is located below price during a Bullish Trend and above Price during a Bearish Trend.
Trailing Stop Loss
A trailing stop-loss order is a special type of trade order where the stop-loss price is not set at a single, absolute dollar amount, but instead is set at a certain percentage or a certain dollar amount below the market price.
WMA + MACD strategy with trailing stopHi!
That's my first strategy. I already learn pine, so i will work on it more. Now i search how to make trailing stop working.
"WMA + MACD strategy with traiing stop" is very simple strategy which is designated for stocks market. It is created only to take long positions.
Buy signal is when WMA(120) is below price and macd(10,20,10) histogram is higher than 0.
Position should be automaticly closed when price hits stoploss level.
One transaction should be max 20% of our capital and stoploss is set 3% lower than last closing price.
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.