演示期权损益图

期权损益图

import { PayoffChart } from '@tradecanvas/chart'

new PayoffChart(el, {
  legs: [              // an iron condor
    { type: 'put', side: 'long', strike: 85, premium: 0.6 },
    { type: 'put', side: 'short', strike: 92, premium: 1.9 },
    { type: 'call', side: 'short', strike: 108, premium: 1.7 },
    { type: 'call', side: 'long', strike: 115, premium: 0.5 },
  ],
  multiplier: 100,
  spot: 100,
  model: { daysToExpiry: 21, volatility: 0.24 },   // and before expiry, by Black-Scholes
  theme: 'light',
})
import { PayoffChart } from '@tradecanvas/chart'

new PayoffChart(el, {
  legs: [              // an iron condor
    { type: 'put', side: 'long', strike: 85, premium: 0.6 },
    { type: 'put', side: 'short', strike: 92, premium: 1.9 },
    { type: 'call', side: 'short', strike: 108, premium: 1.7 },
    { type: 'call', side: 'long', strike: 115, premium: 0.5 },
  ],
  multiplier: 100,
  spot: 100,
  model: { daysToExpiry: 21, volatility: 0.24 },   // and before expiry, by Black-Scholes
  theme: 'dark',
})

● 模拟行情数据,在你的浏览器中生成

供交易者收盘后查看:盈亏、回撤、配置、风险与收益。

API: PayoffChart