OPEN-SOURCE SCRIPT

EMA RSI Strategy

Mis à jour

Simple strategy
=============

If the last two closes are in ascending order, the rsi is below 50 and ascending, and the current candle is above 200 ema, then LONG. If the last two closes are in descending order, the rsi is above 50 and descending, and the current candle is below 200 ema, then SHORT.

LONG Exit strategy:

ATR: Last 14 day
Lowest: The lowest value of the last 14 candles

Limit points = (Trade Price - Lowest + ATR) * 100000
trail_points : Limit/2
trail_offset = Limit/2

SHORT Exit strategy:

ATR: Last 14 day
Highest: The higher value of the last 14 candles

Limit points = (Trade Price - Highest + ATR) * 100000
trail_points : Limit/2
trail_offset = Limit/2

Backtest results for the AUDUSD pair gave positive results over the last three months.

I am testing this strategy using a python bot in a real environment this week and will update the results at the end of the week.

Disclaimer

This is not financial advice. You should seek independent advice to check how the strategy information relates to your unique circumstances.
We are not liable for any loss caused, whether due to negligence or otherwise arising from the use of, or reliance on, the information provided directly or indirectly by this strategy.
Notes de version
Minor bug fixes
Exponential Moving Average (EMA)Relative Strength Index (RSI)Trend Analysis

Script open-source

Dans le plus pur esprit TradingView, l'auteur de ce script l'a publié en open-source, afin que les traders puissent le comprendre et le vérifier. Bravo à l'auteur! Vous pouvez l'utiliser gratuitement, mais la réutilisation de ce code dans une publication est régie par nos Règles. Vous pouvez le mettre en favori pour l'utiliser sur un graphique.

Vous voulez utiliser ce script sur un graphique ?

Clause de non-responsabilité