REV0LUTI0N

RSI Strategy

This RSI strategy will allow you to go long when RSI is overbought and go short when RSI is oversold. You can also change the checked boxes to reverse this. Uncheck "Overbought Go Long & Oversold Go Short" and check "Overbought Go Short & Oversold Go Long" to use this reversed option.

You can also choose to use an ema filter as an additional qualifier for entry. Uncheck "No EMA Filter" and check "Use EMA Filter" if you want to use it.

Be sure to enter slippage and commission into the properties to give you realistic results.

I've also built in backtesting date ranges and the ability to trade only within certain times of day and have it close all trades at the end of that time frame. This is especially useful for day trading stocks. To specify a time from use the format 0930-1100 or whatever your trading hours will be. Check off "Enable Close Trade At End Of Time Frame" to close the trade at the end of your trading hours.

You can also specify a % based take profit and stop loss. Also keep in mind that the way this code is designed if you use the stop loss and/or take profit and it reaches either target and closes, then it will immediately re-enter if the condition for long or short entry is true.

Finally there's custom alert fields so you can send custom alert messages for strategy entry and exit for use with automated trading services. Simply enter your messages in the fields within the strategy properties and then put {{strategy.order.alert_message}} in your alert message body and it will dynamically pull in the appropriate message.
Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?