옵션 손익 구조
코드
문서 보기 →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







