Volatilità
ATR Trailing Stop advanceHello Traders,
The average true range (ATR) is a technical analysis indicator that measures market volatility . The ATR indicator is easy to use and gives an accurate reading about an ongoing trend that very effective.
I. Signals are used for entry
- Entry your long position (buy) when price crosses above the ATR trailing stop line.
- Entry your short position (sell) when price crosses below the ATR trailing stop line.
II. ATR Trailing Stops Setup
- The ATR period is used to adjust the sensitivity of the ATR trailing stop line. With larger period, the ATR will "smoother" but will signal slower than the price.
- ATR multiplier is a multiple of ATR trailing stop.
- If you want to backtest with trailing take profit, you can tick the box “test with trailing?”. It will affect 2 parameters which are: Trailing point and trailing offset. Where: Trailing Point is the trigger point, the distance from the entry price. Trailing Offset is the take-profit price, which is the distance from the Trailing Point.
III. A few ATR trailing stop configurations, you can use for backtesting:
1. BTC /USDT (M15):
- ATR period: 80
- ATR multiple: 1.91
- Trailing point: 63
- Trailing offset: 10
2. BTC /USDT (M30):
- ATR period: 71
- ATR multiple: 1.63
- Trailing point: 60
- Trailing offset: 10
3. ETH/USDT (M30):
- ATR period: 90
- ATR multiple: 1.81
- Trailing point: 1.12
- Trailing offset: 0.15
4. XRP/USDT (M30):
- ATR period: 125
- ATR multiple: 1.61
- Trailing point: 0.0016
- Trailing offset: 0.0003
IMPORTANT:
Generally, ATR trailing stop still fails in a sideways-moving market. Be Careful and research the strategy before making a buy/sell order.
Hope you enjoy it. We look forward to hearing from you so we can improve this strategy.
Thank you,
BTC and ETH Long strategy - version 1I will start with a small introduction about myself. I'm now trading cryto currencies manually for almost 2 years. I decided to start after watching a documentary on the TV showing people who made big money during the Bitcoin pump which happened at the end of 2017.
The next day, I asked myself "Why should I not give it a try and learn how to trade".
This was in February 2018 and the price of Bitcoin was around 11500USD.
I didn't know how to trade. In fact, I didn't know the trading industry at all.
So, my first step into trading was to open an account with a broken. Then I directly bought 200$ worst of BTC . At that time, I saw the graph and thought "This can only go back in the upward direction!" :)
I didn't know anything about Stop loss, Take profit and Risk management.
Today, almost 2 years after, I think that I know how to trade and can also confirm that I still hold this bag of 200$ of bitcoin from 2018 :)
I did spend the 2 last years to learn technical analysis , risk management and leverage trading.
Today (14/05/2020), I know what I'm doing and I'm happy to see that the 2 last years have been positive in terms of gains. Of course, I did not make crazy money with my saving but at least I made more than if I would have kept it in my bank account.
Even if I like trading, I have a full time job which requires my full energy and lots of focus, so, the biggest problem I had is that I didn't have enough time to look at the charts.
Also, I realized that sometimes, neither technical analysis , nor fundamentals worked with crypto currency (at least for short time trading). So, as I have a developer background I decided to try to have a look at algo trading.
The goal for me was neither to make complex algos nor to beat the market but just to automate my trading with simple bot catching the big waves.
I then started to take a look at TV pine script and played with it.
I did my first LONG script in February 2020 to Long the BTC Market. It has some limitations but works well enough for me for the time being. Even if the real trades will bring me half of what the back testing shows, this will still be a lot more than what I was used to win during the last 2 years with my manual trading.
So, here we are! Below you will find some details about my first LONG script. I'm happy to share it with you.
Feel free to play with it, give your comments and bring improvements to it.
But please note that it only works fine with the candle size and crypto pair that I have mentioned below. If you use other settings this algo might loose money!
- Crypto pairs : XBTUSD and ETHXBT
- Candle size: 2 Hours
- Indicator used: Volatility , MACD (12, 26, 7), SMA (100), SMA (200), EMA (20)
- Default StopLoss: -1.5%
- Entry in position if: Volatility < 2%
AND MACD moving up
AND AME (20) moving up
AND SMA (100) moving up
AND SMA (200) moving up
AND EMA (20) > SAM (100)
AND SMA (100) > SMA (200)
- Exit the postion if: Stoploss is reached
OR EMA (20) crossUnder SMA (100)
Here is a summary of the results for this script:
XBTUSD : 01/01/2019 --> 14/05/2020 = +107%
ETHXBT : 01/01/2019 --> 14/05/2020 = +39%
ETHUSD : 01/01/2019 --> 14/05/2020 = +112%
It is far away from being perfect. There are still plenty of things which can be done to improve it but I just wanted to share it :) .
Enjoy playing with it....
Ranged Volume Strategy - evoThis is the strategy version for the ranged volume indicator I published a few days ago.
Long : First yellow break-out after red
Short : First red break-out after yellow
Because this is volume, you want to be using this on an exchange with high volume for the best results. Default settings are not optimized but work great on bitcoins daily chart.
A short explanation of the indicator below:
MBRLong only strategy that focuses on momentum, acceleration and volatility.
Backtested results are from 2011-2020
10 ticks of slippage and 0.25% comissions.
$10k starting equity is used and 33% of equity is traded per position.
Backtest isn't indicative of future results, automated forward testing will start soon and results will be posted in this thread.
E.B. StrategyThis strategy use a custom indicator. When the green line cross above the level 6, it's going to sell the stock. When cross down -6, it's going to buy the stock. You can change the level's number to adapt it to any asset.
It works for US30, or any Dow's Futures . But you can adapt it to any market, FOREX/Crypto/Stocks.
Also it works better in 5/15 min chart, but you can adapt it to any resolution too.
We use EMA 100 and ADX 14 as a filter of the indicator.
EntryModel is the level to make Buy and Sell transactions.
ExitModel is the level to close transactions.
In TPandSL you can choose:
No -> if you want only buy and sell, without closing transactions.
Model -> you will use the ExitModel parameter to close transactions.
% -> if you want to use a percentage of TP and SL.
Volatility -> to adapt TP and SL with the volatility of the moment.
Pips -> if you want to use Pips to close transactions.
If you would like to have the access, just DM me!
PRP - Pivot Reversal + PSAR Strategy [QuantNomad]PRP is a combination of Pivot Reversal and PSAR Strategy. With this strategy, I tried to be in a position for big moves in the market.
The strategy uses Pivot Reversal entries with an additional condition that TR of entry bar should be at least X ATRs. This allows to filter out some false signals.
For exits, I recoded the PSAR indicator as trailing stop loss. So I start PSAR Y ATRs below the Pivot level price crossed at entry. After that PSAR behaves as usual.
For stability and easier execution, I check conditions only on the close, no stop/limit orders are used.
Buy BTC Helper - Buy SPOT, sell to USD (BTC-ETH) - By Che_TraderBuy BTC Helper - Buy SPOT, sell to USD (BTC-ETH) - By Che_Trader
The Buy Helper is specially designed for users who want to invest in BTC in the long term.
Usually you will make about 20-25 trades per year in spot trading.
You do not need a margin account or understand anything about trading.
Just follow the "BUY" and "To usd" signals to make sure you are on trend when BTC goes up but also take profit when BTC starts going down.
This simple tool has beaten the HOLD in all the years tested, also in bull trend or bear trend.
We'll develop this better.
*****************************************************************************************************************************************************************************
General stats from 2017 to 2020 are in the bottom, These are:
(**All data include 0.15% fees+slippage what is more than double the normal fees**)
- 8462% Gains (compound)
- 72 transactions
- 3.238 Profit Factor
- 18.58% Max drawdown
*****************************************************************************************************************************************************************************
The year-by-year analysis is very interesting:
*****************************************************************************************************************************************************************************
2017 HOLD result
+1254%
Buy helper 2017 results:
- +1214.5 % Gains
- 19 transactions
- 11% max drawdown
The 2017 profits are very similar, so you can expect similar win in next bull run.
This is something you'd expect, but it's hard to get in a bot.
*****************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************
2018 Hold Result
-71%
Buy helper 2018 results:
- +59% Gains
- 21 transactions
- 13.53% max drawdown
These results are particularly impressive. In a year in which BTC declined 72% and with a strategy of only LONG,
that is, without being able to take profit from the crashes,
we were able to finish the year with more than 59% of the money we made on the 2017 bull run.
*****************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************
2019 Hold Result
+94%
Buy helper 2019 results:
- +202% Gains
- 20 transactions
- 10.4% max drawdown
In 2019 with the buy helper you gained +100% the performance of hold BTC
*****************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************
2020 Hold Result (up to 04 may 2020)
+24.5%
Buy helper 2020 results:
- +39% Gains
- 11 transactions
- 15.43% max drawdown
In 2020 with the buy helper you gained +50% the performance of hold BTC
*****************************************************************************************************************************************************************************
*****************************************************************************************************************************************************************************
To get access, you can send me a PM here or at a link in the tradingview profile.
*****************************************************************************************************************************************************************************
Dazzling BoltsThis is three moving average based strategy focused on trend-following. Targets and stops are set based on ATR. Following image pictures the strategy with all mas plotted:
Buying conditions are:
►A smoothened moving average (red) is above the exponential moving average (yellow)
►An exponential moving average is above simple moving average (black)
►Low five candles ago was still above the exponential moving average
►Low two candles ago reached below the exponential moving average
►Close of the previous candle was above the exponential moving average
►Ema force is disabled or exponential moving average set candles ago (orange) is still above simple moving average now.
If these conditions are met, Dazzling Bolts will always give you a signal. However, it holds only one position at a time and it will not buy again until it is closed or exited.
There are two ways exiting may happen. Smoothened moving average crosses below simple moving average or it reaches value based on your settings of average true range and its multiplier.
Settings 10/76/200/true/50/true/true/5/5 shows perfect results on EURUSD 15m chart but it does not guarantee the results. It is only 62 trades which is barely a useful statistical source. It is also highly optimized which means its settings filters out bad trades that may be bad only because of randomnation rather than set market behaviour. You need to test it on 200 trades + before using.
WinStop Strategy for BItcoinWinStop strategy is a high alpha low volatility trend following strategy based on Validate PSAR trends and RSI and William %R oscillators.
Strategy - Backtest Uber WAE - Waddah Attar Explosion [UTS]Backtest of WAE - Waddah Attar Explosion
Backtest with focus win/loss profitability.
Formula: profitability = win / (win+loss)
Default equity 100k USD
Default 2% Risk per trade
Default currency USD
Define backtest interval precisely by month, year, day
LONG and SHORT positions
Visualize SL and TP on chart
ATR (len: 14, smooth: SMA)
ATR based Stop-Loss, if hit trade will be closed and considered as loss
ATR based Take-Profit, if hit trade will be closed and considered as win
On TP or SL hit the trade is closed and marked as win/loss
[astropark] 4h Crypto/USDT Strategy [strategy]Dear Followers,
today a new Swing and Scalper Tool , which works great for Cryptocurrencies on the USDT market on 4h timeframe .
This tool has some cool features:
it works on many timeframes, but best one is 4H timeframe : so you can enjoy both manual and bot trading by using a 24/7 running bot;
it comes in three working mode : default, alternative and high frequency ;
auto-stoploss: you can enable an stoploss in trade, bot will follow
It's always suggested to use a proper money and risk management in trades. This is not the "Holy Grail", it does not exist.
Strategy results are calculated from the beginning of 2018 till now, so more than 2 years, using 10000$ as initial capital and working at 1x leverage (no leverage at all!) and 0.1% trading fee already applied.
You can always DM me if you need any help to configure it on your preferred chart or if you want a customization of this bot for a specific pair.
This script will let you backtest this script and check profitability on your preferred market.
The alarms version of this indicator, which will let you set all notification alerts you may need in order to be alerted on each triggered signals, can be found by searching for astropark's "4h Crypto/USDT Strategy".
This is a premium indicator , so send me a private message in order to get access to this script.
KundaliniThe Kundalini is a technical indicator. Based on algorithm calculations, this indicator extrapolates the previous price for the next bar. Plus addition Multi time frame ATR volatility Reading environment for higher conditions
Here is how Dominator is calculated:
1. The study estimates the price projected for the next bar. The estimated price is based on the algorithm method.
2. The study extrapolates this value to find a projected price change for the next bar.
The resulting extrapolated value is shown as a histogram on a lower subgraph. By default, sections of the histogram where the extrapolated value is increasing are shown in green; sections corresponding to the decreasing value are shown in red.
Note: Value projection is purely mathematical as all calculations are based on algorithm averaging of previous values.
Overlay True
The strategy includes 3 different adjustable levels for the ladder , plus automatic adjustable stop loss and takes profit calculated from your average entry price after each ladder adds.
Adjustable BAcktest Window.
1 long signals
3 ladder long add signals
1 short signals
3 ladder short add signals
1 dynamic stop calculated from your average entry price
1 dynamic take profit calculated from your average entry price
Please Private Msg me if you like more info about the script Full pdf available or if you need access to it
thx for your time and support
Gap Trading Strategy: CME BitcoinI created a strategy which finds gaps on CME Futures market for Bitcoin, BTC1! and opens a long or short position on the crypto exchange depending on what kind of gap was found (up or down) on CME.
Up gap: today open price > previous day high price
Down gap: today open price < previous day low price
Two lines below the main chart show when gaps appear. The green line represents the size of up gaps, when it crosses zero it gives a long signal. The red line - represents the size of down gaps, when it crosses zero - short signal.
Instead of having to look between multiple charts, this simply overlays the past weeks open and close should a gap appear.
Usage:
Strategy flips long / short depending of indicator signals. It could cut the position by stop loss or take profit.
Features:
ability to set stop loss and take profit in %
ability to set delta for gaps (if you want to filter small ones)
ability to choose strategy type. Standart: Long Up/Short Down || Inverse: Short Up/Long Down.
Backtesting:
Backtested on BTCPERP ( FTX ) and XBTUSD (Bitmex).
It shows a low drawdown, a small number of trades and 50% of profit for the 2020.
For example, I set high delta for down gaps to filter small ones
Strategy doesn't repaint.
Mean Reversion w/ Bollinger BandsThis is a more advanced version of my original mean reversion script.
It employs the famous Bollinger Bands.
This robot will buy when price falls below the lower Bollinger Band, and sell when price moves above the upper Bollinger Band.
I've only tested it on the S&P 500, though you could try it out on other assets to see the backtest performance.
During the recent COVID-19 bear market drop, it produced several buy signals on the S&P which I followed, and made some nice gains so far.
I still think this would make a better investing strategy (buy undervalued / sell over-valued), rather than a trading strategy.
I use this robot for my long term portfolio.
TS - Long Term Trading Algorithm - StrategyStrategy to the bespoke TS - Trading Algorithm. Highly profitable cryptocurrency trading model.
This script is long only profitable strategy- there is a script coming in the next few days for shorter timeframe long & short trading.
- Backtesting is from 2017.
- 0.05% commission
- 100% capital allocation per trade.
Access to both the backtesting strategy & indicator is paid - PM me for details.
Scalping rubicointThe scalping strategy is very common in currency trading, since Forex is a market that generally presents very clear trends in very short periods of time. There are different indicators for scalping, such as the RSI (relative strength) or the investment volume, the important thing is to choose one and apply it correctly. An example of a one-minute scalping strategy is buying 20,000 euros in EUR / USD when the currency pair is trending upwards (such as + 0.33%). Since it is relatively rare for the trend to reverse in one minute, the trader following this Forex scalping trend would sell them after one minute. Typically at the end of the sale of the currency is that the investor will earn a margin close to + 0.33% for the total value of the investment.
GOLD SUPER TREND ARROW SIGNALS STRATEGY WITH PERFORMANCEThe strategy is based on combination of ATR, Moving Averages, Volatility indicators that was filtered and final strategy based on accurate arrows that catch trend and
also predict pivot points for intraday Gold ( XAUUSD ) charts.
The strategy script can be used for time frames 30 MIN, 45 MIN, 1Hour, 4 HOURS.
The goal was to create trending strategy with maximum profit and lowest drawdown.
For initial deposit $12000 time frame 30 MIN profit was 42% with maximum drawdown 6%:
For time frame 45 MIN profit was 30% with maximum drawdown 5%:
USDJPY 30 MIN STRATEGYThis strategy uses a combination linear regression moving averages and ATR, fine-tuned to the USD/JPY 30 minute chart. Without going into too much detail, the long/short signals are based upon linear regression moving average crosses and slope with ATR confirmation.
All code is based on one time frame with no security functions so zero repaint. Backtest is based upon compounding 100% of your capital using zero leverage.
PM me for access to the strategy. Alert indicator for this available for donation via BTC.
I'm not a professional coder, but the backtests speak for themselves. As with anything on Tradingview, your results may vary and use at your own risk. Past performance is no indication of future performance.
- Hoffdaddy
Intraday Trend Following Algorithm [Bitduke]Description :
Trend following strategy that constantly adjusts to volatility and avoids of most whipsaws; rapidly moves up or down according to a quickly changing market. Great strategy for high volatile markets, like crypto market.
Based on a couple of special moving averages with integrated smoother which helps to avoid whipsaws.
Backtesting
Backtested on BTCPERP ( FTX ). It shows much better results on 4h timeframe (more than 222% YTD) and relatively low drawdown which allows you to use up to x3 leverage without a fear of huge losses. I.e if we have 5% drawdown for this strategy and using x3 leverage then to be prepared to 15% drawdown maximum in this case.
Initial Capital: $1000
Capital per trade: $1000
Including fee: 0.075% (buy + sell) side, type "taker"
When we get a signal (green/red column on chart) algo opens a trade by the next candle open price.
Others:
Risk management: Stop loss/Take profit in %
Strategy doesn't repaint .
----------
To access: sign up on FTX using ref link from my signature.
Bollinger Bands Trend StrategyThis is a trading strategy for trend traders.
Buy signals are generated when price closes above upper band.
Sell signals are generated when price closes below lower band.
Good luck.
Squeeze Momentum Strategy SL TP v2Improved version of my Squeeze Momentum Strategy.
Changes:
Possible to change source: ohlc4, hl2, hlc3, close
Enter your stop loss and take profit in %, NOT ticks
Working and robust even without take profit / stop loss
Yearly drawdown lower than 20%
Backtesting
Backtested on BTCPERP (FTX). It shows much better results on 1h timeframe (about 200% yearly, 55% in 2020) and relatively low drawdown to date.
Initial Capital: $1000
Capital per trade: $1000
Including fee: 0.075% (buy + sell) side, type "taker"
Strategy doesn't repaint.
Shortly about Squeeze Momentum Indicator:
This is a derivative of John Carter's "TTM Squeeze" volatility indicator, as discussed in his book "Mastering the Trade" (chapter 11).
----------
To access : sign up on FTX using ref link from my signature.
Pivot Point SuperTrend [Backtest]Hello All,
This is backtesting result of following indicator/strategy. I didn't work on adding other indicators. maybe in the future I can try to combine this with other indicators.
You can visit following link to see "Pivot Point SuperTrend" . by using this backtesting tool, you can test&find better options
There is option "Use Center Line to Close Entry for 50%" . by default it's not enabled. if you enable this option, pivot point center line may push you to close your entry for 50% (can be used as early stoploss/take profit line if you think it's risky)
Enjoy!