MACD Trendprediction Strategy V1A trend following indicator based on the MACD and EMA. In this case, signals are not generated by crossing the signal lines as with the MACD, but as soon as the distance between the signal lines increases or decreases. A profit factor of 1.6-3.5 is achieved.
Ein Trendfolge-Indikator, auf der Basis des MACD und EMA. Dabei werden Signale nicht wie bei dem MACD per Kreuzung der Signallinien generiert, sondern sobald ein der Abstand der Signallinien zu oder abnimmt.
Moving Averages
CMF Velocity with 200EMA StrategyThis is a demonstration of my new Indicator - CMF Velocity - in a profitable trading strategy. It is able to take shorts when the close is less than the 200 EMA, and longs when the close is greater than the 200 EMA.
RatingsThis strategy script is a modified version of the built-in 'Technical Ratings' strategy script.
English:
www.tradingview.com
Russian:
www.tradingview.com
Changes:
1) Added option to disable long and short positions (checkboxes 'Long' and 'Short').
2) Added date selection option.
3) The default commission is 0.1% (original 0%).
4) 100% of capital is used by default (5% in the original version).
KSR Strategyself input Moving Average crossover with trend indicator which eliminates most of false signal
DEMA/EMA & VOL (Short strategy)Hello,
I am trying to build a short momentum strategy that is based off of the DEMA crossing under the EMA, but because many momentum strategies send too many signals, I have also implemented a volatility condition based on the average true range percentage (ATRP). Essentially, as momentum moves downwards + volatility (ATRP) moves upwards, it shorts the security. However, I am having an issue with exiting trades. I think this would be a great strategy if I could simply get the strategy to exit the trades. Does anyone mind looking through the source code and tell me what I might be doing wrong? In return, I would hope that this strategy could be useful to you in same way! Thank you for looking!
Bear & Bull Zone Signal StrategySince I love to mix and match, here is something fresh and that actually works on the breakout of Ethereum without losing your ass on lagging indicators.
It blends some of the nice parts of my previous scripts while moving to big boy pants with a twist on the Fibonacci retracement using SMA and EMA at multiple levels to do a sanity check.
Is it too good to be true? Nope, just what happens when a Solution Architect starts messing around with crypto and applies engineering and mathematics to the mix. You get a strategy that really doesn't have high profit losses when you tweak it just the right way.
What's the right tweak you ask?
1. Start with a 30 minute timeframe and set your window start date to the date the market began the bear or bull run
2. Make sure you can see your strategy performance window (not the graph one)
3. Set Stop Loss and Target Profit to 50%
4. Use your mouse wheel or up and down arrows and mess around with the RSI, go down one at a time but no lower than 7. Whichever value displayed the highest long or short gain is the one to pick.
5. Now select long or short only based on whichever one shows the highest gain.
6. Now go to K and D, leave K as 3 and check what happens when D is 4 or 5. Leave D at the value that gives you the highest gain.
7. Now go to EMA Fast and Slow Lengths. Leave Fast at 5 and check what happens when the Slow is moved up to 11 or 12, do the gains go up. If not, check what happens when Slow is moved down to 9, 8, or 7. Whichever gives you the highest gain, leave it there. Now go mess with the fast length, keep in mind that fast must always be less than slow. So check values down to 3 and up to 6. Same concept, mo money...leave it be.
8. Now go mess with the Target Profit, I start at 5, hit enter, then go to 7, hit enter, then 9...up by 2 until I get to 21 to make sure I don't hastily pick a low one and always keep in mind between which values the gain switched from high to low. For example, in this example I published at 11 it was $5k and at 13 it was $3700 for the gains. So after I got up to 21 I went back to 11 and started going up by 0.01 steps until the value dropped, which was at 11.19 so I set it at 11.18.
9. Now stop loss is trickier, you've maximized the gains, which means if you set the stop loss at a low value you will sacrifice gains. Typically by this point your loss is less than 10% with this script. So, my approach is to find the value where the stop loss doesn't change what I've tweaked already. In this example, I did the same start at 5 and go up by 2 and saw that when I went to 17 it stopped changing. So I started going back down by 0.5 and saw at 15.5 the gains went lower again. Now I started going back up in steps of 0.01 and at 15.98 it went back to the high gain I already tweaked for. I kept stop loss there and unleashed the strategy on ETH.
So far so good, no bad trades and it's been behaving pretty well.
ChBrkOutStrategySMAThis script relies on channel breakout strategy and the exit condition is defined by the SMA crossover, this works well on futures and Indices
Moving Average Color StrategyHello,
Strategy based on scrips "Moving Average Color Direction Detection" from Dreadblitz published on Aug 9, 2019.
You can chose MA type, length and reaction setting to adjust to time frame/ticker. Always seemed like RSI is ahead of actual price action
and just messing around with MA on the RSI .
Couple I found:
SPXS / SPXL 20M timeframe, MA 32 Reaction 2 (HullMA) 50% of equity so you dont lose everything :)
UVXY / SVXY 20M MA 32 Reaction 6 (HullMA) 50% of equity so you dont lose everything :)
APPLY to RSI , or any indicator really and play with Adjustments.
Morun Astro Trend MAs cross StrategyAstrology machine learning cycles indicator signals with technical MAs indicators strategy, based on signals index of Github project github.com
EMA & SupertrendStrategy has been built based on the crossover of 21 EMA (EMA 1) and 55 EMA (EMA 2). Along with with strategy, user can alter the period of EMA 1 & EMA 2 based on their suitability.
When EMA 1 crossover EMA2 or when prices closes above EMA 1 and EMA 1 is greater than EMA 2, strategy will generate Buy signal.
Position gets closed when price closes below EMA 2.
200 EMA, 233 EMA and Supertrend has been added for study purpose.
Jaws Mean Reversion [Strategy]This very simple strategy is an implementation of PJ Sutherlands' Jaws Mean reversion algorithm. It simply buys when a small moving average period (e.g. 2) is below
a longer moving average period (e.g. 5) by a certain percentage and closes when the small period average crosses over the longer moving average.
If you are going to use this, you may wish to apply this to a range of investment assets using a screener for setups, as the amount signals are low. Alternatively, you may wish to tweak the settings to provide more signals.
Context can be found here:
LINK
Wave Trend w/ VWMA overlayThis is a trend-following strategy and indicator which combines the Wave Trend Strategy (Lazy Bear) by thomas.gigure with the cRSI + Waves Strategy with VWMA overlay by Dr_Roboto .
You may update the parameters of the Wave Trend oscillator or the VWMA indicator to match your own preferences. You may also adjust the Base Quantity used for determining trade size (as described below) to suit your account size and risk tolerance.
The strategy identifies potential signals based on the on the Wave Trend oscillator, originally ported to TradingView by LazyBear. When a signal is produced by the Wave Trend oscillator, trade size is determined by the VWMA.
When the VWMA is trending against the direction of the Wave Trend signal, Base Quantity x 1 is used
When the VWMA is trending neutral, Base Quantity x 2 is used
When the VWMA is trending with the direction of the Wave Trend signal, Base Quantity x 4 is used
The strategy includes the ability to limit trade signals to certain defined periods of time ("Sessions") during the trading day and, optionally, to close any open position at the end of either or both "Sessions." This may be enabled/disabled via the Limit Signals to Trading Sessions? option on the "Inputs" tab of the strategy's "Settings" window.
If you are trading on a daily chart (or longer) you must disable the Limit Signals to Trading Sessions? in order for the strategy to produce signals.
3 EMA Stochastik RSI ATR SL TP only LONGHey there!
Here i will show you the 3 EMA RSI Stochastic Crossover strategy with an ATR SL and TP.
The strategy works as follows:
For long positions, the EMA's must be in the following order:
The 8 E M A must be above the 14 E M A and the 14 E M A must be above the 50 E M A.
The buy signal is given to us by the Stochastic RSI indicators.
The K line must cross the D line above. The following candle must then close above all E M A's.
The stop loss is determined by three times the value of the ATR.
The take profit is determined by two times the value of the ATR.
In this strategy only long positions are traded.
3x SuperTrend Strategy (Mel0nTek) V1This is a triple SuperTrend based strategy for lower time frame trades such as day trades and scalping. I have not seen many strategies that combine multiple SuperTrends so I thought I would publish this one since I put it together and have been quite happy with the results. I have found through testing that the best results are on currency exchange markets such as Crypto or Forex on 1-15 min time frames.
The core idea was inspired by a youtube video put out by Trade Pro:
"Trade Pro - HIGHEST PROFIT Triple Supertrend Trading Strategy Proven 100 Trade Results"
I went ahead and set the defaults to the ones he uses in his video for anyone who wants to try a configuration similar to his. They work pretty well in general, however the EMA, SuperTrend ATR multipliers, and P/L ratio can be tuned/optimized to fit the timeframe/market desired. The video is quite good but not a required watch as I will explain below.
The 200EMA is used as a medium-term trend direction indicator.
- Price closing consistently above the 200EMA means that only long positions should be entered.
- Price closing consistently below 200EMA means that only short positions should be entered.
The 3 SuperTrend indicators should be used as direction confirmation for entries. Typically, price above SuperTrend indicates bullish movement, while price below SuperTrend indicates Bearish movement. However by itself, it is not a great indication to enter/exit positions in my experience. By combining 3 of them with slightly longer periods and increased ATR multipliers, we can get much stronger confirmation of trend direction/strength.
The way they are used in this strategy is such that:
- We only want to enter a position if at least 2 out of 3 SuperTrends are on our side.
- 3/3 SuperTrends on our side is the best case, since we are taking trades WITH momentum/price strength.
- The second farthest SuperTrend from entry price is used as a Stop Loss
SuperTrend being on our side is not the only requirement for an entry however. The probability of success is increased with SuperTrend, and a longer EMA on our side, but we want to be sure that we aren't getting in too late/after the movement has already happened.
So we use Stoch RSI to pick our entries where price is oversold/overbought and reversing. That means the Stoch RSI is above 80, or below 20, and our indication to enter the trade is when the 2 lines cross/begin reversing direction.
So with trend direction on our side, we can get really good entries at these oversold/overbought extremes, especially as it's reversing (Stoch RSI K and D are crossing). This allows us to use the SuperTrend as a support/stop loss on our entry since price should be above it.
Then we just target 1.5x our max loss so that even if we only win 50% of the time, we still make a profit.
The explicit rules of this strategy are as follows:
=== Rules ===
long only
- price above EMA200
short only
- price below EMA200
Stop Loss = 2nd SuperTrend line above (short) or below(long) entry candle
Profit = 1.5x SL/risk (Profit Ratio x Max Loss)
=== Entry Setup ===
LONG
- Stoch RSI below 20, cross up
- at least 2 SuperTrend lines below close
SHORT
- Stoch RSI above 80, cross down
- at least 2 SuperTrend lines above close
P.S. Special thanks to Trade Pro for producing so many quality videos, putting strategy claims to the test, and providing me with so many good ideas I apply to my own strategies.
Simple way to BEAT the market [STRATEGY]This script has been created to demonstrate the effectiveness of using market regime filters in your trading strategy, and how they can improve your returns and lower your drawdowns
This strategy adds a simple filter (A historical volatility percentile filter, an implementation of which can be found on my trading profile) to a traditional buy and hold strategy of the index SPY.
Note, There are other filters that could also be added including a long-term moving average/percentile rank filter/ADX filter etc, to improve the returns further.
The filter closes our long position during periods of volatility that exceed the 95th percentile (or in the top 5% of volatile days) and buys back when the volatility is below 95% rank of the past 100 days
Have included the backtest results since 1993 which is 28 years of data at the time of writing. Comparison of traditional buy and hold with this modified strategy can be found below:
Traditional buy and hold:
Return per year: 7.95 % (ex Dividends)
Total return: 851.1 %
Max drawdown: 50.79 %
'Modified' buy and hold (this script):
Return per year: 9.92 % (ex Dividends)
Total return: 1412.2 %
Max drawdown: 31.57 %
Feel free to use some of the market filters in my trading profile to improve and refine your strategies further, or make a copy and play around with the code yourself. This is just a simple example for demo purposes.
Trailing Stop LossThis script demonstrate how to make a Training Stop Loss to "ride the wave". In comparison to classic Stop Loss this strategy follows the price upwards (for long positions) and when price drops by a fixed percentage then you exit your position.
HULLTSIBOTDo you like TSI indicator?
Do you like HMA indicator?
The all new, HULLTSIBOT indicator!
About:
TSI indicator was on a space mission to mine other planets and then the crew stumbled upon a bunch of HMA indicator eggs. In the darkness of the slime room they found, There was a suddenly a bunch of failing and swearing and machinegun fire muzzle flashes, then all fell silent.
from the back shadow mist stepped forward a TSI indicator, but its eyes were bloodshot and it did not look the same...
The rescue ship found the TSI indicator motionless but still with a heartbeat....
a few days went past, the TSI indicator layed in the medic bay,
A medic noticed a bulge in the abdomen, that started to move!
The alien lifeform burst through the stomach of the TSI indicator and flew at the medic, covering the face and overpowering the new victim with ease...
Quickly it spread throughout the entire rescue ships crew, with many new alien lifeforms searching every corner for a new host.
The rescue ship flew on, able to land with autopilot as programmed for in emergencies, Thus the HULLTSIBOT was introduced to the humans world...
planet earth
All in One StrategyTrue improvement over my previous script. This script adds in all of the complementary indicators, makes it truly easy to adjust the inputs, and has produced a real world net gain using the TradingView bots paired with any broker's API that is supported.
It has a selection for which strategy you'd like to use and due to limitations in Pine I cannot program in logic to make sure you only pick one, so you need to make sure you are only picking one.
To tweak the Connors option - it only depends on the RSI length variable, everything else is hard coded and tweaked for Crypto.
To tweak the MACD - play around with the min and max values of the RSI for lookback and the amount of candles to lookback. Then tweak the fast and slow MA lengths. I have found that a fast length of 3 or 4 and a slow length between 6 and 10 will yield the highest gains.
Also, when I was a young Noob I thought using a chart timeframe of 5 minutes was the best...no...no it wasn't. I lost my ass. Don't lose yours. I highly suggest sticking with a 30 minute timeframe, you will minimize losses caused by false triggers, have less trades and higher profits. More is not always better, trades that may sell one day and then buy six days later are normal. Leave it do its magic and you'll be very happy in the end.
DRSI DMA Scalping Strategy No RepaintThis strategy compares the slope of a Moving Average (of your choosing) to the slope of a Momentum Indicator (of your choosing). Zero is the center line because 0 slope means sideways movement. When both lines cross your buy threshold, it buys. When both lines cross your Sell threshold, it sells. The lines may look choppy, but that is probably because it is referencing a different timeframe than what the chart is set to. I left as many settings adjustable by the user as possible so you can tune this strategy to the relative behavior of whatever you are trading.
This also includes a No Repaint function so the backtest should be as close to live trading as possible.
Momentum StrategyThis strategy uses momentum to determine when to enter and exit positions. The default settings are set to look for a new 63 day high (~1 trading quarter) and a new 40 day relative high. If the stock is trending above the 50 day moving average it is a candidate to be bought. Stops are triggered when price closes below the 20 day or 50 day EMAs depending on how well the stock is trending. A stop could also be triggered even if price continues to move up, but is breaking down on a relative basis to a benchmark either SPX or BTCUSD . The goal is to hold on to our winners for as long as possible and cut the losers as soon as possible. This will alow us to capture the majority of major trends while avoiding many large drawdown and relative losers.
Moving Average ScalperThe main goal of a scalping strategy is to open and close trades frequently, profiting from small gains and limiting the downside risk.
This strategy, on average, manages to close trades within one day, meaning that you are not exposed to the risk of holding that coin for long. In this way, market conditions affect much less the overall performance of the trading system.
The setup of this strategy uses four moving averages combined with an unconventional approach. On one side, the strategy aims to catch assets trading in a downtrend but on the verge of a possible reversal. Then, the goal of the trading strategy is not to ride the eventual uptrend but to close the trade with minimal profit so that it can scan the market for a new opportunity again.
ENTRY
The buy order is placed on assets that most likely are about to have at least a short-term "relief rally." To capture this setup, the strategy buys when
the MA9 crosses above the MA50
the MA50 is lower than the MA100
the MA100 is lower than the MA200
EXIT
The trading system closes the trade when the MA9 crosses above the MA200, which could be the first major resistance the asset faces before developing a more sustained uptrend.
As a reminder, the goal of the strategy is not to catch the whole upside of the asset but has a more conservative approach. This allows keeping the risk of the strategy low.
Pro tip: The 15-min time frame has proven to return the best results on average. The strategy can work well also in the 5-min time frame.
The strategy assumes each order to trade 30% of the available capital and opens a trade at a time. A trading fee of 0.1% is taken into account.
CRYPTO 3EMA Strategy with Take Profit & Stop Loss based on ATRSimple 3 EMA Strategy with plotted Take Profit and Stop Loss
Entry condition:
- Middle EMA cross above the Slow EMA
- Set take profit and stop loss exit conditions based on ATR Indicator
Exit condition:
- Fast EMA cross below the Middle EMA