Skip to content

Python scripts for calculating profit/loss and recommended capital allocation in trading, considering leverage, fees, and risk management strategies.

Notifications You must be signed in to change notification settings

adrian-13/Risk-Management-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Risk Management Calculator

Check out the web application here: Risk Management Calculator

Risk Management Calculator is a powerful Streamlit application designed to help traders manage their investments effectively. This tool calculates the potential profit or loss (P/L) for trading positions, taking into account leverage and fees, and provides recommendations for optimal capital allocation based on risk tolerance.

Features

  • General Settings: Configure your total capital, the amount invested in a position, leverage, risk percentage, and trading fees.
  • Price Settings: Set entry price and stop-loss price for your trades.
  • Take Profit Settings: Define exit prices and proportions for up to three take profit (TP) levels.
  • Profit/Loss Calculation: Calculates the P/L for individual TP levels and the remaining position, factoring in trading fees.
  • Capital Recommendation: Provides recommendations for the capital to be risked to stay within the specified risk percentage.
  • Visual Enhancements: Improved UI with clear sections and input fields, styled for a better user experience.
  • Donation Information: Displays author information and cryptocurrency addresses for donations to support future development.

Usage

  1. Configure Settings: Input your total capital, amount invested, leverage, risk percentage, and trading fees in the "General Settings" section.
  2. Set Prices: Enter the entry price and stop-loss price in the "Price Settings" section.
  3. Define Take Profit Levels: Specify exit prices and the proportion of the position to close at each level in the "Take Profit Settings" section.
  4. Calculate: Click the "Calculate" button to compute the potential P/L and recommended capital allocation.
  5. Review Results: Check the detailed results displayed, including individual TP P/Ls, total P/L, and recommended capital to risk.

Contributing

We welcome contributions to improve this tool! Feel free to submit issues and pull requests on the GitHub repository.

About

Python scripts for calculating profit/loss and recommended capital allocation in trading, considering leverage, fees, and risk management strategies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages