ATR Parabolic SAR Strategy [QuantNomad]I created a version of Parabolic SAR when I accelerate it not based on the difference from the extreme point but based on current ATR. So the idea is that for a more volatile market it should move faster.
Performance is calculated based on 25% equity invested and 0.1% commission.
What do you think about it? Does it make sense to do something like that?
Do you have in mind other ways I can accelerate it when the market starts to be more volatile?
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as good as in historical backtesting.
This post and the script don’t provide any financial advice.
ATR
Trending True RangeDisplay a smoothed true range during trending markets, thus filtering any measurement occurring during ranging markets. Whether the market is trending or ranging is determined by the position of the efficiency ratio relative to its Wilder moving average.
Settings
Resolution : resolution of the indicator
Length : period of the efficiency ratio and the Wilder moving averages used in the script
Usage
If you are not interested in volatility during ranging markets, this indicator might result useful to you. An interesting aspect is that it both measures volatility, but also determine whether the market is trending or ranging, with a zero value indicating a ranging market.
Indicator against Atr, with both length = 14, our indicator might be easier to interpret.
Note
Thx to my twitter followers for their suggestions regarding this indicator. I apologize if it's a bit short, the original code was longer and included more options, but forcing a script to be lengthy is a really bad idea, so I stayed with something less flashy but certainly more practical, "classic Grover" some might say.
Thx for reading!
ATR Take Profit bandsSimple ATR-scaled levels or bands of suggested price to take profit on directional trades.
SwingArm ATR Trend IndicatorThe general idea of using SwingArms is to provide a visual confirmation of a trend change.
Green for bullish (BUY)
Red for bearish (SELL)
A color-coded system providing an easy way for a novice to understand.
Converted to TradingView based on the work of Jose Azcarate.
I hope you guys enjoy.
Trailing Stop LossTrailing stop loss indicator to determine when to exit a position.
Multiple trailing stop loss calculation techniques are implemented:
ATR: Determines stop loss using a gap from recent highest value, that gap is defined by the ATR value and a multiplier
MA: Just a simple moving average used as a stop-loss
Percentage: Uses a percentage of the price
The script also implements alerting to be notified when the stop loss price is reached.
HG Scalpius - ATR Up/Down Tick HighlightHG Scalpius - ATR Up/Down Tick Highlight
This indicator highlights ATR(14) upticks (green) and downticks (red) and has the below application:
- If a new trend closing high (low) is made on a downtick in ATR, decreasing volatility mode turns on
If you come across or think of any other useful scripts for the HG Scalpius system please comment below!
Links to 2 previous HG Scalpius scripts:
-
-
Happy trading!
Code:
study(title="Average True Range", shorttitle="ATR", overlay=false)
length = input(title="Length", defval=14, minval=1)
smoothing = input(title="Smoothing", defval="RMA", options= )
ma_function(source, length) =>
if smoothing == "RMA"
rma(source, length)
else
if smoothing == "SMA"
sma(source, length)
else
if smoothing == "EMA"
ema(source, length)
else
wma(source, length)
ATR = ma_function(tr(true), length)
c = ATR >= ATR ? color.lime : color.red
plot(ATR, title = "ATR", color=c, transp=0)
cATRpillar Strategy**This is my first strategy on the Pine editor, any tips or tricks from the community would be awesome!
This strategy was developed from my indicator "cATRpillar". it uses the ATR range values to determine entry, and uses EMA values to determine an exit if the market goes against it.
cATRpillerThis indicator is used to identify range breakouts using an ATR multiplier. My first script, Im sure there are indies out there like this, but this my favorite way to identify breakouts and trends.
ATR Percent of PriceShows:
1. The current True Range, taken as ATR(1) as % of the close price
2. The SMA(14) of the current True Range, taken as ATR(1) as % of the close price
ATRxNIndacator shows price range calculated as previous closing price +/- ATR * multiplier
Setup options: multiplier, average type (RMA, EMA,SMA,WMA), Source and number of point to average
Индикатор показывает диапазон цен рассчитанный как цена предыдущего закрытия +/- ATR * множитель
Настраивается : Множитель, тип усреднения (RMA, EMA,SMA,WMA), Источник и Длина усреднения
ATR Stop Loss LONG/SHORT by melihgulerYou can monitor the stop loss level according to ATR in 2 ways (Long/Short).
ATR_bandCreates lower and upper band on BTCUSD chart based on ATR value of the previous day and daily open of the current day
ATR Trailing Stop by ceyhunSame 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 color where there is deterioration.
//InfoPanel
Buy Price = Blue draws the circles at the purchase price.
Profit Long>20 = Risk level taken as a percentage, I got the highest 20%, you can determine as you wish.
Sell Price = Red draws the circles at the purchase price.
Profit Short>20 = Risk level taken as a percentage, I got the highest 20%, you can determine as you wish.
ATR _NormalizedThis script is good to use with Williams %R indicator, to find out when price has bottomed out.
ATR has to be over 90 and Williams %R ( lenght 52 ) has to be over 95 to find out level around which one is good to buy.
You can check back, to see that this worked very well over history. Best way to use this 2 indicators is with DCA ( dollar cost average ), as area where to buy can go a little bit down and up for as long as few months. So dont just jump in, use DCA .
Fear And Greed IndicatorThe Fear And Greed Indicator is a very popular indicator on the Bloomberg platform and since I didn't have actual source code to work with, this is a very close approximation of that indicator. Let me know if you spot any discrepancies with the original and I will do my best to fix them.
For buy and sell signals it is pretty straightforward. Just buy when the green (greed) is in control and sell when the fear (red) is in control
This was a special request so let me know if you want to see more scripts from me or if you want something custom!
Volume_ATR_HistricalVolatilityCompare Volume, ATR, Historical Volatility in same axis. (percentage last 1000)
Show ATR and 1st hour high+low1. Shows TR at daily bars
2. Shows ATR lines intraday: 100% and 75% (customizable)
3. Shows hint with ATR for current day and percent passed
4. Show high and low of the 1st hour
Twin Range FilterAn experiment to combine two range filters and plot the average of both to smooth out the signals.
This works significantly better than the typical ATR set-up, but there's still too much noise here to set and forget with bots. Use it as the basis of your own system with additional filtering on top.
ATR %Displays ATR percentage with 2SD. When value is greater than 12% I consider the stock as highly volatile
Long Wick TrialI've created this as a confirmation indicator to help know when market conditions are favorable to enter a trade. It measures volume, volatility, and ATR. It is not intended to tell you when to enter/exit the market, but use it with another indicator such as the mirror macd to filter out many losses and avoid entering the market during low volume or excessive volatility that may trip your stop loss.
Green = Favorable Market conditions
Yellow = Enter with caution, the market is moving sideways but is slightly trending
Orange = Enter with caution, the market is trending but extremely volatile and may trip stop loss early
Black = Shouldn't enter market here, market is moving sideways and volume is also low.
MACD/ATRThis indicator is a restricted MACD .
I reached this with a little trick: I devided it by ATR . This way it is most of the time inside the -1..1 range. It depends on the length of the ATR's period. If it is greater, the probability of outliers is greater.
With this indicator you can use cerain levels of MACD and its histogram as a trigger.
Share with me if you found it useful.