PROTECTED SOURCE SCRIPT
已更新 RSI SMA Cross Strategy

RSI SMA Cross StrategyOverviewThis strategy is a simple yet effective trend-following system based on the Relative Strength Index (RSI) and its Simple Moving Average (SMA). It aims to capture long-term trends by entering long positions when the RSI crosses above its SMA (indicating bullish momentum) and exiting when it crosses below (signaling potential weakness). Designed for long-only trading, it's ideal for trending markets.Key FeaturesEntry Signal (Buy): Triggered when the current RSI value crosses above the SMA of RSI from the previous bar.
Exit Signal (Sell): Triggered when the current RSI value crosses below the SMA of RSI from the previous bar.
Position Sizing: Allocates 100% of available equity to each trade.
Costs: Incorporates 0.1% commissions and 1 tick slippage for realistic backtesting.
Date Range: Trades start from January 1, 2018, onwards.
Source: Uses the low price for RSI calculation (customizable via inputs).
Default ParametersRSI Length: 250 periods
SMA Length: 73 periods
Source: Low price
Additional Visuals & AlertsBuy/Sell Shapes: Green triangle up for buys, red triangle down for sells.
RSI 50 Level Crosses: Optional tiny circles marking when RSI crosses above/below 50 (green for above, red for below).
Alerts: Built-in alerts for buy/sell signals and RSI 50 crosses.
Usage TipsBest suited for daily or higher timeframes on stocks, indices, or forex pairs.
Backtest on your preferred symbols to optimize parameters.
Combine with other filters (e.g., trend confirmation) for better performance in ranging markets.
This strategy is for educational purposes. Always manage risk and conduct your own research before trading. Enjoy trading!
Exit Signal (Sell): Triggered when the current RSI value crosses below the SMA of RSI from the previous bar.
Position Sizing: Allocates 100% of available equity to each trade.
Costs: Incorporates 0.1% commissions and 1 tick slippage for realistic backtesting.
Date Range: Trades start from January 1, 2018, onwards.
Source: Uses the low price for RSI calculation (customizable via inputs).
Default ParametersRSI Length: 250 periods
SMA Length: 73 periods
Source: Low price
Additional Visuals & AlertsBuy/Sell Shapes: Green triangle up for buys, red triangle down for sells.
RSI 50 Level Crosses: Optional tiny circles marking when RSI crosses above/below 50 (green for above, red for below).
Alerts: Built-in alerts for buy/sell signals and RSI 50 crosses.
Usage TipsBest suited for daily or higher timeframes on stocks, indices, or forex pairs.
Backtest on your preferred symbols to optimize parameters.
Combine with other filters (e.g., trend confirmation) for better performance in ranging markets.
This strategy is for educational purposes. Always manage risk and conduct your own research before trading. Enjoy trading!
發行說明
up受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。