MA + EMA Crossover Strategy EMA and MA crossovers are good signals fo trend reversal
You can look at my other scripts.
www.tradingview.com
If you want to ask something, you can message me.
Trend
Trend is your friendThis indicator evaluates the trend based on crosses of two McGinley moving averages. It paints candles accordingly (it does not repaint), so you can see what the indicator is saying more clearly and stay in your trade until you see a period of consolidation or a reversal. You can control how far away those moving averages need to be for you to consider it a trend. If this distance is not met candles color is not changed and it shows you that the market is in a period of consolidation. I also added visualization of RSI, so you can have an easier time finding appropriate profit targets. For stop loss I would recommend placing it a couple points above or below the previous high / low that is located above / below you final target for entry. You can also use a certain percentage that works for you. I tried adding a stop loss based on ATR, but I did not like the results. Using market structure is a better choice in my opinion.
Here is a basic trading strategy for the default settings:
Wait for the indicator to start printing a series of green or red candles. After that you can enter a long or a short around moving averages. Another valid place to entry is the specific RSI zone. If we are in an uptrend buying when RSI is oversold can be beneficial as you expect market to recover. I do not recommend changing RSI from 14. Vice versa for the downtrend. It gives you an edge as you know at what price RSI will be oversold and allows you to place trades in advance. Pretty neat! You need to realize that no indicator or strategy can give you an exact entry. There will always be some margin of error. What I wanted to say is that if there is a strong trend up and you buy around your key moving averages and when RSI is oversold you entered in good places and there is a pretty good chance you will make money.
Time frame settings:
If you want to use tighter stop losses I would recommend sticking to 15m. Do not go lower. It is not worth the stress. 1h and 4h seems to be very good as well, but expect your stop losses to be wider. What I personally tend to do is display 15m, 30m and 1h and compare it. Think of it as a short, mid and long term. That way you can see things little bit better.
Examples:
1H chart BTC
4h chart EUR / USD
1D chart NASDAQ
15m chart BTC (Daytrading)
That last chart shows that even if you were longing while the trend was about to change you still had a good chance to close it with a little profit and switch to short easily. The default settings is what has worked the best for me. Feel free to change them as you see fit and do not forget to let me know if you find something that works better :)
Notes:
Either disable wick display or change it to a neutral color like gray for both green and red candles. Unfortunately pine script does not allow wick painting, so if you have red / green wicks it will look terrible. If RSI visualization makes your candles look too small you can go to settings and disable the display of individual RSI levels. You will still be able to see the zones, but the scale won't be affected.
Efficient PriceTrading The Movements That Matters
Inspired by the Price Volume Trend indicator the Efficient Price aim to create a better version of the price containing only the information a trend trader must need.
Calculation
This indicator use the Efficiency Ratio as a smoothing constant, it is calculated as follow :
ER = abs(change(close,length))/sum(abs(change(close)),length)
The goal of the Efficiency Ratio is to show if the market is trending or ranging.If ER is high then the market is considered to be trending, if ER is low then the market is considered to be ranging.
Then the Efficient Price is calculated :
EP = cum(change(close)*ER)
When the price is trending, the indicator will show movements of the price with unchanged volatility, but if the price is not trending then the indicator will flatten those movements.Think of this indicator as both a filter and a compressor and the Efficient Price as some kind of threshold.
The Efficient Price As Input For Indicators/Strategies
If the indicator show the movement of the trending price, it can be interesting to use it as input in order to reduce the number of false signals in a strategy.
We will test 2 MACD strategy provided by tradingview, one using the closing price (In Red) and one with the efficient price (In White) as input
with both the following parameters :
fastLength = 50
slowlength = 200
MACDLength = 20
length = 50
Where length is the parameter of the Efficient Price.A spread of 2 pips is used.
Without Efficient Price : 26.88% of profitability, 69 pips of profit.
With Efficient Price : 38.46% of profitability, 336 pips of profit.
The difference of profitability is of 11.58%, the strategy with the Efficient Price made few trades and its equity have a lower variance than the equity of the MACD strategy using closing price.
Smoothed Version
It is possible to smooth the indicator output by using the following code :
EP = cum(change(close,length)*ER)
Hope you enjoy
For any questions/demands feel free to pm me, i would be happy to help you
Supertrend FilterA derivation of the famous SuperTrend indicator.
My motivation for such indicator was to use more recursion in the original SuperTrend code, this work was made quite fast but feel free to modify it, as always my work is more for inspirational use than anything else so i hope it will inspire you to get more involved with the SuperTrend code or to start coding with Pine.
The indicator no longer act as a trailing-stop but more like a filter, this is due to the fact that the indicator conditions are swapped and that the output is reused many times in the calculation.
Parameters change as well and involve particular gestion. The Factor Parameter is no longer an integer but decimals such that 0 < Factor < 1 .
When the Period is high the indicator tend to become less linear/static and look more like a classic moving average.So it is important to have higher Factor values when the Period is high and reciprocally.Here a table to help you with parameters settings :
for Period = 1 to 50 Factor = 0.5
for Period = 50 to 100 Factor = 0.6
for Period = 100 to 150 Factor = 0.7
for Period = 150 to 200 Factor = 0.8
for Period = 200 to 300 Factor = 0.9
There could be a formula to scale the Factor depending on the Period but there would be no proof that the scaling method used is optimal.
Hope you enjoy
For any questions/demands feel free to pm me, i would be happy to help you
ADX & DI trend exhaustionAn EMA is applied to the ADX in order to catch the exhaustion of a trend (i.e. ADX line crossunder EMAADX line) or the possible formation of a new one. In the first case, we would wait a confirmation signal, which happens when the crossunder has a value greater then 50. A new trend is created when the difference between the ADX and the EMAADX is positive, with ADX greater then 20. As confirmation, we would have the DI+ greater then 20 e the DI- smaller then 20 (this would trigger a bullish sentiment, bearish for the opposite), consequently the histogram will be display in green (red in the bearish case).
Trend Score by KIVANÇ fr3762Trend Score compares close prices between last close with previous closes by a certain period of time.
It's like momentum but gives a score +1 when close price is equal to or above (defaultly) 10 bars ago and gives a score of -1 when below.
calculation continues from default length to the 2 times of length.
Defaultly (for 10 bars length)
If Trend Score converges to 10; that means there's a strong uptrend
conversely if Trend Score converges to -10; that means a strong downtrend market is on.
Weis modeliusv2Ok this script is the improvment of last model it has take profit for long and short + stop loss for both
and the regular sugnals for buy and sell
just set the parameters correct for your design
have fun
Gann Swings Trend CounterBased on Rick Santos ' Swing Charts V1 Darvas Box V0.1'
However I have migrated script to pine version 3, customized to suite and added a higher number for the trend count
Febres StrategyThe strategy consist in every time that price failed to break any of the EMAs, we need to wait for the right price action and make a buy or sell when it bounce from it to keep surfing on the trend (using the stochastic oscillator and the 5-13 EMAs cross as an additional confirmation).
When do we start looking for a change on the trend? When it repeats the blue tracer (high or low of the previous day) without breaking it and bouncing from it, there will be our signal to start looking for a change of direction on the trend.
Only applicable on 15 minute chart.
Pullback Trading [Fhenry0331]The indicator is taken from Alexander Elders "Triple Screen System," minus using the Weekly MACD as a filter/trend. I believe waiting for the force index and the weekly MACD histogram to line-up is uber conservative and a trader will miss too many signals (In my opinion).
The indicator is for a pullback trader. A trader that waits for a trend to develop then enters on a pullback.
The indicator defines an uptrend start: as the 13 ema crossing above the 26 ema. It defines a downtrend start: as the 13 ema crossing below the 26 ema.
The pullback in an uptrend: 13 ema is above the 26 ema. Elders-Force-Index is below the zero line. Price low has crossed below the 13 ema (one can also say price closes below the 13 ema if they so wish).
The pullback in a downtrend: 13 ema is below the 26 ema. Elders-Force-Index is above the zero line. Price high has also crossed above the 13 ema.
Please note that the pullback signals do not necessitate an automatic buy or sell (the instrument can be still pulling back deeper and not ready to resume it's trend.) One should place orders above (long) or below (short) bars with the pullback signals. Do so on signals until orders are filled.
Although the indicator is meant for pullbacks one can make an aggressive entry at the onset of a crossover of ema's.
For clarity background colors has been added to the indicator.
works well on daily time frame. Also look at intraday (5) minute time frame on trending stocks (news, earnings, volume, etc.)
Keep It Simple.
Enjoy!
Stiffness IndicatorThis indicator was originally developed by Markos Katsanos (Stocks & Commodities, V.36:12 (November, 2018): "The Stiffness Indicator").
Like and follow for more open source indicators!
Happy Trading!
Klinger Volume OscillatorThis indicator was originally developed by Stephen J. Klinger (Stocks & Commodities, V.15:12 (December, 1997): "Identifying Trends with Volume Analysis").
NOTE : this is the only correct version of Klinger Volume Oscillator in the public library.
Like and follow for more open source indicators!
Happy Trading!
Kalman SmootherA derivation of the Kalman Filter.
Lower Gain values create smoother results.The ratio Smoothing/Lag is similar to any Low Lagging Filters.
The Gain parameter can be decimal numbers.
Kalman Smoothing With Gain = 20
For any questions/suggestions feel free to contact me
One Dimensional Parametric Kalman FilterA One Dimensional Kalman Filter, the particularity of Kalman Filtering is the constant recalculation of the Error between the measurements and the estimate.This version is modified to allow more/less filtering using an alternative calculation of the error measurement.
Camparison of the Kalman filter Red with a moving average Black of both period 50
Can be used as source for others indicators such as stochastic/rsi/moving averages...etc
For any questions/suggestions feel free to contact me
EMA TEMA crossoverHello,
as usual recently the chart is bugged if I dare post a log one so I deleted and reposted...
here is a simple ema/team script that could allow you to catch trends.
You can play with parameters to get alerted of strong trends, or to detect trends early on.
I want to adapt this to an inside bar strategy, I am going to release that in a while, it is not my priority thought I am a countertrend trader, so I cannot say why, but what I have seen is inside bar breaks in very strong trends work very well.
There is a condition for this inidcator to work: you have to use it on a Heikin Ashi chart (the candle type, selectable in the area right of the timeframe).
Works sometimes. I advice backtesting any strategy before using. Idk maybe this could work decently, seems to have given big winners on bch recently. That huge one from 600 to 1800 lol. *3
* No one should pay for things this simple by the way...
MA ZonesThis simple indicator paints the zone between up to 3 different Moving Averages and Exponential Moving Averages.
For example:
The green zone is the price between the 50 EMA and the 50 MA .
The orange zone is the price between the 100 EMA and the 100 MA .
The red zone is the price between the 200 EMA and the 200 MA .
Triple guppy w/ up/down colours - squattterThe trend is your friend.
Works well on 2hr TF which shows 30+60 ema from 8hr and Daily TFs.
Use a higher TF momentum indicator such as TRIX to confirm.
Auto-Line With DriftA variation on the Auto-Line indicator, we allow it to get closer to the price thanks to a drift , this also allow the line to be more directional .
This indicator can be used with moving averages using crosses as signals or as a band indicator by ploting a + dev as the upper band and a - dev as the lower one.
For any help or suggestions feel free to send a message :)
Cronos Trend Aroon by Zekis"The Aroon indicator is a technical indicator that is used to identify when trends are likely to change direction. In essence, the indicator measures the time it takes for the price to reach the highest and lowest points over a given timeframe as a percentage of total time. The indicator consists of the "Aroon up" line, which measures the strength of the uptrend, and the "Aroon down" line, which measures the strength of the downtrend."
Classic Aroon indicator with few changes:
1. Colors for trends: red line and red background = downtrend
green line and green background = uptrend
2. Crossover is signaled with an yellow stripe
3. Alerts are enabled for longs/entries and shorts/exits
Enjoy!
@ Zekis
Hermes Scalping Study by ZekisA simple scalping indicator, based on Highs and Lows.
It's working in any timeframe, the only condition is ... volatility .
Values are already set, but you can change them according to your preferences and to your chart.
Alerts are enabled.
Enjoy!
@ Zekis
Buying with momentumThis is a beginner script, any feedback is welcome.
It indicates a bull trend with or without volume (yellow and green arrow) and give a buy signal (green flag) once the trend is "confirmed" and the stock became good for the buy market.
I look forward to make this for a bear market as well, but it's not good for now.
Symbols and its meanings:
Yellow Arrows --> When the EMA of 9 candles and the MA of 21 candles are higher then the previous candle.
Green Arrows --> When the EMA of 9 candles and the MA of 21 candles are higher then the previous candle and the volume is higher than the MA of 21 candles.
Green Flag --> The previous candles has a green arrow and the running candle reaches the previous candle high + 1 point/cent.