lukescream

EMA Slope Trend Follower Strategy

This strategy is based on the slope of the EMA130.
Over that slope, the script calculates two EMAs (9,21) which are used to generate the main entry and exit signal.

In particular, the strategy enters a LONG position when EMA9 > EMA21. On the contrary, it closes the LONG and opens a SHORT when EMA9 < EMA21.

When the slope of the EMA130 is rising, it means that the price is accelerating upwards, fueling an uptrend. Conversely, when the slope is falling, it means that the price is slowing down, falling into a possible downtrend.

Calculating and analyzing two EMAs (fast and slow) over the slope of a medium length EMA instead of the price anticipates a lot the signal. In this way, the strategy never miss a trend.

In order to minimize false positives (entering useless positions), I included two filters, which can be optionally turned on:

- Trend Filter: When the price is above EMA200, the strategy opens ONLY LONG positions. If price < EMA200, only shorts allowed. If the slope gives a long signal and price is below EMA200, for example, the eventual SHORT position is closed, but the LONG entry is postponed to the moment when both conditions (slope uptrending and price > ema200) are met.
I recommend always turning on this filter, as it dramatically decreases drawdown.

- Volatility Filter: When the standard deviation of the last 20 candles is below its 50 samples moving average, no positions are opened, as market is going sideways. The purpose of this filter is to prevent false positives (positions which open and close in a matter of candles due to false signals in sideways market).
I recommend turning on this filter only on low time frames.

This strategy works great on medium time frames (like 4h, 6h, daily), since it spends way less in fees, opening less positions.

It works good on low TFs too (up to 1h, didn't test lower ones), provided Volatility filter is turned on and parameters are set according to the asset.

Commission included in calculations: 0.06% (it's the taker commission on BitMEX with the 10% discount obtainable with any referral link)
Slippage included in calculations: 2 ticks (BitMEX has very liquid order books, and slippage doesn't happen very often unless a huge position size is used).
Rimuovi dagli script preferiti Aggiungi agli script preferiti

Commenti

Post molto interessante. Ci spieghi come agganciare lo script a BitMEX visto che non mi risulta sia fra i broker integrati al momento con TradingView?

Grazie
+7 Rispondi
ma gli allert non si possono impostARE????
+7 Rispondi
Good job
+2 Rispondi
Could you add alerts into this as well.. Also is there a way we can consider HA candles as signal source as an option inside the settings ... This will tighten the condition.
+2 Rispondi
Ma questa strategia quslcuno l ha già provata?? Finziona anche sui cfd?
+1 Rispondi
Ma questa strategia funziona solo con le cripto o anche nei cfd?
+1 Rispondi
Grazie Luca
+1 Rispondi
Mitico, grazie Luca
+1 Rispondi
Tanta roba grande luca!!!!
+1 Rispondi
Grazie mille, sei sempre il migliore!
+1 Rispondi
Home Screener azioni Screener forex Screener cripto Calendario economico Come funziona Caratteristiche Grafico Costi Invita un amico Regolamento Centro di supporto Soluzioni per broker & siti web Widget Librerie grafiche Libreria grafica leggera Blog & Novità Twitter
Profilo Impostazioni profilo Account e fatturazione Invita un amico I miei ticket di supporto Centro di supporto Idee pubblicate Follower Seguiti Messaggi Privati Chat Esci