ATR TRex [ipooya]To appreciate dear Mr.Khakestar efforts I have converted his mt4 ATR formula to pine script. All credits go to him.
you can view the ATR result of each candle in the past:
The first black number is the ATR of the M1 chart.
The second black number is the ATR of the M5chart.
The third black number is the ATR of the M15 chart.
The fourth black number is the ATR of the H1 chart.
The fifth black number is the ATR of the H4 chart.
The sixth black number is the ATR of the Daily chart.
The seventh black number is the ATR of the Weekly chart.
**and the second number of every line is live ATR ( current ATR candle)
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).
ATR
quantized pin bar indicator with ATRAbstract
This script computes the strength of pin bars.
This script uses the corrent and the previous two bars to compute the strength of pin bars.
The strength of pin bars can be also comared with average true range, so we can evaluate those pin bars are strong or weak.
Introduction
Pin bar is a popular price action trading strategy.
It is based on quick price rejection.
Most of existing pin bar scripts only determine if a bar is a pin bar or not.
However, evaluating the strength of pin bars is important.
If price rejection is too weak, it is difficult to trigger trend reversal.
If a pin bar is too strong, we may enter the trade too late and cannot have good profit.
In this script, it provides a method to compute to strength of pin bars.
After the strength of pin bars are quantized, they can compare with average true range, price range and trend strength, which can help us to determine where are worthy for us to open trades.
Computation
Bullish hammer : current low is lower than ( previous high or current open ) and current close.
Bearish gravestone : current high is higher than ( previous low or current open ) and current close.
Bullish engulfing and harami : ( current low or previous low ) is lower than ( previous 2nd high or previous open ) and current close.
Bearish engulfing and harami : ( current high or previous high ) is higher than ( previous 2nd low or previous open ) and current close.
Parameters
Smoothing : the type of computing average.
Length of ATR : determines the number of true ranges for computing average true range.
ATR multiplier line : the threshould that a pin bar is strong enough. For example, if this value is 0.5, it means a pin bar with 0.5*atr or more is considered a strong pin bar.
one direction pinbar : set to 1 if you want the strength of bullish pin bars and bearish pin bars are cancelled. Set to 0 if you want to keep both strength of bullish pin bars and bearish pin bars; in this case, you may need to change the plot style to make both strength visible.
Trading Suggestions
Evaluate the strength of trend against pin bars. After all, a single reverse pin bar may be too weak to reverse the trend.
Timeframe : if atr is higher than 4*spread, the timeframe is high enough. However, if strong pin bars appear too frequent or price range is too small, going to higher fimeframe may be more safe.
Entry and exit : according to personal flavors.
Conclusion
The strength of pin bars can be quantized.
With this indicator, we can find more potential pin bars which human eyes and binary pattern detectors were leaked.
In my opinion, 0.5*atr is the most suitable streng of a pin bar for my trade entry but I still need to consider the direction of the trend.
You are welcome to share your settings and related trading strategy.
References
Most of related knowledge can be searched from the internet.
I cannot say the exact references because they may violate the rules of Tradingview.
Profit Maximizer PMax Strategy - Long-ShortI developed a different strategy perspective for the Profit Maximizer PMax indicator prepared by Kıvanç Özbilgiç.
When you come to the settings section;
- You will see 2 options as Straregy Type. You can test the price and pmax intersections as different strategies.
- I added the Long-Short option for spot traders to calculate the profitability rate correctly. Spot traders should not choose this option.
Here you can set alarms on the original indicator with the parameters you find successful.
Türkçe:
Kıvanç Özbilgiç tarafından hazırlanan Profit Maximizer PMax indikatör için farklı bir strateji bakış açısı geliştirdim.
Ayarlar bölümüne geldiğinizde;
- Straregy Type olarak 2 seçenek göreceksiniz. Fiyat kesişimi ve pmax kesişimlerini, farklı stratejiler olarak test edebilirsiniz.
- Spot işlem yapanlar için karlılık oranını doğru hesaplayabilmeleri için Long-Short seçeneği ekledim. Spot işlem yapanların bu seçeneği seçmemeleri gerekmektedir.
Burada başarılı bulduğunuz parametreler ile orijinal indikatör üzerinde alarmlar kurabilirsiniz.
Daily Average True RangeIf you want to get an idea if the current range (low to high) is extended or not?
This script should help you to get an idea relative to the ATR.
Further comments you find in the script.
Feel free to modify upon your needs.
Jonas
NB: Due to issues around the "security" function, the recommended patch of Trading View was implemented.
ATR Stop Buy StrategyThis strategy trial is let you to giving sell and buy orders with ATR (average true range) and an coefficent for them. it is my first strategy work, needs to be upgraded. USE IT WITH YOUR OWN RISK. IT IS NOT EVEN GUARANTEED TO WORK.
2 Candles Inside ATR2 agitated candles falling inside ATR range, awaiting possibly a big move.
Buy / Sell signals at combined high / low can be used as order with other as stop loss.
Counter trade, when this minimal stop loss is hit, is also as useful. However, wait till the SL candle closes, before opening position on the other side.
Works quite well on 15 mins chart, with settings of ATR duration 25 and multiplier 0.6. These settings are configurable, so feel free.
ATR color zones with volume radar [LM]Hello Guys,
I would like to introduce you the ATR color zones with volume radar indicator. It's a fork of @GlobalMarketSignals "GMS: Mr. Yen's Color Zone" shout-out to him.
I have enriched it -> that zones are calculated based on the ATR and percentages as described below and volume radar on candle bars. You can select from which timeframe color zones are calculated.
Zones:
white line is the previous period close
red zone = +/- 20% ATR of previous period
yellow zone = +/- 40% ATR of previous period
green zone = +/- 60% ATR of previous period
blue zone = +/- 100% ATR of previous period
Volume radar:
lime = above volume MA average multiplied by multiplier up bar
maroon = above volume MA average multiplied by multiplier down bar
black = volume is decreasing but is not below half of volume MA
navy = volume is decreasing and is below half of volume MA
markers are shown when volume is increasing two consecutive candle in row in direction of the candle
Any suggestions are welcomed
Daily Average True RangeThis script should give you a quick idea how far your stock has moved intraday compared to the ATR.
ATR Trailing Stop Strategy by ceyhunSame 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 deterioration.
Let's not use InfoPanel in strategy, it would be wrong as it signals the next day.
ATR Trailing Stoploss StrategyI am sharing the strategy version of the indicator used before. It is very simple to use.
These are the settings I use, you can change, test and use as you wish.
Atr Period 5
Highest High Period 10
Multiplier 2.5
It can generate more signals in shorter time frames.
The success rate will be higher in longer time frames.
Supertrend Screener LABELThis screens for Supertrend reversal's in 10 different securities. The main logic for the screener is taken from "Simple Custom Screener in Pinescript" by QuantNomad with his permission. If the label color is not visible due to the text in it being white colored, then choose a different color from settings. Also added a simple supertrend to it.
Terminology explanation:
Confirmed Reversal: Supertrend reversal that happened in the last bar and cannot be repainted.
Potential Reversal: Supertrend reversal that might happen in the current bar but can also not happen depending upon the timeframe closing price.
Uptrend/Downtrend : Shows all the tickers that are either currently in uptrend or downtrend.
Dual Volatility StopThis merges Volatility Stop & its MTF version both published by u/TradingView . Background is colored green or red when both the current timeframe Vstop and higher timeframe Vstop point in same direction. Aim is to take the standard Vstop script which differentiates market from only uptrend/downtrend to uptrend/downtrend/sideways. There is a tradeoff with this, that there is no need for the Vstop to be always in a position which reduces trade time & frees up capital. However this leads to situations where it takes slightly more time to catch on to a trend after a reversal.
Green Background = Buy
Red Background = Sell
No Background = Flat
Average True Range %This is a modification to the Built-In Average True Range Indicator that uses the last close to calculate the range as a percentage.
ATR Daily LevelsPlots the daily ATR on the chart as upper and lower levels.
It can be use to adapt your trading in high and low periods of market volatility, determine reasonable target or take profit, entry at likely mean reversion, stop loss beyond normal flows etc...
More on the script behavior:
- Daily ATR upper/lower levels are applied on the current day low/high;
- The ATR value is defined by the last D1 bar;
- Shows up to D1 timeframe;
- Configuration for the indicator's period (default: 20 period ATR);
- Configuration for plotting the indicator on the the x axis with an offset/at begining of the day (default: offset);
ATRCD, Average True Range Convergence DivergenceATRCD calculates a MACD over the Average True Range, therefore helping traders to spot momentum in volatility.
The Average True Range is a measurement of the average candle size over a period of time, i.e. when the candles are small, the ATR is low. ATR measures volatility .
The MACD is a momentum indicator. It measures market momentum based on the average closing prices over a period.
Therefore, using the MACD calculation over the ATR we get a measurement of momentum in volatility . The ATRCD is a concept at this point. I was curious to see whether such an indicator could provide any edge trading the markets. Because this is a MACD of the ATR the same concepts can be applied, e.g. spotting divergences, momentum trends, etc. Please be careful however, this indicator only looks like the MACD but it measures volatility and not price momentum . Maybe this can help traders confirm breakouts using price action?
Applying this indicator to the 12h of BTC/USDT we can see that we could be nearing a volatility expansion with a divergence on the histogram, and an ATRCD crossover.
BINANCE:BTCUSDT
Full strategy AllinOne with risk management MACD RSI PSAR ATR MAHey, I am glad to present you one of the strategies where I put a lot of time in it.
This strategy can be adapted to all type of timecharts like scalping, daytrading or swing.
The context is the next one :
First we have the ATR to calculate our TP/SL points. At the same time we have another rule once we enter(we enter based on % risk from total equity, in this example 1%, at the same time, lowest ammount for this example is 0.1 lots, but can be modified to 0.01), so we can exit both by tp/sl points, or by losing 1% of our equity or winning 1% of our total equity. It's dinamic.
The strategy is made from
Trend direction :
PSAR
First confirmation point :
Crossover between 10EMA and Bollinger bands middle point
Second confirmation
MACD histogram
Third confirmation
RSI overbought/oversold levels
For entries : we check trend with psar, then once ema cross bb middle point, we confirm together with rsi level for overbought/oversold and macd histogram ( > 0 or <0).
We exit, when we have opposite sign, like from buy to sell or sell to buy, or when we reach tp/sl points, or when we reach % basaed equity points.
It can be changed to be fixed lots, or fixed tp/sl , you just have to uncomment the size from entries, and tp/sl lines.
At the same time, it has the possibility if one desires, to trade only concrete forex session like european, asian and so on for intraday trading.
Hope you enjoy it.
Let me know how it goes.
AITI Investa: Trend FollowingScript ini dibuat untuk membantu strategi trend following harian pada saham-saham di IHSG.
Terdiri dari:
1. Petunjuk visual untuk area trend yang sebaiknya dihindari ( bearish trend ), berupa background berwarna merah. Dimana area bearish trend adalah ketika garis fast ema berada di bawah garis slow ema .
2. Batas stop loss / trailing stop, dengan acuan nilai ATR.
Script ini tidak memberikan sinyal buy. Silakan gunakan strategi buy on weakness/breakout sesuai analisa dan preferensi masing-masing. Untuk mencari entry trigger, penulis merekomendasikan untuk menarik garis support/resistance manual dan digabungkan dengan indikator MACD & CCI sebagai konfirmasi.
-AITI Investa
ATR with Impulse AlertsThis is a very simple script which simply plots an ATR (the built-in ATR function, using RMA) and plots a cross when the previously closed bar is larger than the ATR by a given threshold. There are also alert conditions set so you can be alerted when these impulse bars show up, either up or down bars. Have fun and safe trading!
Triple ATR multiplier - 3 ATR Values in OneHere you can choose to plot 3 different ATR values in 1 window. I use this indicator to get the values of my stop loss and take profits.
You can change the multiplier value for each ATR Line and the length of the base ATR.
Ty
Efficient Support & Resistance LevelsThis script is a mixture of my two previous scripts "True Strong Classical Support/Resistance Levels" and "Hidden Supports & Resistances + Round Levels". This combination brings on better identification of the most efficient support/resistance levels.
Note that "Hidden SnR Levels" part of the code is only expected to work on Forex charts, but apart from that, the other parts could be applied to any chart.
The script may:
- Draw classical support/resistance levels which retraced the price previously, aided by multi-timeframe analysis
- Draw hidden support/resistance levels based on psychological patterns of the price
- Adjust to wicks better than Pine Script built-in pivot functions
- Differ the levels color based on chart reactions
- Merge nearby classical levels to avoid congestion on the chart
Feel free to use it and send me your thoughts.
Trend trader StrategyFirst I would like to thank to @JustUncleL since this strategy started from one of his scalper strategies
This strategy can be adapted to all time charts .
First it has the session where we want to trade, for this example I choosed the EURUSD so I only take in consideration london/neywork session.
Its made from 3 EMA :
normal
slow
ultra slow
It has has the capacity to use HA candles into consideration if its needed.
At the same time we have a price channel made from faster MAs, that act like a bollinger band .
Together with all of them, we establish which trend we have if its uptrend or downtrend
Then we check the candles if they are below or above the MA , and based on the condition if they crossed recently we can suggest if its a buy or a long condition
At the same time we have 2 options of stop conditions:
Through a trailing stop made from ATR or % based
And second, a SL/TP made from pip points or % based.
For this example I used % based.
Let me know what you think about it, and if you found some nice settings for it. So far I only adapted to EURUSD 1 min time.
ATR_Trade_strategyATR Based Strategy
Identify the ATR range on Daily Chart.
ATR HIGH= Previous Close +ATR
ATR Low =Previous Close - ATR
Long when Close is above ATR High
Short when Close is below ATR Low
Exit when close moves below EMA(10) OR
a user-selected max loss