Skip to main content
Glama

metatrader-mcp-server

calculate_profit.md627 B
# 💰 calculate_profit **Signature:** ```python def calculate_profit(order_type, symbol, volume, entry_price, exit_price) -> Optional[float] ``` ## What does it do? 📈 Calculates the profit (or loss) for a trade given entry and exit prices. Perfect for post-trade analysis or planning! ## Parameters - **order_type**: BUY/SELL or OrderType enum - **symbol**: Instrument name - **volume**: Trading volume in lots - **entry_price**: Price you entered - **exit_price**: Price you exited ## Returns - The profit as a float, or None if calculation fails. ## Fun Fact 🤑 See how much you made (or lost) with just one call!

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ariadng/metatrader-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server