Grant14299

5 Minute TF 200 EMA Retest by Grant

Grant14299 Uppdaterad   
https://www.tradingview.com/chart/C3tWAVeT/

This indicator is a simple script meant to find retests on the 200 period moving average. It's current state is optimized for the 5 minute timeframe.

This works in all markets and all timeframes as long as you adjust certain rules for higher timeframes.

It's strengths and weaknesses
- Good at trend continuation in strong markets
- Bad in ranging markets (not surprising)

How does it work?
- It first identifies an overall trend by using the 200 ema.
- For long positions, it waits for price to close below the 200 ema, and then shortly closing back above the ema. For short positions its the opposite.
- For lower timeframes there are some other factors that help filter out bad signals that include:
- Makes sure that volume is increasing.
- Makes sure that volume is higher than average volume.
- For higher timeframes, the more specific factors aren't required.

How to use this indicator:
- Green triangles mean long positions
- Red triangles mean short positions
- Always trade with stoplosses and never risk too much of your account, please practice proper risk managment.

DISCLAIMER: Trading is inherently dangerous and carries lot's of risk. What you decide to do with my script has nothing to do with me. I am not responsible for any financial gains or losses made using this script. It is important to recognize other factors in the market to make better decisions.
Versionsinformation:
Changed the length of the long term trend detector. This should improve the accuracy. It was not looking far back enough but it now looks much further back.
Versionsinformation:
Added alerts.
Versionsinformation:
- Added the ability to change the length of the ema. If you decrease the length, it will print more signals but will be less accurate. I still recommend 200 length.
- Changed some rules regarding volume, now volume has to be above average but not greater than previous volume bar. This is because volume can be kind of skewed on the lower timeframes.
- New rule states that candles must be bullish for long and bearish for short
- Frequency of alerts are now on bar open which will give you time to get ready to enter trade. (Make sure to still wait for candle to close)

- Side note: If you want to improve the win rate, I recommend waiting for a big move in one direction, then taking the first signal. This will help to stay out of consolidating markets. Good luck!
Versionsinformation:
- Added the ability to toggle the volume filter, will give user ability to generate more/fewer signals.
- Added slow ema to filter out some bad signals, It takes the ema you entered and makes a slightly slower one. For example if you enter 21 as your length then it would add a 30 period moving average as well.
Versionsinformation:
Volume filter is now off as default.
Versionsinformation:
- Implemented the ability to use RSI as a filter.
- Implemented a new condition: if there was recently an ema crossover, the signal is invalidated. (This HELPS to avoids consolidating markets)
Versionsinformation:
- Added the ability to toggle whether multiple signals can generate at once, which could overlap.
Versionsinformation:
- Made stricter entry rules for the retest. Instead of waiting for 2 candles to see a rejection, the price must immediately reject.
Versionsinformation:
Tweaked settings regarding printing multiple signals.
Versionsinformation:
- Added option to use wick rejections alone. This rule is more strict. Fundamentally, this is a much better rejection type.
Versionsinformation:
- Removed a specific rule because it overlapped with the logic of the indicator. It was checking if the price was above the ema however it was also looking for price to close below it temporarily.
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?