├── .gitignore ├── LICENSE ├── README.md ├── omega_ui ├── __init__.py ├── app.py ├── backend.py ├── backtest.py ├── configuration.py ├── omega_ui.config ├── socket_logging.py ├── static │ ├── script.js │ └── stylesheet.css ├── tearsheet.py ├── tests │ ├── AAPL.csv │ ├── MSFT.csv │ ├── TestData.csv │ ├── test_backtest.py │ └── test_tearsheet.ipynb └── users.json └── setup.py /.gitignore: -------------------------------------------------------------------------------- 1 | # python generated files # 2 | ########################## 3 | *.pyc 4 | omega_ui.egg-info/ 5 | omega_ui/tests/.ipynb_checkpoints/ 6 | 7 | # OS generated files # 8 | ###################### 9 | .DS_Store 10 | .DS_Store? 11 | ._* 12 | .Spotlight-V100 13 | .Trashes 14 | ehthumbs.db 15 | Thumbs.db 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Omega UI 2 | 3 | Backtesting Front End for backtrader (see: https://www.backtrader.com/). Built with Plotly/Dash. 4 | 5 | **Important:** 6 | * Before using, please make sure to update the file **omega-ui.config** at the root of the omega_ui folder. 7 | This file contains configuration parameters that are used throughout the application. 8 | * A Redis instance must be running (this is used to display logs) and the package folder needs to be in PythonPath. 9 | 10 | **What needs to be updated:** 11 | * Default/Module: This is the module where the class implementing the Backtest class is (make sure that the module is in 12 | PythonPath). 13 | * Default/Class: Name of the class implementing the Backtest class. 14 | * Default/Redis: IP address of the Redis datastore (Default port: 6379). 15 | * Logging/Root: Path to where logs will be stored. 16 | * Backtest/Cash: Default cash value. 17 | * Backtest/Modules: Modules where the strategies are located (several modules can be implemented using commas as 18 | a delimiter). 19 | 20 | 21 | ## 1. Installation: 22 | From source: Place the omega_ui directory found in the sources inside your project 23 | 24 | ## 2. Usage: 25 | * Before the UI can be used, the Backtest class needs to be implemented. This is done by inheriting the class Backtest 26 | from omega_ui.backtest and implementing the following methods: 27 | * get_symbols: Symbols that will be displayed on the UI and on which we can run a backtest. 28 | * get_parameters: Default parameters for a given strategy. 29 | * run: Run a backtest. Please note that this needs to return 2 items: returns and results from backtrader. 30 | 31 | * Before running the UI, the following command has to be running: 'python socket_logging.py flask run'. This is the 32 | server which redirects the logs to the UI. 33 | 34 | * To run the UI, run the following command: 'python app.py' and in your browser (tested only on Chrome), navigate to 35 | the specified address (should be http://127.0.0.1:8050/). 36 | 37 | ## 3. Example: 38 | An example has been included in the tests folder to give an idea on how to use the UI (see test_backtest.py). When 39 | using it, please make sure to select the strategy "TestStrategy" in the Strategy dropwdown as selecting ExampleBacktest 40 | would not work. 41 | 42 | ## Note: 43 | This project is designed for people already comfortable using and writing python code. I do not have time to provide 44 | support but am happy to help if you get in touch regarding the following topics: 45 | * Error messages 46 | * Documentation 47 | * Suggestions for extra features 48 | * Bugs 49 | I will try to reply to messages but can't guarantee it (as long as the message is properly formatted). This is a work 50 | in progress and also a project which I use for my research. Offers to contribute will be accepted. 51 | 52 | Also, if nothing happens while trying to run a backtest, this might be due to a problem with the Dash React part. 53 | I had an issue where I had to roll back Dash to a specific version and haven't tried to use the latest version again. 54 | To find out if there's a problem with React, right-click in Chrome and select Inspect, then navigate to the Console 55 | tab and look for errors. See below to know which dash packages work with this application: 56 | * dash==0.21.0 57 | * dash-auth==0.1.0 58 | * dash-core-components==0.20.2 59 | * dash-html-components==0.10.0 60 | * dash-renderer==0.11.3 61 | * dash-table-experiments==0.6.0 62 | -------------------------------------------------------------------------------- /omega_ui/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OmegaTrading/OmegaUI/dd99469a0356c64bd5c9a38f3ff6f99e67cf47ef/omega_ui/__init__.py -------------------------------------------------------------------------------- /omega_ui/app.py: -------------------------------------------------------------------------------- 1 | import flask 2 | import json 3 | import logging 4 | import os 5 | import uuid 6 | import redis 7 | 8 | import dash 9 | import dash.dependencies as dd 10 | import dash_auth 11 | import dash_core_components as dcc 12 | import dash_html_components as dhc 13 | import dash_table_experiments as dtb 14 | 15 | import omega_ui.configuration as oc 16 | import omega_ui.backend as ob 17 | 18 | 19 | debug_mode = True # set False to deploy 20 | 21 | root_directory = os.getcwd() 22 | stylesheets = ['stylesheet.css'] 23 | jss = ['script.js'] 24 | static_route = '/static/' 25 | 26 | 27 | app = dash.Dash(__name__) 28 | server = app.server 29 | app.title = 'Omega - Backtest' 30 | 31 | level_marks = ['Debug', 'Info', 'Warning', 'Error'] 32 | 33 | 34 | left_column = dhc.Div([ 35 | dhc.Div([ 36 | dhc.Div('Symbols:', className='four columns'), 37 | dcc.Dropdown( 38 | id='symbols', 39 | options=[{'label': name, 'value': name} for name in ob.backtest.get_symbols()], 40 | multi=True, 41 | className='eight columns u-pull-right') 42 | ], className='row mb-10'), 43 | dhc.Div([ 44 | dhc.Div('Module:', className='four columns'), 45 | dcc.Dropdown( 46 | id='module', 47 | options=[{'label': name, 'value': name} for name in oc.cfg['backtest']['modules'].split(',')], 48 | className='eight columns u-pull-right') 49 | ], className='row mb-10'), 50 | dhc.Div([ 51 | dhc.Div('Strategy:', className='four columns'), 52 | dcc.Dropdown(id='strategy', options=[], className='eight columns u-pull-right') 53 | ], className='row mb-10'), 54 | dhc.Div( 55 | dtb.DataTable( # https://github.com/plotly/dash-table-experiments/blob/master/usage-editable.py 56 | rows=ob.cash_param(), 57 | # optional - sets the order of columns 58 | columns=['Parameter', 'Value'], 59 | editable=True, 60 | id='params-table' 61 | ), className='row mb-10'), 62 | 63 | dhc.Div([ 64 | dhc.Div('Notes:'), 65 | dhc.Textarea(id='notes-area', style={'width': '100%'}) 66 | ], className='row', style={'vertical-align': 'bottom'}), 67 | ], className="three columns gray-block", style={'position': 'absolute', 'top': 0, 'bottom': '123px'}) 68 | 69 | center = dhc.Div([ 70 | dhc.Div([ 71 | dhc.Div([dcc.Graph(id='charts')]), 72 | ], id='graph-container', className='row', 73 | style={'position': 'absolute', 'top': '0px', 'bottom': '0px', 'left': '0px', 'right': '0px'}) 74 | ], className='offset-by-three six columns gray-block', style={'position': 'absolute', 'top': 0, 'bottom': '9.2em'}) 75 | 76 | right_column = dhc.Div([ 77 | dhc.Div( 78 | dhc.Div([ 79 | dhc.Div([ 80 | dhc.Div([ 81 | dhc.Button('Backtest', id='backtest-btn', n_clicks=0, style={'width': '34%', 'margin-left': 0, 'margin-right': '3%'}), 82 | dhc.Button('Save', id='save-btn', n_clicks=0, style={'width': '30%', 'margin-left': 0, 'margin-right': '3%'}), 83 | dhc.Button('Load', id='load-btn', n_clicks=0, style={'width': '30%', 'margin-left': 0, 'margin-right': 0}), 84 | ]), 85 | dhc.Div(id='status-area', style={ 86 | 'margin-top': '10px', 87 | 'padding-left': '10px', 88 | 'border': '1px solid black', 89 | 'line-height': '40px', 90 | 'min-height': '40px', 91 | }) 92 | ], className='gray-block mb-10'), 93 | dhc.Div(id='stat-block', className='block', 94 | style={'position': 'absolute', 'top': '155px', 'bottom': '9.2em', 'left': '75.75%', 'right': 0}), 95 | ], className='twelve columns'), className='row'), 96 | ], className='offset-by-nine three columns') 97 | 98 | bottom = dhc.Div([ 99 | dhc.Div([ 100 | dhc.Div('Logs:', className='one columns'), 101 | dhc.Div('Level:', className='one columns'), 102 | dhc.Div([ 103 | dcc.RangeSlider( 104 | id='level-slider', 105 | marks=level_marks, 106 | min=0, 107 | max=len(level_marks)-1, 108 | step=1, 109 | value=[0, len(level_marks)-1], 110 | ) 111 | ], className='five columns', style={'margin-top': '-0.5em', 'margin-left': '-1em', }) 112 | ], className='row mb-10'), 113 | dhc.Iframe(id='log-frame', style={ 114 | 'width': '100%', 115 | 'background-color': 'white', 116 | 'border': '1px solid black', 117 | 'min-height': '20em', 118 | 'margin-bottom': '-1em' 119 | }, className='row'), 120 | ], className='gray-block') 121 | 122 | app.layout = dhc.Div([ 123 | dhc.Div( 124 | dhc.Div(dhc.H1('Omega'), className='gray-block2 mb-10'), 125 | style={'position': 'absolute', 'right': '1em', 'width': '99%'}), 126 | dhc.Div([ 127 | dhc.Div([ 128 | left_column, center, right_column 129 | ], className='row', style={'position': 'absolute', 'bottom': '18em', 'top': '7em', 'right': '1em', 'width': '99%'}), 130 | dhc.Div( 131 | bottom 132 | , className='row', style={'position': 'absolute', 'bottom': '0.5em', 'right': '1em', 'width': '99%'}) 133 | ]), 134 | dhc.Div(id='intermediate-value', style={'display': 'none'}), 135 | dhc.Div(id='intermediate-params', style={'display': 'none'}), 136 | dhc.Div(id='intermediate-status', style={'display': 'none'}), 137 | dhc.Div(id='level-log', contentEditable=True, style={'display': 'none'}), 138 | dcc.Input(id='log-uid', type='text', style={'display': 'none'}) 139 | ]) 140 | 141 | 142 | for stylesheet in stylesheets: 143 | app.css.append_css({"external_url": "/static/{}".format(stylesheet)}) 144 | 145 | app.scripts.append_script({"external_url": "//code.jquery.com/jquery-1.4.2.min.js"}) 146 | app.scripts.append_script({"external_url": "//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"}) 147 | 148 | 149 | for js in jss: 150 | app.scripts.append_script({"external_url": "/static/{}".format(js)}) 151 | 152 | 153 | @app.server.route('{}'.format(static_route)) 154 | def serve_file(file): 155 | if file not in stylesheets and file not in jss: 156 | raise Exception('"{}" is excluded from the allowed static css files'.format(file)) 157 | static_directory = os.path.join(root_directory, 'static') 158 | return flask.send_from_directory(static_directory, file) 159 | 160 | 161 | @app.callback(dd.Output('strategy', 'options'), [dd.Input('module', 'value')]) 162 | def update_strategy_list(module_name): 163 | data = ob.test_list(module_name) 164 | return [{'label': name, 'value': name} for name in data] 165 | 166 | 167 | @app.callback(dd.Output('params-table', 'rows'), [dd.Input('module', 'value'), dd.Input('strategy', 'value'), dd.Input('symbols', 'value')]) 168 | def update_params_list(module_name, strategy_name, symbol): 169 | return ob.params_list(module_name, strategy_name, symbol) 170 | 171 | 172 | @app.callback(dd.Output('strategy', 'value'), [dd.Input('strategy', 'options')]) 173 | def update_strategy_value(options): 174 | if len(options): 175 | return options[0]['value'] 176 | return '' 177 | 178 | 179 | @app.callback(dd.Output('status-area', 'children'), 180 | [ 181 | dd.Input('backtest-btn', 'n_clicks'), 182 | dd.Input('intermediate-params', 'children'), 183 | dd.Input('intermediate-value', 'children') 184 | ]) 185 | def update_status_area(n_clicks, packed_params, result): 186 | if result: 187 | return 'Done!' 188 | if n_clicks == 0: 189 | return '' 190 | module, strategy, symbol = None, None, None 191 | try: 192 | params = json.loads(packed_params) 193 | if 'module_i' in params: 194 | module = params['module_i'] 195 | if 'strategy_i' in params: 196 | strategy = None if params['strategy_i'] == '' else params['strategy_i'] 197 | if 'symbols_i' in params: 198 | symbol = params['symbols_i'] 199 | except: 200 | pass 201 | to_provide = [] 202 | if module is None: 203 | to_provide.append('module') 204 | if strategy is None: 205 | to_provide.append('strategy') 206 | if symbol is None: 207 | to_provide.append('symbol') 208 | if len(to_provide): 209 | return 'Please provide a value for: {}!'.format(', '.join(to_provide)) 210 | 211 | return 'Backtesting...' 212 | 213 | 214 | @app.callback(dd.Output('log-uid', 'value'), [dd.Input('symbols', 'options')]) 215 | def create_uid(m): 216 | return uuid.uuid4().hex 217 | 218 | 219 | @app.callback(dd.Output('intermediate-value', 'children'), 220 | [dd.Input('intermediate-params', 'children'), dd.Input('log-uid', 'value')]) 221 | def on_click_backtest_to_intermediate(json_packed, uid): 222 | try: 223 | unpacked = json.loads(json_packed) 224 | module = unpacked['module_i'] 225 | strategy = unpacked['strategy_i'] 226 | symbols = unpacked['symbols_i'] 227 | params = unpacked['table_params'] 228 | if module is None or strategy is None or symbols is None: 229 | return [] 230 | return ob.create_ts(uid, module, strategy, symbols, params) 231 | except json.decoder.JSONDecodeError: 232 | # Ignoring this error (this is happening when inputting values in Module/Strategy boxes) 233 | return [] 234 | 235 | 236 | @app.callback(dd.Output('backtest-btn', 'n_clicks'), 237 | [ 238 | dd.Input('module', 'value'), 239 | dd.Input('strategy', 'value'), 240 | dd.Input('symbols', 'value'), 241 | dd.Input('params-table', 'rows') 242 | ]) 243 | def reset_button(*args): 244 | return 0 245 | 246 | 247 | @app.callback(dd.Output('intermediate-params', 'children'), 248 | [ 249 | dd.Input('backtest-btn', 'n_clicks'), 250 | dd.Input('module', 'value'), 251 | dd.Input('strategy', 'value'), 252 | dd.Input('symbols', 'value'), 253 | dd.Input('params-table', 'rows') 254 | ]) 255 | def update_params(n_clicks, module, strategy, symbol, rows): 256 | if n_clicks == 0: 257 | return '' 258 | params = {'module_i': module, 'strategy_i': strategy, 'symbols_i': symbol} 259 | table_params = {} 260 | for row in rows: 261 | table_params[row['Parameter']] = str(row['Value']) 262 | params['table_params'] = table_params 263 | return json.dumps(params) 264 | 265 | 266 | @app.callback(dd.Output('charts', 'figure'), 267 | [dd.Input('intermediate-value', 'children'), dd.Input('log-uid', 'value')]) 268 | def on_intermediate_to_chart(children, uid): 269 | r = redis.StrictRedis(oc.cfg['default']['redis'], 6379, db=0) 270 | size = r.get(uid + 'size') 271 | w, h = size.decode('utf8').split(',') 272 | return ob.extract_figure(children, w, h) 273 | 274 | 275 | @app.callback( 276 | dash.dependencies.Output('level-log', 'children'), 277 | [dash.dependencies.Input('level-slider', 'value')]) 278 | def level_output(value): 279 | begin, end = value 280 | res = [] 281 | for i in range(begin, end+1): 282 | res.append(level_marks[i].upper()) 283 | return ','.join(res) 284 | 285 | 286 | @app.callback(dd.Output('stat-block', 'children'), [dd.Input('intermediate-value', 'children')]) 287 | def on_intermediate_to_stat(children): 288 | statistic = ob.extract_statistic(children) 289 | ht = [] 290 | for section in statistic: 291 | ht.append(dhc.Div(dhc.B(section, style={'font-size': '1.1em', 'line-height': '1.5m'}), className='row')) 292 | for stat in statistic[section]: 293 | ht.append( 294 | dhc.Div([ 295 | dhc.Div(stat, className='u-pull-left'), 296 | dhc.Div(dhc.B(statistic[section].get(stat)), className='u-pull-right') 297 | ], className='row')) 298 | ht.append(dhc.Div(style={'border': '1px solid #999', 'margin': '10px 10px 5px'})) 299 | return dhc.Div(dhc.Div(ht[:-1], className='twelve columns', style={'line-height': '1.4em'}), className='row') 300 | 301 | 302 | if not debug_mode: 303 | auth = dash_auth.BasicAuth( 304 | app, 305 | ob.get_users() 306 | ) 307 | 308 | 309 | # Before running the app, please run the following 'python socket_logged.py flask run' 310 | if __name__ == '__main__': 311 | logger = logging.getLogger('werkzeug') 312 | handler = logging.FileHandler(ob.LogFileCreator.werkzeug_log_file_name()) 313 | logger.addHandler(handler) 314 | app.run_server(host='0.0.0.0', debug=debug_mode) 315 | -------------------------------------------------------------------------------- /omega_ui/backend.py: -------------------------------------------------------------------------------- 1 | import glob 2 | import importlib 3 | import inspect 4 | import json 5 | import logging 6 | import os 7 | import pandas as pd 8 | import re 9 | import rlog 10 | import sys 11 | 12 | import omega_ui.configuration as oc 13 | import omega_ui.tearsheet as ots 14 | 15 | users_file = 'users.json' 16 | log_dir = oc.cfg['logging']['root'] 17 | if not os.path.exists(log_dir): 18 | os.makedirs(log_dir) 19 | 20 | 21 | # Backtest class 22 | btm = importlib.import_module(oc.cfg['default']['module']) 23 | backtest = getattr(btm, oc.cfg['default']['class'])() 24 | 25 | 26 | class LogFileCreator: 27 | def __init__(self): 28 | files = glob.glob(os.path.join(log_dir, 'backtest*.txt')) 29 | if len(files) > 0: 30 | last = max(files, key=os.path.getctime) 31 | nb = re.findall(r'\d+', last) 32 | self.counter = int(nb[0]) + 1 33 | else: 34 | # If no files, start at 1 35 | self.counter = 1 36 | 37 | def next_file_name(self): 38 | self.counter += 1 39 | return os.path.join(log_dir, 'backtest{:03d}-logs.txt'.format(self.counter)) 40 | 41 | @staticmethod 42 | def werkzeug_log_file_name(): 43 | return os.path.join(log_dir, 'access.log') 44 | 45 | 46 | def test_list(module_name): 47 | try: 48 | result = [] 49 | importlib.import_module(module_name) 50 | for name, obj in inspect.getmembers(sys.modules[module_name]): 51 | if inspect.isclass(obj): 52 | result.append(name) 53 | return result 54 | except: 55 | return [] 56 | 57 | 58 | def cash_param(): 59 | return [{'Parameter': 'Cash', 'Value': oc.cfg['backtest']['cash']}] 60 | 61 | 62 | def params_list(module_name, strategy_name, symbol): 63 | logger = logging.getLogger(__name__) 64 | 65 | params = cash_param() 66 | try: 67 | # Get strategy 68 | module = importlib.import_module(module_name) 69 | importlib.reload(module) # Always reload module in case some changes have been made to the strategies 70 | strategy = getattr(module, strategy_name) 71 | for key, value in backtest.get_parameters(strategy, symbol).items(): 72 | if isinstance(value, dict): 73 | value = json.dumps(value) 74 | params.append({'Parameter': key, 'Value': value}) 75 | except Exception as e: 76 | logger.log(logging.ERROR, 'Error in loading params: {}!'.format(str(e))) 77 | return params 78 | 79 | 80 | def create_ts(uid, module_name, strategy_name, symbols, params): 81 | result = [] 82 | logger = logging.getLogger() 83 | logger.setLevel(logging.NOTSET) 84 | lfc = LogFileCreator() 85 | fh = logging.FileHandler(lfc.next_file_name()) 86 | formatter = logging.Formatter('%(levelname)s - %(message)s') 87 | fh.setFormatter(formatter) 88 | fh.setLevel(logging.NOTSET) 89 | logger.addHandler(fh) 90 | rh = rlog.RedisHandler(channel='l' + uid) 91 | logger.addHandler(rh) 92 | logger.log(logging.DEBUG, 'start') 93 | try: 94 | # Get strategy 95 | module = importlib.import_module(module_name) 96 | importlib.reload(module) # Always reload module in case some changes have been made to the strategies 97 | strategy = getattr(module, strategy_name) 98 | # Backtest 99 | cash = float(params.pop('Cash', 1)) 100 | for k, v in params.items(): 101 | params[k] = json.loads(v) 102 | pnl, strat = backtest.run(symbols, cash, strategy, **params) 103 | pyfoliozer = strat.analyzers.getbyname('pyfolio') 104 | returns, _, _, _ = pyfoliozer.get_pf_items() 105 | result = json.dumps({ 106 | 'returns': returns.to_json(), 107 | 'statistic': ots.create_statistic(returns,strat), 108 | 'title': '{}: {:,.2f}'.format(symbols, pnl) 109 | }) 110 | logger.log(logging.DEBUG, 'done') 111 | except Exception as e: 112 | logger.log(logging.ERROR, 'Error in starting a backtest: {}'.format(str(e))) 113 | logger.removeHandler(fh) 114 | logger.removeHandler(rh) 115 | return result 116 | 117 | 118 | def extract_figure(json_ts, w, h): 119 | try: 120 | ts = json.loads(json_ts) 121 | df_r = pd.read_json(ts['returns'], typ='series').rename('return') 122 | fig = ots.create_figure(df_r, ts['title']) 123 | fig['layout'].update(autosize=True, width=w, height=h) 124 | 125 | return fig 126 | except: 127 | return [] 128 | 129 | 130 | def extract_statistic(json_ts): 131 | try: 132 | ts = json.loads(json_ts) 133 | return ts['statistic'] 134 | except: 135 | return dict( 136 | Curve={ 137 | 'Total Return': 0, 138 | 'CAGR': 0, 139 | 'Sharpe Ratio': 0, 140 | 'Annual Volatility': 0, 141 | 'SQN': 0, 142 | 'R-Squared': 0, 143 | 'Max Daily Drawdown': 0, 144 | 'Max Drawdown Duration': 0, 145 | 'Trades Per Year': 0 146 | }, 147 | Trade={ 148 | 'Trade Winning %': 0, 149 | 'Average Trade': 0, 150 | 'Average Win': 0, 151 | 'Average Loss': 0, 152 | 'Best Trade': 0, 153 | 'Worst Trade': 0, 154 | 'Worst Trade Date': 0, 155 | 'Avg Days in Trade': 0, 156 | 'Trades': 0 157 | }, 158 | Time={ 159 | 'Winning Months %': 0, 160 | 'Average Winning Month %': 0, 161 | 'Average Losing Month %': 0, 162 | 'Best Month %': 0, 163 | 'Worst Month %': 0, 164 | 'Winning Years %': 0, 165 | 'Best Year %': 0, 166 | 'Worst Year %': 0 167 | }) 168 | 169 | 170 | def get_users_list(): 171 | try: 172 | with open(users_file) as data_file: 173 | data = json.load(data_file) 174 | return data 175 | except: 176 | return {} 177 | 178 | 179 | def add_user(username, password): 180 | users = get_users_list() 181 | users[username] = password 182 | with open(users_file, 'w') as outfile: 183 | json.dump(users, outfile, indent=2) 184 | 185 | 186 | def get_users(): 187 | result = [] 188 | users = get_users_list() 189 | for key in users: 190 | result.append([key, users[key]]) 191 | return result 192 | -------------------------------------------------------------------------------- /omega_ui/backtest.py: -------------------------------------------------------------------------------- 1 | import backtrader as bt 2 | 3 | 4 | class Backtest(object): 5 | """Backtest class - Inherit and implement this class to run a backtest.""" 6 | def __init__(self): 7 | pass 8 | 9 | def get_symbols(self): 10 | """Get a list of symbols to run a backtest on 11 | 12 | :return: list - List of symbols for the backtest 13 | """ 14 | pass 15 | 16 | def get_parameters(self, strategy, symbols): 17 | """Get parameters for the backtest 18 | 19 | :param strategy: object - Strategy to run the backtest on 20 | :param symbols: list - List of symbols 21 | :return: dict - Parameters dictionary to be displayed in the UI 22 | """ 23 | pass 24 | 25 | def run(self, symbols, cash, strategy, **params): 26 | """Run a backtest 27 | 28 | :param symbols: list - List of symbols 29 | :param cash: float - Starting cash value 30 | :param strategy: object - Strategy to run the backtest on 31 | :param params: dict - Parameters dictionary to be displayed in the UI 32 | :return: float/results - Returns 2 items: PnL and Results from a cerebro backtest 33 | """ 34 | pass 35 | 36 | @staticmethod 37 | def setup_cerebro(cash): 38 | """Setup a Cerebro instance with a starting cash value and all the necessary analyzers. 39 | 40 | :param cash: float - Starting cash value 41 | :return: object - Cerebro 42 | """ 43 | # Setup Cerebro 44 | cerebro = bt.Cerebro() 45 | cerebro.broker.setcash(cash) 46 | cerebro.addanalyzer(bt.analyzers.PyFolio, _name='pyfolio') 47 | cerebro.addanalyzer(bt.analyzers.DrawDown, _name='drawdown') 48 | cerebro.addanalyzer(bt.analyzers.SQN, _name='SQN') 49 | cerebro.addanalyzer(bt.analyzers.TradeAnalyzer, _name='trades') 50 | 51 | return cerebro 52 | -------------------------------------------------------------------------------- /omega_ui/configuration.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | import yaml 4 | 5 | 6 | """Configuration module 7 | 8 | This module is used to load the configuration as defined in the config file. 9 | """ 10 | cfg = [] 11 | 12 | 13 | def initialization(): 14 | """Read and return configuration file.""" 15 | global cfg 16 | 17 | # Configuration 18 | root = os.path.abspath(os.path.dirname(__file__)) 19 | try: 20 | with open(os.path.join(root, 'omega_ui.config'), 'r') as y_cfg: 21 | cfg = yaml.load(y_cfg) 22 | except FileNotFoundError: 23 | print('Configuration file not found!') 24 | sys.exit(1) 25 | 26 | 27 | # Read configuration 28 | initialization() 29 | -------------------------------------------------------------------------------- /omega_ui/omega_ui.config: -------------------------------------------------------------------------------- 1 | default: 2 | module: omega_ui.tests.test_backtest 3 | class: ExampleBacktest 4 | redis: 127.0.0.1 5 | 6 | logging: 7 | root: 'C:\Temp\Logs' 8 | 9 | backtest: 10 | cash: 100000.0 11 | modules: omega_ui.tests.test_backtest 12 | -------------------------------------------------------------------------------- /omega_ui/socket_logging.py: -------------------------------------------------------------------------------- 1 | import eventlet 2 | import flask 3 | import flask_socketio as fsio 4 | import json 5 | import redis 6 | 7 | import omega_ui.configuration as oc 8 | 9 | eventlet.monkey_patch() 10 | pool = eventlet.GreenPool(1000) # number of available connections 11 | async_mode = 'eventlet' 12 | 13 | s_app = flask.Flask(__name__) 14 | s_app.config['SECRET_KEY'] = 'secret!' 15 | socketio = fsio.SocketIO(s_app, async_mode=None) 16 | 17 | 18 | def background_thread(uid_with_size): 19 | uid, size = uid_with_size.split(';') 20 | r = redis.StrictRedis(oc.cfg['default']['redis'], 6379, db=0) 21 | r.set(uid+'size', size) 22 | pubsub = r.pubsub() 23 | pubsub.subscribe('l'+uid) 24 | count = 0 25 | for message in pubsub.listen(): 26 | # Filter out events like Redis connections. 27 | if message['type'] != 'message': 28 | continue 29 | count += 1 30 | socketio.sleep(0.01) 31 | try: 32 | data = json.loads(message['data'].decode('utf8')) 33 | msg = uid + data['name'] + ': ' + data['levelname'] + ': ' + data['msg'] 34 | socketio.emit('log_response', {'data': msg, 'count': count}, namespace='/omega_log') 35 | except: 36 | pass 37 | 38 | 39 | @socketio.on('connect_event', namespace='/omega_log') 40 | def test_message(message): 41 | flask.session['receive_count'] = flask.session.get('receive_count', 0) + 1 42 | pool.spawn(background_thread, message['data']) 43 | fsio.emit('log_response', {'data': message['data'], 'count': flask.session['receive_count']}) 44 | 45 | 46 | @socketio.on('connect', namespace='/omega_log') 47 | def connect(): 48 | print('Client connected', flask.request.sid) 49 | fsio.emit('log_response', {'data': 'Connected', 'count': 0}) 50 | 51 | 52 | @socketio.on('disconnect', namespace='/omega_log') 53 | def disconnect(): 54 | print('Client disconnected', flask.request.sid) 55 | 56 | 57 | if __name__ == '__main__': 58 | socketio.run(s_app, host='0.0.0.0', debug=True) 59 | -------------------------------------------------------------------------------- /omega_ui/static/script.js: -------------------------------------------------------------------------------- 1 | function onElementInserted(containerSelector, elementSelector, callback) { 2 | 3 | var onMutationsObserved = function(mutations) { 4 | mutations.forEach(function(mutation) { 5 | if (mutation.addedNodes.length) { 6 | var elements = $(mutation.addedNodes).find(elementSelector); 7 | for (var i = 0, len = elements.length; i < len; i++) { 8 | callback(elements[i]); 9 | } 10 | } 11 | }); 12 | }; 13 | 14 | var target = $(containerSelector)[0]; 15 | var config = { childList: true, subtree: true }; 16 | var MutationObserver = window.MutationObserver || window.WebKitMutationObserver; 17 | var observer = new MutationObserver(onMutationsObserved); 18 | observer.observe(target, config); 19 | 20 | } 21 | 22 | function on_child_change(mutations) { 23 | mutations.forEach(function(mutation) { 24 | var visible_levels = $('#level-log').html(); 25 | $('#log-frame').contents().find("body").children().each(function(index) { 26 | var level = $(this).attr('class'); 27 | if(visible_levels.indexOf(level) == -1) 28 | $(this).hide(); 29 | else 30 | $(this).show() 31 | }); 32 | }); 33 | } 34 | 35 | 36 | function on_child_load(mutations) { 37 | mutations.forEach(function(mutation) { 38 | var target = document.querySelector('#level-log').childNodes[0]; 39 | var obs = new MutationObserver( on_child_change ); 40 | var config = { characterData: false, attributes: false, childList: false, subtree: false, characterData: true}; 41 | obs.observe(target, config); 42 | }); 43 | } 44 | 45 | $(document).ready(function() { 46 | onElementInserted('body', '#log-uid', function(element) { 47 | var socket = io.connect('http://' + document.domain + ':' + 5000+'/omega_log'); 48 | socket.on('connect', function() { 49 | var graph = $('#graph-container'); 50 | var text = $('#log-uid').val()+';'+graph.outerWidth()+','+graph.outerHeight(); 51 | socket.emit('connect_event', {data: text}); 52 | }); 53 | socket.on('log_response', function(msg) { 54 | var str = msg.data; 55 | var uid = $('#log-uid').val(); 56 | if(str.indexOf(uid)==0) 57 | { 58 | message = str.replace(uid,''); 59 | var iframe = $('#log-frame').contents(); 60 | var iframeBody = iframe.find("body"); 61 | var sub_mes = message.split(': ')[2]; 62 | var level = message.split(': ')[1]; 63 | if(level == 'ERROR') 64 | { 65 | $('#status-area').html('Error: '+sub_mes ) 66 | } 67 | if(sub_mes == 'start') 68 | { 69 | iframeBody.html('') 70 | $('#status-area').html('Backtesting...') 71 | } 72 | else if(sub_mes == 'done') 73 | { 74 | $('#status-area').html('Done!') 75 | } 76 | else 77 | { 78 | var visible_levels = $('#level-log').html(); 79 | iframeBody.append('
'+message+'
'); 80 | var item = iframeBody.children().last(); 81 | if(visible_levels.indexOf(level) == -1) 82 | item.hide(); 83 | else 84 | item.show(); 85 | } 86 | iframe.scrollTop(iframe.height()); 87 | } 88 | }); 89 | 90 | }); 91 | onElementInserted('body', '#level-log', function(element) { 92 | var target = document.querySelector('#level-log'); 93 | var obs = new MutationObserver( on_child_load ); 94 | var config = { characterData: false, attributes: false, childList: true, subtree: false}; 95 | obs.observe(target, config); 96 | }); 97 | 98 | }); -------------------------------------------------------------------------------- /omega_ui/static/stylesheet.css: -------------------------------------------------------------------------------- 1 | /* Table of contents 2 | –––––––––––––––––––––––––––––––––––––––––––––––––– 3 | - Plotly.js 4 | - Grid 5 | - Base Styles 6 | - Typography 7 | - Links 8 | - Buttons 9 | - Forms 10 | - Lists 11 | - Code 12 | - Tables 13 | - Spacing 14 | - Utilities 15 | - Clearing 16 | - Media Queries 17 | */ 18 | 19 | /* PLotly.js 20 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 21 | /* plotly.js's modebar's z-index is 1001 by default 22 | * https://github.com/plotly/plotly.js/blob/7e4d8ab164258f6bd48be56589dacd9bdd7fded2/src/css/_modebar.scss#L5 23 | * In case a dropdown is above the graph, the dropdown's options 24 | * will be rendered below the modebar 25 | * Increase the select option's z-index 26 | */ 27 | 28 | /* This was actually not quite right - 29 | dropdowns were overlapping each other (edited October 26) 30 | 31 | .Select { 32 | z-index: 1002; 33 | }*/ 34 | 35 | ._dash-undo-redo { 36 | display: none; 37 | } 38 | 39 | /* Grid 40 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 41 | .container { 42 | position: relative; 43 | width: 100%; 44 | /*max-width: 960px;*/ 45 | margin: 0 auto; 46 | padding: 0 0; 47 | box-sizing: border-box; } 48 | .column, 49 | .columns { 50 | width: 100%; 51 | float: left; 52 | box-sizing: border-box; } 53 | 54 | .columns-fix { 55 | width: 100%; 56 | float: left; 57 | box-sizing: border-box; } 58 | 59 | /* For devices larger than 400px */ 60 | @media (min-width: 400px) { 61 | .container { 62 | width: 100%; 63 | padding: 0; } 64 | } 65 | 66 | /* For devices larger than 550px */ 67 | @media (min-width: 550px) { 68 | .container { 69 | width: 100%; } 70 | .column, 71 | .columns { 72 | margin-left: 1%; } 73 | .column:first-child, 74 | .columns:first-child { 75 | margin-left: 0; } 76 | 77 | .one.column, 78 | .one.columns { width: 7.416666666666667%; } 79 | .two.columns { width: 15.833333333333334%; } 80 | .three.columns { width: 24.25%; } 81 | .four.columns { width: 32.66666666666667%; } 82 | .five.columns { width: 41.083333333333336%; } 83 | .six.columns { width: 49.5%; } 84 | .seven.columns { width: 57.91666666666667%; } 85 | .eight.columns { width: 66.33333333333334%; } 86 | .nine.columns { width: 74.75%; } 87 | .ten.columns { width: 83.16666666666667%; } 88 | .eleven.columns { width: 91.58333333333334%; } 89 | .twelve.columns { width: 100%; margin-left: 0; } 90 | 91 | .one-third.column { width: 30.6666666667%; } 92 | .two-thirds.column { width: 65.3333333333%; } 93 | 94 | .one-half.column { width: 48%; } 95 | 96 | /* Offsets */ 97 | .offset-by-one.column, 98 | .offset-by-one.columns { margin-left: 8.66666666667%; } 99 | .offset-by-two.column, 100 | .offset-by-two.columns { margin-left: 17.3333333333%; } 101 | .offset-by-three.column, 102 | .offset-by-three.columns { margin-left: 25.25%; } 103 | .offset-by-four.column, 104 | .offset-by-four.columns { margin-left: 34.6666666667%; } 105 | .offset-by-five.column, 106 | .offset-by-five.columns { margin-left: 43.3333333333%; } 107 | .offset-by-six.column, 108 | .offset-by-six.columns { margin-left: 52%; } 109 | .offset-by-seven.column, 110 | .offset-by-seven.columns { margin-left: 60.6666666667%; } 111 | .offset-by-eight.column, 112 | .offset-by-eight.columns { margin-left: 69.3333333333%; } 113 | .offset-by-nine.column, 114 | .offset-by-nine.columns { margin-left: 75.75%; } 115 | .offset-by-ten.column, 116 | .offset-by-ten.columns { margin-left: 86.6666666667%; } 117 | .offset-by-eleven.column, 118 | .offset-by-eleven.columns { margin-left: 95.3333333333%; } 119 | 120 | .offset-by-one-third.column, 121 | .offset-by-one-third.columns { margin-left: 34.6666666667%; } 122 | .offset-by-two-thirds.column, 123 | .offset-by-two-thirds.columns { margin-left: 69.3333333333%; } 124 | 125 | .offset-by-one-half.column, 126 | .offset-by-one-half.columns { margin-left: 52%; } 127 | 128 | } 129 | 130 | 131 | /* Base Styles 132 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 133 | /* NOTE 134 | html is set to 62.5% so that all the REM measurements throughout Skeleton 135 | are based on 10px sizing. So basically 1.5rem = 15px :) */ 136 | html { 137 | font-size: 62.5%; } 138 | body { 139 | font-size: 1.3em; /* currently ems cause chrome bug misinterpreting rems on body element */ 140 | line-height: 2; 141 | font-weight: 400; 142 | font-family: "Open Sans", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif; 143 | color: rgb(50, 50, 50); } 144 | 145 | 146 | /* Typography 147 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 148 | h1, h2, h3, h4, h5, h6 { 149 | margin-top: 0; 150 | margin-bottom: 0; 151 | font-weight: 300; } 152 | h1 { font-size: 4.5rem; line-height: 1.2; letter-spacing: -.1rem;} 153 | h2 { font-size: 3.6rem; line-height: 1.25; letter-spacing: -.1rem; margin-bottom: 1.8rem; margin-top: 1.8rem;} 154 | h3 { font-size: 3.0rem; line-height: 1.3; letter-spacing: -.1rem; margin-bottom: 1.5rem; margin-top: 1.5rem;} 155 | h4 { font-size: 2.6rem; line-height: 1.35; letter-spacing: -.08rem; margin-bottom: 1.2rem; margin-top: 1.2rem;} 156 | h5 { font-size: 2.2rem; line-height: 1.5; letter-spacing: -.05rem; margin-bottom: 0.6rem; margin-top: 0.6rem;} 157 | h6 { font-size: 2.0rem; line-height: 1.6; letter-spacing: 0; margin-bottom: 0.75rem; margin-top: 0.75rem;} 158 | 159 | p { 160 | margin-top: 0; } 161 | 162 | 163 | /* Blockquotes 164 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 165 | blockquote { 166 | border-left: 4px lightgrey solid; 167 | padding-left: 1rem; 168 | margin-top: 2rem; 169 | margin-bottom: 2rem; 170 | margin-left: 0rem; 171 | } 172 | 173 | 174 | /* Links 175 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 176 | a { 177 | color: #1EAEDB; 178 | text-decoration: underline; 179 | cursor: pointer;} 180 | a:hover { 181 | color: #0FA0CE; } 182 | 183 | 184 | /* Buttons 185 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 186 | .button, 187 | button, 188 | input[type="submit"], 189 | input[type="reset"], 190 | input[type="button"] { 191 | display: inline-block; 192 | height: 38px; 193 | /* padding: 0 30px; */ 194 | color: #fff; 195 | text-align: center; 196 | font-size: 16px; 197 | font-weight: 800; 198 | line-height: 20px; 199 | letter-spacing: .1rem; 200 | text-decoration: none; 201 | white-space: nowrap; 202 | background-color: #777; 203 | border-radius: 0; 204 | border: 1px solid #000; 205 | cursor: pointer; 206 | box-sizing: border-box; 207 | margin: 5px 208 | } 209 | .button:hover, 210 | button:hover, 211 | input[type="submit"]:hover, 212 | input[type="reset"]:hover, 213 | input[type="button"]:hover, 214 | .button:focus, 215 | button:focus, 216 | input[type="submit"]:focus, 217 | input[type="reset"]:focus, 218 | input[type="button"]:focus { 219 | color: #333; 220 | border-color: #888; 221 | outline: 0; } 222 | .button.button-primary, 223 | button.button-primary, 224 | input[type="submit"].button-primary, 225 | input[type="reset"].button-primary, 226 | input[type="button"].button-primary { 227 | color: #FFF; 228 | background-color: rgb(153, 153, 153); 229 | border-color: #000; } 230 | .button.button-primary:hover, 231 | button.button-primary:hover, 232 | input[type="submit"].button-primary:hover, 233 | input[type="reset"].button-primary:hover, 234 | input[type="button"].button-primary:hover, 235 | .button.button-primary:focus, 236 | button.button-primary:focus, 237 | input[type="submit"].button-primary:focus, 238 | input[type="reset"].button-primary:focus, 239 | input[type="button"].button-primary:focus { 240 | color: #FFF; 241 | background-color: rgb(153, 153, 153); 242 | border-color: #000; } 243 | 244 | 245 | /* Forms 246 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 247 | input[type="email"], 248 | input[type="number"], 249 | input[type="search"], 250 | input[type="text"], 251 | input[type="tel"], 252 | input[type="url"], 253 | input[type="password"], 254 | textarea, 255 | select { 256 | height: 38px; 257 | padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */ 258 | background-color: #fff; 259 | border: 1px solid #D1D1D1; 260 | border-radius: 4px; 261 | box-shadow: none; 262 | box-sizing: border-box; 263 | font-family: inherit; 264 | font-size: inherit; /*https://stackoverflow.com/questions/6080413/why-doesnt-input-inherit-the-font-from-body*/} 265 | /* Removes awkward default styles on some inputs for iOS */ 266 | input[type="email"], 267 | input[type="number"], 268 | input[type="search"], 269 | input[type="text"], 270 | input[type="tel"], 271 | input[type="url"], 272 | input[type="password"], 273 | textarea { 274 | -webkit-appearance: none; 275 | -moz-appearance: none; 276 | appearance: none; } 277 | textarea { 278 | min-height: 160px; 279 | padding-top: 6px; 280 | padding-bottom: 6px; } 281 | input[type="email"]:focus, 282 | input[type="number"]:focus, 283 | input[type="search"]:focus, 284 | input[type="text"]:focus, 285 | input[type="tel"]:focus, 286 | input[type="url"]:focus, 287 | input[type="password"]:focus, 288 | textarea:focus, 289 | select:focus { 290 | border: 1px solid #33C3F0; 291 | outline: 0; } 292 | label, 293 | legend { 294 | display: block; 295 | margin-bottom: 0px; } 296 | fieldset { 297 | padding: 0; 298 | border-width: 0; } 299 | input[type="checkbox"], 300 | input[type="radio"] { 301 | display: inline; } 302 | label > .label-body { 303 | display: inline-block; 304 | margin-left: .5rem; 305 | font-weight: normal; } 306 | 307 | 308 | /* Lists 309 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 310 | ul { 311 | list-style: circle inside; } 312 | ol { 313 | list-style: decimal inside; } 314 | ol, ul { 315 | padding-left: 0; 316 | margin-top: 0; } 317 | ul ul, 318 | ul ol, 319 | ol ol, 320 | ol ul { 321 | margin: 1.5rem 0 1.5rem 3rem; 322 | font-size: 90%; } 323 | li { 324 | margin-bottom: 1rem; } 325 | 326 | 327 | /* Tables 328 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 329 | table { 330 | border-collapse: collapse; 331 | } 332 | th, 333 | td { 334 | padding: 12px 15px; 335 | text-align: left; 336 | border-bottom: 1px solid #E1E1E1; } 337 | th:first-child, 338 | td:first-child { 339 | padding-left: 0; } 340 | th:last-child, 341 | td:last-child { 342 | padding-right: 0; } 343 | 344 | 345 | /* Spacing 346 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 347 | button, 348 | .button { 349 | margin-bottom: 0rem; } 350 | input, 351 | textarea, 352 | select, 353 | fieldset { 354 | margin-bottom: 0rem; } 355 | pre, 356 | dl, 357 | figure, 358 | table, 359 | form { 360 | margin-bottom: 0rem; } 361 | p, 362 | ul, 363 | ol { 364 | margin-bottom: 0.75rem; } 365 | 366 | /* Utilities 367 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 368 | .u-full-width { 369 | width: 100%; 370 | box-sizing: border-box; } 371 | .u-max-full-width { 372 | max-width: 100%; 373 | box-sizing: border-box; } 374 | .u-pull-right { 375 | float: right; } 376 | .u-pull-left { 377 | float: left; } 378 | 379 | 380 | /* Misc 381 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 382 | hr { 383 | margin-top: 0.2rem; 384 | margin-bottom: 0.2rem; 385 | border-width: 0; 386 | border-top: 1px solid #E1E1E1; } 387 | 388 | .box { 389 | background-color: rgb(217, 217, 217); 390 | padding: 5px; 391 | border: solid 1px rgb(0, 0, 0); 392 | } 393 | 394 | .box-stats { 395 | background-color: rgb(255, 255, 255); 396 | padding: 5px; 397 | border: solid 1px rgb(0, 0, 0); 398 | margin-top: 10px; 399 | } 400 | 401 | 402 | /* Clearing 403 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 404 | 405 | /* Self Clearing Goodness */ 406 | .container:after, 407 | .row:after, 408 | .u-cf { 409 | content: ""; 410 | display: table; 411 | clear: both; } 412 | 413 | 414 | .block, .gray-block{ 415 | border: 1px solid #000; 416 | padding:20px; 417 | } 418 | .gray-block{ 419 | background:#bbb; 420 | } 421 | .gray-block2{ 422 | border: 1px solid #000; 423 | background:#bbb; 424 | padding:5px; 425 | } 426 | 427 | .mt-10 428 | { 429 | margin-top:10px; 430 | } 431 | .mb-10 432 | { 433 | margin-bottom:10px; 434 | } 435 | 436 | 437 | /* Media Queries 438 | –––––––––––––––––––––––––––––––––––––––––––––––––– */ 439 | /* 440 | Note: The best way to structure the use of media queries is to create the queries 441 | near the relevant code. For example, if you wanted to change the styles for buttons 442 | on small devices, paste the mobile query code up in the buttons section and style it 443 | there. 444 | */ 445 | 446 | 447 | /* Larger than mobile */ 448 | @media (min-width: 400px) {} 449 | 450 | /* Larger than phablet (also point when grid becomes active) */ 451 | @media (min-width: 550px) {} 452 | 453 | /* Larger than tablet */ 454 | @media (min-width: 750px) {} 455 | 456 | /* Larger than desktop */ 457 | @media (min-width: 1000px) {} 458 | 459 | /* Larger than Desktop HD */ 460 | @media (min-width: 1200px) {} -------------------------------------------------------------------------------- /omega_ui/tearsheet.py: -------------------------------------------------------------------------------- 1 | import plotly.graph_objs as go 2 | import plotly.tools as pto 3 | import numpy as np 4 | import empyrical as ep 5 | import pandas as pd 6 | 7 | 8 | def create_figure(returns, title): 9 | """ 10 | Creates figure with graphics: drawdown, underwater, heat map with month returns and revenue by year. 11 | :param returns: pd.Series or np.ndarray 12 | Daily returns of the strategy, noncumulative. 13 | :param title: string 14 | Header of tearsheet 15 | :return: Figure 16 | Plotly figure that could be displayed using plot or iplot 17 | """ 18 | df = returns.to_frame() 19 | df['year'] = df.index.year 20 | df['month'] = df.index.month 21 | 22 | # plot drawdown 23 | df_cum_rets = ep.cum_returns(returns, starting_value=1.0) 24 | drawdown = go.Scatter( 25 | x=df_cum_rets.index, 26 | y=df_cum_rets, 27 | line=dict( 28 | color='#66B266', 29 | width=2), 30 | name='' 31 | ) 32 | 33 | # plot underwater 34 | running_max = np.maximum.accumulate(df_cum_rets) 35 | underwater = -100 * ((running_max - df_cum_rets) / running_max) 36 | uw = go.Scatter( 37 | x=underwater.index, 38 | y=underwater, 39 | fill='tonexty', 40 | line=dict( 41 | color='#FF6A6A', 42 | width=2), 43 | name='' 44 | ) 45 | 46 | pivot_for_hm = pd.pivot_table( 47 | df, 48 | index='year', 49 | columns='month', 50 | values='return', 51 | aggfunc=np.sum 52 | ).fillna(0).apply(lambda x: x * 100) 53 | 54 | custom_color_scale = [ 55 | [0.0, '#C41E27'], 56 | [0.1111111111111111, '#EA5739'], 57 | [0.2222222222222222, '#FA9B58'], 58 | [0.3333333333333333, '#FCAA5F'], 59 | [0.4444444444444444, '#FEE28F'], 60 | [0.5555555555555556, '#FEFFBE'], 61 | [0.6666666666666666, '#C3E67D'], 62 | [0.7777777777777778, '#73C264'], 63 | [0.8888888888888888, '#0E8245'], 64 | [1.0, '#006837'] 65 | ] 66 | 67 | months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] 68 | 69 | hover = pivot_for_hm.values.astype(str) 70 | for x in range(len(pivot_for_hm.index)): 71 | for y in range(len(months)): 72 | hover[x][y] = '{} {}: {:,.2f}'.format(pivot_for_hm.index[x], months[y], pivot_for_hm.values[x][y]) 73 | 74 | heat_map = go.Heatmap( 75 | z=pivot_for_hm.values.tolist(), 76 | colorscale=custom_color_scale, 77 | showscale=False, 78 | x=months, 79 | y=pivot_for_hm.index, 80 | text=hover, 81 | hoverinfo='text', 82 | name='' 83 | ) 84 | 85 | annotations = [] 86 | for n, row in enumerate(pivot_for_hm.values.tolist()): 87 | for m, val in enumerate(row): 88 | annotations.append( 89 | go.Annotation( 90 | text='%0.1f' % pivot_for_hm.values.tolist()[n][m], 91 | x=pivot_for_hm.columns[m] - 1, 92 | y=pivot_for_hm.index[n], 93 | xref='x3', 94 | yref='y3', 95 | font=dict(color='#000'), 96 | showarrow=False) 97 | ) 98 | 99 | # plot revenue by year 100 | df_rby = df.groupby(['year'])[['return']].sum().apply(lambda x: x * 100) 101 | revenue_by_year = go.Bar( 102 | x=df_rby.index, 103 | y=df_rby['return'], 104 | marker=dict(color='#44F'), 105 | name='' 106 | ) 107 | 108 | # draw all plots on the same figure 109 | fig = pto.make_subplots( 110 | rows=3, 111 | cols=4, 112 | specs=[ 113 | [{'colspan': 4}, None, None, None], 114 | [{'colspan': 4}, None, None, None], 115 | [{'colspan': 3}, None, None, {}] 116 | ], 117 | subplot_titles=('', 'Drawdown (%)', 'Monthly Returns (%)', 'Yearly Returns (%)'), 118 | horizontal_spacing=0.05, 119 | vertical_spacing=0.05, 120 | print_grid=False, 121 | ) 122 | 123 | # place graphs 124 | fig.append_trace(drawdown, 1, 1) 125 | fig.append_trace(uw, 2, 1) 126 | fig.append_trace(heat_map, 3, 1) 127 | fig.append_trace(revenue_by_year, 3, 4) 128 | 129 | fig['layout'].update( 130 | autosize=False, 131 | width=1000, 132 | height=1200 133 | ) 134 | 135 | fig['layout'].update(showlegend=False, title=title) 136 | fig['layout']['yaxis1']['tickformat'] = '.2f' 137 | fig['layout']['xaxis1']['tickformat'] = '%Y-%m-%d' 138 | fig['layout']['yaxis2']['tickformat'] = '.2f' 139 | fig['layout']['xaxis2']['tickformat'] = '%Y-%m-%d' 140 | fig['layout']['yaxis4']['tickformat'] = '.2f' 141 | fig['layout']['yaxis3']['autorange'] = 'reversed' # direction of years on the heat map 142 | fig['layout']['yaxis3']['dtick'] = 1 # show all ticks 143 | fig['layout']['xaxis4']['dtick'] = 1 # show all ticks 144 | fig['layout']['xaxis4']['tickangle'] = -45 # rotate ticks 145 | fig['layout']['annotations'].extend(annotations) 146 | fig['layout']['margin']['l'] = 40 147 | fig['layout']['margin']['r'] = 20 148 | fig['layout']['margin']['t'] = 40 149 | fig['layout']['margin']['b'] = 40 150 | 151 | return fig 152 | 153 | 154 | def create_statistic(returns, results): 155 | """ 156 | Calculates different metrics for strategy 157 | :param returns: pd.Series or np.ndarray 158 | Daily returns of the strategy, noncumulative. 159 | :param results: object 160 | Results from a backtrader backtest 161 | :return: metrics based on returns and trades 162 | """ 163 | df = returns.to_frame() 164 | df['year'] = df.index.year 165 | df['month'] = df.index.month 166 | # Analysis 167 | sqn_analysis = results.analyzers.SQN.get_analysis() 168 | dd_analysis = results.analyzers.drawdown.get_analysis() 169 | trades = results.analyzers.trades.get_analysis() 170 | df_cum_rets = ep.cum_returns(returns, starting_value=1.0) 171 | returns_by_month = df.groupby(['year', 'month'])['return'].sum() 172 | df_rby = df.groupby(['year'])[['return']].sum().apply(lambda x: x * 100) 173 | return dict( 174 | Curve={ 175 | 'Total Return': round((df_cum_rets.iloc[-1] - 1) * 100, 2), 176 | 'CAGR': round(ep.cagr(returns) * 100, 2), 177 | 'Sharpe Ratio': round(ep.sharpe_ratio(returns), 2), 178 | 'Annual Volatility': round(ep.annual_volatility(returns) * 100, 2), 179 | 'SQN': round(sqn_analysis['sqn'], 2), 180 | 'R-Squared': round(ep.stability_of_timeseries(returns), 2), 181 | 'Max Daily Drawdown': round(dd_analysis['max']['drawdown'], 2), 182 | 'Max Drawdown Duration': dd_analysis['max']['len'], 183 | 'Trades Per Year': 0 # TODO 184 | }, 185 | Trade={ 186 | 'Trade Winning %': round(trades['won']['total'] / trades['total']['total'] * 100, 2), 187 | 'Average Trade': round(trades['pnl']['net']['average'], 2), 188 | 'Average Win': round(trades['won']['pnl']['average'], 2), 189 | 'Average Loss': round(trades['lost']['pnl']['average'], 2), 190 | 'Best Trade': round(trades['won']['pnl']['max'], 2), 191 | 'Worst Trade': round(trades['lost']['pnl']['max'], 2), 192 | 'Worst Trade Date': 0, # TODO 193 | 'Avg Days in Trade': round(trades['len']['average'], 2), 194 | 'Trades': trades['total']['total'] 195 | }, 196 | Time={ 197 | 'Winning Months %': round(len(returns_by_month.loc[lambda x: x > 0]) / len(returns_by_month.index) * 100, 2), 198 | 'Average Winning Month %': round(returns_by_month.loc[lambda x: x > 0].mean() * 100, 2), 199 | 'Average Losing Month %': round(returns_by_month.loc[lambda x: x < 0].mean() * 100, 2), 200 | 'Best Month %': round(returns_by_month.max() * 100, 2), 201 | 'Worst Month %': round(returns_by_month.min() * 100, 2), 202 | 'Winning Years %': round(len(df_rby[df_rby['return'] > 0].index) / len(df_rby.index) * 100, 2), 203 | 'Best Year %': round(df_rby.max()['return'], 2), 204 | 'Worst Year %': round(df_rby.min()['return'], 2), 205 | } 206 | ) 207 | 208 | 209 | def create_tearsheet(results, title): 210 | """ 211 | Creates tearsheet with graphics: drawdown, underwater, heat map with month returns, revenue by year and also, 212 | calculates different metrics for strategy 213 | :param results: object 214 | Results from a backtrader backtest 215 | :param title: string 216 | Header of tearsheet 217 | :return: Dictionary 218 | Dictionary with two records 219 | fig: plotly figure that could be displayed using plot or iplot 220 | statistics: metrics based on returns and trades 221 | """ 222 | pyfoliozer = results.analyzers.getbyname('pyfolio') 223 | returns, _, _, _ = pyfoliozer.get_pf_items() 224 | 225 | return {'fig': create_figure(returns, title), 'statistics': create_statistic(returns, results)} 226 | -------------------------------------------------------------------------------- /omega_ui/tests/TestData.csv: -------------------------------------------------------------------------------- 1 | Date,Open,High,Low,Close,Volume 2 | 2018-01-02,1,2,0.5,1,10 3 | 2018-01-03,1,2,0.5,1,20 4 | 2018-01-04,1,11,4,10,30 5 | 2018-01-05,10,16,9,15,40 6 | 2018-01-08,15,21,14,20,50 7 | 2018-01-09,20,26,19,25,60 8 | 2018-01-10,25,31,24,30,70 9 | 2018-01-11,30,36,29,35,80 10 | 2018-01-12,35,41,34,40,90 11 | 2018-01-16,40,46,39,45,80 12 | 2018-01-17,45,51,44,50,90 13 | 2018-01-18,50,56,49,55,80 14 | 2018-01-19,55,61,54,60,70 15 | 2018-01-22,60,66,59,65,80 16 | 2018-01-23,65,71,64,70,90 17 | 2018-01-24,70,76,69,75,100 18 | 2018-01-25,75,81,74,80,110 19 | 2018-01-26,80,86,79,85,120 20 | 2018-01-29,85,91,84,90,130 21 | 2018-01-30,90,102,89,101,140 22 | 2018-01-31,101,102,100,101,150 23 | 2018-02-01,101,102,100,90,150 24 | 2018-02-02,90,91,84,85,140 25 | 2018-02-05,85,86,79,80,130 26 | 2018-02-06,80,81,74,75,120 27 | 2018-02-07,75,76,69,70,110 28 | 2018-02-08,70,71,64,65,100 29 | 2018-02-09,65,66,59,60,90 30 | 2018-02-12,60,61,54,55,80 31 | 2018-02-13,55,56,49,50,75 32 | 2018-02-14,50,51,44,45,70 33 | 2018-02-15,45,46,39,40,60 34 | 2018-02-16,40,41,34,35,50 35 | 2018-02-20,35,36,29,30,40 36 | 2018-02-21,30,31,24,25,30 37 | 2018-02-22,25,26,19,20,20 38 | 2018-02-23,20,21,14,15,10 39 | 2018-02-26,15,16,9,10,10 40 | 2018-02-27,10,2,0.5,1,5 41 | 2018-02-28,1,2,0.5,1,1 42 | 2018-03-01,1,2,0.5,1,10 43 | 2018-03-02,1,2,0.5,1,20 44 | 2018-03-05,1,11,4,10,30 45 | 2018-03-06,10,16,9,15,40 46 | 2018-03-07,15,21,14,20,50 47 | 2018-03-08,20,26,19,25,60 48 | 2018-03-09,25,31,24,30,70 49 | 2018-03-12,30,36,29,35,80 50 | 2018-03-13,35,41,34,40,90 51 | 2018-03-14,40,46,39,45,80 52 | 2018-03-15,45,51,44,50,90 53 | 2018-03-16,50,56,49,55,80 54 | 2018-03-19,55,61,54,60,70 55 | 2018-03-20,60,66,59,65,80 56 | 2018-03-21,65,71,64,70,90 57 | 2018-03-22,70,76,69,75,100 58 | 2018-03-23,75,81,74,80,110 59 | 2018-03-26,80,86,79,85,120 60 | 2018-03-27,85,91,84,90,130 61 | 2018-03-28,90,102,89,101,140 62 | 2018-03-29,101,102,100,101,150 63 | 2018-04-02,101,102,100,90,150 64 | 2018-04-03,90,91,84,85,140 65 | 2018-04-04,85,86,79,80,130 66 | 2018-04-05,80,81,74,75,120 67 | 2018-04-06,75,76,69,70,110 68 | 2018-04-09,70,71,64,65,100 69 | 2018-04-10,65,66,59,60,90 70 | 2018-04-11,60,61,54,55,80 71 | 2018-04-12,55,56,49,50,75 72 | 2018-04-13,50,51,44,45,70 73 | 2018-04-16,45,46,39,40,60 74 | 2018-04-17,40,41,34,35,50 75 | 2018-04-18,35,36,29,30,40 76 | 2018-04-19,30,31,24,25,30 77 | 2018-04-20,25,26,19,20,20 78 | 2018-04-21,20,21,14,15,10 79 | 2018-04-22,15,16,9,10,10 80 | 2018-04-23,10,2,0.5,1,5 81 | 2018-04-24,1,2,0.5,1,1 82 | 2018-04-25,1,2,0.5,1,10 83 | 2018-04-26,1,2,0.5,1,20 84 | 2018-04-27,1,11,4,10,30 85 | 2018-04-28,10,16,9,15,40 86 | 2018-04-29,15,21,14,20,50 87 | 2018-04-30,20,26,19,25,60 88 | 2018-05-01,25,31,24,30,70 89 | 2018-05-02,30,36,29,35,80 90 | 2018-05-03,35,41,34,40,90 91 | 2018-05-04,40,46,39,45,80 92 | 2018-05-05,45,51,44,50,90 93 | 2018-05-06,50,56,49,55,80 94 | 2018-05-07,55,61,54,60,70 95 | 2018-05-08,60,66,59,65,80 96 | 2018-05-09,65,71,64,70,90 97 | 2018-05-10,70,76,69,75,100 98 | 2018-05-11,75,81,74,80,110 99 | 2018-05-12,80,86,79,85,120 100 | 2018-05-13,85,91,84,90,130 101 | 2018-05-14,90,102,89,101,140 102 | 2018-05-15,101,102,100,101,150 103 | 2018-05-16,101,102,100,90,150 104 | 2018-05-17,90,91,84,85,140 105 | 2018-05-18,85,86,79,80,130 106 | 2018-05-19,80,81,74,75,120 107 | 2018-05-20,75,76,69,70,110 108 | 2018-05-21,70,71,64,65,100 109 | 2018-05-22,65,66,59,60,90 110 | 2018-05-23,60,61,54,55,80 111 | 2018-05-24,55,56,49,50,75 112 | 2018-05-25,50,51,44,45,70 113 | 2018-05-26,45,46,39,40,60 114 | 2018-05-27,40,41,34,35,50 115 | 2018-05-28,35,36,29,30,40 116 | 2018-05-29,30,31,24,25,30 117 | 2018-05-30,25,26,19,20,20 118 | 2018-05-31,20,21,14,15,10 119 | 2018-06-01,15,16,9,10,10 120 | 2018-06-02,10,2,0.5,1,5 121 | 2018-06-03,1,2,0.5,1,1 122 | 2018-06-04,1,2,0.5,1,10 123 | 2018-06-05,1,2,0.5,1,20 124 | 2018-06-06,1,11,4,10,30 125 | 2018-06-07,10,16,9,15,40 126 | 2018-06-08,15,21,14,20,50 127 | 2018-06-09,20,26,19,25,60 128 | 2018-06-10,25,31,24,30,70 129 | 2018-06-11,30,36,29,35,80 130 | 2018-06-12,35,41,34,40,90 131 | 2018-06-13,40,46,39,45,80 132 | 2018-06-14,45,51,44,50,90 133 | 2018-06-15,50,56,49,55,80 134 | 2018-06-16,55,61,54,60,70 135 | 2018-06-17,60,66,59,65,80 136 | 2018-06-18,65,71,64,70,90 137 | 2018-06-19,70,76,69,75,100 138 | 2018-06-20,75,81,74,80,110 139 | 2018-06-21,80,86,79,85,120 140 | 2018-06-22,85,91,84,90,130 141 | 2018-06-23,90,102,89,101,140 142 | 2018-06-24,101,102,100,101,150 143 | 2018-06-25,101,102,100,90,150 144 | 2018-06-26,90,91,84,85,140 145 | 2018-06-27,85,86,79,80,130 146 | 2018-06-28,80,81,74,75,120 147 | 2018-06-29,75,76,69,70,110 148 | 2018-06-30,70,71,64,65,100 149 | 2018-07-01,65,66,59,60,90 150 | 2018-07-02,60,61,54,55,80 151 | 2018-07-03,55,56,49,50,75 152 | 2018-07-04,50,51,44,45,70 153 | 2018-07-05,45,46,39,40,60 154 | 2018-07-06,40,41,34,35,50 155 | 2018-07-07,35,36,29,30,40 156 | 2018-07-08,30,31,24,25,30 157 | 2018-07-09,25,26,19,20,20 158 | 2018-07-10,20,21,14,15,10 159 | 2018-07-11,15,16,9,10,10 160 | 2018-07-12,10,2,0.5,1,5 161 | 2018-07-13,1,2,0.5,1,1 162 | 2018-07-14,1,2,0.5,1,10 163 | 2018-07-15,1,2,0.5,1,20 164 | 2018-07-16,1,11,4,10,30 165 | 2018-07-17,10,16,9,15,40 166 | 2018-07-18,15,21,14,20,50 167 | 2018-07-19,20,26,19,25,60 168 | 2018-07-20,25,31,24,30,70 169 | 2018-07-21,30,36,29,35,80 170 | 2018-07-22,35,41,34,40,90 171 | 2018-07-23,40,46,39,45,80 172 | 2018-07-24,45,51,44,50,90 173 | 2018-07-25,50,56,49,55,80 174 | 2018-07-26,55,61,54,60,70 175 | 2018-07-27,60,66,59,65,80 176 | 2018-07-28,65,71,64,70,90 177 | 2018-07-29,70,76,69,75,100 178 | 2018-07-30,75,81,74,80,110 179 | 2018-07-31,80,86,79,85,120 180 | 2018-08-01,85,91,84,90,130 181 | 2018-08-02,90,102,89,101,140 182 | 2018-08-03,101,102,100,101,150 183 | 2018-08-04,101,102,100,90,150 184 | 2018-08-05,90,91,84,85,140 185 | 2018-08-06,85,86,79,80,130 186 | 2018-08-07,80,81,74,75,120 187 | 2018-08-08,75,76,69,70,110 188 | 2018-08-09,70,71,64,65,100 189 | 2018-08-10,65,66,59,60,90 190 | 2018-08-11,60,61,54,55,80 191 | 2018-08-12,55,56,49,50,75 192 | 2018-08-13,50,51,44,45,70 193 | 2018-08-14,45,46,39,40,60 194 | 2018-08-15,40,41,34,35,50 195 | 2018-08-16,35,36,29,30,40 196 | 2018-08-17,30,31,24,25,30 197 | 2018-08-18,25,26,19,20,20 198 | 2018-08-19,20,21,14,15,10 199 | 2018-08-20,15,16,9,10,10 200 | 2018-08-21,10,2,0.5,1,5 201 | 2018-08-22,1,2,0.5,1,1 202 | 2018-08-23,1,2,0.5,1,10 203 | 2018-08-24,1,2,0.5,1,20 204 | 2018-08-25,1,11,4,10,30 205 | 2018-08-26,10,16,9,15,40 206 | 2018-08-27,15,21,14,20,50 207 | 2018-08-28,20,26,19,25,60 208 | 2018-08-29,25,31,24,30,70 209 | 2018-08-30,30,36,29,35,80 210 | 2018-08-31,35,41,34,40,90 211 | 2018-09-01,40,46,39,45,80 212 | 2018-09-02,45,51,44,50,90 213 | 2018-09-03,50,56,49,55,80 214 | 2018-09-04,55,61,54,60,70 215 | 2018-09-05,60,66,59,65,80 216 | 2018-09-06,65,71,64,70,90 217 | 2018-09-07,70,76,69,75,100 218 | 2018-09-08,75,81,74,80,110 219 | 2018-09-09,80,86,79,85,120 220 | 2018-09-10,85,91,84,90,130 221 | 2018-09-11,90,102,89,101,140 222 | 2018-09-12,101,102,100,101,150 223 | 2018-09-13,101,102,100,90,150 224 | 2018-09-14,90,91,84,85,140 225 | 2018-09-15,85,86,79,80,130 226 | 2018-09-16,80,81,74,75,120 227 | 2018-09-17,75,76,69,70,110 228 | 2018-09-18,70,71,64,65,100 229 | 2018-09-19,65,66,59,60,90 230 | 2018-09-20,60,61,54,55,80 231 | 2018-09-21,55,56,49,50,75 232 | 2018-09-22,50,51,44,45,70 233 | 2018-09-23,45,46,39,40,60 234 | 2018-09-24,40,41,34,35,50 235 | 2018-09-25,35,36,29,30,40 236 | 2018-09-26,30,31,24,25,30 237 | 2018-09-27,25,26,19,20,20 238 | 2018-09-28,20,21,14,15,10 239 | 2018-09-29,15,16,9,10,10 240 | 2018-09-30,10,2,0.5,1,5 241 | 2018-10-01,1,2,0.5,1,1 242 | 2018-10-02,1,2,0.5,1,10 243 | 2018-10-03,1,2,0.5,1,20 244 | 2018-10-04,1,11,4,10,30 245 | 2018-10-05,10,16,9,15,40 246 | 2018-10-06,15,21,14,20,50 247 | 2018-10-07,20,26,19,25,60 248 | 2018-10-08,25,31,24,30,70 249 | 2018-10-09,30,36,29,35,80 250 | 2018-10-10,35,41,34,40,90 251 | 2018-10-11,40,46,39,45,80 252 | 2018-10-12,45,51,44,50,90 253 | 2018-10-13,50,56,49,55,80 254 | 2018-10-14,55,61,54,60,70 255 | 2018-10-15,60,66,59,65,80 256 | 2018-10-16,65,71,64,70,90 257 | 2018-10-17,70,76,69,75,100 258 | 2018-10-18,75,81,74,80,110 259 | 2018-10-19,80,86,79,85,120 260 | 2018-10-20,85,91,84,90,130 261 | 2018-10-21,90,102,89,101,140 262 | 2018-10-22,101,102,100,101,150 263 | 2018-10-23,101,102,100,90,150 264 | 2018-10-24,90,91,84,85,140 265 | 2018-10-25,85,86,79,80,130 266 | 2018-10-26,80,81,74,75,120 267 | 2018-10-27,75,76,69,70,110 268 | 2018-10-28,70,71,64,65,100 269 | 2018-10-29,65,66,59,60,90 270 | 2018-10-30,60,61,54,55,80 271 | 2018-10-31,55,56,49,50,75 272 | 2018-11-01,50,51,44,45,70 273 | 2018-11-02,45,46,39,40,60 274 | 2018-11-03,40,41,34,35,50 275 | 2018-11-04,35,36,29,30,40 276 | 2018-11-05,30,31,24,25,30 277 | 2018-11-06,25,26,19,20,20 278 | 2018-11-07,20,21,14,15,10 279 | 2018-11-08,15,16,9,10,10 280 | 2018-11-09,10,2,0.5,1,5 281 | 2018-11-10,1,2,0.5,1,1 282 | 2018-11-11,1,2,0.5,1,10 283 | 2018-11-12,1,2,0.5,1,20 284 | 2018-11-13,1,11,4,10,30 285 | 2018-11-14,10,16,9,15,40 286 | 2018-11-15,15,21,14,20,50 287 | 2018-11-16,20,26,19,25,60 288 | 2018-11-17,25,31,24,30,70 289 | 2018-11-18,30,36,29,35,80 290 | 2018-11-19,35,41,34,40,90 291 | 2018-11-20,40,46,39,45,80 292 | 2018-11-21,45,51,44,50,90 293 | 2018-11-22,50,56,49,55,80 294 | 2018-11-23,55,61,54,60,70 295 | 2018-11-24,60,66,59,65,80 296 | 2018-11-25,65,71,64,70,90 297 | 2018-11-26,70,76,69,75,100 298 | 2018-11-27,75,81,74,80,110 299 | 2018-11-28,80,86,79,85,120 300 | 2018-11-29,85,91,84,90,130 301 | 2018-11-30,90,102,89,101,140 302 | 2018-12-01,101,102,100,101,150 303 | 2018-12-02,101,102,100,90,150 304 | 2018-12-03,90,91,84,85,140 305 | 2018-12-04,85,86,79,80,130 306 | 2018-12-05,80,81,74,75,120 307 | 2018-12-06,75,76,69,70,110 308 | 2018-12-07,70,71,64,65,100 309 | 2018-12-08,65,66,59,60,90 310 | 2018-12-09,60,61,54,55,80 311 | 2018-12-10,55,56,49,50,75 312 | 2018-12-11,50,51,44,45,70 313 | 2018-12-12,45,46,39,40,60 314 | 2018-12-13,40,41,34,35,50 315 | 2018-12-14,35,36,29,30,40 316 | 2018-12-15,30,31,24,25,30 317 | 2018-12-16,25,26,19,20,20 318 | 2018-12-17,20,21,14,15,10 319 | 2018-12-18,15,16,9,10,10 320 | 2018-12-19,10,2,0.5,1,5 321 | 2018-12-20,1,2,0.5,1,1 322 | 2018-12-21,1,2,0.5,1,10 323 | 2018-12-22,1,2,0.5,1,20 324 | 2018-12-23,1,11,4,10,30 325 | 2018-12-24,10,16,9,15,40 326 | 2018-12-25,15,21,14,20,50 327 | 2018-12-26,20,26,19,25,60 328 | 2018-12-27,25,31,24,30,70 329 | 2018-12-28,30,36,29,35,80 330 | 2018-12-29,35,41,34,40,90 331 | 2018-12-30,40,46,39,45,80 332 | 2018-12-31,45,51,44,50,90 333 | 2019-01-01,50,56,49,55,80 334 | 2019-01-02,55,61,54,60,70 335 | 2019-01-03,60,66,59,65,80 336 | 2019-01-04,65,71,64,70,90 337 | 2019-01-05,70,76,69,75,100 338 | 2019-01-06,75,81,74,80,110 339 | 2019-01-07,80,86,79,85,120 340 | 2019-01-08,85,91,84,90,130 341 | 2019-01-09,90,102,89,101,140 342 | 2019-01-10,101,102,100,101,150 343 | 2019-01-11,101,102,100,90,150 344 | 2019-01-12,90,91,84,85,140 345 | 2019-01-13,85,86,79,80,130 346 | 2019-01-14,80,81,74,75,120 347 | 2019-01-15,75,76,69,70,110 348 | 2019-01-16,70,71,64,65,100 349 | 2019-01-17,65,66,59,60,90 350 | 2019-01-18,60,61,54,55,80 351 | 2019-01-19,55,56,49,50,75 352 | 2019-01-20,50,51,44,45,70 353 | 2019-01-21,45,46,39,40,60 354 | 2019-01-22,40,41,34,35,50 355 | 2019-01-23,35,36,29,30,40 356 | 2019-01-24,30,31,24,25,30 357 | 2019-01-25,25,26,19,20,20 358 | 2019-01-26,20,21,14,15,10 359 | 2019-01-27,15,16,9,10,10 360 | 2019-01-28,10,2,0.5,1,5 361 | 2019-01-29,1,2,0.5,1,1 362 | 2019-01-30,1,2,0.5,1,10 363 | 2019-01-31,1,2,0.5,1,20 364 | 2019-02-01,1,11,4,10,30 365 | 2019-02-02,10,16,9,15,40 366 | 2019-02-03,15,21,14,20,50 367 | 2019-02-04,20,26,19,25,60 368 | 2019-02-05,25,31,24,30,70 369 | 2019-02-06,30,36,29,35,80 370 | 2019-02-07,35,41,34,40,90 371 | 2019-02-08,40,46,39,45,80 372 | 2019-02-09,45,51,44,50,90 373 | 2019-02-10,50,56,49,55,80 374 | 2019-02-11,55,61,54,60,70 375 | 2019-02-12,60,66,59,65,80 376 | 2019-02-13,65,71,64,70,90 377 | 2019-02-14,70,76,69,75,100 378 | 2019-02-15,75,81,74,80,110 379 | 2019-02-16,80,86,79,85,120 380 | 2019-02-17,85,91,84,90,130 381 | 2019-02-18,90,102,89,101,140 382 | 2019-02-19,101,102,100,101,150 383 | 2019-02-20,101,102,100,90,150 384 | 2019-02-21,90,91,84,85,140 385 | 2019-02-22,85,86,79,80,130 386 | 2019-02-23,80,81,74,75,120 387 | 2019-02-24,75,76,69,70,110 388 | 2019-02-25,70,71,64,65,100 389 | 2019-02-26,65,66,59,60,90 390 | 2019-02-27,60,61,54,55,80 391 | 2019-02-28,55,56,49,50,75 392 | 2019-03-01,50,51,44,45,70 393 | 2019-03-02,45,46,39,40,60 394 | 2019-03-03,40,41,34,35,50 395 | 2019-03-04,35,36,29,30,40 396 | 2019-03-05,30,31,24,25,30 397 | 2019-03-06,25,26,19,20,20 398 | 2019-03-07,20,21,14,15,10 399 | 2019-03-08,15,16,9,10,10 400 | 2019-03-09,10,2,0.5,1,5 401 | 2019-03-10,1,2,0.5,1,1 402 | 2019-03-11,1,2,0.5,1,10 403 | 2019-03-12,1,2,0.5,1,20 404 | 2019-03-13,1,11,4,10,30 405 | 2019-03-14,10,16,9,15,40 406 | 2019-03-15,15,21,14,20,50 407 | 2019-03-16,20,26,19,25,60 408 | 2019-03-17,25,31,24,30,70 409 | 2019-03-18,30,36,29,35,80 410 | 2019-03-19,35,41,34,40,90 411 | 2019-03-20,40,46,39,45,80 412 | 2019-03-21,45,51,44,50,90 413 | 2019-03-22,50,56,49,55,80 414 | 2019-03-23,55,61,54,60,70 415 | 2019-03-24,60,66,59,65,80 416 | 2019-03-25,65,71,64,70,90 417 | 2019-03-26,70,76,69,75,100 418 | 2019-03-27,75,81,74,80,110 419 | 2019-03-28,80,86,79,85,120 420 | 2019-03-29,85,91,84,90,130 421 | 2019-03-30,90,102,89,101,140 422 | 2019-03-31,101,102,100,101,150 423 | 2019-04-01,101,102,100,90,150 424 | 2019-04-02,90,91,84,85,140 425 | 2019-04-03,85,86,79,80,130 426 | 2019-04-04,80,81,74,75,120 427 | 2019-04-05,75,76,69,70,110 428 | 2019-04-06,70,71,64,65,100 429 | 2019-04-07,65,66,59,60,90 430 | 2019-04-08,60,61,54,55,80 431 | 2019-04-09,55,56,49,50,75 432 | 2019-04-10,50,51,44,45,70 433 | 2019-04-11,45,46,39,40,60 434 | 2019-04-12,40,41,34,35,50 435 | 2019-04-13,35,36,29,30,40 436 | 2019-04-14,30,31,24,25,30 437 | 2019-04-15,25,26,19,20,20 438 | 2019-04-16,20,21,14,15,10 439 | 2019-04-17,15,16,9,10,10 440 | 2019-04-18,10,2,0.5,1,5 441 | 2019-04-19,1,2,0.5,1,1 442 | 2019-04-20,1,2,0.5,1,10 443 | 2019-04-21,1,2,0.5,1,20 444 | 2019-04-22,1,11,4,10,30 445 | 2019-04-23,10,16,9,15,40 446 | 2019-04-24,15,21,14,20,50 447 | 2019-04-25,20,26,19,25,60 448 | 2019-04-26,25,31,24,30,70 449 | 2019-04-27,30,36,29,35,80 450 | 2019-04-28,35,41,34,40,90 451 | 2019-04-29,40,46,39,45,80 452 | 2019-04-30,45,51,44,50,90 453 | 2019-05-01,50,56,49,55,80 454 | 2019-05-02,55,61,54,60,70 455 | 2019-05-03,60,66,59,65,80 456 | 2019-05-04,65,71,64,70,90 457 | 2019-05-05,70,76,69,75,100 458 | 2019-05-06,75,81,74,80,110 459 | 2019-05-07,80,86,79,85,120 460 | 2019-05-08,85,91,84,90,130 461 | 2019-05-09,90,102,89,101,140 462 | 2019-05-10,101,102,100,101,150 463 | 2019-05-11,101,102,100,90,150 464 | 2019-05-12,90,91,84,85,140 465 | 2019-05-13,85,86,79,80,130 466 | 2019-05-14,80,81,74,75,120 467 | 2019-05-15,75,76,69,70,110 468 | 2019-05-16,70,71,64,65,100 469 | 2019-05-17,65,66,59,60,90 470 | 2019-05-18,60,61,54,55,80 471 | 2019-05-19,55,56,49,50,75 472 | 2019-05-20,50,51,44,45,70 473 | 2019-05-21,45,46,39,40,60 474 | 2019-05-22,40,41,34,35,50 475 | 2019-05-23,35,36,29,30,40 476 | 2019-05-24,30,31,24,25,30 477 | 2019-05-25,25,26,19,20,20 478 | 2019-05-26,20,21,14,15,10 479 | 2019-05-27,15,16,9,10,10 480 | 2019-05-28,10,2,0.5,1,5 481 | 2019-05-29,1,2,0.5,1,1 482 | 2019-05-30,1,2,0.5,1,10 483 | 2019-05-31,1,2,0.5,1,20 484 | 2019-06-01,1,11,4,10,30 485 | 2019-06-02,10,16,9,15,40 486 | 2019-06-03,15,21,14,20,50 487 | 2019-06-04,20,26,19,25,60 488 | 2019-06-05,25,31,24,30,70 489 | 2019-06-06,30,36,29,35,80 490 | 2019-06-07,35,41,34,40,90 491 | 2019-06-08,40,46,39,45,80 492 | 2019-06-09,45,51,44,50,90 493 | 2019-06-10,50,56,49,55,80 494 | 2019-06-11,55,61,54,60,70 495 | 2019-06-12,60,66,59,65,80 496 | 2019-06-13,65,71,64,70,90 497 | 2019-06-14,70,76,69,75,100 498 | 2019-06-15,75,81,74,80,110 499 | 2019-06-16,80,86,79,85,120 500 | 2019-06-17,85,91,84,90,130 501 | 2019-06-18,90,102,89,101,140 502 | 2019-06-19,101,102,100,101,150 503 | 2019-06-20,101,102,100,90,150 504 | 2019-06-21,90,91,84,85,140 505 | 2019-06-22,85,86,79,80,130 506 | 2019-06-23,80,81,74,75,120 507 | 2019-06-24,75,76,69,70,110 508 | 2019-06-25,70,71,64,65,100 509 | 2019-06-26,65,66,59,60,90 510 | 2019-06-27,60,61,54,55,80 511 | 2019-06-28,55,56,49,50,75 512 | 2019-06-29,50,51,44,45,70 513 | 2019-06-30,45,46,39,40,60 514 | 2019-07-01,40,41,34,35,50 515 | 2019-07-02,35,36,29,30,40 516 | 2019-07-03,30,31,24,25,30 517 | 2019-07-04,25,26,19,20,20 518 | 2019-07-05,20,21,14,15,10 519 | 2019-07-06,15,16,9,10,10 520 | 2019-07-07,10,2,0.5,1,5 521 | 2019-07-08,1,2,0.5,1,1 522 | 2019-07-09,1,2,0.5,1,10 523 | 2019-07-10,1,2,0.5,1,20 524 | 2019-07-11,1,11,4,10,30 525 | 2019-07-12,10,16,9,15,40 526 | 2019-07-13,15,21,14,20,50 527 | 2019-07-14,20,26,19,25,60 528 | 2019-07-15,25,31,24,30,70 529 | 2019-07-16,30,36,29,35,80 530 | 2019-07-17,35,41,34,40,90 531 | 2019-07-18,40,46,39,45,80 532 | 2019-07-19,45,51,44,50,90 533 | 2019-07-20,50,56,49,55,80 534 | 2019-07-21,55,61,54,60,70 535 | 2019-07-22,60,66,59,65,80 536 | 2019-07-23,65,71,64,70,90 537 | 2019-07-24,70,76,69,75,100 538 | 2019-07-25,75,81,74,80,110 539 | 2019-07-26,80,86,79,85,120 540 | 2019-07-27,85,91,84,90,130 541 | 2019-07-28,90,102,89,101,140 542 | 2019-07-29,101,102,100,101,150 543 | 2019-07-30,101,102,100,90,150 544 | 2019-07-31,90,91,84,85,140 545 | 2019-08-01,85,86,79,80,130 546 | 2019-08-02,80,81,74,75,120 547 | 2019-08-03,75,76,69,70,110 548 | 2019-08-04,70,71,64,65,100 549 | 2019-08-05,65,66,59,60,90 550 | 2019-08-06,60,61,54,55,80 551 | 2019-08-07,55,56,49,50,75 552 | 2019-08-08,50,51,44,45,70 553 | 2019-08-09,45,46,39,40,60 554 | 2019-08-10,40,41,34,35,50 555 | 2019-08-11,35,36,29,30,40 556 | 2019-08-12,30,31,24,25,30 557 | 2019-08-13,25,26,19,20,20 558 | 2019-08-14,20,21,14,15,10 559 | 2019-08-15,15,16,9,10,10 560 | 2019-08-16,10,2,0.5,1,5 561 | 2019-08-17,1,2,0.5,1,1 562 | 2019-08-18,1,2,0.5,1,10 563 | 2019-08-19,1,2,0.5,1,20 564 | 2019-08-20,1,11,4,10,30 565 | 2019-08-21,10,16,9,15,40 566 | 2019-08-22,15,21,14,20,50 567 | 2019-08-23,20,26,19,25,60 568 | 2019-08-24,25,31,24,30,70 569 | 2019-08-25,30,36,29,35,80 570 | 2019-08-26,35,41,34,40,90 571 | 2019-08-27,40,46,39,45,80 572 | 2019-08-28,45,51,44,50,90 573 | 2019-08-29,50,56,49,55,80 574 | 2019-08-30,55,61,54,60,70 575 | 2019-08-31,60,66,59,65,80 576 | 2019-09-01,65,71,64,70,90 577 | 2019-09-02,70,76,69,75,100 578 | 2019-09-03,75,81,74,80,110 579 | 2019-09-04,80,86,79,85,120 580 | 2019-09-05,85,91,84,90,130 581 | 2019-09-06,90,102,89,101,140 582 | 2019-09-07,101,102,100,101,150 583 | 2019-09-08,101,102,100,90,150 584 | 2019-09-09,90,91,84,85,140 585 | 2019-09-10,85,86,79,80,130 586 | 2019-09-11,80,81,74,75,120 587 | 2019-09-12,75,76,69,70,110 588 | 2019-09-13,70,71,64,65,100 589 | 2019-09-14,65,66,59,60,90 590 | 2019-09-15,60,61,54,55,80 591 | 2019-09-16,55,56,49,50,75 592 | 2019-09-17,50,51,44,45,70 593 | 2019-09-18,45,46,39,40,60 594 | 2019-09-19,40,41,34,35,50 595 | 2019-09-20,35,36,29,30,40 596 | 2019-09-21,30,31,24,25,30 597 | 2019-09-22,25,26,19,20,20 598 | 2019-09-23,20,21,14,15,10 599 | 2019-09-24,15,16,9,10,10 600 | 2019-09-25,10,2,0.5,1,5 601 | 2019-09-26,1,2,0.5,1,1 602 | 2019-09-27,1,2,0.5,1,10 603 | 2019-09-28,1,2,0.5,1,20 604 | 2019-09-29,1,11,4,10,30 605 | 2019-09-30,10,16,9,15,40 606 | 2019-10-01,15,21,14,20,50 607 | 2019-10-02,20,26,19,25,60 608 | 2019-10-03,25,31,24,30,70 609 | 2019-10-04,30,36,29,35,80 610 | 2019-10-05,35,41,34,40,90 611 | 2019-10-06,40,46,39,45,80 612 | 2019-10-07,45,51,44,50,90 613 | 2019-10-08,50,56,49,55,80 614 | 2019-10-09,55,61,54,60,70 615 | 2019-10-10,60,66,59,65,80 616 | 2019-10-11,65,71,64,70,90 617 | 2019-10-12,70,76,69,75,100 618 | 2019-10-13,75,81,74,80,110 619 | 2019-10-14,80,86,79,85,120 620 | 2019-10-15,85,91,84,90,130 621 | 2019-10-16,90,102,89,101,140 622 | 2019-10-17,101,102,100,101,150 623 | 2019-10-18,101,102,100,90,150 624 | 2019-10-19,90,91,84,85,140 625 | 2019-10-20,85,86,79,80,130 626 | 2019-10-21,80,81,74,75,120 627 | 2019-10-22,75,76,69,70,110 628 | 2019-10-23,70,71,64,65,100 629 | 2019-10-24,65,66,59,60,90 630 | 2019-10-25,60,61,54,55,80 631 | 2019-10-26,55,56,49,50,75 632 | 2019-10-27,50,51,44,45,70 633 | 2019-10-28,45,46,39,40,60 634 | 2019-10-29,40,41,34,35,50 635 | 2019-10-30,35,36,29,30,40 636 | 2019-10-31,30,31,24,25,30 637 | 2019-11-01,25,26,19,20,20 638 | 2019-11-02,20,21,14,15,10 639 | 2019-11-03,15,16,9,10,10 640 | 2019-11-04,10,2,0.5,1,5 641 | 2019-11-05,1,2,0.5,1,1 642 | 2019-11-06,1,2,0.5,1,10 643 | 2019-11-07,1,2,0.5,1,20 644 | 2019-11-08,1,11,4,10,30 645 | 2019-11-09,10,16,9,15,40 646 | 2019-11-10,15,21,14,20,50 647 | 2019-11-11,20,26,19,25,60 648 | 2019-11-12,25,31,24,30,70 649 | 2019-11-13,30,36,29,35,80 650 | 2019-11-14,35,41,34,40,90 651 | 2019-11-15,40,46,39,45,80 652 | 2019-11-16,45,51,44,50,90 653 | 2019-11-17,50,56,49,55,80 654 | 2019-11-18,55,61,54,60,70 655 | 2019-11-19,60,66,59,65,80 656 | 2019-11-20,65,71,64,70,90 657 | 2019-11-21,70,76,69,75,100 658 | 2019-11-22,75,81,74,80,110 659 | 2019-11-23,80,86,79,85,120 660 | 2019-11-24,85,91,84,90,130 661 | 2019-11-25,90,102,89,101,140 662 | 2019-11-26,101,102,100,101,150 663 | 2019-11-27,101,102,100,90,150 664 | 2019-11-28,90,91,84,85,140 665 | 2019-11-29,85,86,79,80,130 666 | 2019-11-30,80,81,74,75,120 667 | 2019-12-01,75,76,69,70,110 668 | 2019-12-02,70,71,64,65,100 669 | 2019-12-03,65,66,59,60,90 670 | 2019-12-04,60,61,54,55,80 671 | 2019-12-05,55,56,49,50,75 672 | 2019-12-06,50,51,44,45,70 673 | 2019-12-07,45,46,39,40,60 674 | 2019-12-08,40,41,34,35,50 675 | 2019-12-09,35,36,29,30,40 676 | 2019-12-10,30,31,24,25,30 677 | 2019-12-11,25,26,19,20,20 678 | 2019-12-12,20,21,14,15,10 679 | 2019-12-13,15,16,9,10,10 680 | 2019-12-14,10,2,0.5,1,5 681 | 2019-12-15,1,2,0.5,1,1 682 | 2019-12-16,1,2,0.5,1,10 683 | 2019-12-17,1,2,0.5,1,20 684 | 2019-12-18,1,11,4,10,30 685 | 2019-12-19,10,16,9,15,40 686 | 2019-12-20,15,21,14,20,50 687 | 2019-12-21,20,26,19,25,60 688 | 2019-12-22,25,31,24,30,70 689 | 2019-12-23,30,36,29,35,80 690 | 2019-12-24,35,41,34,40,90 691 | 2019-12-25,40,46,39,45,80 692 | 2019-12-26,45,51,44,50,90 693 | 2019-12-27,50,56,49,55,80 694 | 2019-12-28,55,61,54,60,70 695 | 2019-12-29,60,66,59,65,80 696 | 2019-12-30,65,71,64,70,90 697 | 2019-12-31,70,76,69,75,100 698 | 2020-01-01,75,81,74,80,110 699 | 2020-01-02,80,86,79,85,120 700 | 2020-01-03,85,91,84,90,130 701 | 2020-01-04,90,102,89,101,140 702 | 2020-01-05,101,102,100,101,150 703 | 2020-01-06,101,102,100,90,150 704 | 2020-01-07,90,91,84,85,140 705 | 2020-01-08,85,86,79,80,130 706 | 2020-01-09,80,81,74,75,120 707 | 2020-01-10,75,76,69,70,110 708 | 2020-01-11,70,71,64,65,100 709 | 2020-01-12,65,66,59,60,90 710 | 2020-01-13,60,61,54,55,80 711 | 2020-01-14,55,56,49,50,75 712 | 2020-01-15,50,51,44,45,70 713 | 2020-01-16,45,46,39,40,60 714 | 2020-01-17,40,41,34,35,50 715 | 2020-01-18,35,36,29,30,40 716 | 2020-01-19,30,31,24,25,30 717 | 2020-01-20,25,26,19,20,20 718 | 2020-01-21,20,21,14,15,10 719 | 2020-01-22,15,16,9,10,10 720 | 2020-01-23,10,2,0.5,1,5 721 | 2020-01-24,1,2,0.5,1,1 722 | 2020-01-25,1,2,0.5,1,10 723 | 2020-01-26,1,2,0.5,1,20 724 | 2020-01-27,1,11,4,10,30 725 | 2020-01-28,10,16,9,15,40 726 | 2020-01-29,15,21,14,20,50 727 | 2020-01-30,20,26,19,25,60 728 | 2020-01-31,25,31,24,30,70 729 | 2020-02-01,30,36,29,35,80 730 | 2020-02-02,35,41,34,40,90 731 | 2020-02-03,40,46,39,45,80 732 | 2020-02-04,45,51,44,50,90 733 | 2020-02-05,50,56,49,55,80 734 | 2020-02-06,55,61,54,60,70 735 | 2020-02-07,60,66,59,65,80 736 | 2020-02-08,65,71,64,70,90 737 | 2020-02-09,70,76,69,75,100 738 | 2020-02-10,75,81,74,80,110 739 | 2020-02-11,80,86,79,85,120 740 | 2020-02-12,85,91,84,90,130 741 | 2020-02-13,90,102,89,101,140 742 | 2020-02-14,101,102,100,101,150 743 | 2020-02-15,101,102,100,90,150 744 | 2020-02-16,90,91,84,85,140 745 | 2020-02-17,85,86,79,80,130 746 | 2020-02-18,80,81,74,75,120 747 | 2020-02-19,75,76,69,70,110 748 | 2020-02-20,70,71,64,65,100 749 | 2020-02-21,65,66,59,60,90 750 | 2020-02-22,60,61,54,55,80 751 | 2020-02-23,55,56,49,50,75 752 | 2020-02-24,50,51,44,45,70 753 | 2020-02-25,45,46,39,40,60 754 | 2020-02-26,40,41,34,35,50 755 | 2020-02-27,35,36,29,30,40 756 | 2020-02-28,30,31,24,25,30 757 | 2020-02-29,25,26,19,20,20 758 | 2020-03-01,20,21,14,15,10 759 | 2020-03-02,15,16,9,10,10 760 | 2020-03-03,10,2,0.5,1,5 761 | 2020-03-04,1,2,0.5,1,1 762 | 2020-03-05,1,2,0.5,1,10 763 | 2020-03-06,1,2,0.5,1,20 764 | 2020-03-07,1,11,4,10,30 765 | 2020-03-08,10,16,9,15,40 766 | 2020-03-09,15,21,14,20,50 767 | 2020-03-10,20,26,19,25,60 768 | 2020-03-11,25,31,24,30,70 769 | 2020-03-12,30,36,29,35,80 770 | 2020-03-13,35,41,34,40,90 771 | 2020-03-14,40,46,39,45,80 772 | 2020-03-15,45,51,44,50,90 773 | 2020-03-16,50,56,49,55,80 774 | 2020-03-17,55,61,54,60,70 775 | 2020-03-18,60,66,59,65,80 776 | 2020-03-19,65,71,64,70,90 777 | 2020-03-20,70,76,69,75,100 778 | 2020-03-21,75,81,74,80,110 779 | 2020-03-22,80,86,79,85,120 780 | 2020-03-23,85,91,84,90,130 781 | 2020-03-24,90,102,89,101,140 782 | 2020-03-25,101,102,100,101,150 783 | 2020-03-26,101,102,100,90,150 784 | 2020-03-27,90,91,84,85,140 785 | 2020-03-28,85,86,79,80,130 786 | 2020-03-29,80,81,74,75,120 787 | 2020-03-30,75,76,69,70,110 788 | 2020-03-31,70,71,64,65,100 789 | 2020-04-01,65,66,59,60,90 790 | 2020-04-02,60,61,54,55,80 791 | 2020-04-03,55,56,49,50,75 792 | 2020-04-04,50,51,44,45,70 793 | 2020-04-05,45,46,39,40,60 794 | 2020-04-06,40,41,34,35,50 795 | 2020-04-07,35,36,29,30,40 796 | 2020-04-08,30,31,24,25,30 797 | 2020-04-09,25,26,19,20,20 798 | 2020-04-10,20,21,14,15,10 799 | 2020-04-11,15,16,9,10,10 800 | 2020-04-12,10,2,0.5,1,5 801 | 2020-04-13,1,2,0.5,1,1 802 | 2020-04-14,1,2,0.5,1,10 803 | 2020-04-15,1,2,0.5,1,20 804 | 2020-04-16,1,11,4,10,30 805 | 2020-04-17,10,16,9,15,40 806 | 2020-04-18,15,21,14,20,50 807 | 2020-04-19,20,26,19,25,60 808 | 2020-04-20,25,31,24,30,70 809 | 2020-04-21,30,36,29,35,80 810 | 2020-04-22,35,41,34,40,90 811 | 2020-04-23,40,46,39,45,80 812 | 2020-04-24,45,51,44,50,90 813 | 2020-04-25,50,56,49,55,80 814 | 2020-04-26,55,61,54,60,70 815 | 2020-04-27,60,66,59,65,80 816 | 2020-04-28,65,71,64,70,90 817 | 2020-04-29,70,76,69,75,100 818 | 2020-04-30,75,81,74,80,110 819 | 2020-05-01,80,86,79,85,120 820 | 2020-05-02,85,91,84,90,130 821 | 2020-05-03,90,102,89,101,140 822 | 2020-05-04,101,102,100,101,150 823 | 2020-05-05,101,102,100,90,150 824 | 2020-05-06,90,91,84,85,140 825 | 2020-05-07,85,86,79,80,130 826 | 2020-05-08,80,81,74,75,120 827 | 2020-05-09,75,76,69,70,110 828 | 2020-05-10,70,71,64,65,100 829 | 2020-05-11,65,66,59,60,90 830 | 2020-05-12,60,61,54,55,80 831 | 2020-05-13,55,56,49,50,75 832 | 2020-05-14,50,51,44,45,70 833 | 2020-05-15,45,46,39,40,60 834 | 2020-05-16,40,41,34,35,50 835 | 2020-05-17,35,36,29,30,40 836 | 2020-05-18,30,31,24,25,30 837 | 2020-05-19,25,26,19,20,20 838 | 2020-05-20,20,21,14,15,10 839 | 2020-05-21,15,16,9,10,10 840 | 2020-05-22,10,2,0.5,1,5 841 | 2020-05-23,1,2,0.5,1,1 842 | 2020-05-24,1,2,0.5,1,10 843 | 2020-05-25,1,2,0.5,1,20 844 | 2020-05-26,1,11,4,10,30 845 | 2020-05-27,10,16,9,15,40 846 | 2020-05-28,15,21,14,20,50 847 | 2020-05-29,20,26,19,25,60 848 | 2020-05-30,25,31,24,30,70 849 | 2020-05-31,30,36,29,35,80 850 | 2020-06-01,35,41,34,40,90 851 | 2020-06-02,40,46,39,45,80 852 | 2020-06-03,45,51,44,50,90 853 | 2020-06-04,50,56,49,55,80 854 | 2020-06-05,55,61,54,60,70 855 | 2020-06-06,60,66,59,65,80 856 | 2020-06-07,65,71,64,70,90 857 | 2020-06-08,70,76,69,75,100 858 | 2020-06-09,75,81,74,80,110 859 | 2020-06-10,80,86,79,85,120 860 | 2020-06-11,85,91,84,90,130 861 | 2020-06-12,90,102,89,101,140 862 | 2020-06-13,101,102,100,101,150 863 | 2020-06-14,101,102,100,90,150 864 | 2020-06-15,90,91,84,85,140 865 | 2020-06-16,85,86,79,80,130 866 | 2020-06-17,80,81,74,75,120 867 | 2020-06-18,75,76,69,70,110 868 | 2020-06-19,70,71,64,65,100 869 | 2020-06-20,65,66,59,60,90 870 | 2020-06-21,60,61,54,55,80 871 | 2020-06-22,55,56,49,50,75 872 | 2020-06-23,50,51,44,45,70 873 | 2020-06-24,45,46,39,40,60 874 | 2020-06-25,40,41,34,35,50 875 | 2020-06-26,35,36,29,30,40 876 | 2020-06-27,30,31,24,25,30 877 | 2020-06-28,25,26,19,20,20 878 | 2020-06-29,20,21,14,15,10 879 | 2020-06-30,15,16,9,10,10 880 | 2020-07-01,10,2,0.5,1,5 881 | 2020-07-02,1,2,0.5,1,1 882 | 2020-07-03,1,2,0.5,1,10 883 | 2020-07-04,1,2,0.5,1,20 884 | 2020-07-05,1,11,4,10,30 885 | 2020-07-06,10,16,9,15,40 886 | 2020-07-07,15,21,14,20,50 887 | 2020-07-08,20,26,19,25,60 888 | 2020-07-09,25,31,24,30,70 889 | 2020-07-10,30,36,29,35,80 890 | 2020-07-11,35,41,34,40,90 891 | 2020-07-12,40,46,39,45,80 892 | 2020-07-13,45,51,44,50,90 893 | 2020-07-14,50,56,49,55,80 894 | 2020-07-15,55,61,54,60,70 895 | 2020-07-16,60,66,59,65,80 896 | 2020-07-17,65,71,64,70,90 897 | 2020-07-18,70,76,69,75,100 898 | 2020-07-19,75,81,74,80,110 899 | 2020-07-20,80,86,79,85,120 900 | 2020-07-21,85,91,84,90,130 901 | 2020-07-22,90,102,89,101,140 902 | 2020-07-23,101,102,100,101,150 903 | 2020-07-24,101,102,100,90,150 904 | 2020-07-25,90,91,84,85,140 905 | 2020-07-26,85,86,79,80,130 906 | 2020-07-27,80,81,74,75,120 907 | 2020-07-28,75,76,69,70,110 908 | 2020-07-29,70,71,64,65,100 909 | 2020-07-30,65,66,59,60,90 910 | 2020-07-31,60,61,54,55,80 911 | 2020-08-01,55,56,49,50,75 912 | 2020-08-02,50,51,44,45,70 913 | 2020-08-03,45,46,39,40,60 914 | 2020-08-04,40,41,34,35,50 915 | 2020-08-05,35,36,29,30,40 916 | 2020-08-06,30,31,24,25,30 917 | 2020-08-07,25,26,19,20,20 918 | 2020-08-08,20,21,14,15,10 919 | 2020-08-09,15,16,9,10,10 920 | 2020-08-10,10,2,0.5,1,5 921 | 2020-08-11,1,2,0.5,1,1 922 | 2020-08-12,1,2,0.5,1,10 923 | 2020-08-13,1,2,0.5,1,20 924 | 2020-08-14,1,11,4,10,30 925 | 2020-08-15,10,16,9,15,40 926 | 2020-08-16,15,21,14,20,50 927 | 2020-08-17,20,26,19,25,60 928 | 2020-08-18,25,31,24,30,70 929 | 2020-08-19,30,36,29,35,80 930 | 2020-08-20,35,41,34,40,90 931 | 2020-08-21,40,46,39,45,80 932 | 2020-08-22,45,51,44,50,90 933 | 2020-08-23,50,56,49,55,80 934 | 2020-08-24,55,61,54,60,70 935 | 2020-08-25,60,66,59,65,80 936 | 2020-08-26,65,71,64,70,90 937 | 2020-08-27,70,76,69,75,100 938 | 2020-08-28,75,81,74,80,110 939 | 2020-08-29,80,86,79,85,120 940 | 2020-08-30,85,91,84,90,130 941 | 2020-08-31,90,102,89,101,140 942 | 2020-09-01,101,102,100,101,150 943 | 2020-09-02,101,102,100,90,150 944 | 2020-09-03,90,91,84,85,140 945 | 2020-09-04,85,86,79,80,130 946 | 2020-09-05,80,81,74,75,120 947 | 2020-09-06,75,76,69,70,110 948 | 2020-09-07,70,71,64,65,100 949 | 2020-09-08,65,66,59,60,90 950 | 2020-09-09,60,61,54,55,80 951 | 2020-09-10,55,56,49,50,75 952 | 2020-09-11,50,51,44,45,70 953 | 2020-09-12,45,46,39,40,60 954 | 2020-09-13,40,41,34,35,50 955 | 2020-09-14,35,36,29,30,40 956 | 2020-09-15,30,31,24,25,30 957 | 2020-09-16,25,26,19,20,20 958 | 2020-09-17,20,21,14,15,10 959 | 2020-09-18,15,16,9,10,10 960 | 2020-09-19,10,2,0.5,1,5 961 | 2020-09-20,1,2,0.5,1,1 962 | 2020-09-21,1,2,0.5,1,10 963 | 2020-09-22,1,2,0.5,1,20 964 | 2020-09-23,1,11,4,10,30 965 | 2020-09-24,10,16,9,15,40 966 | 2020-09-25,15,21,14,20,50 967 | 2020-09-26,20,26,19,25,60 968 | 2020-09-27,25,31,24,30,70 969 | 2020-09-28,30,36,29,35,80 970 | 2020-09-29,35,41,34,40,90 971 | 2020-09-30,40,46,39,45,80 972 | 2020-10-01,45,51,44,50,90 973 | 2020-10-02,50,56,49,55,80 974 | 2020-10-03,55,61,54,60,70 975 | 2020-10-04,60,66,59,65,80 976 | 2020-10-05,65,71,64,70,90 977 | 2020-10-06,70,76,69,75,100 978 | 2020-10-07,75,81,74,80,110 979 | 2020-10-08,80,86,79,85,120 980 | 2020-10-09,85,91,84,90,130 981 | 2020-10-10,90,102,89,101,140 982 | 2020-10-11,101,102,100,101,150 983 | 2020-10-12,101,102,100,90,150 984 | 2020-10-13,90,91,84,85,140 985 | 2020-10-14,85,86,79,80,130 986 | 2020-10-15,80,81,74,75,120 987 | 2020-10-16,75,76,69,70,110 988 | 2020-10-17,70,71,64,65,100 989 | 2020-10-18,65,66,59,60,90 990 | 2020-10-19,60,61,54,55,80 991 | 2020-10-20,55,56,49,50,75 992 | 2020-10-21,50,51,44,45,70 993 | 2020-10-22,45,46,39,40,60 994 | 2020-10-23,40,41,34,35,50 995 | 2020-10-24,35,36,29,30,40 996 | 2020-10-25,30,31,24,25,30 997 | 2020-10-26,25,26,19,20,20 998 | 2020-10-27,20,21,14,15,10 999 | 2020-10-28,15,16,9,10,10 1000 | 2020-10-29,10,2,0.5,1,5 1001 | 2020-10-30,1,2,0.5,1,1 1002 | 2020-10-31,1,2,0.5,1,10 1003 | 2020-11-01,1,2,0.5,1,20 1004 | 2020-11-02,1,11,4,10,30 1005 | 2020-11-03,10,16,9,15,40 1006 | 2020-11-04,15,21,14,20,50 1007 | 2020-11-05,20,26,19,25,60 1008 | 2020-11-06,25,31,24,30,70 1009 | 2020-11-07,30,36,29,35,80 1010 | 2020-11-08,35,41,34,40,90 1011 | 2020-11-09,40,46,39,45,80 1012 | 2020-11-10,45,51,44,50,90 1013 | 2020-11-11,50,56,49,55,80 1014 | 2020-11-12,55,61,54,60,70 1015 | 2020-11-13,60,66,59,65,80 1016 | 2020-11-14,65,71,64,70,90 1017 | 2020-11-15,70,76,69,75,100 1018 | 2020-11-16,75,81,74,80,110 1019 | 2020-11-17,80,86,79,85,120 1020 | 2020-11-18,85,91,84,90,130 1021 | 2020-11-19,90,102,89,101,140 1022 | 2020-11-20,101,102,100,101,150 1023 | 2020-11-21,101,102,100,90,150 1024 | 2020-11-22,90,91,84,85,140 1025 | 2020-11-23,85,86,79,80,130 1026 | 2020-11-24,80,81,74,75,120 1027 | 2020-11-25,75,76,69,70,110 1028 | 2020-11-26,70,71,64,65,100 1029 | 2020-11-27,65,66,59,60,90 1030 | 2020-11-28,60,61,54,55,80 1031 | 2020-11-29,55,56,49,50,75 1032 | 2020-11-30,50,51,44,45,70 1033 | 2020-12-01,45,46,39,40,60 1034 | 2020-12-02,40,41,34,35,50 1035 | 2020-12-03,35,36,29,30,40 1036 | 2020-12-04,30,31,24,25,30 1037 | 2020-12-05,25,26,19,20,20 1038 | 2020-12-06,20,21,14,15,10 1039 | 2020-12-07,15,16,9,10,10 1040 | 2020-12-08,10,2,0.5,1,5 1041 | 2020-12-09,1,2,0.5,1,1 1042 | 2020-12-10,1,2,0.5,1,10 1043 | 2020-12-11,1,2,0.5,1,20 1044 | 2020-12-12,1,11,4,10,30 1045 | 2020-12-13,10,16,9,15,40 1046 | 2020-12-14,15,21,14,20,50 1047 | 2020-12-15,20,26,19,25,60 1048 | 2020-12-16,25,31,24,30,70 1049 | 2020-12-17,30,36,29,35,80 1050 | 2020-12-18,35,41,34,40,90 1051 | 2020-12-19,40,46,39,45,80 1052 | 2020-12-20,45,51,44,50,90 1053 | 2020-12-21,50,56,49,55,80 1054 | 2020-12-22,55,61,54,60,70 1055 | 2020-12-23,60,66,59,65,80 1056 | 2020-12-24,65,71,64,70,90 1057 | 2020-12-25,70,76,69,75,100 1058 | 2020-12-26,75,81,74,80,110 1059 | 2020-12-27,80,86,79,85,120 1060 | 2020-12-28,85,91,84,90,130 1061 | 2020-12-29,90,102,89,101,140 1062 | 2020-12-30,101,102,100,101,150 1063 | 2020-12-31,101,102,100,90,150 1064 | 2021-01-01,90,91,84,85,140 1065 | 2021-01-02,85,86,79,80,130 1066 | 2021-01-03,80,81,74,75,120 1067 | 2021-01-04,75,76,69,70,110 1068 | 2021-01-05,70,71,64,65,100 1069 | 2021-01-06,65,66,59,60,90 1070 | 2021-01-07,60,61,54,55,80 1071 | 2021-01-08,55,56,49,50,75 1072 | 2021-01-09,50,51,44,45,70 1073 | 2021-01-10,45,46,39,40,60 1074 | 2021-01-11,40,41,34,35,50 1075 | 2021-01-12,35,36,29,30,40 1076 | 2021-01-13,30,31,24,25,30 1077 | 2021-01-14,25,26,19,20,20 1078 | 2021-01-15,20,21,14,15,10 1079 | 2021-01-16,15,16,9,10,10 1080 | 2021-01-17,10,2,0.5,1,5 1081 | 2021-01-18,1,2,0.5,1,1 1082 | 2021-01-19,1,2,0.5,1,10 1083 | 2021-01-20,1,2,0.5,1,20 1084 | 2021-01-21,1,11,4,10,30 1085 | 2021-01-22,10,16,9,15,40 1086 | 2021-01-23,15,21,14,20,50 1087 | 2021-01-24,20,26,19,25,60 1088 | 2021-01-25,25,31,24,30,70 1089 | 2021-01-26,30,36,29,35,80 1090 | 2021-01-27,35,41,34,40,90 1091 | 2021-01-28,40,46,39,45,80 1092 | 2021-01-29,45,51,44,50,90 1093 | 2021-01-30,50,56,49,55,80 1094 | 2021-01-31,55,61,54,60,70 1095 | 2021-02-01,60,66,59,65,80 1096 | 2021-02-02,65,71,64,70,90 1097 | 2021-02-03,70,76,69,75,100 1098 | 2021-02-04,75,81,74,80,110 1099 | 2021-02-05,80,86,79,85,120 1100 | 2021-02-06,85,91,84,90,130 1101 | 2021-02-07,90,102,89,101,140 1102 | 2021-02-08,101,102,100,101,150 1103 | 2021-02-09,101,102,100,90,150 1104 | 2021-02-10,90,91,84,85,140 1105 | 2021-02-11,85,86,79,80,130 1106 | 2021-02-12,80,81,74,75,120 1107 | 2021-02-13,75,76,69,70,110 1108 | 2021-02-14,70,71,64,65,100 1109 | 2021-02-15,65,66,59,60,90 1110 | 2021-02-16,60,61,54,55,80 1111 | 2021-02-17,55,56,49,50,75 1112 | 2021-02-18,50,51,44,45,70 1113 | 2021-02-19,45,46,39,40,60 1114 | 2021-02-20,40,41,34,35,50 1115 | 2021-02-21,35,36,29,30,40 1116 | 2021-02-22,30,31,24,25,30 1117 | 2021-02-23,25,26,19,20,20 1118 | 2021-02-24,20,21,14,15,10 1119 | 2021-02-25,15,16,9,10,10 1120 | 2021-02-26,10,2,0.5,1,5 1121 | 2021-02-27,1,2,0.5,1,1 1122 | 2021-02-28,1,2,0.5,1,10 1123 | 2021-03-01,1,2,0.5,1,20 1124 | 2021-03-02,1,11,4,10,30 1125 | 2021-03-03,10,16,9,15,40 1126 | 2021-03-04,15,21,14,20,50 1127 | 2021-03-05,20,26,19,25,60 1128 | 2021-03-06,25,31,24,30,70 1129 | 2021-03-07,30,36,29,35,80 1130 | 2021-03-08,35,41,34,40,90 1131 | 2021-03-09,40,46,39,45,80 1132 | 2021-03-10,45,51,44,50,90 1133 | 2021-03-11,50,56,49,55,80 1134 | 2021-03-12,55,61,54,60,70 1135 | 2021-03-13,60,66,59,65,80 1136 | 2021-03-14,65,71,64,70,90 1137 | 2021-03-15,70,76,69,75,100 1138 | 2021-03-16,75,81,74,80,110 1139 | 2021-03-17,80,86,79,85,120 1140 | 2021-03-18,85,91,84,90,130 1141 | 2021-03-19,90,102,89,101,140 1142 | 2021-03-20,101,102,100,101,150 1143 | 2021-03-21,101,102,100,90,150 1144 | 2021-03-22,90,91,84,85,140 1145 | 2021-03-23,85,86,79,80,130 1146 | 2021-03-24,80,81,74,75,120 1147 | 2021-03-25,75,76,69,70,110 1148 | 2021-03-26,70,71,64,65,100 1149 | 2021-03-27,65,66,59,60,90 1150 | 2021-03-28,60,61,54,55,80 1151 | 2021-03-29,55,56,49,50,75 1152 | 2021-03-30,50,51,44,45,70 1153 | 2021-03-31,45,46,39,40,60 1154 | 2021-04-01,40,41,34,35,50 1155 | 2021-04-02,35,36,29,30,40 1156 | 2021-04-03,30,31,24,25,30 1157 | 2021-04-04,25,26,19,20,20 1158 | 2021-04-05,20,21,14,15,10 1159 | 2021-04-06,15,16,9,10,10 1160 | 2021-04-07,10,2,0.5,1,5 1161 | 2021-04-08,1,2,0.5,1,1 1162 | 2021-04-09,1,2,0.5,1,10 1163 | 2021-04-10,1,2,0.5,1,20 1164 | 2021-04-11,1,11,4,10,30 1165 | 2021-04-12,10,16,9,15,40 1166 | 2021-04-13,15,21,14,20,50 1167 | 2021-04-14,20,26,19,25,60 1168 | 2021-04-15,25,31,24,30,70 1169 | 2021-04-16,30,36,29,35,80 1170 | 2021-04-17,35,41,34,40,90 1171 | 2021-04-18,40,46,39,45,80 1172 | 2021-04-19,45,51,44,50,90 1173 | 2021-04-20,50,56,49,55,80 1174 | 2021-04-21,55,61,54,60,70 1175 | 2021-04-22,60,66,59,65,80 1176 | 2021-04-23,65,71,64,70,90 1177 | 2021-04-24,70,76,69,75,100 1178 | 2021-04-25,75,81,74,80,110 1179 | 2021-04-26,80,86,79,85,120 1180 | 2021-04-27,85,91,84,90,130 1181 | 2021-04-28,90,102,89,101,140 1182 | 2021-04-29,101,102,100,101,150 1183 | 2021-04-30,101,102,100,90,150 1184 | 2021-05-01,90,91,84,85,140 1185 | 2021-05-02,85,86,79,80,130 1186 | 2021-05-03,80,81,74,75,120 1187 | 2021-05-04,75,76,69,70,110 1188 | 2021-05-05,70,71,64,65,100 1189 | 2021-05-06,65,66,59,60,90 1190 | 2021-05-07,60,61,54,55,80 1191 | 2021-05-08,55,56,49,50,75 1192 | 2021-05-09,50,51,44,45,70 1193 | 2021-05-10,45,46,39,40,60 1194 | 2021-05-11,40,41,34,35,50 1195 | 2021-05-12,35,36,29,30,40 1196 | 2021-05-13,30,31,24,25,30 1197 | 2021-05-14,25,26,19,20,20 1198 | 2021-05-15,20,21,14,15,10 1199 | 2021-05-16,15,16,9,10,10 1200 | 2021-05-17,10,2,0.5,1,5 1201 | 2021-05-18,1,2,0.5,1,1 1202 | 2021-05-19,1,2,0.5,1,10 1203 | 2021-05-20,1,2,0.5,1,20 1204 | 2021-05-21,1,11,4,10,30 1205 | 2021-05-22,10,16,9,15,40 1206 | 2021-05-23,15,21,14,20,50 1207 | 2021-05-24,20,26,19,25,60 1208 | 2021-05-25,25,31,24,30,70 1209 | 2021-05-26,30,36,29,35,80 1210 | 2021-05-27,35,41,34,40,90 1211 | 2021-05-28,40,46,39,45,80 1212 | 2021-05-29,45,51,44,50,90 1213 | 2021-05-30,50,56,49,55,80 1214 | 2021-05-31,55,61,54,60,70 1215 | 2021-06-01,60,66,59,65,80 1216 | 2021-06-02,65,71,64,70,90 1217 | 2021-06-03,70,76,69,75,100 1218 | 2021-06-04,75,81,74,80,110 1219 | 2021-06-05,80,86,79,85,120 1220 | 2021-06-06,85,91,84,90,130 1221 | 2021-06-07,90,102,89,101,140 1222 | 2021-06-08,101,102,100,101,150 1223 | 2021-06-09,101,102,100,90,150 1224 | 2021-06-10,90,91,84,85,140 1225 | 2021-06-11,85,86,79,80,130 1226 | 2021-06-12,80,81,74,75,120 1227 | 2021-06-13,75,76,69,70,110 1228 | 2021-06-14,70,71,64,65,100 1229 | 2021-06-15,65,66,59,60,90 1230 | 2021-06-16,60,61,54,55,80 1231 | 2021-06-17,55,56,49,50,75 1232 | 2021-06-18,50,51,44,45,70 1233 | 2021-06-19,45,46,39,40,60 1234 | 2021-06-20,40,41,34,35,50 1235 | 2021-06-21,35,36,29,30,40 1236 | 2021-06-22,30,31,24,25,30 1237 | 2021-06-23,25,26,19,20,20 1238 | 2021-06-24,20,21,14,15,10 1239 | 2021-06-25,15,16,9,10,10 1240 | 2021-06-26,10,2,0.5,1,5 1241 | 2021-06-27,1,2,0.5,1,1 1242 | 2021-06-28,1,2,0.5,1,10 1243 | 2021-06-29,1,2,0.5,1,20 1244 | 2021-06-30,1,11,4,10,30 1245 | 2021-07-01,10,16,9,15,40 1246 | 2021-07-02,15,21,14,20,50 1247 | 2021-07-03,20,26,19,25,60 1248 | 2021-07-04,25,31,24,30,70 1249 | 2021-07-05,30,36,29,35,80 1250 | 2021-07-06,35,41,34,40,90 1251 | 2021-07-07,40,46,39,45,80 1252 | 2021-07-08,45,51,44,50,90 1253 | 2021-07-09,50,56,49,55,80 1254 | 2021-07-10,55,61,54,60,70 1255 | 2021-07-11,60,66,59,65,80 1256 | 2021-07-12,65,71,64,70,90 1257 | 2021-07-13,70,76,69,75,100 1258 | 2021-07-14,75,81,74,80,110 1259 | 2021-07-15,80,86,79,85,120 1260 | 2021-07-16,85,91,84,90,130 1261 | 2021-07-17,90,102,89,101,140 1262 | 2021-07-18,101,102,100,101,150 1263 | 2021-07-19,101,102,100,90,150 1264 | 2021-07-20,90,91,84,85,140 1265 | 2021-07-21,85,86,79,80,130 1266 | 2021-07-22,80,81,74,75,120 1267 | 2021-07-23,75,76,69,70,110 1268 | 2021-07-24,70,71,64,65,100 1269 | 2021-07-25,65,66,59,60,90 1270 | 2021-07-26,60,61,54,55,80 1271 | 2021-07-27,55,56,49,50,75 1272 | 2021-07-28,50,51,44,45,70 1273 | 2021-07-29,45,46,39,40,60 1274 | 2021-07-30,40,41,34,35,50 1275 | 2021-07-31,35,36,29,30,40 1276 | 2021-08-01,30,31,24,25,30 1277 | 2021-08-02,25,26,19,20,20 1278 | 2021-08-03,20,21,14,15,10 1279 | 2021-08-04,15,16,9,10,10 1280 | 2021-08-05,10,2,0.5,1,5 1281 | 2021-08-06,1,2,0.5,1,1 1282 | 2021-08-07,1,2,0.5,1,10 1283 | 2021-08-08,1,2,0.5,1,20 1284 | 2021-08-09,1,11,4,10,30 1285 | 2021-08-10,10,16,9,15,40 1286 | 2021-08-11,15,21,14,20,50 1287 | 2021-08-12,20,26,19,25,60 1288 | 2021-08-13,25,31,24,30,70 1289 | 2021-08-14,30,36,29,35,80 1290 | 2021-08-15,35,41,34,40,90 1291 | 2021-08-16,40,46,39,45,80 1292 | 2021-08-17,45,51,44,50,90 1293 | 2021-08-18,50,56,49,55,80 1294 | 2021-08-19,55,61,54,60,70 1295 | 2021-08-20,60,66,59,65,80 1296 | 2021-08-21,65,71,64,70,90 1297 | 2021-08-22,70,76,69,75,100 1298 | 2021-08-23,75,81,74,80,110 1299 | 2021-08-24,80,86,79,85,120 1300 | 2021-08-25,85,91,84,90,130 1301 | 2021-08-26,90,102,89,101,140 1302 | 2021-08-27,101,102,100,101,150 1303 | 2021-08-28,101,102,100,90,150 1304 | 2021-08-29,90,91,84,85,140 1305 | 2021-08-30,85,86,79,80,130 1306 | 2021-08-31,80,81,74,75,120 1307 | 2021-09-01,75,76,69,70,110 1308 | 2021-09-02,70,71,64,65,100 1309 | 2021-09-03,65,66,59,60,90 1310 | 2021-09-04,60,61,54,55,80 1311 | 2021-09-05,55,56,49,50,75 1312 | 2021-09-06,50,51,44,45,70 1313 | 2021-09-07,45,46,39,40,60 1314 | 2021-09-08,40,41,34,35,50 1315 | 2021-09-09,35,36,29,30,40 1316 | 2021-09-10,30,31,24,25,30 1317 | 2021-09-11,25,26,19,20,20 1318 | 2021-09-12,20,21,14,15,10 1319 | 2021-09-13,15,16,9,10,10 1320 | 2021-09-14,10,2,0.5,1,5 1321 | 2021-09-15,1,2,0.5,1,1 1322 | 2021-09-16,1,2,0.5,1,10 1323 | 2021-09-17,1,2,0.5,1,20 1324 | 2021-09-18,1,11,4,10,30 1325 | 2021-09-19,10,16,9,15,40 1326 | 2021-09-20,15,21,14,20,50 1327 | 2021-09-21,20,26,19,25,60 1328 | 2021-09-22,25,31,24,30,70 1329 | 2021-09-23,30,36,29,35,80 1330 | 2021-09-24,35,41,34,40,90 1331 | 2021-09-25,40,46,39,45,80 1332 | 2021-09-26,45,51,44,50,90 1333 | 2021-09-27,50,56,49,55,80 1334 | 2021-09-28,55,61,54,60,70 1335 | 2021-09-29,60,66,59,65,80 1336 | 2021-09-30,65,71,64,70,90 1337 | 2021-10-01,70,76,69,75,100 1338 | 2021-10-02,75,81,74,80,110 1339 | 2021-10-03,80,86,79,85,120 1340 | 2021-10-04,85,91,84,90,130 1341 | 2021-10-05,90,102,89,101,140 1342 | 2021-10-06,101,102,100,101,150 1343 | 2021-10-07,101,102,100,90,150 1344 | 2021-10-08,90,91,84,85,140 1345 | 2021-10-09,85,86,79,80,130 1346 | 2021-10-10,80,81,74,75,120 1347 | 2021-10-11,75,76,69,70,110 1348 | 2021-10-12,70,71,64,65,100 1349 | 2021-10-13,65,66,59,60,90 1350 | 2021-10-14,60,61,54,55,80 1351 | 2021-10-15,55,56,49,50,75 1352 | 2021-10-16,50,51,44,45,70 1353 | 2021-10-17,45,46,39,40,60 1354 | 2021-10-18,40,41,34,35,50 1355 | 2021-10-19,35,36,29,30,40 1356 | 2021-10-20,30,31,24,25,30 1357 | 2021-10-21,25,26,19,20,20 1358 | 2021-10-22,20,21,14,15,10 1359 | 2021-10-23,15,16,9,10,10 1360 | 2021-10-24,10,2,0.5,1,5 1361 | 2021-10-25,1,2,0.5,1,1 1362 | 2021-10-26,1,2,0.5,1,10 1363 | 2021-10-27,1,2,0.5,1,20 1364 | 2021-10-28,1,11,4,10,30 1365 | 2021-10-29,10,16,9,15,40 1366 | 2021-10-30,15,21,14,20,50 1367 | 2021-10-31,20,26,19,25,60 1368 | 2021-11-01,25,31,24,30,70 1369 | 2021-11-02,30,36,29,35,80 1370 | 2021-11-03,35,41,34,40,90 1371 | 2021-11-04,40,46,39,45,80 1372 | 2021-11-05,45,51,44,50,90 1373 | 2021-11-06,50,56,49,55,80 1374 | 2021-11-07,55,61,54,60,70 1375 | 2021-11-08,60,66,59,65,80 1376 | 2021-11-09,65,71,64,70,90 1377 | 2021-11-10,70,76,69,75,100 1378 | 2021-11-11,75,81,74,80,110 1379 | 2021-11-12,80,86,79,85,120 1380 | 2021-11-13,85,91,84,90,130 1381 | 2021-11-14,90,102,89,101,140 1382 | 2021-11-15,101,102,100,101,150 1383 | 2021-11-16,101,102,100,90,150 1384 | 2021-11-17,90,91,84,85,140 1385 | 2021-11-18,85,86,79,80,130 1386 | 2021-11-19,80,81,74,75,120 1387 | 2021-11-20,75,76,69,70,110 1388 | 2021-11-21,70,71,64,65,100 1389 | 2021-11-22,65,66,59,60,90 1390 | 2021-11-23,60,61,54,55,80 1391 | 2021-11-24,55,56,49,50,75 1392 | 2021-11-25,50,51,44,45,70 1393 | 2021-11-26,45,46,39,40,60 1394 | 2021-11-27,40,41,34,35,50 1395 | 2021-11-28,35,36,29,30,40 1396 | 2021-11-29,30,31,24,25,30 1397 | 2021-11-30,25,26,19,20,20 1398 | 2021-12-01,20,21,14,15,10 1399 | 2021-12-02,15,16,9,10,10 1400 | 2021-12-03,10,2,0.5,1,5 1401 | 2021-12-04,1,2,0.5,1,1 1402 | 2021-12-05,1,2,0.5,1,10 1403 | 2021-12-06,1,2,0.5,1,20 1404 | 2021-12-07,1,11,4,10,30 1405 | 2021-12-08,10,16,9,15,40 1406 | 2021-12-09,15,21,14,20,50 1407 | 2021-12-10,20,26,19,25,60 1408 | 2021-12-11,25,31,24,30,70 1409 | 2021-12-12,30,36,29,35,80 1410 | 2021-12-13,35,41,34,40,90 1411 | 2021-12-14,40,46,39,45,80 1412 | 2021-12-15,45,51,44,50,90 1413 | 2021-12-16,50,56,49,55,80 1414 | 2021-12-17,55,61,54,60,70 1415 | 2021-12-18,60,66,59,65,80 1416 | 2021-12-19,65,71,64,70,90 1417 | 2021-12-20,70,76,69,75,100 1418 | 2021-12-21,75,81,74,80,110 1419 | 2021-12-22,80,86,79,85,120 1420 | 2021-12-23,85,91,84,90,130 1421 | 2021-12-24,90,102,89,101,140 1422 | 2021-12-25,101,102,100,101,150 1423 | 2021-12-26,101,102,100,90,150 1424 | 2021-12-27,90,91,84,85,140 1425 | 2021-12-28,85,86,79,80,130 1426 | 2021-12-29,80,81,74,75,120 1427 | 2021-12-30,75,76,69,70,110 1428 | 2021-12-31,70,71,64,65,100 1429 | 2022-01-01,65,66,59,60,90 1430 | 2022-01-02,60,61,54,55,80 1431 | 2022-01-03,55,56,49,50,75 1432 | 2022-01-04,50,51,44,45,70 1433 | 2022-01-05,45,46,39,40,60 1434 | 2022-01-06,40,41,34,35,50 1435 | 2022-01-07,35,36,29,30,40 1436 | 2022-01-08,30,31,24,25,30 1437 | 2022-01-09,25,26,19,20,20 1438 | 2022-01-10,20,21,14,15,10 1439 | 2022-01-11,15,16,9,10,10 1440 | 2022-01-12,10,2,0.5,1,5 1441 | 2022-01-13,1,2,0.5,1,1 1442 | 2022-01-14,1,2,0.5,1,10 1443 | 2022-01-15,1,2,0.5,1,20 1444 | 2022-01-16,1,11,4,10,30 1445 | 2022-01-17,10,16,9,15,40 1446 | 2022-01-18,15,21,14,20,50 1447 | 2022-01-19,20,26,19,25,60 1448 | 2022-01-20,25,31,24,30,70 1449 | 2022-01-21,30,36,29,35,80 1450 | 2022-01-22,35,41,34,40,90 1451 | 2022-01-23,40,46,39,45,80 1452 | 2022-01-24,45,51,44,50,90 1453 | 2022-01-25,50,56,49,55,80 1454 | 2022-01-26,55,61,54,60,70 1455 | 2022-01-27,60,66,59,65,80 1456 | 2022-01-28,65,71,64,70,90 1457 | 2022-01-29,70,76,69,75,100 1458 | 2022-01-30,75,81,74,80,110 1459 | 2022-01-31,80,86,79,85,120 1460 | 2022-02-01,85,91,84,90,130 1461 | 2022-02-02,90,102,89,101,140 1462 | 2022-02-03,101,102,100,101,150 1463 | 2022-02-04,101,102,100,90,150 1464 | 2022-02-05,90,91,84,85,140 1465 | 2022-02-06,85,86,79,80,130 1466 | 2022-02-07,80,81,74,75,120 1467 | 2022-02-08,75,76,69,70,110 1468 | 2022-02-09,70,71,64,65,100 1469 | 2022-02-10,65,66,59,60,90 1470 | 2022-02-11,60,61,54,55,80 1471 | 2022-02-12,55,56,49,50,75 1472 | 2022-02-13,50,51,44,45,70 1473 | 2022-02-14,45,46,39,40,60 1474 | 2022-02-15,40,41,34,35,50 1475 | 2022-02-16,35,36,29,30,40 1476 | 2022-02-17,30,31,24,25,30 1477 | 2022-02-18,25,26,19,20,20 1478 | 2022-02-19,20,21,14,15,10 1479 | 2022-02-20,15,16,9,10,10 1480 | 2022-02-21,10,2,0.5,1,5 1481 | 2022-02-22,1,2,0.5,1,1 1482 | 2022-02-23,1,2,0.5,1,10 1483 | 2022-02-24,1,2,0.5,1,20 1484 | 2022-02-25,1,11,4,10,30 1485 | 2022-02-26,10,16,9,15,40 1486 | 2022-02-27,15,21,14,20,50 1487 | 2022-02-28,20,26,19,25,60 1488 | 2022-03-01,25,31,24,30,70 1489 | 2022-03-02,30,36,29,35,80 1490 | 2022-03-03,35,41,34,40,90 1491 | 2022-03-04,40,46,39,45,80 1492 | 2022-03-05,45,51,44,50,90 1493 | 2022-03-06,50,56,49,55,80 1494 | 2022-03-07,55,61,54,60,70 1495 | 2022-03-08,60,66,59,65,80 1496 | 2022-03-09,65,71,64,70,90 1497 | 2022-03-10,70,76,69,75,100 1498 | 2022-03-11,75,81,74,80,110 1499 | 2022-03-12,80,86,79,85,120 1500 | 2022-03-13,85,91,84,90,130 1501 | 2022-03-14,90,102,89,101,140 1502 | 2022-03-15,101,102,100,101,150 1503 | 2022-03-16,101,102,100,90,150 1504 | 2022-03-17,90,91,84,85,140 1505 | 2022-03-18,85,86,79,80,130 1506 | 2022-03-19,80,81,74,75,120 1507 | 2022-03-20,75,76,69,70,110 1508 | 2022-03-21,70,71,64,65,100 1509 | 2022-03-22,65,66,59,60,90 1510 | 2022-03-23,60,61,54,55,80 1511 | 2022-03-24,55,56,49,50,75 1512 | 2022-03-25,50,51,44,45,70 1513 | 2022-03-26,45,46,39,40,60 1514 | 2022-03-27,40,41,34,35,50 1515 | 2022-03-28,35,36,29,30,40 1516 | 2022-03-29,30,31,24,25,30 1517 | 2022-03-30,25,26,19,20,20 1518 | 2022-03-31,20,21,14,15,10 1519 | 2022-04-01,15,16,9,10,10 1520 | 2022-04-02,10,2,0.5,1,5 1521 | 2022-04-03,1,2,0.5,1,1 1522 | 2022-04-04,1,2,0.5,1,10 1523 | 2022-04-05,1,2,0.5,1,20 1524 | 2022-04-06,1,11,4,10,30 1525 | 2022-04-07,10,16,9,15,40 1526 | 2022-04-08,15,21,14,20,50 1527 | 2022-04-09,20,26,19,25,60 1528 | 2022-04-10,25,31,24,30,70 1529 | 2022-04-11,30,36,29,35,80 1530 | 2022-04-12,35,41,34,40,90 1531 | 2022-04-13,40,46,39,45,80 1532 | 2022-04-14,45,51,44,50,90 1533 | 2022-04-15,50,56,49,55,80 1534 | 2022-04-16,55,61,54,60,70 1535 | 2022-04-17,60,66,59,65,80 1536 | 2022-04-18,65,71,64,70,90 1537 | 2022-04-19,70,76,69,75,100 1538 | 2022-04-20,75,81,74,80,110 1539 | 2022-04-21,80,86,79,85,120 1540 | 2022-04-22,85,91,84,90,130 1541 | 2022-04-23,90,102,89,101,140 1542 | 2022-04-24,101,102,100,101,150 1543 | 2022-04-25,101,102,100,90,150 1544 | 2022-04-26,90,91,84,85,140 1545 | 2022-04-27,85,86,79,80,130 1546 | 2022-04-28,80,81,74,75,120 1547 | 2022-04-29,75,76,69,70,110 1548 | 2022-04-30,70,71,64,65,100 1549 | 2022-05-01,65,66,59,60,90 1550 | 2022-05-02,60,61,54,55,80 1551 | 2022-05-03,55,56,49,50,75 1552 | 2022-05-04,50,51,44,45,70 1553 | 2022-05-05,45,46,39,40,60 1554 | 2022-05-06,40,41,34,35,50 1555 | 2022-05-07,35,36,29,30,40 1556 | 2022-05-08,30,31,24,25,30 1557 | 2022-05-09,25,26,19,20,20 1558 | 2022-05-10,20,21,14,15,10 1559 | 2022-05-11,15,16,9,10,10 1560 | 2022-05-12,10,2,0.5,1,5 1561 | 2022-05-13,1,2,0.5,1,1 1562 | 2022-05-14,1,2,0.5,1,10 1563 | 2022-05-15,1,2,0.5,1,20 1564 | 2022-05-16,1,11,4,10,30 1565 | 2022-05-17,10,16,9,15,40 1566 | 2022-05-18,15,21,14,20,50 1567 | 2022-05-19,20,26,19,25,60 1568 | 2022-05-20,25,31,24,30,70 1569 | 2022-05-21,30,36,29,35,80 1570 | 2022-05-22,35,41,34,40,90 1571 | 2022-05-23,40,46,39,45,80 1572 | 2022-05-24,45,51,44,50,90 1573 | 2022-05-25,50,56,49,55,80 1574 | 2022-05-26,55,61,54,60,70 1575 | 2022-05-27,60,66,59,65,80 1576 | 2022-05-28,65,71,64,70,90 1577 | 2022-05-29,70,76,69,75,100 1578 | 2022-05-30,75,81,74,80,110 1579 | 2022-05-31,80,86,79,85,120 1580 | 2022-06-01,85,91,84,90,130 1581 | 2022-06-02,90,102,89,101,140 1582 | 2022-06-03,101,102,100,101,150 1583 | 2022-06-04,101,102,100,90,150 1584 | 2022-06-05,90,91,84,85,140 1585 | 2022-06-06,85,86,79,80,130 1586 | 2022-06-07,80,81,74,75,120 1587 | 2022-06-08,75,76,69,70,110 1588 | 2022-06-09,70,71,64,65,100 1589 | 2022-06-10,65,66,59,60,90 1590 | 2022-06-11,60,61,54,55,80 1591 | 2022-06-12,55,56,49,50,75 1592 | 2022-06-13,50,51,44,45,70 1593 | 2022-06-14,45,46,39,40,60 1594 | 2022-06-15,40,41,34,35,50 1595 | 2022-06-16,35,36,29,30,40 1596 | 2022-06-17,30,31,24,25,30 1597 | 2022-06-18,25,26,19,20,20 1598 | 2022-06-19,20,21,14,15,10 1599 | 2022-06-20,15,16,9,10,10 1600 | 2022-06-21,10,2,0.5,1,5 1601 | 2022-06-22,1,2,0.5,1,1 1602 | 2022-06-23,1,2,0.5,1,10 1603 | 2022-06-24,1,2,0.5,1,20 1604 | 2022-06-25,1,11,4,10,30 1605 | 2022-06-26,10,16,9,15,40 1606 | 2022-06-27,15,21,14,20,50 1607 | 2022-06-28,20,26,19,25,60 1608 | 2022-06-29,25,31,24,30,70 1609 | 2022-06-30,30,36,29,35,80 1610 | 2022-07-01,35,41,34,40,90 1611 | 2022-07-02,40,46,39,45,80 1612 | 2022-07-03,45,51,44,50,90 1613 | 2022-07-04,50,56,49,55,80 1614 | 2022-07-05,55,61,54,60,70 1615 | 2022-07-06,60,66,59,65,80 1616 | 2022-07-07,65,71,64,70,90 1617 | 2022-07-08,70,76,69,75,100 1618 | 2022-07-09,75,81,74,80,110 1619 | 2022-07-10,80,86,79,85,120 1620 | 2022-07-11,85,91,84,90,130 1621 | 2022-07-12,90,102,89,101,140 1622 | 2022-07-13,101,102,100,101,150 1623 | 2022-07-14,101,102,100,90,150 1624 | 2022-07-15,90,91,84,85,140 1625 | 2022-07-16,85,86,79,80,130 1626 | 2022-07-17,80,81,74,75,120 1627 | 2022-07-18,75,76,69,70,110 1628 | 2022-07-19,70,71,64,65,100 1629 | 2022-07-20,65,66,59,60,90 1630 | 2022-07-21,60,61,54,55,80 1631 | 2022-07-22,55,56,49,50,75 1632 | 2022-07-23,50,51,44,45,70 1633 | 2022-07-24,45,46,39,40,60 1634 | 2022-07-25,40,41,34,35,50 1635 | 2022-07-26,35,36,29,30,40 1636 | 2022-07-27,30,31,24,25,30 1637 | 2022-07-28,25,26,19,20,20 1638 | 2022-07-29,20,21,14,15,10 1639 | 2022-07-30,15,16,9,10,10 1640 | 2022-07-31,10,2,0.5,1,5 1641 | 2022-08-01,1,2,0.5,1,1 1642 | 2022-08-02,1,2,0.5,1,10 1643 | 2022-08-03,1,2,0.5,1,20 1644 | 2022-08-04,1,11,4,10,30 1645 | 2022-08-05,10,16,9,15,40 1646 | 2022-08-06,15,21,14,20,50 1647 | 2022-08-07,20,26,19,25,60 1648 | 2022-08-08,25,31,24,30,70 1649 | 2022-08-09,30,36,29,35,80 1650 | 2022-08-10,35,41,34,40,90 1651 | 2022-08-11,40,46,39,45,80 1652 | 2022-08-12,45,51,44,50,90 1653 | 2022-08-13,50,56,49,55,80 1654 | 2022-08-14,55,61,54,60,70 1655 | 2022-08-15,60,66,59,65,80 1656 | 2022-08-16,65,71,64,70,90 1657 | 2022-08-17,70,76,69,75,100 1658 | 2022-08-18,75,81,74,80,110 1659 | 2022-08-19,80,86,79,85,120 1660 | 2022-08-20,85,91,84,90,130 1661 | 2022-08-21,90,102,89,101,140 1662 | 2022-08-22,101,102,100,101,150 1663 | 2022-08-23,101,102,100,90,150 1664 | 2022-08-24,90,91,84,85,140 1665 | 2022-08-25,85,86,79,80,130 1666 | 2022-08-26,80,81,74,75,120 1667 | 2022-08-27,75,76,69,70,110 1668 | 2022-08-28,70,71,64,65,100 1669 | 2022-08-29,65,66,59,60,90 1670 | 2022-08-30,60,61,54,55,80 1671 | 2022-08-31,55,56,49,50,75 1672 | 2022-09-01,50,51,44,45,70 1673 | 2022-09-02,45,46,39,40,60 1674 | 2022-09-03,40,41,34,35,50 1675 | 2022-09-04,35,36,29,30,40 1676 | 2022-09-05,30,31,24,25,30 1677 | 2022-09-06,25,26,19,20,20 1678 | 2022-09-07,20,21,14,15,10 1679 | 2022-09-08,15,16,9,10,10 1680 | 2022-09-09,10,2,0.5,1,5 1681 | 2022-09-10,1,2,0.5,1,1 1682 | 2022-09-11,1,2,0.5,1,10 1683 | 2022-09-12,1,2,0.5,1,20 1684 | 2022-09-13,1,11,4,10,30 1685 | 2022-09-14,10,16,9,15,40 1686 | 2022-09-15,15,21,14,20,50 1687 | 2022-09-16,20,26,19,25,60 1688 | 2022-09-17,25,31,24,30,70 1689 | 2022-09-18,30,36,29,35,80 1690 | 2022-09-19,35,41,34,40,90 1691 | 2022-09-20,40,46,39,45,80 1692 | 2022-09-21,45,51,44,50,90 1693 | 2022-09-22,50,56,49,55,80 1694 | 2022-09-23,55,61,54,60,70 1695 | 2022-09-24,60,66,59,65,80 1696 | 2022-09-25,65,71,64,70,90 1697 | 2022-09-26,70,76,69,75,100 1698 | 2022-09-27,75,81,74,80,110 1699 | 2022-09-28,80,86,79,85,120 1700 | 2022-09-29,85,91,84,90,130 1701 | 2022-09-30,90,102,89,101,140 1702 | 2022-10-01,101,102,100,101,150 1703 | 2022-10-02,101,102,100,90,150 1704 | 2022-10-03,90,91,84,85,140 1705 | 2022-10-04,85,86,79,80,130 1706 | 2022-10-05,80,81,74,75,120 1707 | 2022-10-06,75,76,69,70,110 1708 | 2022-10-07,70,71,64,65,100 1709 | 2022-10-08,65,66,59,60,90 1710 | 2022-10-09,60,61,54,55,80 1711 | 2022-10-10,55,56,49,50,75 1712 | 2022-10-11,50,51,44,45,70 1713 | 2022-10-12,45,46,39,40,60 1714 | 2022-10-13,40,41,34,35,50 1715 | 2022-10-14,35,36,29,30,40 1716 | 2022-10-15,30,31,24,25,30 1717 | 2022-10-16,25,26,19,20,20 1718 | 2022-10-17,20,21,14,15,10 1719 | 2022-10-18,15,16,9,10,10 1720 | 2022-10-19,10,2,0.5,1,5 1721 | 2022-10-20,1,2,0.5,1,1 1722 | 2022-10-21,1,2,0.5,1,10 1723 | 2022-10-22,1,2,0.5,1,20 1724 | 2022-10-23,1,11,4,10,30 1725 | 2022-10-24,10,16,9,15,40 1726 | 2022-10-25,15,21,14,20,50 1727 | 2022-10-26,20,26,19,25,60 1728 | 2022-10-27,25,31,24,30,70 1729 | 2022-10-28,30,36,29,35,80 1730 | 2022-10-29,35,41,34,40,90 1731 | 2022-10-30,40,46,39,45,80 1732 | 2022-10-31,45,51,44,50,90 1733 | 2022-11-01,50,56,49,55,80 1734 | 2022-11-02,55,61,54,60,70 1735 | 2022-11-03,60,66,59,65,80 1736 | 2022-11-04,65,71,64,70,90 1737 | 2022-11-05,70,76,69,75,100 1738 | 2022-11-06,75,81,74,80,110 1739 | 2022-11-07,80,86,79,85,120 1740 | 2022-11-08,85,91,84,90,130 1741 | 2022-11-09,90,102,89,101,140 1742 | 2022-11-10,101,102,100,101,150 1743 | 2022-11-11,101,102,100,90,150 1744 | 2022-11-12,90,91,84,85,140 1745 | 2022-11-13,85,86,79,80,130 1746 | 2022-11-14,80,81,74,75,120 1747 | 2022-11-15,75,76,69,70,110 1748 | 2022-11-16,70,71,64,65,100 1749 | 2022-11-17,65,66,59,60,90 1750 | 2022-11-18,60,61,54,55,80 1751 | 2022-11-19,55,56,49,50,75 1752 | 2022-11-20,50,51,44,45,70 1753 | 2022-11-21,45,46,39,40,60 1754 | 2022-11-22,40,41,34,35,50 1755 | 2022-11-23,35,36,29,30,40 1756 | 2022-11-24,30,31,24,25,30 1757 | 2022-11-25,25,26,19,20,20 1758 | 2022-11-26,20,21,14,15,10 1759 | 2022-11-27,15,16,9,10,10 1760 | 2022-11-28,10,2,0.5,1,5 1761 | 2022-11-29,1,2,0.5,1,1 1762 | 2022-11-30,1,2,0.5,1,10 1763 | 2022-12-01,1,2,0.5,1,20 1764 | 2022-12-02,1,11,4,10,30 1765 | 2022-12-03,10,16,9,15,40 1766 | 2022-12-04,15,21,14,20,50 1767 | 2022-12-05,20,26,19,25,60 1768 | 2022-12-06,25,31,24,30,70 1769 | 2022-12-07,30,36,29,35,80 1770 | 2022-12-08,35,41,34,40,90 1771 | 2022-12-09,40,46,39,45,80 1772 | 2022-12-10,45,51,44,50,90 1773 | 2022-12-11,50,56,49,55,80 1774 | 2022-12-12,55,61,54,60,70 1775 | 2022-12-13,60,66,59,65,80 1776 | 2022-12-14,65,71,64,70,90 1777 | 2022-12-15,70,76,69,75,100 1778 | 2022-12-16,75,81,74,80,110 1779 | 2022-12-17,80,86,79,85,120 1780 | 2022-12-18,85,91,84,90,130 1781 | 2022-12-19,90,102,89,101,140 1782 | 2022-12-20,101,102,100,101,150 1783 | 2022-12-21,101,102,100,90,150 1784 | 2022-12-22,90,91,84,85,140 1785 | 2022-12-23,85,86,79,80,130 1786 | 2022-12-24,80,81,74,75,120 1787 | 2022-12-25,75,76,69,70,110 1788 | 2022-12-26,70,71,64,65,100 1789 | 2022-12-27,65,66,59,60,90 1790 | 2022-12-28,60,61,54,55,80 1791 | 2022-12-29,55,56,49,50,75 1792 | 2022-12-30,50,51,44,45,70 1793 | 2022-12-31,45,46,39,40,60 1794 | 2023-01-01,40,41,34,35,50 1795 | 2023-01-02,35,36,29,30,40 1796 | 2023-01-03,30,31,24,25,30 1797 | 2023-01-04,25,26,19,20,20 1798 | 2023-01-05,20,21,14,15,10 1799 | 2023-01-06,15,16,9,10,10 1800 | 2023-01-07,10,2,0.5,1,5 1801 | 2023-01-08,1,2,0.5,1,1 1802 | -------------------------------------------------------------------------------- /omega_ui/tests/test_backtest.py: -------------------------------------------------------------------------------- 1 | import logging 2 | import os 3 | import pandas as pd 4 | 5 | import backtrader as bt 6 | 7 | import omega_ui.backtest as ob 8 | 9 | 10 | class StatsTest(bt.Strategy): 11 | """ 12 | Test Strategy to check some statistics 13 | 14 | This strategy should be used with TestData.csv 15 | 16 | TestData.csv will rise from 1 dollar to 101 dollars over 20 bars then fall 17 | from 101 to 1 over the next 20 bars. (40 bar round trip). The pattern will 18 | repeat in a loop until the end of the data set. 19 | 20 | The first two bars close/open at 1 dollar to ease testing with market orders 21 | """ 22 | def __init__(self): 23 | self.logger = logging.getLogger(__name__) 24 | self.date = self.datas[0].datetime.date 25 | self.dataclose = self.datas[0].close 26 | self.buy_bars = [1, 21, 41, 61] 27 | self.close_bars = [20, 40, 60, 80] 28 | self.sell_bars = [] 29 | self.log(logging.INFO, 'Strategy Initialized!') 30 | 31 | def next(self): 32 | bar = len(self.data) 33 | if bar in self.buy_bars: 34 | print('Buying On Bar {} Price = {}'.format(bar, self.dataclose[0])) 35 | self.buy(stake=1) 36 | self.log(logging.INFO, 'Buy @ {}'.format(self.dataclose[0])) 37 | elif bar in self.close_bars: 38 | print('Closing On Bar {} Price = {}'.format(bar, self.dataclose[0])) 39 | self.close(stake=1) 40 | self.log(logging.INFO, 'Exit @ {}'.format(self.dataclose[0])) 41 | else: 42 | pass 43 | 44 | def log(self, level, message): 45 | self.logger.log(level, '{} - {}'.format(self.date(0), message)) 46 | 47 | 48 | class TestStrategy(bt.Strategy): 49 | """Test Strategy to check data is loaded correctly""" 50 | params = (('param1', 10), ('param2', 20)) 51 | 52 | def __init__(self): 53 | self.logger = logging.getLogger(__name__) 54 | 55 | self.date = self.datas[0].datetime.date 56 | self.dataclose = self.datas[0].close 57 | self.order = None # To keep track of pending orders 58 | self.log(logging.INFO, 'Strategy Initialized!') 59 | self.log(logging.INFO, 'Param1: {} - Param2: {}'.format(self.p.param1, self.p.param2)) 60 | 61 | def log(self, level, message): 62 | self.logger.log(level, '{} - {}'.format(self.date(0), message)) 63 | 64 | def next(self): 65 | if self.order: 66 | return 67 | # Debugging 68 | self.log(logging.DEBUG, 'Close price: {}'.format(self.dataclose[0])) 69 | 70 | # Current close less than previous close 71 | if self.dataclose[0] < self.dataclose[-1]: 72 | # Previous close less than the previous close 73 | if self.dataclose[-1] < self.dataclose[-2]: 74 | self.log(logging.INFO, 'Buy @ {}'.format(self.dataclose[0])) 75 | self.order_target_percent(target=0.25) 76 | # Current close greater than previous close 77 | if self.dataclose[0] > self.dataclose[-1]: 78 | # Previous close greater than the previous close 79 | if self.dataclose[-1] > self.dataclose[-2]: 80 | self.log(logging.INFO, 'Sell @ {}'.format(self.dataclose[0])) 81 | self.order_target_percent(target=-0.25) 82 | 83 | 84 | class ExampleBacktest(ob.Backtest): 85 | def get_symbols(self): 86 | return ['AAPL', 'MSFT', 'TestData'] 87 | 88 | def get_parameters(self, strategy, symbols): 89 | return {'param1': 10, 'param2': 20} 90 | 91 | def run(self, symbols, cash, strategy, **params): 92 | path_dir = os.path.dirname(os.path.realpath(__file__)) 93 | # Setup Cerebro 94 | cerebro = ob.Backtest.setup_cerebro(cash) 95 | # Add Data 96 | for s in symbols: 97 | df = pd.read_csv(os.path.join(path_dir, '{}.csv'.format(s)), parse_dates=True, index_col=0) 98 | data = bt.feeds.PandasData(dataname=df) 99 | cerebro.adddata(data) 100 | # Strategy 101 | cerebro.addstrategy(strategy, **params) 102 | # Backtest 103 | results = cerebro.run() 104 | pnl = cerebro.broker.getvalue() - cash 105 | 106 | return pnl, results[0] 107 | -------------------------------------------------------------------------------- /omega_ui/tests/test_tearsheet.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": null, 6 | "metadata": {}, 7 | "outputs": [], 8 | "source": [ 9 | "import importlib as ilib\n", 10 | "import logging\n", 11 | "import plotly.offline as plo\n", 12 | "import time" 13 | ] 14 | }, 15 | { 16 | "cell_type": "code", 17 | "execution_count": null, 18 | "metadata": {}, 19 | "outputs": [], 20 | "source": [ 21 | "import omega_ui.backtest as ob\n", 22 | "import omega_ui.tearsheet as ots\n", 23 | "import omega_ui.tests.test_backtest as ottb\n", 24 | "\n", 25 | "plo.init_notebook_mode(connected=True)" 26 | ] 27 | }, 28 | { 29 | "cell_type": "code", 30 | "execution_count": null, 31 | "metadata": {}, 32 | "outputs": [], 33 | "source": [ 34 | "# Disable logging output\n", 35 | "log = logging.getLogger()\n", 36 | "log.setLevel(logging.WARNING)" 37 | ] 38 | }, 39 | { 40 | "cell_type": "markdown", 41 | "metadata": {}, 42 | "source": [ 43 | "# Backtest" 44 | ] 45 | }, 46 | { 47 | "cell_type": "code", 48 | "execution_count": null, 49 | "metadata": {}, 50 | "outputs": [], 51 | "source": [ 52 | "#ilib.reload(ort)\n", 53 | "start = time.time()\n", 54 | "btm = ottb.ExampleBacktest()\n", 55 | "# Parameters\n", 56 | "symbols = ['TestData']\n", 57 | "cash = 100000.0\n", 58 | "# Strategy\n", 59 | "strategy = ottb.StatsTest\n", 60 | "pnl, results = btm.run(symbols, cash, strategy)\n", 61 | "print('Total Profit: {:,.2f}'.format(pnl))\n", 62 | "print('Backtest - Execution time: {:.0f} seconds!'.format(time.time() - start))" 63 | ] 64 | }, 65 | { 66 | "cell_type": "markdown", 67 | "metadata": {}, 68 | "source": [ 69 | "## Tearsheet & Statistics" 70 | ] 71 | }, 72 | { 73 | "cell_type": "code", 74 | "execution_count": null, 75 | "metadata": {}, 76 | "outputs": [], 77 | "source": [ 78 | "ilib.reload(ots)\n", 79 | "ts = ots.create_tearsheet(results, symbols)" 80 | ] 81 | }, 82 | { 83 | "cell_type": "code", 84 | "execution_count": null, 85 | "metadata": {}, 86 | "outputs": [], 87 | "source": [ 88 | "plo.iplot(ts['fig'])" 89 | ] 90 | }, 91 | { 92 | "cell_type": "code", 93 | "execution_count": null, 94 | "metadata": {}, 95 | "outputs": [], 96 | "source": [ 97 | "ts['statistics']" 98 | ] 99 | } 100 | ], 101 | "metadata": { 102 | "kernelspec": { 103 | "display_name": "Python 3", 104 | "language": "python", 105 | "name": "python3" 106 | }, 107 | "language_info": { 108 | "codemirror_mode": { 109 | "name": "ipython", 110 | "version": 3 111 | }, 112 | "file_extension": ".py", 113 | "mimetype": "text/x-python", 114 | "name": "python", 115 | "nbconvert_exporter": "python", 116 | "pygments_lexer": "ipython3", 117 | "version": "3.6.0" 118 | } 119 | }, 120 | "nbformat": 4, 121 | "nbformat_minor": 2 122 | } 123 | -------------------------------------------------------------------------------- /omega_ui/users.json: -------------------------------------------------------------------------------- 1 | { 2 | "test": "test" 3 | } -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | import setuptools as st 2 | 3 | st.setup( 4 | name='omega_ui', 5 | version='0.0.8', 6 | packages=['omega_ui'], 7 | url='https://github.com/OmegaTrading/OmegaUI', 8 | license='GPL-3.0', 9 | author='OmegaUI', 10 | author_email='omegaui.trading@gmail.com', 11 | description='Front End for backtrader. Built with Plotly/Dash.', 12 | requires=[ 13 | 'backtrader', 'dash', 'dash_auth', 'dash_core_components', 'dash_html_components', 'dash_table_experiments', 14 | 'eventlet', 'empyrical', 'flask', 'flask_socketio', 'numpy', 'pandas', 'plotly', 'redis', 'rlog', 'yaml' 15 | ] 16 | ) 17 | --------------------------------------------------------------------------------