選擇權損益圖
程式碼
閱讀文件 →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







