TradingView
rwestbrookjr
25 kwi 2022 19:06

CCI + EMA with RSI Cross Strategy 

SPDR S&P 500 ETF TRUSTArca

Opis

This strategy uses the CCI + 2 RSIs + 2 EMAs to generate trade signals. Trades are only taken during the normal trading session and all open trades are closed 15 min before the close of the current session. A trailing stop loss is used and is customizable.

Not trading advice, use at your own risk.

Informacje o Wersji

Updated name and title to be more accurate.

Informacje o Wersji

Updated default stop loss to reflect best starting point.

Informacje o Wersji

Minor cleanups and better labeling of inputs.

Informacje o Wersji

Added crosses to indicate trailing stop position. Also set for orders to fire on close of trigger bar and not the bar after.

Informacje o Wersji

Modified default values for CCI Cutoff and Trail Loss settings for current max profit on 5 min chart (SPY).
Changed Trailing Stop track point from Close to SlowEMA (20 period).
Fixed a bug in display of current Stop Loss indicator so that only shows for valid trade. Previously would show stop loss for a long trade when short and vice versa.

Informacje o Wersji

Corrected error in stop price calculation.

Informacje o Wersji

Updated entry conditions.
Komentarze
Asanciara
Amazing script sir. Can you please post the time frame and the setting you using?
rwestbrookjr
@Asanciara, the time frame depicted is 5 min and the default settings for the script are for this time period on SPY. For other symbols, I would adjust the Stop Loss value and or the CCI-Cutoff value.
Elmept
Can you do a version for Daily time frame and add volatility? I was thinking in doing a similar version but for Daily Time Frame with a ATR Stop loss and Trailing until the emas cross again as take profit.
rwestbrookjr
@Elmept, This script functions on all time frames, so no script change needed for that. I will look in to adding an option for the stop loss to be based on a multiple of the ATR with the ATR length as a setting as well.
Więcej