Linear regression slope as SAR

‎2222‎ مشاهدة
This model calculate the slope of the linear regression and give you the uptrend or the down trend of the slope

red line are downtrend and green line are up trend
using len 1 you can make it longer or shorter (I put it on length of 40 but you can change that to what ever you want )
Similar to SAR it can give us the trends of buy and sell only by doing it by the linear way

try longer length to see if it smooth the signal

4 hour graph
ملاحظات الأخبار: add color zone for berish and bullish area as option
نص برمجي مفتوح المصدر

قام مؤلف هذا النص البرمجي بنشره وجعله مفتوح المصدر، بحيث يمكن للمتداولين فهمه والتحقق منه، وهو الأمر الذي يدخل ضمن قيم TradingView. تحياتنا للمؤلف! يمكنك استخدامه مجانًا، ولكن إعادة استخدام هذا الكود في منشور تحكمه قواعد الموقع. يمكنك جعله مفضلاً لاستخدامه على الرسم البياني.

هل تريد استخدام هذا النص البرمجي على الرسم البياني؟


I've been testing it in 1min MES and love it. Very accurate.
Very cool, thanks for sharing.
@wroclai, Thanks, I think with real PSAR it can complement it, but I need to think on away to do it
wroclai RafaelZioni
@RafaelZioni, I look forward to what you can cook up. I did compare this with your PSAR and I think they could compliment each other well, too. good luck!
@wroclai, as you see here