TradingView
rwestbrookjr
2022年4月25日晚上7點06分

CCI + EMA with RSI Cross Strategy 

SPDR S&P 500 ETF TRUSTArca

描述

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.

發布通知

Updated name and title to be more accurate.

發布通知

Updated default stop loss to reflect best starting point.

發布通知

Minor cleanups and better labeling of inputs.

發布通知

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

發布通知

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.

發布通知

Corrected error in stop price calculation.

發布通知

Updated entry conditions.
評論
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.
更多