PROTECTED SOURCE SCRIPT
MACD/RSI/MFI with Alerts

This indicator allows you to trade RSI and MFI oversold and overbought zones with MACD confirmation. It is also possible to take an early trade by checking the "delta" (difference between the fast MACD line and the signal line) (histogram) value of the MACD.
Buy Condition
Note: At the time of MACD crossover, RSI and MFI might not still be in the oversold area. The indicator knows that they were both in the oversold area, and then waits for a MACD crossover to happen to confirm an uptrend.
Sell Condition
Note: At the time of MACD cross-under, RSI and MFI might not still be in the overbought area. The indicator knows that they were both in the overbought area, and then waits for a MACD cross-under to happen to confirm a downtrend.
Inputs
Feel free to ask any questions you have.
Please report any bugs you found, with a screenshot of the chart. You can leave a comment or send me a DM.
Buy Condition
- Both RSI and MFI must be in the oversold area
- After that, wait for a MACD crossover
Note: At the time of MACD crossover, RSI and MFI might not still be in the oversold area. The indicator knows that they were both in the oversold area, and then waits for a MACD crossover to happen to confirm an uptrend.
Sell Condition
- Both RSI and MFI must be in the overbought area
- After that, wait for a MACD cross-under
Note: At the time of MACD cross-under, RSI and MFI might not still be in the overbought area. The indicator knows that they were both in the overbought area, and then waits for a MACD cross-under to happen to confirm a downtrend.
Inputs
- MFI Length: Length of the Money Flow Index
- RSI Length: Length of the RSI
- MACD Length: Length of the MACD
- MACD Fast Length: Fast Length of the MACD
- MACD Slow Length: Slow Length of the MACD
- RSI Overbought: Overbought boundary of the RSI
- RSI Oversold: Oversold boundary of the RSI
- MFI Overbought: Overbought boundary of the MFI
- MFI Oversold: Oversold boundary of the MFI
- Use delta to trade early?: Use this if you want to take a trade early by checking the MACD histogram
- Delta: Absolute value of the MACD histogram. Whenever the "MACD Histogram" is less than the given "delta", a trade will be triggered if possible
Feel free to ask any questions you have.
Please report any bugs you found, with a screenshot of the chart. You can leave a comment or send me a DM.
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ể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Đ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ể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.