OPEN-SOURCE SCRIPT

Liquidation Risk Suite [Mxwll]

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!

快照

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 %


快照

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.

快照

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

開源腳本

在真正的TradingView精神中,這個腳本的作者以開源的方式發佈,這樣交易員可以理解和驗證它。請向作者致敬!您可以免費使用它,但在出版物中再次使用這段程式碼將受到網站規則的約束。 您可以收藏它以在圖表上使用。

想在圖表上使用此腳本?

免責聲明