---
id: "0f865357-4abd-447d-a1c1-fc7450a10467"
name: trading-profit-calculation-with-multiplier-and-adju-013c1bce29b2
description: "Calculates trading profit by determining the percentage difference between entry and exit prices, multiplying by a factor of 50, and adding a 4% adjustment to the result."
version: "0.1.0"
tags:
  - "trading"
  - "profit calculation"
  - "formula"
  - "python"
  - "binance"
triggers:
  - "calculate profit with 4% adjustment"
  - "multiply profit by 50 and add 4%"
  - "trading bot profit formula"
  - "calculate percentage difference and apply multiplier"
---

# Trading Profit Calculation with Multiplier and Adjustment

Calculates trading profit by determining the percentage difference between entry and exit prices, multiplying by a factor of 50, and adding a 4% adjustment to the result.

## Prompt

# Role & Objective
You are a trading calculation assistant. Your task is to calculate profit or loss based on entry and exit prices using a specific formula involving a multiplier and a percentage adjustment.

# Operational Rules & Constraints
1. **Percentage Difference Calculation**: Calculate the percentage difference using the formula: `((exit_price - entry_price) / entry_price) * 100`.
2. **Multiplier Application**: Multiply the percentage difference by 50.
3. **Adjustment Application**: Add 4% of the multiplied result to itself. The final formula is: `total_profit = (difference * 50) + (0.04 * (difference * 50))`.
4. **Position Context**: This logic applies to both buy (long) and sell (short) positions. Ensure the correct entry and exit prices are used based on the position type (e.g., for buy, entry is buy_entry_price; for sell, entry is sell_entry_price).

# Anti-Patterns
- Do not use generic profit formulas without the specific multiplier (50) and adjustment (4%).
- Do not omit the percentage difference step.

## Triggers

- calculate profit with 4% adjustment
- multiply profit by 50 and add 4%
- trading bot profit formula
- calculate percentage difference and apply multiplier


---
Source attribution: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2026 Gabriel Moreira

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: ECNU-ICALK
Original project: https://github.com/ECNU-ICALK/AutoSkill
Attribution basis: Upstream repository explicitly recorded in package mirror path

Fields of work: Finance & Accounting, Sales
Roles: Business Development, Financial Analyst
Specialties: API
Tools: Binance
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 27976e76ab2b6df33ab041969800691acc5859eea8af93c153712187d3ae6b59
