Crypto Trend Following StrategyThis is the strategy script indicator of Crypto Trend Following Strategy which can be used for back testing. With study script indicator, strategy can be easily automated.
To set alerts, see Crypto Trend Following Study indicator.
Script is using several moving averages to keep you on the right side of the trend. Signals are also filtered based on other indicators to prevent buying already overbought or selling already oversold coins and avoid ranging markets.
MAIN GOAL
Main goal of the strategy is long-term stable profit. No strategy has 100% accuracy therefore there always will be some false signals. But patience pays, with Trend Following Strategy, you will get couple of small loses while waiting to get big wins when coin is trending strongly. As you never know the right time you must sustain and be in all trades to make sure that you will not miss the big move.
BACKTEST
This script is for free to play with so you can back test and see for yourself how the strategy performs on any of your favourite coins.
Strategy is optimized and back tested for USDT and BTC pairs on 6h timeframe but it can be used on any pair and any timeframe.
RISK & REWARD
Strategy does not use safety orders as DCAs usually leads to bag holding sooner or later. It does not use take profit either as strategy will tell you when to buy and when to sell based on the actual market condition.
You should always use stop loss to protect your account from drawdown or even being liquidated.
You can change stop loss or take profit as you like or even back test the strategy with your preferred settings to find what suits you best.
STRATEGY SETTINGS
You can use the strategy script for fine tuning and find best settings for yourself.
If you need any help with settings do not hesitate to ask. I would also appreciate any feedback and ideas how to improve the script.
==== Indicators settings ====
RSI Long < and StochRSI Long <
• used to filter out buy signals of already overbought coins - ( stoch ) RSI must be under set value to fire a BUY signal
RSI Short > and StochRSI Short >
• used to filter out sell signals of already oversold coins - ( stoch ) RSI must be over set value to fire a SELL signal
ADX >
• used to filter out buy or sell signals in ranging markets - ADX must be over set value to fire a BUY or SELL signal
MA Fast and Slow Length
• Two moving averages to indicate an actual short-term trend
Baseline Length & Type
• Baseline is a moving average which confirms the longer-term trend. You can set length and type of the moving average
==== Test period settings ====
• You can set the back tested window
==== Strategy settings =====
• Target Take profit and Stop loss in %
• Only LONG trades – tick if you do not want to calculate SHORT trades in the back test
• Plot key levels on chart – if you use stop loss and/or take profit, you can turn on levels of price to reach (yellow – bought price, red – stop loss – green - take profit)
Back test calculates with commission and fixed order size. You can change these settings on Properties Tab
Automation
Takashi Bows Autopilot | 2nd Gen | [Strategy]This is a strategy tester for Takashi Bows Autopilot indicator. Please check for more details and instructions at our website.
Takashi Bows Autopilot is the ultimate trading tool. Effortless, its signals put traders inside strong trends, locking big profits that cover all loss generated during sideways trends.
An upgrade version of Takashi Bows v1, this script is the result of some operations developed by us, it can easily adapt to different markets and time frames. Now ranging from level 1 to 20, traders can select the amount of signals to be displayed on the chart. Based on price movement, it signals entries after strong movement up or down.
Take Profit included. If a position is opened in one direction, it should be closed at take profit levels or when a position in the opposite direction is opened.
Inputs
Level
Integer input. Sets a level for signals generated up and down. The higher the level, more signals on chart, and vice-versa.
Take Profit %
Float input. Sets a percent of take profit for exiting previous open position.
Rule
Float input. Sets a ruler for more accuracy on less volatile markets. Standard value 1 for high volatile markets, higher values for low volatile markets.
Disclaimer:
Back-tests do not guarantee performance on the future. Even if a trading setup is profitable in historical data. it could be unprofitable in the future.
To get access to this and other scripts check links below.
Woodies CCI Trading System - Patterns - Strategy TesterWoodies CCI Trading System - Patterns (Strategy Tester Mode) .
The Woodies CCI was initially designed for trading Stocks, Options and the Future Market.
However, different styles of traders can make use of it in various markets and any chart timeframes.
The Woodies CCI Trading System - Patterns takes a Strategy Builder like approach and can be easily configured to scan simultaneously for any available pattern.
The purpose of this tool is to compress everything down to 1 alert to warn of any opportunities, and it can also be automated .
To further improve the success rate , the patterns' performance can be studied with the help of the Strategy Tester .
The Strategy Tester Mode allows for instant backtesting on historical data.
It can assist in determining the right combination of patterns and exit rules , and it can help decide which patterns are better for which market.
The Alert Mode can be found on this page Woodies-CCI Trading System - Patterns (Alert Mode) .
This trading system contains all the particular features as described by Woodie, and more.
▪ Pattern Recognition (entry signals based on well-defined patterns)
- Trade patterns that are in agreement with the established trend
1. Zero-Line Reject (ZLR)
2. Trend Line Break (TLB) - with the trend
3. Horizontal Trend Line Break (HTLB) - with the trend
4. Tony Trade (TT)
5. GB100 (GB)
6. Reverse Divergence (RD)
- Trade patterns that are against the trend (these patterns indicate the possibility of a change in trend direction and are recommended for experienced traders)
1. Shamu Trade (ST)
2. The Famir Trade (FT)
3. Vegas Trade (VT)
4. Ghost Trade (GT)
5. Hook From Extreme (HFE)
6. Trend Line Break (TLB) - counter-trend
7. Horizontal Trend Line Break (HTLB) - counter-trend
▪ Exit rules
1. CCI Trend Line Breaks
2. CCI crossing back through the 100 lines
3. TCCI hooking or going flat, not moving, or no progress
4. CCI hook from extremes
5. Profit target hit
6. CCI forming a flat top formation
7. CCI crossing a Horizontal Trend Line
8. When the LSMA disagrees with the trade
9. CCI crossing the Zero-Line (ZL)
▪ WCCI Histogram coloring based on Woodie's trend definition
- Blue for Uptrend
- Red for Downtrend
- Gray for No Trend
- Yellow for trend establishment
▪ The LSMA is on the Zero-Line - it is the 25 period Least Squares Moving Average (it shows the ZL as a series of red and green segments)
- Red segments - the market price is below LSMA
- Green segments - the market price is above LSMA
▪ Chop Zone Indicator (CZI) - Positioned on the levels +100 and -100 (it shows market direction)
- Cyan shows up market
- Brown shows down market
- Multiple colors show market in a sideways mode
▪ Sidewinder Indicator (SI) - Positioned on the levels +200 and -200
- Red shows a flat or non-trending market
- Yellow shows a trending market
- Green shows a strong trending market
▪ The Woodies CCI (14) is indicated with the fuchsia color
▪ WCCI length auto-change to 20 on 1-hour chart intervals and higher
▪ The Turbo CCI (6) has a dark red color
▪ TWCCI auto-hide on 1-hour chart intervals and higher
▪ Early Alert Functionality available (eg 20 seconds before the signal is considered valid)
▪ Simplified Alerts
- An all in one alert
- Alerts for entry triggers
- Alerts for exit conditions
▪ Some Pattern Statistics are available on the chart in a panel
Simple Steps to set it up:
1 - Choose at least 1 pattern ( with-the-trend patterns are friendlier than the counter-trend ones)
2 - Choose at least 1 exit condition
3 - Set the alerts (1 for Entry and 1 for Exit, or 1 alert running for both Entry and Exit)
For Beginners:
For the new trader, the trend continuation patterns are easier to manage.
Newcomers should stick to trend-following patterns until they feel very confident!
Here are Three Entry Choices:
1 - Conservative -
Wait until the bar closes to enter - This is the easiest to execute.
2 - Conservative to Aggressive -
Woodie would like the beginner to enter the market if, with 20 seconds left in the bar, a valid CCI pattern presents itself.
3 - Very Aggressive -
Enter trade as soon as the bar indicates a signal during price bar formation. This is for experienced traders, as the signal conditions are final at the close of the bar and the intra-bar changes are not recorded.
Your implicit learned skills are put to the test here. Be fair to yourself and allow yourself time to grow and improve your skills.
You are strongly urged to follow the Option 2.
Money Management: Apply an Initial Protective Stop; Use Trade Exits; Study the past performance - Statistics (Strategy Tester Mode).
Related Tools:
Woodies-CCI Trading System - Patterns - Alerts
Risk Management System (Stop Loss, Take Profit, Trailing Stop Loss, Trailing Take Profit) - it can be connected to the Woodies-CCI Trading System - Patterns - Alerts
Early/Delayed Signal Explained
TMA Strategy v2.2This is a backtest of the TMA Indicator v2.2 using default parameters.
Backtest window: Jan 1, 2015 - Jul 21, 2019 (today)
For more information on the indicator and strategy seen here please take a look at this backtest:
For paper trading only. Do not use on real markets. Never make investment decisions based on this indicator alone.
THE PHOENIX v0.1 wSMDAS requested - Version of my Phoenix Script with both LONG and SHORTS, Backtest results will not be accurate unless you use margin trading.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Implementation in TradingView of modified version of the "Weis Wave".
indicatior will generate Long and Close Long signals according to market trend.
(Learned the hard way that using short instead of close long to close long orders will seriously mess backtest results and create unrealistic expectations)
Added a customizable RATE OF CHANGE indicator that I called SMD (sideways market detection) to try and avoid trading on sideways market.
References: "Trades About To Happen" David H. Weis, Division 2 of the Richard D. Wyckoff Method of Trading in Stocks.
I've had best results on 2h and 4h charts, I would not recommend to go below 1h, my general rule is to run the backtest on regular candle and make sure the backtest gives goodd result, but I use the script with autoview on heikin ashi.
Backtesting: You can change the dates of the backtest as you please, the backtest runs with 1000USD and 100% of equity orders, 3 ticks slippage and 0.1% commission.
For Autoview users: Will upload LONG ALERT and CLOSE LONG ALERT studies separately as I find it easier to see whats going on on 2 seperate indicators.
NO, IT DOES NOT REPAINT.
THE PHOENIX v0.2 wSMDThis is my first publication, since sept 2018 i tested/converted to strategy over 500 scripts, this is by far my most profitable script.
Implementation in TradingView of modified version of the "Weis Wave".
indicatior will generate Long and Close Long signals according to market trend.
(Learned the hard way that using short instead of close long to close long orders will seriously mess backtest results and create unrealistic expectations)
Added a customizable RATE OF CHANGE indicator that I called SMD (sideways market detection) to try and avoid trading on sideways market.
References: "Trades About To Happen" David H. Weis, Division 2 of the Richard D. Wyckoff Method of Trading in Stocks.
I've had best results on 2h and 4h charts, I would not recommend to go below 1h, my general rule is to run the backtest on regular candle and make sure the backtest gives goodd result, but I use the script with autoview on heikin ashi.
Backtesting: You can change the dates of the backtest as you please, the backtest runs with 1000USD and 100% of equity orders, 3 ticks slippage and 0.1% commission.
For Autoview users: Will upload LONG ALERT and CLOSE LONG ALERT studies separately as I find it easier to see whats going on on 2 seperate indicators.
NO, IT DOES NOT REPAINT.
Loop mediaThis bot should be used to enhaned trading of beginner-intermediate traders and not elliminate human analysis.
Please use it wisely.
Use Heikin Ashi and 4H candles and you are good to go
Miscbot 5m 2.2a - StrategyA general strategy for BitMEX that uses a combination of indicators to determine long and short zones.
Tested and coded for 5m. Use at your own risk.
Sign up for BitMEX using my referral for a 1 week trial: www.bitmex.com
I have also converted the strategy to a bot that can be used with autoview to make the trades for you.
Gunbot - Bbands - UnlockedThis is a repost, the first version was locked and I am unable to unlock it. So I'm simply publishing it anew.
Original Post
Original Description
This is more of a test run than anything. Gunbot approximation courtesy of Vosechu and the original can be found here.
MP ZeroLag EMANew script based on zlema. Hopefully responds better tot ake advantage of margin trading. As usual, commands for both spot trading and margin trading are included, just need to comment or uncomment (using // ) which you prefer. They are just labels so both work in the same way (long/buy, short/sell). Also added some flair to pretty it up a bit, and yes, those divergences are in fact functional, but not really part of the script (disclosure- the divergences are taken from DonovanWall's ideas, full credit here). There is a "new stuff" section, which you CAN use, but right now it was for art and introduced way too many functions at once to be of any use, but feel free to explore as an Easter Egg :)
Autoview friendly in design :)
As usual, all proceeds go to the betterment of these scripts as well as my upcoming surgery (Carpel Tunnel Syndrome, yuck)
1Dsg49Zt2FQ9BnUHrmXQwvhL5dd3teqa7g
ltc addy- LYUpgsHSHnKeYdNaj9bu9prK4QsnJXEQtP
pinkcoin addy- 2PoeXyAk3rF9FmMC8azme2mGzMYsEiZ5eS
Moving Average Cross and/or Bbands botHello TradingView and world!
This is one of our latest concepts for an actual bot builder. This script comes with a bunch of features that we're hoping will alleviate a lot of the stress and confusion around using and building strategies here on TV. Especially if the end-goal is to automate the strategies using Autoview.
This is a combination of 2 strategies, and gives you full control of each component within the script.
The 2 strategies are:
2 Moving Averages == if close is greater than moving average and moving average 1 is greater than moving average 2
Bolling Bands == if close is less than lower or greater than upper
Features / Settings included :
- Ability to change settings from a commodity market (default) to an altcoin or forex market.
- Backtest time period selector component
- Heiken Ashi Candles on/off
- Moving Average Strategy on/off
- Bollinger Bands Strategy on/off
- Both Moving Average settings can be adjusted
- Bollinger Bands length and multiplier can be adjusted.
- Pyramiding Greater Than, Equal To, or Less Than
- Trailing Stop with the ability to set a price in which the Trailing Stop activate
- Take Profit on/off and editable
- Stop Loss on/off and editable
- Margin Call on/off dependent on Leverage which is editable
- If pyramiding is used, the strategy will calculate and display your average on the chart
- Profit and Loss visuals added to the chart
You can watch a video here on how all the settings can be used and work together.
www.youtube.com
You can learn more about Autoview here:
autoview.with.pink
Get your invite and join us in slack here:
slack.with.pink
How to automate this strategy for free... Version 2Hello fellow traders and automation lovers.
It has been about 2 years since we originally created Autoview to connect your exchanges/brokers with your TradingView alerts. We've since added multiple exchanges, parameters and have built a large community filled with awesome, passionate traders.
One of the first strategies we built was sadly not a viable one for trading due to it using built-in variables that resulted in the backtest results being inaccurate in comparison to placing live trades. Luckily, we did not encounter repainting until a few strategies in, however, there was a point where we published a few of them as well. We will be going through all of our scripts again to not only eliminate any repainting and update to version 3, but to also include all the code snippets that we've learned to use over the years that allow for accurate backtesting and live trading.
The first script we are redoing is our How to automate this strategy for free using a chrome extension. .
Easter egg: This includes a new snippet of code that makes controlling how many orders you pyramid within a study fast and easy.
We look forward to bringing all of our scripts and delving deep into Pine again :)
Happy Trading
Autoview
MACD, backtest 2015+ only, cut in half and doubledThis is only a slight modification to the existing "MACD Strategy" strategy plugin!
found the default MACD strategy to be lacking, although impressive for its simplicity. I added "year>2014" to the IF buy/sell conditions so it will only backtest from 2015 and beyond ** .
I also had a problem with the standard MACD trading late, per se. To that end I modified the inputs for fast/slow/signal to double. Example: my defaults are 10, 21, 10 so I put 20, 42, 20 in. This has the effect of making a 30min interval the same as 1 hour at 10,21,10. So if you want to backtest at 4hr, you would set your time interval to 2hr on the main chart. This is a handy way to make shorter time periods more useful even regardless of strategy/testing, since you can view 15min with alot less noise but a better response.
Used on BTCCNY OKcoin, with the chart set at 45 min (so really 90min in the strategy) this gave me a percent profitable of 42% and a profit factor of 1.998 on 189 trades.
Personally, I like to set the length/signals to 30,63,30. Meaning you need to triple the time, it allows for much better use of shorter time periods and the backtests are remarkably profitable. (i.e. 15min chart view = 45min on script, 30min= 1.5hr on script)
** If you want more specific time periods you need to try plugging in different bar values: replace "year" with "n" and "2014" with "5500". The bars are based on unix time I believe so you will need to play around with the number for n, with n being the numbers of bars.
How to automate this strategy for free using a chrome extension.Hey everyone,
Recently we developed a chrome extension for automating TradingView strategies using the alerts they provide. Initially we were charging a monthly fee for the extension, but we have now decided to make it FREE for everyone. So to display the power of automating strategies via TradingView, we figured we would also provide a profitable strategy along with the custom alert script and commands for the alerts so you can easily cut and paste to begin trading for profit while you sleep.
Step 1:
You are going to need to download the Chrome Extension called AutoView. You can get the extension for free by following this link: bit.ly ( I had to shorten the link as it contains Google and TV automatically converts it to a symbol)
Step 2: Go to your chrome extension page, and under the new extension you'll see a "settings" button. In the setting you will have to connect and give permission to the exchange 1broker allowing the extension to place your orders automatically when triggered by an alert.
Step 3: Setup the strategy and custom script for the alerts in TradingView. The attached script is the strategy, you can play with the settings yourself to try and get better numbers/performance if you please.
This following script is for the custom alerts:
//@version=2
study("4All-Alert", shorttitle="Alerts")
src = close
len = input(4, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
rsin = input(5)
sn = 100 - rsin
ln = 0 + rsin
short = crossover(rsi, sn) ? 1 : 0
long = crossunder(rsi, ln) ? 1 : 0
plot(long, "Long", color=green)
plot(short, "Short", color=red)
Now that you have the extension installed, the custom strategy and alert scripts in place, you simply need to create the alerts.
To get the alerts to communicate with the extension properly, there is a specific syntax that you will need to put in the message of the alert. You can find more details about the syntax here : gist.github.com
For this specific strategy, I use the Alerts script, long/short greater than 0.9 on close.
In the message for a long place this as your message:
Long
c=order b=short
c=position b=short l=200 t=market
b=long q=0.01 l=200 t=market tp=13 sl=25
and for the short...
Short
c=order b=long
c=position b=long l=200 t=market
b=short q=0.01 l=200 t=market tp=13 sl=25
If you'll notice in my above messages, compared to the strategy my tp and sl (take profit and stop loss) vary by a few pips. This is to cover the market opens and spread on 1broker. You can change the tp and sl in the strategy to the above and see that the overall profit will not vary much at all.
I hope this all makes sense and it is enough to not only make some people money, but to show the power of coming up with your own strategy and automating it using TradingView alerts and the free Chrome Extension AutoView.
ps. I highly recommend upgrading your TradingView account so you have access to back testing and multiple alerts.
There is really no reason you won't cover the cost and then some on a monthly basis using the tools provided.
Best of luck and happy trading.
Note: The extension currently allows for automation on 2 exchanges; 1broker and Okcoin. If you do not have accounts there, we'd appreciate you signing up using our referral links.
www.okcoin.com
1broker.com