{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "24212c68", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "DB = Arcade::Database-instance\n" ] }, { "data": { "text/plain": [ "true" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "require_relative 'db-console'\n" ] }, { "cell_type": "code", "execution_count": 8, "id": "a91a107d", "metadata": {}, "outputs": [ { "data": { "text/html": [ "Index[#313:0]:{0->}{->0}, SPX USD () " ], "text/plain": [ "\"Index[#313:0]:{0->}{->0}, SPX USD () \"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": {}, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "spx = Contract.first\n" ] }, { "cell_type": "markdown", "id": "49d2051c", "metadata": {}, "source": [ "Die Standard-IRuby Ausgabe für ein OHLC-Record" ] }, { "cell_type": "code", "execution_count": 14, "id": "49f480d2", "metadata": {}, "outputs": [ { "data": { "text/html": [ "Trades[#386:2057] : {1->}{->1}
" ], "text/plain": [ "\"Trades[#386:2057] : {1->}{->1}
\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
dateopenhighlowclosetrades
2004-03-041150.611154.981149.81154.57692
" ], "text/plain": [ "\"
dateopenhighlowclosetrades
2004-03-041150.611154.981149.81154.57692
\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": {}, "metadata": {}, "output_type": "display_data" }, { "data": {}, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "Ohlc.start_entry( spx ).first" ] }, { "cell_type": "markdown", "id": "d1c21ee6", "metadata": {}, "source": [ "Die Anfangsdaten der Datenreihen Trades und Vola für den SPX in Tabellenform" ] }, { "cell_type": "code", "execution_count": 13, "id": "5b6d1950", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
CLASSINOUTRIDdateopenhighlowclosetrades
Trades11#386:20572004-03-041150.611154.981149.81154.57692
Trades21#389:20582004-03-051151.01163.231148.751157.341806
Trades21#392:20582004-03-081157.751160.121147.021147.021133
Trades21#395:20582004-03-091146.591146.811136.861140.671439
Trades21#398:20582004-03-101141.611142.051122.51124.11413
" ], "text/plain": [ "\"
CLASSINOUTRIDdateopenhighlowclosetrades
Trades11#386:20572004-03-041150.611154.981149.81154.57692
Trades21#389:20582004-03-051151.01163.231148.751157.341806
Trades21#392:20582004-03-081157.751160.121147.021147.021133
Trades21#395:20582004-03-091146.591146.811136.861140.671439
Trades21#398:20582004-03-101141.611142.051122.51124.11413
\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
CLASSINOUTRIDdateopenhighlowclosevolumewap
Vola11#404:5492006-01-060.158745080.158745080.158745080.1587450810.15874508
Vola21#407:5492006-01-090.104771750.10635920.101596850.103184310.10620046
Vola21#410:5492006-01-100.10318430.10635920.10000940.1015968510.10569247
Vola21#413:5492006-01-110.104771750.104771750.098421950.1015968510.10516861
Vola21#416:5492006-01-120.10000940.10318430.09683450.1015968510.10380341
" ], "text/plain": [ "\"
CLASSINOUTRIDdateopenhighlowclosevolumewap
Vola11#404:5492006-01-060.158745080.158745080.158745080.1587450810.15874508
Vola21#407:5492006-01-090.104771750.10635920.101596850.103184310.10620046
Vola21#410:5492006-01-100.10318430.10635920.10000940.1015968510.10569247
Vola21#413:5492006-01-110.104771750.104771750.098421950.1015968510.10516861
Vola21#416:5492006-01-120.10000940.10318430.09683450.1015968510.10380341
\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": {}, "metadata": {}, "output_type": "display_data" } ], "source": [ "IRuby.display( Ohlc.start_entry( spx ).map{|y| IRuby.table( y.vector(5).map(&:html_attributes))})" ] }, { "cell_type": "markdown", "id": "9de8d4a5", "metadata": {}, "source": [ "Die Enddaten der Datenreihen Trades und Vola für den SPX in Tabellenform" ] }, { "cell_type": "code", "execution_count": 15, "id": "0a5fa214", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
CLASSINOUTRIDdateopenhighlowclosetrades
Trades20#398:242023-11-074366.214386.264355.414378.3821528
Trades21#395:242023-11-064364.274372.214347.534365.9821611
Trades21#392:242023-11-034334.234373.624334.234358.3421667
Trades21#389:242023-11-024268.264319.724268.264317.7821607
Trades21#386:242023-11-014201.274245.644197.744237.8622064
" ], "text/plain": [ "\"
CLASSINOUTRIDdateopenhighlowclosetrades
Trades20#398:242023-11-074366.214386.264355.414378.3821528
Trades21#395:242023-11-064364.274372.214347.534365.9821611
Trades21#392:242023-11-034334.234373.624334.234358.3421667
Trades21#389:242023-11-024268.264319.724268.264317.7821607
Trades21#386:242023-11-014201.274245.644197.744237.8622064
\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ "
CLASSINOUTRIDdateopenhighlowclosevolumewap
Vola20#422:242023-11-070.123821160.126996060.122233710.1222337110.12710718
Vola21#419:242023-11-060.125408610.128583510.123821160.1254086110.12855176
Vola21#416:242023-11-030.133345870.133345870.125408610.1269960610.13299663
Vola21#413:242023-11-020.147632920.147632920.134933320.1349333210.14722019
Vola21#410:242023-11-010.158745080.158745080.146045470.1460454710.15812597
" ], "text/plain": [ "\"
CLASSINOUTRIDdateopenhighlowclosevolumewap
Vola20#422:242023-11-070.123821160.126996060.122233710.1222337110.12710718
Vola21#419:242023-11-060.125408610.128583510.123821160.1254086110.12855176
Vola21#416:242023-11-030.133345870.133345870.125408610.1269960610.13299663
Vola21#413:242023-11-020.147632920.147632920.134933320.1349333210.14722019
Vola21#410:242023-11-010.158745080.158745080.146045470.1460454710.15812597
\"" ] }, "metadata": {}, "output_type": "display_data" }, { "data": {}, "metadata": {}, "output_type": "display_data" } ], "source": [ "IRuby.display( Ohlc.last_entry( spx ).map{|y| IRuby.table( y.vector(-5).map(&:html_attributes))})" ] }, { "cell_type": "code", "execution_count": null, "id": "99bf460d", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "4465d3b4", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "2269968c", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "96f15d3c", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Ruby 3.2.0", "language": "ruby", "name": "ruby" }, "language_info": { "file_extension": ".rb", "mimetype": "application/x-ruby", "name": "ruby", "version": "3.2.0" } }, "nbformat": 4, "nbformat_minor": 5 }