OPEN-SOURCE SCRIPT

Liquidation Risk Suite [Mxwll]

Theo MXWLL-Capital-Trading
Hello traders 👋

This indicator "Liquidation Risk Suite" hosts various features that allow the trade to determine optimal position sizing, leverage, profit targets, and more!

Features
  • Customizable entry price and time
  • From the entry price, a user-defined number of liquidation levels by leverage are shown
  • From the entry price, a user-defined number of profit targets by leverage are shown
  • User-defined ROI % target. Liquidation levels and profit targets automatically change to account for the traders' desired profit percentage.
  • Calculate for long and short positions
  • Trader can set portfolio balance and investment per trade - indicator will warn the trader when the investment per trade is too high relative to the portfolio balance.


How this script works

The Liquidation Risk Suite is designed to help traders determine position sizing, appropriate risk for their position (leverage, etc.), and potential profit targets from their entry point.

Upon loading the script, the script will prompt you for an entry price and entry time. Simply click the screen at the appropriate locations (your entry price and entry bar) and, from there, the script will calculate various liquidation levels, determine whether your trade has achieved the desired profit at various leverages, and provide various trading metrics such as % risk of portfolio, ROI target %, profit at target, and more!

ảnh chụp nhanh

The image above outlines various trade-related metrics for your position!

These metrics include:

  • Status of trade (profit or loss) for various common leverage amounts
  • Portfolio balance
  • Investment amount
  • Price target (calculated from desired ROI%)
  • Profit at target (calculated from desired ROI% and leverage used)
  • Portfolio risk
  • Entry price
  • Entry time
  • ROI Target %


ảnh chụp nhanh

The image above explains the output of the script, including line style indications!

Solid lines indicate that the leverage used for at your entry price constitutes an active trade. Dotted lines mean the trade has already achieved your profit target for that leverage, or stopped out.

ảnh chụp nhanh

Additionally, the script can calculate pertinent metrics for short positions!

That's all, just a simple, sweet script to help traders figure out what leverage to use for their positions, the risk they're taking on, and potential stop and profit levels!

Thank you to kaigouthro for his colors library!

liquidationsmxwllriskstatistics
MXWLL-Capital-Trading

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 đồ?

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