TradingView
rwestbrookjr
25 avr. 2022 19:06

CCI + EMA with RSI Cross Strategy 

SPDR S&P 500 ETF TRUSTArca

Description

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.

Notes de version

Updated name and title to be more accurate.

Notes de version

Updated default stop loss to reflect best starting point.

Notes de version

Minor cleanups and better labeling of inputs.

Notes de version

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

Notes de version

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.

Notes de version

Corrected error in stop price calculation.

Notes de version

Updated entry conditions.
Commentaires
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.
Plus