Skip to content

YKUNAKORN/Position-Size-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Position Size Calculator 📊

A modern web application to help traders calculate their optimal position size before entering a trade. Built with Next.js, React, and TypeScript, this tool ensures that traders can manage their risk effectively.


🚀 Features

  • User Inputs: Accepts portfolio balance, risk percentage, stop loss percentage, and leverage.
  • Real-Time Calculation: Computes the position size dynamically based on user inputs.
  • Responsive Design: Optimized for both desktop and mobile devices.
  • Modern Tech Stack: Built with Next.js, React, and TypeScript for scalability and maintainability.

🛠️ Installation

Follow these steps to set up the project locally:

  1. Clone the repository:

    git clone https://github.com/YKUNAKORN/Position-Size-Calculator.git
    cd position-size-calculator
  2. Install dependencies:

    npm install
  3. Run the development server:

    npm run dev
  4. Open your browser and navigate to:

    http://localhost:3000
    

📂 Project Structure

position-size-calculator/
├── src/
│   ├── pages/               # Next.js pages
│   │   ├── index.tsx        # Main page
│   │   ├── _app.tsx         # App wrapper
│   ├── styles/              # CSS modules
│   │   ├── Home.module.css  # Styles for the home page
│   ├── utils/               # Utility functions
│       ├── calculatePositionSize.ts # Logic for position size calculation
├── public/                  # Static assets
├── package.json             # Project dependencies and scripts
├── tsconfig.json            # TypeScript configuration
└── README.md                # Project documentation

🧮 How to Use

  1. Enter your Portfolio Balance in USDT.
  2. Specify the Risk of Ruin percentage.
  3. Enter the Stop Loss percentage.
  4. Provide the Leverage value.
  5. Click the Calculate button to see the recommended position size.

🛠️ Technologies Used

  • Next.js: Framework for server-side rendering and static site generation.
  • React: JavaScript library for building user interfaces.
  • TypeScript: Superset of JavaScript for type safety.
  • CSS Modules: Scoped and modular CSS for styling.

🤝 Contributing

Contributions are welcome! If you'd like to contribute, please fork the repository and submit a pull request.


📧 Contact

For any questions or feedback, feel free to reach out at [[email protected]].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published