PROTECTED SOURCE SCRIPT
Cập nhật 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!
Phát hành các Ghi chú
upMã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.