{"repo":"leionion/dynamic-position-sizer-atr-calculator","free":true,"listed":false,"github":"https://github.com/leionion/dynamic-position-sizer-atr-calculator","clone":"git clone https://github.com/leionion/dynamic-position-sizer-atr-calculator.git","description":"A utility that automatically calculates the exact lot size for a trade based on a fixed 1% account risk and current market volatility (ATR).","language":"Python","stars":15,"topics":["algo-trading","atr","calculator","cli-tool","crypto-trading","finance-tool","forex-trading","position-sizing","python","quant-trading"],"license":null,"category":"trading","readme_excerpt":"Dynamic Position Sizer ATR Calculator Production-ready ATR-based risk sizing engine for traders and trading systems. It calculates position size from account risk, volatility, and instrument contract rules so risk stays controlled across market regimes. Implemented Features - Fixed-risk sizing ( risk amount = balance risk percent ) - ATR-based stop distance ( stop distance = ATR atr multiplier ) - Optional explicit stop from entry price and stop price - Contract-aware lot sizing with contract size and tick value - Broker-safe lot rounding: down , nearest , up - Min/max lot constraints with reject/clip behavior - Portfolio-level risk cap across batch calculations - Multi-asset support: forex , crypto , stock , futures , cfd - YAML/JSON config loading for single position and watchlists - Journal export to JSON or CSV - CLI with human-readable and JSON output formats - Automated tests for engine logic and CLI behavior Project Structure Core Formula Installation Usage 1) Single Calculation (CLI args) 2) Single Calculation (Config file) 3) Watchlist Batch Sizing 4) Export Journal as CSV Notes on Risk Controls - Use rounding mode=down as the safest default to avoid oversizing. - Use portfolio-risk-cap to control aggregate risk in multi-trade flows. - If computed lot is below min lot , trade is rejected ( status=REJECTED ). - Always validate in paper mode before wiring to live execution. Testing Tests currently validate: - Correct ATR sizing behavior - Rejection logic for min lot - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/leionion","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/leionion/dynamic-position-sizer-atr-calculator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}