{"slug":"leveraged-etfs-from-spain","qid":"ventana_2022","label":"ventana_2022","post_title":"leveraged-etfs-from-spain","post_url":"/blog/lang/es/leveraged-etfs-from-spain#q-ventana_2022","columns":["month","indice_base100","triple_papel_base100","producto_base100"],"rows":[{"month":"2021-11","indice_base100":97.5,"triple_papel_base100":92.4,"producto_base100":92.3},{"month":"2021-12","indice_base100":98.5,"triple_papel_base100":95.4,"producto_base100":93.9},{"month":"2022-01","indice_base100":89.9,"triple_papel_base100":69.6,"producto_base100":69.8},{"month":"2022-02","indice_base100":85.8,"triple_papel_base100":57.5,"producto_base100":59.2},{"month":"2022-03","indice_base100":89.7,"triple_papel_base100":69.2,"producto_base100":65.7},{"month":"2022-04","indice_base100":77.5,"triple_papel_base100":32.6,"producto_base100":41.2},{"month":"2022-05","indice_base100":76.3,"triple_papel_base100":28.9,"producto_base100":37.3},{"month":"2022-06","indice_base100":69.4,"triple_papel_base100":8.1,"producto_base100":27.1},{"month":"2022-07","indice_base100":78.1,"triple_papel_base100":34.3,"producto_base100":37.7},{"month":"2022-08","indice_base100":74.1,"triple_papel_base100":22.2,"producto_base100":31.4},{"month":"2022-09","indice_base100":66.2,"triple_papel_base100":-1.5,"producto_base100":21.8},{"month":"2022-10","indice_base100":68.8,"triple_papel_base100":6.4,"producto_base100":23.7},{"month":"2022-11","indice_base100":72.6,"triple_papel_base100":17.8,"producto_base100":26.6},{"month":"2022-12","indice_base100":65.9,"triple_papel_base100":-2.3,"producto_base100":19.5}],"shape":"series","sql":"WITH\n    (SELECT argMin(toFloat64(close), date)\n     FROM global_markets.stocks_daily_aggs\n     WHERE ticker = 'QQQ'\n       AND date BETWEEN '2021-11-19' AND '2021-11-30')  AS base_indice,\n    (SELECT argMin(toFloat64(close), date)\n     FROM global_markets.stocks_daily_aggs\n     WHERE ticker = 'TQQQ'\n       AND date BETWEEN '2021-11-19' AND '2021-11-30')  AS base_producto\nSELECT\n    formatDateTime(toStartOfMonth(date), '%Y-%m')                                    AS month,\n    round(argMaxIf(toFloat64(close), date, ticker = 'QQQ') * 100 / base_indice, 1)    AS indice_base100,\n    round(100 * (1 + 3 * (argMaxIf(toFloat64(close), date, ticker = 'QQQ')\n                          / base_indice - 1)), 1)                                    AS triple_papel_base100,\n    round(argMaxIf(toFloat64(close), date, ticker = 'TQQQ') * 100 / base_producto, 1) AS producto_base100\nFROM global_markets.stocks_daily_aggs\nWHERE ticker IN ('QQQ', 'TQQQ')\n  AND date >= '2021-11-19'\n  AND date <= '2022-12-31'\nGROUP BY month\nHAVING countIf(ticker = 'QQQ')  > 0\n   AND countIf(ticker = 'TQQQ') > 0\nORDER BY month","computed_at":"2026-10-08T15:37:38.263142+00:00","elapsed":0.009535513}