Library "TrailingStops" This library contains functions to output trailing stop lines. f_marketStructureStop(_restartMode, _flipMode, _restartLowIn, _restartHighIn) Parameters: _restartMode - Defines how the stop lines persist. Allowed values are: "Always On" - The stop lines are always present and they just reset when they're crossed. ...
This script is designed to aid in back-testing and trade execution. It displays three sets of values - the teal colored value is the current ATR, the green colored value is your stop loss distance (in pips) below the most recent swing low for long trades , and the red colored value is your stop loss distance (in pips) above the most recent swing high for short...
This Indicator uses Average True Range (ATR) to determine a safe place to put stop losses to avoid being stop hunted or stopped out of a trade due to a tight stop loss. Default multiplier setting is 1.5. For a more conservative stop loss use 2 and for a tighter stop loss use 1. ATR and stop loss prices are displayed in table at bottom of screen. Use high(red) for...
I 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
This is a redesign of the SuperTrend indicator. It removes stupid transitions between SuperTrend states and highlights initial points for both lines. SuperTrend is a moving stop and reversal line based on the volatility (ATR).
This is a redesign of the built-in Parabolic SAR indicator. I added a proper input system, an option to highlight initial points for both lines and an option to choose points width. So, customize it as you want. Parabolic SAR was originally developed by J. Welles Wilder and described in his book "New Concepts in Technical Trading Systems" (1978). It is a...
SL Hunter Tracker coded by Bogdan Vaida SL Hunter Tracker is a meticulous hunter that tracks SL hunters. First it plots the fractals on the chart, then it draws lines from them to the last wick that touched that height. You can add sweep alerts, once per bar close, so that you get notified when a wick was touched. Tested on: EURUSD 30'
ATR Trailing Stoploss Buy=crossover(close,TS) Sell=crossunder(close,TS)
FINALLY! As everyone who tried to create, understand, or even find the Buff Pelz Dormeier Anti-volume stop-loss indicator knows that - it's not easy. Personally, I have partially, or perhaps completely figured out, the tips Buff had given in Investing with Volume Analysis book. AVSL now is ready. Please do some test and give me a feedback how it works in your...
=========== Fixed Percent Stop Loss & Take Profit % - { FOR STUDY SCRIPTS! } =========== A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price - This is for setting Alerts within your own Study Script for when either your SL or TP get hit. Yup, that's about it! You can ignore the actual entry/exit orders - they're based...
This 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...
"How to code moving stop-loss mechanism", is one of the most often repeating questions in private messages I receive, so just to focus on this mechanism, I made a spin-off from my previous script: TradingView-Alerts-to-MT4-MT5-dynamic-variables-NON-REPAINTING . The logic here moves the stop-loss each time a trade is running and a new pivot high/low is detected....
This indicator overlays a series of Parabolic Stop And Reverses (SARs) to continuously illustrate trends as they form in addition to a range of good possible levels at which to place stop orders. The Initial Start argument gives the minimum value for the SAR function's "Start" argument. The Increment/Start Ratio argument gives the ratio of the SAR function's...
Same 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...
This is an alert script using Pinescript version 4. This enables one to set 5 alerts (1 StopLoss, 4 Targets), on 3 different symbols, at using a single alert in the UI. Every visible line will only appear on the symbols that are selected. After setting targets when making an alert, select this indicator as a condition. Change the name to whatever you want, usually...
=========== Fixed Percent Stop Loss & Take Profit % =========== A neat example of how to set up Fixed Stops and Take Profit as a percent of the entry price. Yup, that's about it! You can ignore the actual entry/exit orders - they're based on a simple MA cross and are therefore NOT relevant, NOT really profitable and NOT recommended! You should be using...
Same coding only coloring and strategy version added //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...