OPEN-SOURCE SCRIPT
Strategy's Annual Return [racer8]

I was trying to find the annual return for a particular strategy script based on profit factor, annual trade frequency, and win rate.
So on paper, I created some equations to help me solve this...and eventually, I created this indicator!
This indicator will help you find the annual return for any strategy. All you need to input is profit factor, number of trades per year, and win rate...oh and percentage of equity to risk in the trades.
By the way, if the output is 1.15, that means 15% annual return.
Keep in mind that this is a mere approximation...and the actual return is likely lower than this value.
Also if your margin trading, set order size to 100% of equity in the strategy's parameters.
Hopes this helps. Good luck and enjoy ;)
So on paper, I created some equations to help me solve this...and eventually, I created this indicator!
This indicator will help you find the annual return for any strategy. All you need to input is profit factor, number of trades per year, and win rate...oh and percentage of equity to risk in the trades.
By the way, if the output is 1.15, that means 15% annual return.
Keep in mind that this is a mere approximation...and the actual return is likely lower than this value.
Also if your margin trading, set order size to 100% of equity in the strategy's parameters.
Hopes this helps. Good luck and enjoy ;)
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, người tạo ra tập lệnh này đã biến tập lệnh thành mã nguồn mở để các nhà giao dịch có thể xem xét và xác minh công năng. Xin dành lời khen tặng cho tác giả! Mặc dù bạn có thể sử dụng miễn phí, nhưng lưu ý nếu đăng lại mã, bạn phải tuân theo Quy tắc nội bộ của chúng tôi.
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.