OPEN-SOURCE SCRIPT

Equity Trade Risk Manager

Cập nhật
Equity Trade Risk Manager is a simple indicator that helps you protect your portfolio by going into each trade risk first!

Equity Trade Risk Manager does this by calculating your ideal position size or ideal stop loss based on your account size, purchase price and risk tolerance. This ensures you are never risking more than your predetermined amount on each trade.

Unlike most position size calculators, that will only tell traders how many shares to purchase, Equity Trade Risk Manger allows the trader to choose whether they want to calculate the ideal number of shares to purchase or where to set the trades stop loss based on the number of shares owned. Not only that, but knowing traders need to act fast, the indicator also gives the option to quickly use the current price and low of the day as an entry and stop. Lastly, your stop loss will be plotted onto the chart for a visual aid.

Features:
Dynamic Risk Settings:
  • Account Customization: Input your account size to get metrics tailored to you.
  • Calculation Choices: Decide if you want the tool to calculate the number of shares you should buy or where to set your stop-loss.
  • Custom Risk Parameters: Use preset risk percentages or set your own to match your comfort level.

Price Point Flexibility:
  • Enter your entry and stop price or opt to use the current price and the low of the day.

Interactive Display Settings:
  • Customizable Interface: Adjust table positions, text size, and color schemes to match your trading dashboard aesthetic.
  • On-Chart Stop-Loss Indication: Visualize your stop loss on the chart itself.
  • Get a snapshot of your dollar risk, position size, shares to buy, and stop-loss.

Phát hành các Ghi chú
Update to allow for more choices of automatic stop placements.

Auto Stops Include
  • Low of Day
  • Recent Swing Low
  • ATR Multiple from Low of Day
Phát hành các Ghi chú
Update includes options for shorting, and changes to default settings.

Auto stops for shorts include:
  • High of Day
  • Swing High
  • % ATR from High of Day


For manual short entries, enter the number of shares owned as a negative number.
Phát hành các Ghi chú
Update includes the ability to limit the maximum position size to a percentage of account value.
Phát hành các Ghi chú
Update includes the option to use the current candles High or Low as an auto entry price for quick calculations.
Phát hành các Ghi chú
Added option for previous candles high and low for auto entries.
Phát hành các Ghi chú
Update to show the distance to stop level as a percentage in the data table.
Phát hành các Ghi chú
bug fix
educationalPortfolio managementportfoliorepositioningpositionsizepositionsizecalculatorpositionsizingriskriskmangement

Mã nguồn mở

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

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


Trusted Pine programmer. Send me a message for script development.
Ngoài ra, trên:

Thông báo miễn trừ trách nhiệm