{"slug":"one-options-trade-start-to-finish","qid":"exit_compare","label":"The same contract, three exit choices, net of commission and fees","post_title":"Options Trade Example: Start to Finish","post_url":"/blog/one-options-trade-start-to-finish#q-exit_compare","columns":["label","net_pl_usd","net_return_pct"],"rows":[{"label":"Closed after one week","net_pl_usd":-56.4,"net_return_pct":-7.6},{"label":"Closed one week before expiry","net_pl_usd":-717.4,"net_return_pct":-96.9},{"label":"Held to the final close","net_pl_usd":-740.4,"net_return_pct":-100}],"shape":"ranking","sql":"WITH\n    0.65 AS commission_per_contract,\n    0.05 AS fees_per_contract,\n    (\n        SELECT round(toFloat64(close), 2)\n        FROM global_markets.stocks_daily_aggs\n        WHERE ticker = 'AAPL'\n          AND date = '2026-02-20'\n    ) AS entry_close,\n    (\n        SELECT ticker\n        FROM global_markets.options_greeks\n        WHERE underlying_symbol = 'AAPL'\n          AND lower(option_type) LIKE 'c%'\n          AND expiration_date = '2026-03-20'\n          AND date = '2026-02-20'\n          AND toFloat64(option_close) > 0\n          AND toFloat64(strike_price) > entry_close\n        ORDER BY strike_price\n        LIMIT 1\n    ) AS chosen_contract,\n    (\n        SELECT toFloat64(option_close)\n        FROM global_markets.options_greeks\n        WHERE ticker = chosen_contract\n          AND date = '2026-02-20'\n    ) AS entry_premium,\n    (\n        SELECT max(date)\n        FROM global_markets.options_greeks\n        WHERE ticker = chosen_contract\n          AND date <= '2026-03-20'\n    ) AS final_session\nSELECT\n    multiIf(date = toDate('2026-02-27'), 'Closed after one week',\n            date = toDate('2026-03-13'), 'Closed one week before expiry',\n            'Held to the final close')                            AS label,\n    round((toFloat64(any(option_close)) - entry_premium) * 100\n          - commission_per_contract - fees_per_contract\n          - if(toFloat64(any(option_close)) > 0,\n               commission_per_contract + fees_per_contract, 0), 2) AS net_pl_usd,\n    round((((toFloat64(any(option_close)) - entry_premium) * 100\n          - commission_per_contract - fees_per_contract\n          - if(toFloat64(any(option_close)) > 0,\n               commission_per_contract + fees_per_contract, 0))\n          / (entry_premium * 100 + commission_per_contract + fees_per_contract)) * 100, 1) AS net_return_pct\nFROM global_markets.options_greeks\nWHERE ticker = chosen_contract\n  AND date IN (toDate('2026-02-27'), toDate('2026-03-13'), final_session)\nGROUP BY date\nORDER BY date","computed_at":"2026-10-07T16:18:40.296371+00:00","elapsed":0.005809949}