PtahX EMA/ATR StrategyPtahX EMA/ATR Strategy Public Release
written October 2019
EMA Strategy with ATR & "Fear Factor" built in
* modifications welcome
* please let me know if you improve it so I can continue to learn :)
* use at your own risk - I'm a new programmer and still learning
* Best of luck on your trades!!
// Take Profit (TP) option based on ATR or MA Crossover
D-ATR
ATR - Baby WhaleScript that shows you the ATR and 0.5 ATR.
You can use this to define your stop loss level when you see a SFP.
Standard setting is the 24 period ATR. You can use this for a 1h chart (24 hours in a day).
So when you play on a 5m chart, you can change the setting to 12 period (12 5m candles in 1 hour).
QuarryLake v4As some of you requested, I will make the code for QuarryLake Open for you all.
I have also updated the script in version 4.
This strategy consists of 3 indicators that I found works quite well together.
Keltner Channel, Waddah Attah Explosion, and Volatility Stop .
KC Period = 200
KCATR = 5
Vstop Period = 3
Vstop Mult = 1.5
Long when close > KC, close > Vstop, WAE trendUp
Short when close < KC, close < Vstop, WAE trendDown
Works well on BTCUSD XBTUSD , as well as other major liquid Pair.
This strategy utilized a modified Kelly position sizing for BTCUSD Bitstamp , feel free to modify it to your needs.
And lastly,
Save Hong Kong, the revolution of our times.
ATRPricePercentThis script builds on top of the ATR Price Ratio script. In this script I am representing the ratio as a percentage for getting the volatility up to the second decimal.
ATR TRex [SHK]To appreciate dear Mr.Khakestar efforts i have converted his mt4 ATR formula to pine script. All credits goes to him.
Plots
You can enable plots from the settings tab and then disable five first plots from the style tabs (finally save as default). Then you can view the ATR result of each candle in the past:
Green number is the HL range of the candle.
Red number is the ATR of the candle.
First black number is the ATR of the 4H chart.
Second black number is the ATR of the 1D chart.
Third black number is the ATR of the 1W chart.
What makes this ATR formula so different?
This formula invented by Mr.Khakestar and it shows the power of the price to move in each cycle of the chart. We can use it in RTM strategy and Price Action trading. To learn how to use it you need to learn TRex strategy (Presented by Mr.Khakestart for free in Persian).
Traded Range & True ATRBlack line = Trade Range from the last X periods.
Red Line = 61.8% of black line value.
Green bar = The current trade period range.
Default Value = 21 (21 days = I business month)
Generally speaking, a stock moves approximately the same value daily. Knowing the approximate value it likes to stay within calms the nerves when you see retracement of price occuring.
IE. Price average = 1.00 in a day. It move .75 within first hour then retraces in the opposite direction. There are still hours left in the trade day, so it is trading in its value range in order to not over extend itself.
This differs in calculation from the Wells Wilder version as it smooths out jumps and only examines the ranges between high and low.
A good rule of thumb is.
Stop Loss = Entry Price +/- (ATR * 1.5)
Take Profit = (1) Entry Price +/- ATR - 50% exit (Set Trailing Stop @ Entry Value), (2) Entry Price +/- ATR * 2 (50% of remaining).
Lancelot Band - ATR Reversal+Trending IndicatorThis is an indicator I created recently, with the mind of spotting where price might reverse and where the price is trending. You can see this as the primary indicator for your system, however, it is recommended you use this in conjunction with other confirmation indicators.
This script focus solely on ATR or Average True Range.
This indicator is the combination of the baseline from the Ichimoku cloud and the concept of the Keltner channel.
Baseline period = 14
ATR period = 14
ATR Mult = 1.5
For reversal
Long when price crossover Lower band & Stop loss at xLower band
Sell when price crossunder Upper band & Stop loss at xUpper band
For Trend Following
Long when price crossover xUpper band and Stop loss at Upper band
Short when price crossunder xLower band and Stop loss at Upper band
Again, you will need other indicators to help you to succeed in this system. This indicator will not generate the best exit for your position but will generate a good entry signal when you use it with both volume indicator and exit indicator.
Works well on BTCUSD XBTUSD, as well as other major liquid Pair.
Feel free to follow me on Twitter @Lancelot_Auger for more free Alpha.
Please acknowledge my effort by like and follow.
And lastly,
Save Hong Kong, the revolution of our times.
Alert-QuarryLake Indicator Map - ATR Trend Following Strategy A lot of times I don't like my chart crowding with indicators, thus the reason for creating this script for my strategy QuarryLake.
This script also comes with alert.
Below is the explanation for QuarryLake
I have also updated the script in version 4.
This strategy consists of 3 indicators that I found works quite well together.
Keltner Channel, Waddah Attah Explosion, and Volatility Stop.
You can find WAE here
KC Period = 200
KCATR = 5
Vstop Period = 3
Vstop Mult = 1.5
Long when close > KC, close > Vstop, WAE trendUp
Short when close < KC, close < Vstop, WAE trendDown
Works well on BTCUSD XBTUSD, as well as other major liquid Pair.
Feel free to follow me on Twitter @Lancelot_Auger for more free Alpha.
Please acknowledge my effort by like and follow.
And lastly,
Save Hong Kong, the revolution of our times.
CloudRest ATR based cloudThis is an indicator I have been working on for the past 2 years, developed specifically for cryptocurrency.
It is primarily a trend following indicator with great success and it performs the best in 4hrs to the weekly chart.
There are two components of this indicator.
The baseline from Ichimoku cloud and volatility stop .
baseline period = 26
volatility stop = 1.5ATR, 3
You can view this as the main component of a trend following system but you will need other confirmation indicators to confirm your entry.
Feel free to modify the script for your own system.
Feel free to follow me on twitter @Lancelot_Auger
I will be posting more content in the future, stay tuned.
And lastly,
Free hong kong, the revolution of our time!
Moar MAsJust a bunch of things I like, to determine trend direction.
This script uses faster EMAs and slower SMAs. Also ATR for stops and trend reversals.
Average True Range Trailing Stops TFAverage True Range for trailing stops, can be set to any timeframe independently of currently-displayed timeframe
This indicator is derived from
but more customizable.
Many thanks to HPotter for the original version
ATR ChannelsATR Channels help you to identify where to place your stop-loss or trailing stop-loss based on price volatility, according to the Average True Range (ATR).
No Nonsense NNFX VP Strategy for Back Testing Baseline | jhStrategy for the NNFX Baseline Script - Moving Averages
Does not enter when price is > 1 ATR away.
Adapted the "Many Moving Averages" script to VP's NNFX No Nonsense Forex method.
Includes:
- ATR bands and labels
- Price is > 1 ATR away from baseline indication
Available MAs
"ALMA", "EMA", "DEMA", "TEMA", "WMA", "VWMA", "SMA", "SMMA", "HMA", "Kijun", "McGinley"
NNFX Baseline Script - Moving AveragesCredits to @Fractured
Adapted the "Many Moving Averages" script to VP's NNFX No Nonsense Forex method.
Includes:
- ATR bands and labels
- Price is > 1 ATR away from baseline indication
Without ATR Bands and bar colors
Available MAs
"ALMA", "EMA", "DEMA", "TEMA", "WMA", "VWMA", "SMA", "SMMA", "HMA", "Kijun", "McGinley"
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).
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.