李珮瑄 CANVAS繪圖
選擇權到期日損益 說明 function MY(){ const canvas = document.getElementById("Canvas210"); const BuyPut = canvas.getContext("2d"); BuyPut.beginPath(); BuyPut.moveTo(0,0); BuyPut.lineTo(200,200); BuyPut.lineTo(400,200); BuyPut.strokeStyle = "black"; BuyPut.lineWidth = 2; BuyPut.font = "24px 標楷體"; BuyPut.fillText("買入賣權Put,認售權證",200,50); BuyPut.stroke(); const SellPut = canvas.getContext("2d"); SellPut.beginPath(); SellPut.moveTo(0,500); SellPut.lineTo(200,300); SellPut.lineTo(400,300); SellPut.strokeStyle = "black"; SellPut.lineWidth = 2; SellPut.fillText("賣出賣權Put,認售權證",200,450); SellPut.stroke(); const BuyCall = canvas.getContext("2d"); BuyCall.beginPath(); BuyCall.moveTo(500,200); BuyCall.lineTo(700,200); BuyCall.lineTo(900,0); BuyCall.strokeStyle = "black"; BuyCall.lineWidth = 2; BuyCall.fillText("買入買權Call,認購權證",500,50); BuyCall.stroke(); const SellCall = canvas.getContext(...