Kahlman HullMA / WT Cross StrategyA strategy created using Hull Moving Average and WT Cross .
Hull Moving Average turns green and WT Cross crossover this is a long. Otherwise short.
Stop Loss and Take Profit settings are available. You can set it to the level you want or turn it off.
According to my measurements, it shows the best performance in the 4-hour period. But you can find the best settings that are correct from the Strategy settings.
Trailingstop
Pivot Based Trailing Maxima & Minima [LuxAlgo]This indicator returns trailing maximums/minimums and the resulting average, each resetting on the occurrence of a pivot point high/low, thus allowing to highlight past and current support and resistance levels.
Note that the user has the option to make the indicator subject to backpainting or not. Backpainting would offset the indicator output to the past and as such would be less suited for real-time applications.
🔶 USAGE
🔹 Non Backpainting
The indicator can highlight points of support and resistance given by the trailing maximum/minimum average.
An uptrend is indicated when the trailing maximum is making a new higher high, while a downtrend is indicated when the trailing minimum makes a new lower low.
🔹 Backpainting
When backpainting is enabled the historical trailing maximum/minimum and their resulting average are offset to the past. However, we extend these to the most recent bar, allowing for real-time applications of the indicator.
Users can easily analyze past trends and determine their type by observing the trailing maximum/minimum behavior. For example, trailing maximums/minimums not making new higher high/lower low would indicate a ranging market.
The frequency of new higher high/lower low can also help determine how bullish/bearish a trend was.
🔶 SETTINGS
Length: Determines the pivot high/low lookback, with higher values allowing to detect longer-term tops and bottoms.
Backpaint: Determine if the indicator is subject to backpainting. Enabling this setting would offset the returned results in the past.
Trading Assistant DiNGUETrading Assistant DiNGUE This indicator is like a trading assistant for your charts.
It helps set your biases and emotions aside and lets you focus on managing trades in an easy visual way.
Get various types of signals to enter your trades (either Long or Short). Then use take profits, stops, or the opposite signal to exit trades.
The signals are created from various indicators and sensibility options you can customize any way you want. Works on every timeframe.
You can customize every setting or used the preset ones. Preset settings adjust automatically based on the timeframe you are using on the chart.
The 12 Indicators are Volume - RSI - Stochastic - MacD - Moving Averages (MA) - Rate of Change (ROC) - ADX DMI Directional Movement Index - On Balance Volume (OBV) - Bollinger Bands - VWAP - ATR - Parabolic SAR.
Every indicator can be turned On or Off.
You can adjust the way it creates signals by selecting either 'rise-fall', 'crosses' or by combining both.
You can select the sensitivity of the signal from Normal - Safe - Safer.
You can adjust lengths or use the preset ones.
There are also additional options for each indicator, you can filter weak levels for ADX, filter for tight bands, have ROC above 0…
You can also plot several of those indicators on the screen. 2x Moving Averages, 2x VWAP, 2x ATR, 2x SAR for even easier visualization of the trend.
You can also plot fractals to facilitate once again on trend visualization. Higher high, lower low, higher low, lower high.
Trade with the Trend and Safe Trades:
If you want to have a higher chance of success, you can trade with the trend. First, select the trend timeframe you would like to use. Let's say the “Weekly” trend. Meaning it will generate a signal on the weekly timeframe and based on the result (Long or Short) it will only take trades in that direction. So the trend is LONG on the Weekly and you get a “Long” signal, it will take it. “Short” signals on the other hand will be treated as “stops” and won’t want to go against the trend by going ‘short’.
Safe Trend works in the same manner, but instead of using the signal on a bigger timeframe, it uses an indicator as to the deciding factor. Let's say you select the 200SMA as the “Safe signal”. The indicator will only go “Long” when above the 200SMA and “Short” under the 200SMA. Otherwise, it will put a stop instead of going against the trend.
Stop Loss:
There are 4 different types of stop-loss that you can use at the same time.
- Indicator Stop
- Fib stop
- Fix % stop
- Trailing stop
You can plot the stops directly on the chart AND OR add them to the panel for an easy visualization once again.
With the ‘indicator stop’, you can select one of the two: MA ATR SAR VWAP as a stop.
Fib stop, it uses fib numbers to calculate a stopping point.
Fix %, you can select your max loss in percent. Could be 2%, 5%
A trailing stop is like a fixed stop but that will trail as the price moves in the right direction.
Take Profit:
There are 4 different types of take profit that you can use simultaneously.
- Fix % Take Profit
- ATR multiple Take Profit
- Fib multiple Take Profit
- Bollinger Band Take Profit
Fix % just let you set a fix take profit target in percent.
ATR multiple lets you select a target based on a multiple of the average true range.
Fib multiple lets you select a target based on a fib multiple
Bolling Band lets you take profit based on the Bollinger band settings you select.
Visual Panel:
The visual panel lets you see exactly how is the last trade progressing. It will give you the entry price, profit, stop, and target. You can turn it on or off, as is for the stop and target.
You can also decide to plot 1 position or more, you can even show all the possible signals, add backgrounds with colors. You can also plot the bigger Trend and Safe Signals explained above.
If you have any questions, suggestions, or comments, feel free to do so!
FUTURES ScalpV2 PROTECHFUTURES ScalpV2 PROTECH system
This indicator is built specifically for fast trading i.e. scalping/intraday in the commodity market or futures market. It uses an indicator instrument consisting of ATR TRAILING STOP (ATR), EXPONENTIAL MOVING AVERAGE, PIVOT POINT, and FIBONACCI.
Rebuild of Instrument & Parameter
This indicator is also an upgraded instrument that is sourced from the previous indicator, the COMPLETELY FCPO INDICATOR.
This R&D of course to make trading activities more effective, dynamic and to increase the confidence of traders in current trading activities. The indicator has been upgraded in terms of parameters as well as additional instruments. Among them are;
1. ATR Trailing Stop
2. Exponential Moving Average – fastMA/slowMA Length
3. Label@Entry Price/Stoploss/Takeprofit line
>The best timeframe is 3 minutes
>The take profit and stop loss rates are based on percentages. However
traders can change the percentage rate according to their respective
trading plans.
>existing percentage rates have been set(build-in) specifically for the FCPO
market. So you have to reset for other markets.
>The candle/bars have been colored to make it easier for traders to see price
trends whether in bullish or bearish conditions.
The original instrument has been retained but changed in terms of display & facelift features.
The original indicator (COMPLETELY FCPO INDICATOR) still remains in use and can used together. Hopefully with the combination of these indicators will make traders more successful in trading activities, especially in the futures market.
DISCLAIMER;
ALL NOTES AND INDICATING TOOLS ARE FOR EDUCATIONAL ONLY AND AS A FACILITATOR AND PREPARATION IN TRADING ACTIVITIES. ADMIN IS NOT RESPONSIBLE FOR ANY RISKS IN YOUR TRADING ACTIVITIES. TAKE AT YOUR OWN RISK.
FunTrader/Aieyee @2022
Trend Step - TrailingTrend Step - Trailing Stop is a moving average-based trailing stop that moves in pre-defined steps. In this way, the user can set the number of pips/points they want the trailing to move in relation to the movements in the average. You can also see it as trend steps. Every step represents the trend movement.
Usage
Use it as a trailing stop or as a trend direction tool.
Disclaimer: No financial advice, only for educational/entertainment purposes.
3D Trailing Stop3D Trailing Stop is an indicator designed to keep you in trend trades and let you know when it may be a good time to exit. It's calculation is based on the Trend, Volatility and Volume pattern of the instrument. Instead of most trailing stops which are based on 1 measurement, it's based on 3 measurements, hence it's name 3D Trailing Stop, which is short for 3-Dimensional.
For example when looking at a long-only trade, the more up days and the more volume on those up days, the wider the trailing stop will be. However when the trend changes, and there's more down days with more volume then the trailing stop will tighten. The idea is to try and keep us in good trends for longer and get out of reversing trends earlier.
The default distance the trailing stop will be from the EMA (5) is always a multiple of 1.5 - 3x the ATR (21) and all of these settings are changeable by the user. To change the trailing stop from the default long trend to short trend change the ATR Offset setting from - to +. If you wish to display both a long and short trailing stop, simply add the indicator again to your chart with the ATR Offset + setting enabled. The indicator also shows how far the trailing stop price is from the last price, expressed as a % on the chart so you can easily see how far away the trailing stop is.
There are a few ways it can be used, for example one may wish to enter on a 50 or 100 bar high/low breakout and use the 3D Trailing Stop as a indicator when to get out of the trade. You could exit once price goes below the trailing stop, or use the previous bar trailing stop value as the level for a quicker exit.
This indicator can be used on any market and any timeframe, for both long and short trades. We have found it to work best on stocks long-only using the daily timeframe as stocks tend to have good up-trends over time. You could also use it on smaller timeframes in conjunction with other indicators and signals to enhance your win rate.
To get access PM or email me to my address shown below.
Enjoy :)
Disclaimer: All my scripts and content are for educational purposes only. I'm not a financial advisor and do not give personal finance advice. Past performance is no guarantee of future performance. Please trade at your own risk.
Heikin Ashi Trailing Stoploss ActivationThe Basics
This indicator should be used on regular candle sticks. It is possible to trigger an alert, when the block flips from red to green bar. Or vice versa.
Red block represents a red Heikin Ashi candle.
Green block for green Heikin Ashi candle.
It can be used as a trailing stoploss for (DCA/ TV) bots, when riding trends.
What Makes It Different
The user can preset the price (of the asset e.g. BTC), where it will start looking for Heikin Ashi flips. Every Heikin Ashi flip before this preset price will be ignored. Preset prices could be chosen tactically at resistance levels.
Different time frames of Heikin Ashi flips can be used together. E.g. 10 min, 3 hour or 2 Day time frames. If this is possible within your Tradingview subscription.
Example
The user has a long position (bought at the green arrow.) The user wants to start trailing at price 88 USDT (blue line).
The indicator will only trigger when the following conditions are met:
Cross of red block on the indicator (representing red Heikin Ashi candle)
Price has crossed 88 USDT
If the candlestick turns from a green to a red block, before crossing 88 USDT. It will NOT trigger the alert. Visible as the orange down arrows. In the indicator below it is displayed as a red block.The alert will go off at the red down arrow on 10th Nov (if chosen for Once per bar close). The price condition of 88 USDT was already met at 7th Nov.
Final Words
Disclaimer: Please use it with care and at own risk. The owner of this indicator is not liable for any financial losses.
Past performance is no guarantee of future returns.
Trailing Stop AlertsThis script is designed as an ATR-based trailing stop tool to assist in managing open positions.
Once you're involved in a profitable trade, if you add this script to your chart you'll be prompted to select a bar to begin trailing from.
You can then adjust the candle lookback distance for swing high/lows (7 by default), the ATR multiplier (1.0 by default), and the direction to trail (Long/Short).
You can also adjust the ATR period in the settings menu if you want to (14 period by default).
Once the script is added to your chart, it will begin drawing your trailing stop and you can then set up alerts.
Alert Options:
Any alert() function call : Will trigger an alert for both conditions (trailing stop updated, trailing stop hit)
Alert Conditions : Trailing Stop Update will trigger whenever the stop is updated, Trailing Stop Hit will trigger whenever the stop is hit.
Note: the alerts will only fire once per bar close and the trailing stop will not update on realtime bars.
Trailing Stoploss Bottom ActivationThe Basics
The indicator is visible on the chart as circles above and below the bar.
It will trigger an alert when the current price goes below, the low of the previous candle.
Or an alert when current price goes above, the high of the previous candle.
The indicator can be used as a trailing stoploss for (DCA/ TV) bots.
The distance between the circles and candlesticks can be adjusted. If the user prefers to set an alert e.g. a few ticks lower than the candle bottom.
What Makes It Different
The user can preset the price (of the asset e.g. BTC), where it will start looking for the condition: current price is below previous candle low (when in long position). Current price is above previous candle high (when short).
Example
In the chart above MATIC/BUSD the user has drawn a blue line at 1.70. Since there is where he expects resistance.
The user has a long position (bought at the green arrow.) The user wants to start trailing at price 1.70.
The alert will only trigger when the following conditions are met:
Condition 1 - Crossed 1.70
Condition 2 - Current candle price is below previous candle low.
In the chart above price crossed above 1.70 on 26th Oct. Current candle price (at that moment) went below previous candle low on 27th Oct, indicated with a red arrow. Here the alert will go off at 1.659 BUSD (indicated in pink).
It ignores the other two lows, indicated with orange arrows. Because condition 1 is not met.
It is possible to use multiple time frames at the same time. Some time frames might not be available depending on your Tradingview subscription.
Final Words
Disclaimer: Please use it with care and at own risk. The owner of this indicator is not liable for any financial losses.
Past performance is no guarantee of future returns.
Smart Swing Strategy for StockSpecial indicator for stock but you can try another instrument.
Trend determination and buy/sell signals are using the Alligator system from Bill Williams .
To get maximum profit, the system uses the trailing stop technique using Average True Range (ATR) with 4 moving average options (RMA, SMA , EMA , WMA ).
Please leave comments if any opinions.
Disclaimer
The content is in any event provided with the intention of being for general circulation and availability only. As such it is not intended to and does not form part of any offer or recommendation directed at you specifically, or have any regard to your investment objectives, financial situation, or needs of yourself or any other specific person. Before committing to a trade or investment, please seek advice from financial or other professional advisers regarding the suitability of the trade for you. If you do not wish to seek such financial advice, please consider carefully whether the product is suitable for you as you alone remain responsible for your trading gains and losses.
[Fedra Algotrading Strategy Trailing Stop Version]Simpler version of my popular strategy.Optimized for cryptocurrencies. Originally conceived to trade automatically through bots (that's how I use it), it also works to get signals and trade manually in any exchange.
It works in spot.
Buy the dip:
Attempts to buy on the dip, finding entries when the price makes abrupt dips that break deviation of the linear regression of the last periods.
Trend Detection:
Determines whether the market is in an uptrend or downtrend by crossing 2 SMAs + super trend in different temporalities. This affects the performance of the strategy. It works as a filter to avoid making entries in a downtrend.
% Trailing Stop Loss. The Stop Loss is placed a % below the price and accompanies it in the rises to make the most of an uptrend.
Optionally, you can set up a percentage Take Profit
It allows you to easily configure the backtest period to optimize the parameters for consistent results.
The strategy calculates by default a commission of 0.1% on each trade to make the backtest more "pessimistic".
Includes advanced features for compatibility with different bots platforms in the market.
Risk management by % of equity or by maximum series of losses.
////////////////////////////
Versión más simple de mi popular estrategia, optimizada para criptomonedas. Originalmente concebida para operar automáticamente a través de bots (así es como la uso yo), también funciona para obtener señales y operar manualmente en cualquier exchange.
Funciona en spot.
Compra en la caída:
Intenta comprar en la caída, encontrando entradas cuando el precio hace caídas abruptas que rompen la desviación de la regresión lineal de los últimos períodos.
Detección de tendencia:
Determina si el mercado está en tendencia alcista o bajista mediante el cruce de 2 SMAs + super trend en diferentes temporalidades. Esto afecta al rendimiento de la estrategia. Funciona como un filtro para evitar hacer entradas en contra de la tendencia del mercado.
% Trailing Stop Loss. El Stop Loss se coloca un % por debajo del precio y lo acompaña en las subidas para aprovechar una tendencia alcista.
Opcionalmente, se puede establecer un porcentaje de Take Profit
Permite configurar fácilmente el periodo de backtest para optimizar los parámetros y obtener resultados consistentes.
La estrategia calcula por defecto una comisión del 0,1% en cada operación para que el backtest sea más "pesimista".
Incluye características avanzadas para la compatibilidad con diferentes plataformas de bots en el mercado.
Gestión del riesgo por % del capital o por serie máxima de pérdidas.
[Fedra Algotrading Strategy Trailing Stop]Algotrading strategy optimized for cryptocurrencies. Originally conceived to trade automatically through bots (that's how I use it), it also works to get signals and trade manually in any exchange.
It works in spot.
Buy the dip:
Attempts to buy on the dip, finding entries when the price makes abrupt dips that break deviation of the linear regression of the last periods.
Trend Detection:
Determines whether the market is in an uptrend or downtrend by crossing 2 SMAs + super trend in different temporalities. This affects the performance of the strategy. It works as a filter to avoid making entries in a downtrend. It also includes other advanced filters to find the best selling price on losses.
Break Even:
If the market enters a downtrend with an open trade, the Break Even sell is triggered, (configurable, default 1.5%). The intention is to close the trade as soon as possible, but without losses. The value of 1.5% is intended to cover commission costs and a possible spread.
Conditional SL Level: Determines a tolerance level in %, from which it is allowed to sell at a loss, while the price is above this level, the scrip will only sell at a profit.
% Trailing Stop Loss. The Stop Loss is placed a % below the price and accompanies it in the rises to make the most of an uptrend.
It allows you to easily configure the backtest period to optimize the parameters for consistent results.
The strategy calculates by default a commission of 0.1% on each trade to make the backtest more "pessimistic".
Includes advanced features for compatibility with different bots platforms in the market.
Risk management by % of equity or by maximum series of losses.
////////////////SPANISH///////////////////
Estrategia de Algotrading optimizada para criptomonedas. Originalmente concebida para operar de manera automática mediante bots (así la utilizo yo), funciona también para obtener señales y operar manualmente en cualquier exchange.
Funciona en spot.
Buy the dip:
Intenta comprar en el dip, encontrando entradas cuando el precio hace bajadas abruptas que rompen la desviación de la regresión lineal de los últimos periodos
Detección de Trend:
Determina si el mercado tiene una tendencia alcista o bajista mediante el cruce de 2 SMAs + super trend en distintas temporalidades. Esto afecta el funcionamiento de la estrategia. Funciona como filtro para evitar realizar entradas en una tendencia bajista. Incluye también otros filtros avanzados para encontrar el mejor precio de venta en pérdidas.
Break Even:
Si el mercado entra en tendencia bajista con una operación abierta, se activa la venta en Break Even, (configurable, por defecto 1.5%). La intención es cerrar la operación lo antes posible, pero sin pérdidas. El valor de 1.5% está pensado para cubrir los costos de comisiones y un posible spread.
Nivel de SL Condicional: Determina un nivel de tolerancia en %, a partir del cual se permite la venta en pérdidas, mientras el precio esté sobre este nivel, el scripto sólo venderá en ganancias
% Trailing Stop Loss. El Stop Loss se ubica un % debajo del precio y lo acompaña en las subidas para aprovechar al máximo un uptrend.
Permite configurar de manera muy fácil el periodo de backtest para optimizar los parámetros para resultados consistentes.
La estrategia calcula por defecto una comisión de 0.1% en cada operación para que el backtest sea más "pesimista".
Incluye funciones avanzadas para compatibilidad con diferentes plataforma de bots del mercado.
Administración de risego por % del capital o por máxima serie de pérdidas
ST_trailingThe trailing indicator. If ohlc4 becomes "Percent activate trail" above the entry price set by the value and entry date, then the trailing function is activated, which is considered as the maximum ohlc4 for the time in the position minus "Percent activate trail" multiplied by "koeff trail"
ATR Trailing Stop v5 One of my favorite stops is the ATR Trailing Stop-loss. With the implementation of PineScript v5, a code update was needed in order to use this stop/exit-strategy with newer strategy scripts. A timeframe selector that was not featured on earlier versions is also included. This new version can be plugged into PineScript v5 strategies, and also has a simpler/cleaner code that makes the code logic easier to follow than prior versions.
For those that are unfamiliar with the ATR Trailing Stop exit strategy; it is a trailing stop that takes into account the volatility of the underlying asset by trailing the price series using a multiple of the Average True Range (ATR). In practice I’ve found that this exit can be more effective than traditional trailing stops, depending on the volatility of the asset you are trading. More detailed information can be found at www.stockopedia.com
How do I use it? Add it to your chart as an indicator to visualize where the ATR stop would be with your settings. Or, copy and add it to your v5 strategy with the addition of a ta.crossunder(close, ATRTrailingStop) or ta.crossover(close, ATRTrailingStop) function. Special thanks and credit to HPotter who coded an earlier version of this in pine!
SuperTrend+ CleanedSimilar to SuperTrend+ which allows for confirmation bars.
Differences:
Limited to SMA calculation of average true range.
Can filter outlier volatility.
Can apply a standard deviation to the ATR value.
Trailing StopMost of the trailing stops on TradingView are made of using the lowest lows and the highest highs. Not many are based around what I called the volatile trailing stop.
This is where the trailing stop will move around according to a set percentage difference from the previous closing value. This allows you to say "If the current bar moves x percent, then stop". The script I've made here is a simple version of that with a few options for smoothing and setting the percent change.
Disclaimer: This is not financial advice, please do your own research before making any decisions.
Bjorgum AutoTrailOne Time Trade Risk Management
Incorporating the new interactive feature, this script is meant as a one time trailing stop for the active trader to manage positional risk of an ongoing trade. As a crypto trader or Fx trader, many may find themselves in a position late into the evening, or perhaps daily life is calling while a trade progresses in their favor. Adding a trailing stop to a position thats trending can help to keep you in the trade and lock in gains if things turn around when you are unable to react.
To use the trail, the user would add the script to the chart. Once added, a set of crosshairs will appear allowing the user to choose a point to begin. Often choosing to start a trail from a swing high/ low can be an ideal option. This tends to provide some protection for a stop by placing it under support for a long trade or above resistance for a short trade.
Price based trail
The trail will automatically plot and the offset is a factor of the distance from price action selected by the crosshairs. If placed above price action the script will plot a short trail, if placed below it will trail for a long position.
Additionally, there are several other trail types other than price based. There is also percent based, which offsets the trail as a percent from close. A hard stop is placed at the cross hair value, then once the distance is exceeded by the percentage specified, the trail begins.
There are 2 more volatility based trails. There is a PSAR trail which can provide quicker and tighter stops that accelerate with the trend locking in gains faster, and an ATR trail that keeps a distance from price action as a function of volatility. Volatility levels can be adjusted from the menu.
Volatility based trail (ATR)
Volatility based trail (PSAR)
Lastly, within the code for more the more technical savvy, is some starting setups for string alerts to be sent to exchanges via 3rd party or custom API applications. Some string manipulation is required for specific providers to meet their requirements, but there is some building block alerts that will take the ticker symbol, recognize the asset your trading (Fx, Crypto, etc) and take input quantity or exchange names from the settings via inputs.
Complex strings can be built to perform almost any trade related task when to comes to alerts via web hook. A little setup this way with some technology to back your system can mean a semi-automated half man, half machine setup that actually manages your trail stop while you cannot. For those that don’t go this far, there is some basic alert functionality that well trigger when a trail is hit so you can react and make a decision.
Please note that for now, interactive mode is engaged only when the script is added to the chart. Additional stops, or for adjustments to be made it is best to add a new version. Also as real trades could be at play managing an actual position, alerts are designed to go off only once to ensure no duplicate orders are sent meaning alerts are not reoccurring. Once an alert is triggered, a new trail is to be set up.
A modified version of the TradingView built in SAR equation was used in this script. To provide the value of the SAR on the stop candle, it was necessary to alter the equation to extract this value as the regular SAR “flips” at this point. Thank you to TradingView for supplying access to the built in formula so that this SAR could behave the same as the built-in function outside of these alterations
Example of SAR value maintained in trigger candle
Cheers and happy trading.
Kaufman's Efficiency Ratio Strategy [KL]I recently published an indicator called "Kaufman's Efficiency Ratio Indicator". In the description of that script, I hypothesized about how the Efficiency Ratio could be applied to identify bullish moves in instances where price had already gone up steeply, but rests for a while, allowing for entry in expectation that price will continually rise. I decided to test out this idea with Pinescript.
About Kaufman's Efficiency Ratio ("ER")
ER was developed by a systematic trader by the name of Perry J. Kaufman.
Formula
The formula is:
= A divided by B,
where:
A = Current closing price minus the closing price at the start of the lookback period
B = Sum of differences between closing prices (in absolute terms) of consecutive bars over the lookback period
How this strategy enters a trade (Long):
- code: entry_signal_long = ER > 0 and ER_is_mid
- meaning: when ER is positive, strategy assumes price has risen. Usually ER value begins high (red), and unless it is a false move, then it should stay positive. This strategy will patiently wait until ER drops to medium (yellow), and then place a trade.
- how low/medium/high is dynamically determined: Refer to the description of my other script("Kaufman's Efficiency Ratio Indicator") for details. Trying to keep this as short as possible.
How this strategy exits a trade (Long):
- when price hits stop limit; stop limit is based on low of bars, trails upward based on ATR
- included a feature called "tightening TSL", which tries to reduce the stop-buffer during periods of high volatility implied by ER (very experimental, opening the floor for suggestions on how this can be improved)
ATR Bands Trailing StopsA NRTH_ Technical Indicator Study
Comes included with the Premium Package.
Indicator features
Use Trailing ATR as a StopLoss for both Long and Short positions.
Set Fixed Stop Loss or Take Profit levels based on current or previous candle close ATR values
Customizable Period, Multiplier, and Calculation Method.
Usage Tips
Works on all timeframes and markets.
Designed for use in other study strategies that do not have built-in position sizing.
Set Stoploss and RR based on ATR Values or let trades run into a trailing stop.
-------------------------------------------
Disclaimer
Copyright NRTH_ Indicators 2021.
NRTH_ and all affiliated parties are not registered as financial advisors. The products & services NRTH_ offers are for educational purposes only and should not be construed as financial advice. You must be aware of the risks and be willing to bear any level of risk to invest in financial markets. Past performance is not necessarily indicative of future results. NRTH_ and all individuals associated assume no responsibility for your trading results or investments.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, or individual’s trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
ATR Trailing Stops S/R [LM]Hello Traders,
I would like to introduce you ATR Trailing Stops S/R . The idea is to look for important levels that are identified by trailing stop line, where it usualy spents a lot of time without any move usualy turns out to be good level for bounces.
Script for atr trailing line is originaly taken from: script made by @dgmoon
It has various setting
Timeframe and atr settings
Show lines
Extend lines
Line count - how many lines will be rendered
Candle count - how many candles has to trailing line spend at the same level
Colors - controls color of plot and lines
I hope you will enjoy it, as I enjoyed to write it.
Lukas
3Commas BotBjorgum 3Commas Bot
A strategy in a box to get you started today
With 3rd party API providers growing in popularity, many are turning to automating their strategies on their favorite assets. With so many options and layers of customization possible, TradingView offers a place no better for young or even experienced coders to build a platform from to meet these needs. 3Commas has offered easy access with straight forward TradingView compatibility. Before long many have their brokers hooked up and are ready to send their alerts (or perhaps they have been trying with mixed success for some time now) only they realize there might just be a little bit more to building a strategy that they are comfortable letting out of their sight to trade their money while they eat, sleep, etc. Many may have ideas for entry criteria they are excited to try, but further questions arise... "What about risk mitigation?" "How can I set stop or limit orders?" "Is there not some basic shell of a strategy that has laid some of this out for me to get me going?"
Well now there is just that. This strategy is meant for those that have begun to delve into the world of algorithmic trading providing a template that offers risk defined positions complete with stops, limit orders, and even trailing stops should one so choose to employ any of these criteria. It provides a framework that is easily manipulated (with some basic working knowledge of pine coding) to encompass ones own ideas and entry criteria, while also providing an already functioning strategy.
The default settings have a basic 1:1 risk to reward ratio, which sets a limit and a stop equal distance from the entry. The entry is a simple MA cross (up for long, down for short). There a variety of MA's to choose from and the user can define the lengths of the averages. The ratio can be adjusted from the menu along with a volatility based adder (ATR) that helps to distance a stop from support or resistance. These values are calculated off the swing low/high of the user defined lookback period. Risk is calculated from position entry to stop, and projected upwards to the limit as a function of the desired risk to reward ratio. Of note: the default settings include 0.05% commissions. Competitive commissions of the leading cryptocurrency exchanges are .1% round trip (one buy and one sell) for market orders. There is also some slippage to allow time for alerts to be sent and orders to fill giving the back test results a more accurate representation of real time conditions. Its recommended to research the going rates for your exchange and set them to default for the strategy you use or build.
To get started a user would:
1) Make a copy of the code and paste in their bot keys in the area provided under the "3Comma Keys" section
- eg. Long bot "start deal" copied from 3commas in to define "Long" etc. (code is commented)
2) Place alert on desired asset with desired settings ensuring to select "Order fills and alert() function calls"
3) Paste webhook into the webhook box and select webhook URL alerts (3rd party provided webhook)
3) Delete contents of alert message box and replace with {{strategy.order.alert_message}} and nothing else
- the codes will be sent to the webhook appropriately as the strategy enters and exits positions. Only 1 alert is needed
settings used for the display image:
1hr chart on BTCUSD
-ATR stop
-Risk adjustment 1.2
-ATR multiplier 1.3
-RnR 0.6
-MAs HEMA/SMA
-MA Length 50/100
-Order size percent of equity
-Trail trigger 60% of target
Experiment with your own settings on your crypto of choice or implement your own code!
Implementing your trailing stop (optional)
Among the options for possible settings is a trailing stop. This stop will ratchet higher once triggered as a function of the Average True Range (ATR). There is a variable level to choose where the user would like to begin trailing the stop during the trade. The level can be assigned with a decimal between 0 and 1 (eg. 0.5 = 50% of the distance between entry and the target which must be exceeded before the trail triggers to begin). This can allow for some dips to occur during the trade possibly keeping you in the trade for longer, while potentially reducing risk of drawdown over time. The default for this setting is 0 meaning unless adjusted, the trail will trigger on entry if the trailing stop exit method is selected. An example can be seen below:
Again, optional as well is the choice to implement a limit order. If one were to select a trailing stop they could choose not to set a limit, which could allow a trail to run further until hit. Drawdowns of this strategy would be foregoing locking gains at highs on target on other trades. This is a trade-off the user can decide on and test. An example of this working in favor can be observed below:
Conclusion
Although a simple strategy is implemented here, the benefits of this script allow a user a starting platform to build their strategies from with built in risk mitigation. This allows the user to sidestep some of the potential difficulties' that can arise while learning Pine and taking on the endeavor of automating their trading strategies. It is meant as an aid, a structure, and an educational piece that can be seen as a "pick-up-and-go" strategy with easy 3Commas compatibility. Additionally, this can help users become more comfortable with strategy alert messages and sending strings in the form of alerts from Pine. As well, FAQs are often littered with questions regarding "strategy.exit" calls, how to implement stops. how to properly set a trailing stop based on ATR, and more. The time this can save an individual to get started is likely of the best "take-aways" here.
Happy trading
Prophit Ninja: Hidden ScrollStay ahead of the markets moves with "Prophit Ninja: Hidden Scroll".
Our legendary senseis have mastered the arts of wielding the Katana and Shuriken over many decades of focused practice and distilled their systems and techniques down to their most vital form- storing their knowledge in this ancient scroll for easy adoption by any ninja practiced enough to be able to decipher it.
═════════════════════════════════════════════════════════════════════════
█ INTERPRETATION
Each sub-indicator in this package can be used as a confirmation tool to check your bias and give you a more informed decision as they all take into account every reading shown and not shown being calculated across all Prophit Ninja packages. A sentiment rating below the candle shows bullish bias while a green color emphasizes bullish strength- a sentiment rating above the candle shows bearish bias while a red color emphasizes bearish strength- gold color signifies a strong turn in the market while grey/dark grey is a weak reading. A green trend sensei reading is bullish- while a red trend sensei reading is bearish. A green bull trade sensei label signifies a possible bullish trade set up, while a red bear label trade sensei signifies a possible bearish trade set up. Stat sensei gives you tick by tick multi-time frame readings to always keep you aware of the exact environment you're in. Lastly risk sensei will give you the most optimal least risk trade set-up based on user defined variables and give you tick by tick readings of your trade status. This can be used as a standalone decision-maker, or used in confluence with other indicator packages in our Prophit Ninja bundle to get higher precision.
═════════════════════════════════════════════════════════════════════════
█ OVERVIEW
1 — Sentiment Sensei: A toggle-able tick by tick rating system (0-100%) for each candle based on over 100 individual readings .
2 — Trend Sensei: A toggle-able background coloring that easily shows you the trend bias behind the moves.
3 — Trade Sensei: A toggle-able trade finder that finds confluent trade set-ups to give you the upper hand.
4 — Stat Sensei: A toggle-able multi-time frame candle progress tracker with a built in trend bias and price/volume/momentum change/ratio trackers.
5 — Risk Sensei: A toggle-able risk manager with two variations of auto profit target zones , three variations of trailing stop losses , a win/loss tracker , trade duration timer and all the information you need to stay updated with the status of your trade at a glance whether long or short.
═════════════════════════════════════════════════════════════════════════
█ EASY CUSTOMIZATION
i.imgur.com
With a fully customizable and easy-to-use input menu , this indicator gives you the ability to tailor your trading experience to your needs and see as much (or as little) information as you want to; presented in the manner you deem most viable with the following options in just a few clicks:
Indicator Package- This option allows you to switch between the four display modes available so in any moment you can completely change the metrics you’re reading in just two clicks. This allows you the ability to make decisions based on not only what you’re comfortable with; but also to find confirmation or disagreement with other systems instantly.
Color Theme- There are four color themes available which include original, colorful, monochrome and solid. These not only allow you a quick and easy way to change the colors to suit your style; they also make it so you can challenge your bias in an instant by viewing the data in a completely different way.
Dual Attack Modes- Whether you’re a scalper, day trader, swing trader, or investor; this option allows you to see the chart based on four different risk tolerance/time expectancy mentalities for the Katana and Shuriken separately in just two clicks. Investors can see what the scalpers are thinking and vice/versa to broaden their decision making and/or hone in when optimal.
Dual Sharpness Levels- This algorithm allows the user to display the data on five different smoothness levels for the Katana and Shuriken separately without suffering the inherent lag that accompanies most other indicators. Whether you like to see every tick of a choppy movement, or filter out the false signals into smooth readings, you can do so at any moment.
═════════════════════════════════════════════════════════════════════════
█ RISK SENSEI EXAMPLE
═════════════════════════════════════════════════════════════════════════
█ PRE-BUILT ALERTS
With Prophit Ninja: Hidden Scroll's built-in alerts you can enable alerts for any piece of the Hidden Scrollin just a few clicks. These alerts are way more specific and optimized than you can possibly achieve with the custom alert settings. Each checking for multiple possible activation triggers instead of one and populating the message field automatically so you can just click create.
═════════════════════════════════════════════════════════════════════════
As you can see; this ancient scroll has the ability to adapt to any reader or adversary and give those in control of its power the upper hand. Any mode of battle, any opponent, any circumstance- 'Prophit Ninja: Hidden Scroll' was polished by our finest artists to inform any reader and make sure they know when to attack, defend or simply allow the fight to play out by its easy-to-read coloring system. As long as you learn the techniques you'll have a much better chance of making the right decision than when you didn't.
This state-of-the-art tool is great for experienced traders, those who just started learning to trade, or anyone in between- truly made to suit the needs of any trader, in any moment, with any mindset (along with the other indicators in our Prophit Ninja bundle) you'll notice an immediate improvement in your market dexterity after learning it.
═════════════════════════════════════════════════════════════════════════
*everything displayed is part of the Prophit Ninja indicator bundle; this is an otherwise blank chart*
IZCI [xaurr]Yet another trailing stop loss script, using optional percentage or atr values to follow the last price.
Green area: bullish , long
Red area: bearish, short
IZCI means trailing in Turkish.
If you find it usefull, please like it.
Good Luck :)