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.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill trading-profit-calculation-with-multiplier-and-adjustmentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.0 KB, 314 tokens by cl100k_base, as published. Nobody here has run it
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
- Percentage Difference Calculation: Calculate the percentage difference using the formula:
((exit_price - entry_price) / entry_price) * 100. - Multiplier Application: Multiply the percentage difference by 50.
- Adjustment Application: Add 4% of the multiplied result to itself. The final formula is:
total_profit = (difference * 50) + (0.04 * (difference * 50)). - 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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.