Skip to content
cost-density-net-rr-calculator logo

Cost Density Net Rr Calculator

cost-density-net-rr-calculator

計算交易成本對風險報酬比的非線性衰減影響。將固定佣金與點差整合為「成本密度」指標,揭示停損大小與策略效率的雙曲線關係,識別「獲利事件視界」閾值。

SKILL.md

Full skill instructions

<essential_principles> 成本密度模型核心原則

1. 核心公式

所有計算基於以下關係:

Cost Density = (c/​V + s)           # 成本密度(pips 等效)
x = Cost Density / P               # 負載係數
RR_net = (RR_g - x) / (1 + x)      # 淨風險報酬比
WR_min = (1 + x) / (1 + RR_g)      # 最低勝率
P_critical = CostDensity × (RR_g + 2) / RR_g  # 效率減半點

2. 參數定義

參數定義單位
RR_g毛風險報酬比(目標/停損)無單位
P停損大小pips/​points
c來回佣金(每手)帳戶貨幣
s來回點差pips/​points
V每 pip 價值(每手)帳戶貨幣/​pip
R固定風險(可選,會抵消)帳戶貨幣

3. 關鍵洞察

  • 雙曲線衰減: P → 0 時,x → ∞,RR_net → -1
  • R 無關性: RR_net 不依賴固定風險 R
  • 剪刀效應: 短時間框架同時增加成本負擔與降低訊號品質

4. 單位一致性規則

  • P 和 s 必須使用相同基準(都是 pips 或都是 points)
  • c 必須是 round-turn(來回)佣金
  • V 必須是每 pip 每手的價值 </​essential_principles>
<intake> **您想要執行什麼操作?**
  1. Compute - 計算單一參數組合的成本密度與效率指標
  2. Sweep - 掃描停損範圍,生成 RR_net/​WR_min 曲線表
  3. Analyze - 解讀結果,提供策略建議

等待回應後再繼續。 </​intake>

<routing> | Response | Workflow | Description | |--------------------------------------|----------------------|----------------------| | 1, "compute", "calculate", "single" | workflows/​compute.md | 單次計算成本密度指標 | | 2, "sweep", "grid", "curve", "range" | workflows/​sweep.md | 網格掃描與閾值搜尋 | | 3, "analyze", "interpret", "explain" | workflows/​analyze.md | 結果解讀與策略建議 |

讀取工作流程後,請完全遵循其步驟。 </​routing>

<reference_index> 參考文件 (references/)

文件內容
formulas.md完整公式推導與數學證明
theory.md市場微結構理論背景與文獻
</​reference_index>

<workflows_index>

WorkflowPurpose
compute.md單次計算成本密度與效率指標
sweep.md網格掃描與閾值搜尋
analyze.md結果解讀與策略建議
</​workflows_index>

<templates_index>

TemplatePurpose
output-schema.yaml輸出 JSON schema
input-schema.yaml輸入參數 schema
</​templates_index>

<scripts_index>

ScriptPurpose
cost_density.pyPython 計算實作
cost_density.tsTypeScript 計算實作
</​scripts_index>

<quick_start> 快速計算(XAU/​USD 範例):

輸入:

{
  "RR_g": 3.0,
  "c": 7.0,
  "s": 1.5,
  "V": 10.0,
  "P": 20
}

計算:

cost_density = 7.0/​10.0 + 1.5  # = 2.2 pips
x = 2.2 / 20                    # = 0.11
RR_net = (3.0 - 0.11) / (1 + 0.11)  # = 2.60
WR_min = (1 + 0.11) / (1 + 3.0)     # = 27.7%
P_critical = 2.2 * (3.0 + 2) / 3.0  # = 3.67 pips

輸出:

{
  "cost_density": 2.2,
  "x": 0.11,
  "RR_net": 2.60,
  "WR_min": 0.277,
  "P_critical": 3.67,
  "Loss_RR": 0.133
}

</​quick_start>

<success_criteria> Skill 成功執行時:

  • 輸入參數通過驗證(單位一致性)
  • 正確計算 cost_density、x、RR_net、WR_min
  • 識別是否處於高摩擦區(P < P_critical)
  • 輸出符合 outputs_schema
  • 提供 zh-TW 解釋說明 </​success_criteria>

More Productivity & Planning skills

brainstorming logo
Productivity & Planning

brainstorming

Structured design dialogue that validates ideas before implementation begins.

295.4K 385.7K
View
ui-ux-pro-max logo
Productivity & Planning

ui-ux-pro-max

Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.

133.1K 383.9K
View
writing-plans logo
Productivity & Planning

writing-plans

Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.

295.4K 268K
View
using-superpowers logo
Productivity & Planning

using-superpowers

Introduction to the obra skills system with mandatory skill invocation rules and best practices.

295.4K 259.8K
View
executing-plans logo
Productivity & Planning

executing-plans

Execute a written implementation plan with critical review and task checkpoints.

295.4K 229.1K
View
dispatching-parallel-agents logo
Productivity & Planning

dispatching-parallel-agents

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View
using-git-worktrees logo
Productivity & Planning

using-git-worktrees

Isolated git worktrees with smart directory selection and safety verification.

295.4K 205.2K
View
webapp-testing logo
Productivity & Planning

webapp-testing

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

179.7K 170.6K
View
content-strategy logo
Productivity & Planning

content-strategy

Plan searchable and shareable content that drives traffic, builds authority, and generates leads.

53.3K 150.9K
View
repo-intake-and-plan logo
Productivity & Planning

repo-intake-and-plan

README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.

497 139.6K
View
marketing-ideas logo
Productivity & Planning

marketing-ideas

Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.

53.3K 137.2K
View
site-architecture logo
Productivity & Planning

site-architecture

Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.

53.3K 112.8K
View

Productivity AI tools

Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View
SaveDay logo
Productivity

SaveDay

Capture, organize, and utilize your knowledge effortlessly.

Free
View
Any Summary logo
Productivity

Any Summary

Instant Summaries of Audio & Video Interviews with AnySummary

Freemium
View
M
Productivity

Map This

Transform PDFs into engaging mind maps.

Freemium
View
ChatPDF logo
Productivity

ChatPDF

Chat with any PDF instantly

Free
View
I
Productivity

intellisay

Create an optimal daily plan using your voice

Paid
View
A
Productivity

Aurora AI

A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.

Paid
View
AskYourPDF logo
Productivity

AskYourPDF

AskYourPDF Pricing Plans: Tailored to Your Needs

Free
View