SUPERTREND ATR WITH TRAILING STOP LOSS## THIS SCRIPT IS ON GITHUB
## MORE BACKTEST
SuperTrend is a moving stop and reversal line based on the volatility (ATR).
The strategy will ride up your stop loss when price moviment 1%.
The strategy will close your operation when the market price crossed the stop loss.
The strategy will close operation when the line based on the volatility will crossed
The strategy has the following parameters:
+ **ATR PERIOD** - To select number of bars back to execute calculation
+ **ATR MULTPLIER** - To add a multplier factor on volatility
+ **INITIAL STOP LOSS** - Where can isert the value to first stop.
+ **POSITION TYPE** - Where can to select trade position.
+ **BACKTEST PERIOD** - To select range.
## DISCLAIMER
1. I am not licensed financial advisors or broker dealers. I do not tell you when or what to buy or sell. I developed this software which enables you execute manual or automated trades multiple trades using TradingView. The software allows you to set the criteria you want for entering and exiting trades.
2. Do not trade with money you cannot afford to lose.
3. I do not guarantee consistent profits or that anyone can make money with no effort. And I am not selling the holy grail.
4. Every system can have winning and losing streaks.
5. Money management plays a large role in the results of your trading. For example: lot size, account size, broker leverage, and broker margin call rules all have an effect on results. Also, your Take Profit and Stop Loss settings for individual pair trades and for overall account equity have a major impact on results. If you are new to trading and do not understand these items, then I recommend you seek education materials to further your knowledge.
**YOU NEED TO FIND AND USE THE TRADING SYSTEM THAT WORKS BEST FOR YOU AND YOUR TRADING TOLERANCE.**
**I HAVE PROVIDED NOTHING MORE THAN A TOOL WITH OPTIONS FOR YOU TO TRADE WITH THIS PROGRAM ON TRADINGVIEW.**
## NOTE
I accept suggestions to improve the script.
If you encounter any problems i will be happy to share with me.
+ Authors: @exit490
+ Revision: v1.0.0
+ Date: 5-Aug-2019
+ Pinescript version: 4
## LICENSE
Copyright 2019 Mauricio Pimenta / exit490
SuperTrend with Trailing Stop Loss script may be freely distributed under the (../LICENSE).
ATR
Double EMA + ATR Trend FollowerThis indicator consists of a fast and slow EMA (default lengths are 50 and 9 periods) and an upper and lower ATR band. When combined, this combination gives traders an accurate picture of both trend strength and direction.
Users can modify the lengths of the fast and slow EMA , as well as the multipliers and length for the upper and lower ATR bands.
Maximum ATR BandsSlight modification on my previous script "ATR-Overlay"
This script plots the max value of the ATR in a given period.
Really straight forward, but has given me better stop-loss levels on trade entries.
Crayons GrayonsUpdate for
Crayons 0.2
Crayons is early onset hyper customizable trend reversal trading suite
There is some big changes for Signal and Pivot generation and its set as Default mode so in case of nostalgia for white noise there is an option to "rollback" placed at the top of input menu
As always- hyper customizable
Every singal core crayon signal group will be turned on by default so open input menu for personalizing signals to charts and personal character
Crayons 0.2-
Greatly improved Signal quality
Improved Pivot detection logic
Two Set's of Pivots "Cleaned" and "Vanilla"
Optional Polichrome candle painter mode to provide additional information on demand
Optional Labels for signals and pivots
Secondary risk filter filtering "riskier" signal sequences (Experimental)
Second MA is changed by ATR modified to work as trailing S/R (Source is ohlc4 for whip protection model is experimental ,filters used is not suitable for micro tf so atr calls for higher periods, its experimental and will be fixed or removed with later updates, added for testing purposes)
Scott’s volatility histogramATR shows volatility. SMA of ATR measures the average volatility over a chosen look-back period (default 200).
Divergence of ATR and sma is represented as a histogram.
Low periods of volatility are below the zero line. High periods of volatility are above the zero line.
Average volatility over a 200 period look-back is the zero value.
Average True Range with EMAIncreasing and decreasing volatility in respect to ATR crossing an ema of ATR.
Ema acts as a proxy for look-back period as per Historical Volatility Percentile.
ATR is a proxy for Volatility as per standard deviation.
Divergence below ema means low volatility: the more divergence, the lower.
Divergence above the ema means high volatility.
IFTS+TS Strategy OverlayInverse Fisher transform on stochastic with Hull MA and Donchian Channels with oversell/overbuy levels and dynamic trailing stop
Options:
Fixed trailing stop
Dynamic, based on ATR trailing stop
Re-enter after trailing stop
Includes Hull MA
Hull MA filtration for re-entering after trailing stop
Donchian channels, with overbuy/oversell levels
No repaints
GG ATR bands
ATR plotted above and below price with a multiplier. Defaults to 2x ATR. Makes it easier to use ATR for stop or take profit.
ATR LevelsThis is a script request by trader emma that calculates atr and plots the appropriate levels based on the multiplier
No Nonsense NNFX VP Strategy for Back Testing 3 x Indicators| jhAfter testing your individual indicators, it's time to build up your algo with additional indicators and further backtest the strategy.
Using SSL twice here, faster SSL for 1st confirmation, slower SSL for 2nd confirmation and TDFI for volume validation.
No Nonsense NNFX VP Strategy for Back Testing Indicators| jhAfter putting the whole system together, sat down to benchmark the various confirmation indicators, shrink it down to backtest individual confirmation indicators.
Results for 24 periods way better than 10, then again it's only one pair. :)
More details below.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//For testing your individual indicators before the full system
//Originated from causecelebre
//Tried to put in as much VP rules as possible
///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry from 1 x confirmation
// - Exit conditions
//// - Exit on confirmation flip
///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Confirmtion = SSL 10
///////////////////////////////////////////////////
//Credits
// Strategy causecelebre www.tradingview.com
// SSL Channel ErwinBeckers www.tradingview.com
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Change log
//First release. Testing of indicators
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
erasei's Swing Points with ATRA simple indicator to overlay high and low swing points with the ATR at each point to quickly see an ATR-based stop.
No Nonsense NNFX VP Strategy for Back Testing | jhMy first script, be kind :)
Most of the rules are implemented:
- Money management
- ATR, Baseline, Confirmation, Volume, Exit
More details below.
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//Designed per No Nonsense Forex VP rules
//Made to be as modular as possible, so we can swap the indicators in and out.
//Originated from causecelebre
//Tried to put in as much VP rules as possible
///////////////////////////////////////////////////
//Rules Implemented:
///////////////////////////////////////////////////
// - SL 1.5 x ATR
// - TP 1 x ATR
//
// - Entry conditions
//// - Entry within 1 candles of baseline + 1 x confirmation + volume
//// - Entry only if baseline is < 1 x ATR
// - Exit conditions
//// - Exit on exit indicator or when baseline or confirmation flip
///////////////////////////////////////////////////
//Trades entries
///////////////////////////////////////////////////
// - First entry L1 or S1 with standard SL and TP
// - Second entry L2 or S2 with standard SL and exit upon the exit conditions
///////////////////////////////////////////////////
//Included Indicators and settings
///////////////////////////////////////////////////
// - Baseline = HMA 20
// - Confirmtion = SSL 10
// - Volume = TDFI 4
// - Exit = RVI 4
///////////////////////////////////////////////////
//Credits
// Strategy causecelebre
// TDFI causecelebre
// SSL Channel ErwinBeckers
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
EMA - Trend Strength - 1m ScalperThis is a very special script based on volume, supertrend and ATR which works successfully on a 1m chart for bitmex.
ETH/USD
LTCM19
XRPM19
EOSM19
ADAM19
BCHM19
*private use only
DEMA ATR Channels - New IndicatorA Double Exponential Moving Average (DEMA) with three sets of channel lines each one Average True Range (ATR) apart, above and below the DEMA.
Similar to my "ATR Channels" indicator, but using a DEMA instead of an EMA for the base. In addition, this indicator also plots a fast DEMA as well as a fill between the two. Fully customizable, you can toggle both DEMAs, the fill, and each set of ATR Channels.
ATR channel idea from Kerry Lovvorn as mentioned in Elder's "New Trading for a Living", page 93: "Kerry Lovvorn likes to plot 3 sets of lines around a moving average: at one, two, and three ATRs above and below an EMA . These can be used for setting up entry points and stops, as well as profit targets."
Multiple MA's & ATR-MultiplesPossibly useful to users that do not have a paid subscription. (multiple indicators in one script)
Exponential and simple moving average options with an option for a time frame other than current chart time frame combined with multiples of the average true range plotted as a chart overlay.
ATR ChannelsAn Exponential Moving Average (EMA) with three sets of channel lines each one Average True Range (ATR) apart, above and below the EMA. Fully customizable, you can toggle the EMA and ATR set visibility, line colors, etc.
Inspired by Elder's 'The New Trading For a Living' , page 93: "Kerry Lovvorn likes to plot 3 sets of lines around a moving average: at one, two, and three ATRs above and below an EMA. These can be used for setting up entry points and stops, as well as profit targets."
ATR and RSI Buy / Sell Signal Beta 1.0This has been a long time coming for me.
I need to clean it up and add inputs for others to customize it that's why its protected.
This is configured for US securities.
Goal: Signal when to enter a trade on either side
Method: ATR and 2 RSI signals using:
3 Minute Chart Resolution
MUST have an active (can be hidden) BUILT-IN ATR ; length = 4 and set to RMA smoothing
MUST add the script; THEN go to the scripts settings and change the source to ATR. TV does not allow this to be set to default (that I know of)
I have default settings how I use them but you can modify:
ATR period (Length) =4
ATR multiplier = 0.9 (can edit by 0.1 increments.
The 1st Length/offset/resolution is defaulted to the 1 minute RSI.
The 2nd Length/offset/resolution is defaulted to the 3 minute RSI.
1)
OVERBOUGHT or OVERSOLD
*Please understand I use a length of 4 for this script, that is why the RSI OB/OS limits are so high/low.
Overbought conditions will light yellow if the 1m RSI > 90 and the 3min RSI > 85 and the time is between 09:42am and 16:00
Oversold conditions will light yellow if the 1m RSI < 10 and the 3min RSI < 10 and the time is between 09:42am and 16:00
The script ensures that if it is OB/OS under these conditions than it will not signal a buy or sell.
2)ATR
The script identifies reversals via the close breaking past the previous ATR on the preceding candle. ATR will not move UP on a short and will not move down on a long. It trails the last candle it was not broken.
The script plots labels up and down to identify the start of a reversal. Each start will have an accompanying line to display the continuation of the trend in one direction.
The script displays the value of the STOP as it trails price action. One could continue to mirror this value if you chose to. I use the fib tool for my targets and manage it as P/A demands.
3) RSI SIGNALLING
The script identifies a trend by analyzing BOTH RSI (1m and 3m) measures and requires that the current bar's readouts for BOTH measures are either greater or lower than the preceding candle.
The script also requires that both measures are above or below 50 to signal a trend.
The script will plot the trend as arrows up or down, it will display a (-) when the these conditions are not met.
Requirements to signal a BUY (LIME GREEN) or SELL (BRIGHT RED):
**Ensure your chart candle colors are faded so you can see the signal.**
**Precision is set to 0; remember TV rounds up or down for the visual measure but uses the exact measure for the script**
During the first 12 minutes:
----------------------------------
There are no OB/OS conditions as informed in section 1.
ATR stop line must be present OR the current bar close is higher than the ATR stop of the preceding candle whether it is a long or short stop signal. Quick whips are accounted for.
The current bar close MUST be higher or lower than the preceding candle's HIGH or LOW.
The script MUST identify the RSI signalling as detailed above in section 3.
The candle will light LIME or BRIGHT RED when these conditions are met and will not deceive the statements I have made.
It is important to understand that the signal may become null if the conditions do not persist through the final close of the candle. This means that a snapshot of the indicator does not accurately represent
what it will display at different times during each countdown of EACH 3 minute candle. Sometimes it signals to go long and once RSI gets too high it no longer signals. This is a good thing. Limits FOMO entries.
@ 09:42 until 16:00
-----------------------------------
OB/OS yellow candles will now occur as detailed in section 1.
Candles MUST clear the HIGH or LOW of the TWO preceding candles.
Candles MUST be trending as defined in section 3.
Candles MUST conform the conditions of the ATR stop.
I want to thank;
@pinescripters
@freedom_trader_
and I will even thank the manual lol
I have manually back tested this because I am working on the proper coding to have TV do it for me.
My strategy requires me to cover 25% of my position at 0.5 of the TV ATR 4 length RMA indicator.
Once the first target is hit than the STOP is moved to break-even.
If the target is not hit than my maximum loss is also 0.5 of the TV ATR 4 length RMA indicator.
I tested 3 full days, always on the 3min chart.
I tested 96 trades. All occurring immediately upon signal.
85 were wins and 9 were losses, 88.5% profitable.
Please understand that my intend is to cover enough quickly to cover commission costs and limit losses.
The remaining 75% of my position are sold off in the following pattern unless P/A demands that I override the FIB tool. Let them run when you can.
Position ENTRY
25% cover @ 0.5 x ATR
25% of remaining position cover @ 1.75 x ATR
25% of remaining position cover @ 2.5 x ATR
25% of remaining position cover @ 3.5 x ATR (APX 40% of the initial position)
I will further back test in the near future with an expanded risk.
Alnami_Quantum_blocksThis is the revolution of renko... it is renko chart based on percentage movement of the underlying ..
User can set:
1- the % move that if exceeded, the channel will shift
2- entry strategy
3- exit strategy
SFL Daily ATR levelsAn indicator that plots the daily ATR upper and lower levels on a chart.
This is a TradingView re-write from Trader Dante's dATR indicator.