Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.
Hey wow, someone else finally discovered the strategy I was using 4 years ago :) Doesn't really work anymore since the market has become more mature, but congrats!
Here's a hint - add lag to the second linreg line, like so:
lag2 = input(lag2)
outslow = linreg(src, len2, offset)
a few ticks of lag will improve your results generally, prevent some false signals. Also, 100/150 settings you are using are generally pretty good on 15 minute ticks, try in the range of 25/35 for hourly ticks. Cheers :)
As bad as you think it is, you still reaped profits. Better than what a lot of people use as their strategy no doubt.
May I ask, what do you think is the best/a better way of using the linear regression line? I was thinking of using it as a trend indicator (based on what direction it's moving, so something like: uptrend = lsma > lsma.
@overttherainbow, Hi sir, I did think if I find the return moment of 2 different future linear expectation, I can generate a signal. However, it is not so systematic. Therefore,I am working on different usage of linear regression. I hope I would make the better version.
Bình luận
lag2 = input(lag2)
outslow = linreg(src, len2, offset)
a few ticks of lag will improve your results generally, prevent some false signals. Also, 100/150 settings you are using are generally pretty good on 15 minute ticks, try in the range of 25/35 for hourly ticks. Cheers :)
outslow = linreg(src, len2, offset)
May I ask, what do you think is the best/a better way of using the linear regression line? I was thinking of using it as a trend indicator (based on what direction it's moving, so something like: uptrend = lsma > lsma.
What are your thoughts on it's potential uses?