Hello!
This is a deviation/mean-reversion algorithm that I created based off of the concept of moving average deviation. Essentially, this is how the algorithm works:
1. Find the pivot highs of the difference between 2 moving averages (in this specific case, it's the exponential moving average and the weighted moving average)
2. Check the RSI to see if we're overbought or oversold based on some threshold (30 for oversold and 70 for overbought)
Combine these two signals to produce a buy or sell signal!
Additionally, I also have an option to filter the MA Deviation using Linear Regression instead of the RSI, but currently, in my testing, I've been finding that RSI works better
Finally, big thanks to Dgtrd, who's Linear regression script I used to implement linear regression!
This is a deviation/mean-reversion algorithm that I created based off of the concept of moving average deviation. Essentially, this is how the algorithm works:
1. Find the pivot highs of the difference between 2 moving averages (in this specific case, it's the exponential moving average and the weighted moving average)
2. Check the RSI to see if we're overbought or oversold based on some threshold (30 for oversold and 70 for overbought)
Combine these two signals to produce a buy or sell signal!
Additionally, I also have an option to filter the MA Deviation using Linear Regression instead of the RSI, but currently, in my testing, I've been finding that RSI works better
Finally, big thanks to Dgtrd, who's Linear regression script I used to implement linear regression!
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.
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.