trader-ap2

Position Size By Risk For Bar Size

trader-ap2 Cập nhật   
This simple script provides a way of calculating position size on a bar by bar basis for a fixed risk amount.

If you are trading a fixed risk amount (e.g. $100) per trade and your Entry and Stop is defined by a specific bar on the chart (any resolution e.g. 15 min, 5 min, 2 min etc) then this indicator will show you the position size you can take.

The user configures the risk amount per trade in the setting for the indicator, the default is 100 (e.g. $100).

It calculates each bar size (high - low) for the resolution of the chart that is being viewed.

The position size = (risk amount) / (bar size).

It then displays a "." (dot) for each bar and to see the position size hover your mouse over this dot.

The pane for this indicator can be set to the top of the chart by using the "Move pane up" option on the chart so that the indicator is easily accessible and discrete at the top of the chart.

Also, there is an option to use this indicator as a substitute for the built-in volume display.
Phát hành các Ghi chú:
Summary
This version adds User Input options to show 2 different position sizes for different risk amounts. This version also adds a user option to display the High & Low of the bar. Tooltips added for User Input boxes.

Details
Normally you will trade with a consistent $ risk amount (Normal Size), but there are occasions where you might want to trade 1/2 size or double size depending on the quality of the trade. So this second risk amount box can be used for this purpose. By default the second position sizing is turned off.

Also added a User Input option to display the High & Low of the bar. By default this is turned off.
Phát hành các Ghi chú:
The default User Input settings are now set to show 2 different position sizes (Normal risk amount position size and 2x Normal risk amount position size for A+++ setups where higher risk is justified). One or both of these position sizes can be turned off through User Input fields.

Modified options to configure what is displayed in the label:

Yes - Shows position size and risk amount
Yes Compact (Default) - Shows only position size
No - Does not show position size or risk amount

Restructured code to bring it in line with Pine Script coding style guide (www.tradingview.com/...ing/Style_guide.html)
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 đồ?