the_drunktrader

13E21

13E21 is a strategy based on the concept of "Buy-on-Dip" and "Sell-on-Rise". The strategy is built around the concept that as the market starts trending in a particular direction it will give a retrace to it's 13 exponential moving average price and then continue in it's trend thus forming higher lows (or lower highs) in the process.
The indicator 13E21 helps determine the 2 EMAs (13 and 21) and also highlights the candle that touches either EMAs and closes accordingly.
The edge in the code is that it makes use of the difference between the two EMAs as a signal of the market trending. It will trigger an entry only when the difference between the two EMAs is greater than 0.02% thus implying that the market is actually trending and not consolidating.
The indicator will give bullish triggers only when the price touches 13EMA or 21EMA, the closing price is greater than 13EMA and the difference between 13EMA and 21EMA is greater than 0.02% or 10 points.
Similarly, the indicator will give bearish triggers only when the price touches 13EMA or 21EMA, the closing price is less than 13EMA and the difference between 13EMA and 21EMA is greater than 0.02% or 10 points.
Release Notes:
I have updated the existing logic to allow a additional EMA to be added. Mover over to enable the system to work on other charts and scripts the user can now manually modify the difference they wish to deploy as well.
Release Notes:
Modified the name to HOT EMA for easier identification and deployment
Release Notes:
The Existing Script has been modified to now use percentages instead of absolute numbers so that the strategy can work harmoniously across scripts.
Release Notes:
Longs will only be triggered on Green Candles and Shorts will only be triggered on Red Candles
Protected script
This script is published closed-source but you may use it freely. You can favorite it to use it on a chart. You cannot view or modify its source code.
Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?