Strambatax

Stx Monthly Trades Profit

Strambatax Cập nhật   
Monthly profit displays profits in a grid and allows you to know the gain related to the investment during each month.
The profit could be computed in terms of gain/trade_cost or as percentage of equity update.

Settings:
- Profit: Monthly profit percentage or percentage of equity
- Table position

This strategy is intended only as a container for the code and for testing the script of the profit table.
Setting of strategy allows to select the test case for this snippet (percentage grid).
Money management: not relevant as strategy is a test case.

This script stand out as take in account the gain of each trade in relation to the capital invested in each trade. For example consider the following scenario:
Capital of 1000$ and we invest a fixed amount of 1000$ (I know is too risky but is a good example), we gain 10% every month.
After 10 months our capital is of 2000$ and our strategy is perfect as we have the same performance every month.
Instead, evaluating the percentage of equity we have 10% the first month, 9.9% the second (1200$/1100$ - 1) and 5.26% the tenth month. So seems that strategy degrade with times but this is not true.
For this reason, to evaluate my strategy I prefer to see the montly return of investment.

WARNING: The strategy provided with this script is only a test case and allows to see the behavior with different "trades" management, for these reason commision are set to zero.
At the moment only the provided test cases are handled:

test 1 - single entry and single exit;
test 2 - single entry and multiple exits;
test 3 - single entry and switch position;

Phát hành các Ghi chú:
Update documentation
Phát hành các Ghi chú:
fix position reversal condition
Phát hành các Ghi chú:
add leverage setting for monthly_profit, in this way the script consider the profit_for_each_trade related to the trade investment as invested_capital * leverage.
Phát hành các Ghi chú:
add yearly summary
Phát hành các Ghi chú:
Highlight the cell with min and max value.
The first cell, starting from past with min, max is highlighted. Consider that values on the table are rounded therefore you can see highlighted value not at the first occourrence. For example 2.001% and 2.002% are shown both as 2% but the second will be higlighted.

Mã nguồn mở

Với tinh thần TradingView, tác giả của tập lệnh này đã xuất bản nó dưới dạng mã nguồn mở, vì vậy các nhà giao dịch có thể hiểu và xác minh nó. Chúc mừng tác giả! Bạn có thể sử dụng mã này miễn phí, nhưng việc sử dụng lại mã này trong một ấn phẩm chịu sự điều chỉnh của Nội quy nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

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.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?