From 3229f17103a81c2ac7bf24f84f5055352f7a69ed Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 7 Oct 2019 16:11:18 +0200 Subject: [PATCH 01/81] v0.0.3 --- README.md | 46 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 568575772..2df63b4d0 100644 --- a/README.md +++ b/README.md @@ -103,6 +103,8 @@ Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-supera ## Before You Begin +This *Guetting Started Guide* will quickly show you the very basics of the app, so that you can rapidly see the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest. + The following recommendations may make your life easier using this pre-release in alpha stage: * We highly recommend you use Chrome to run the app, so that you have a similar environment as developers in case you need help. @@ -117,9 +119,9 @@ The following recommendations may make your life easier using this pre-release i **1. Downloads**: -Download the software package from the [latest software release](https://github.com/Superalgos/DesktopApp/releases/tag/v.0.0.2-alpha) (```Superalgos-Desktop-App.zip```) and extract the file in an accessible route (you will launch the app from these folders). +Download the software package from the [latest software release](https://github.com/Superalgos/DesktopApp/releases/tag/v.0.0.3-alpha) (```Superalgos-Desktop-App.zip```) and extract the file in an accessible route (you will launch the app from these folders). -Download historic market data from the [latest data release](https://github.com/Superalgos/DesktopApp/releases/tag/data.poloniex.btc.usdt.2019.09.24) (```Poloniex.BTC.USDT.Historic.Data.zip```) and extract the file inside the ```Superalgos Desktop App``` folder generated by the software ZIP package. +Download historic market data from the [latest data release](https://github.com/Superalgos/DesktopApp/releases/tag/data.poloniex.btc.usdt.2019.10.05) (```Poloniex.BTC.USDT.Historic.Data.zip```) and extract the file inside the ```Superalgos Desktop App``` folder generated by the software ZIP package. You should end up with the following folder structure: @@ -137,7 +139,7 @@ You should end up with the following folder structure: **1. Download the Software Package**: -Go to the [latest Superalgos Desktop App release](https://github.com/Superalgos/DesktopApp/releases/tag/v.0.0.2-alpha) and download ```Superalgos-Desktop-App.zip```. +Go to the [latest Superalgos Desktop App release](https://github.com/Superalgos/DesktopApp/releases/tag/v.0.0.3-alpha) and download ```Superalgos-Desktop-App.zip```. **2. Extract the ZIP file**: @@ -151,7 +153,7 @@ You may extract/unpack the files in any location of your drive, however, we reco For your convenience and [the reasons explained](https://superalgos.org/tools-superalgos-desktop-app.shtml#expectations) in the Superalgos Desktop App page on the website, we maintain a downloadable market-data file that you can download, so that you may be up and running as quickly as possible. -Go to the [latest Data release](https://github.com/Superalgos/DesktopApp/releases/tag/data.poloniex.btc.usdt.2019.09.24) and download ```Poloniex.BTC.USDT.Historic.Data.zip```. +Go to the [latest Data release](https://github.com/Superalgos/DesktopApp/releases/tag/data.poloniex.btc.usdt.2019.10.05) and download ```Poloniex.BTC.USDT.Historic.Data.zip```. The ZIP file includes highly-compressed complete historic BTC/USDT Ploniex market data. Expect decompression to take from 30 to 60 minutes, depending on your system. Once you have the historic data, the app will make sure the data stays up to date. @@ -215,11 +217,11 @@ If you haven't yet, start by importing either ```Share - Workspace - Bull run ri **2. Start processes**: -| Task Manager | Definition | +| Task Manager | Network Node | | :---: | :---: | -| ![task](https://user-images.githubusercontent.com/13994516/65537996-a99dce00-df06-11e9-8f02-0bd0fd6d29dd.png) | ![definition](https://user-images.githubusercontent.com/13994516/63503991-deb29d00-c4d0-11e9-8c03-bf2e618f9ef6.png) | +| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66308204-ca065900-e906-11e9-8b66-80f7fa605f2d.png) | -Open up the Designer section of the app by dragging the horizontal bar upwards and locate the two Task Manager elements connected to the Definition element on the left-hand side of the screen. +Open up the Designer section of the app by dragging the horizontal bar upwards and locate the two Task Manager elements connected to the Network Node element on the left-hand side of the screen. > To move around the Designer, click on the black background and drag to pan in the desired direction. @@ -227,6 +229,8 @@ Then, hover your mouse pointer over either of the Task Manager elements and clic Do the same with the second Task Manager element. +> Notice how each of the two Task Manager elements display a name when you hover your mouse pointer. + ![Designer-Start-Processes](https://user-images.githubusercontent.com/13994516/65596168-9f2b1500-df96-11e9-9559-7395124c00a0.gif) > **NOTES ON MARKET DATA**: You just started the *Trading Engine* along with the *sensors* that extract live data from the exchange and the *indicators* that process raw trades data. These processes will remain running for as long as you keep the browser open running the app. The bots processing exchange data and building indicators datasets will work to bring your data up to date. In our experience, it may take between 10 to 20 minutes per day worth of Poloniex data to be processed. The time it will take for these processes to complete the job depends on several things: @@ -237,18 +241,32 @@ Do the same with the second Task Manager element. **3. Run your first backtest**: -Pull down the horizontal bar to go to the charts and make sure you are standing in the 1 hr (one hour) time period. Notice the time box at the bottom of the charts: +| Task Manager | Expand | +| :---: | :---: | +| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | + +Go to the *Tests & Live Trades Tasks* Task Manager (hover over either of the Task Manager elements to see it's name) and expand the view of child elements by clicking on the *plus sign* icon. + +[ILLUSTRATION] + +Follow the tree of child elements until you find the *Backtesting Session* element. + +| Backtesting Session | +| :---: | +| ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | + +Hover over the Backtesting Session element and click *Run*. + +You just started a backtesting session with a series of pre-configured parameters, including, for instance, the date range on which the backtesting session runs. Later on, you will learn how to adjust these parameters. + +You will notice the element will display a date, signalling the progress of the session. The current session will backtest the strategy during the first nine months of 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date dissapears. + +Then, you may pull down the horizontal bar to go to the charts to see the results. Make sure you are standing in the 1 hr (one hour) time period. Notice the time box at the bottom of the charts: ![Getting-Started-Charts-Time-Period](https://user-images.githubusercontent.com/13994516/65598453-c0423480-df9b-11e9-9346-04631dd9719e.gif) If you are not, use the wheel of your mouse while pointing at the charts to scroll into the 1 hr time period. You do this so that the backtest runs in the time period for which the strategy was designed. -You are now ready to click the START BACKTESTING button on the right-hand side of the horizontal bar. - -![Getting-Started-Backtesting](https://user-images.githubusercontent.com/13994516/65598454-c0dacb00-df9b-11e9-8e58-a149b0bffef7.gif) - -Once you click the button, it will turn yellow. It may take several minutes for the Trading Engine to do the calculations and get ready to present the simulation over the charts. Once the Trading Engine finishes, the button will turn back to its normal state. That means that you may now turn on the simulation layers in the Layers Panel. - ![Getting-Started-Backtesting02](https://user-images.githubusercontent.com/13994516/65598904-c97fd100-df9c-11e9-93f4-324979e67a2d.gif) You may now navigate the charts by clicking and dragging, or by zooming in and out with the wheel of your mouse. If you change the time period, you will not see the simulated data, as each time period may hold its own simulation. From 127cb502a4cda2773628e0695d83b42f4642383d Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 7 Oct 2019 16:35:17 +0200 Subject: [PATCH 02/81] Update README.md --- README.md | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 2df63b4d0..b510ca14a 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,7 @@ Also, a Console/Command Line/Terminal window will open. The Console must be open Go to the ```Superalgos Desktop App/Quick-Start-Examples``` folder, drag your preferred example file and drop it on the _Designer_ (the area with a black background in the bottom half of the screen) to start with a working template. -![Designer-Import-Workspace](https://user-images.githubusercontent.com/13994516/65597108-a5ba8c00-df98-11e9-812d-b1e3c17ba4c8.gif) +[ILLUSTRATION] **Available Quick Start Examples**: @@ -231,7 +231,7 @@ Do the same with the second Task Manager element. > Notice how each of the two Task Manager elements display a name when you hover your mouse pointer. -![Designer-Start-Processes](https://user-images.githubusercontent.com/13994516/65596168-9f2b1500-df96-11e9-9559-7395124c00a0.gif) +[ILLUSTRATION] > **NOTES ON MARKET DATA**: You just started the *Trading Engine* along with the *sensors* that extract live data from the exchange and the *indicators* that process raw trades data. These processes will remain running for as long as you keep the browser open running the app. The bots processing exchange data and building indicators datasets will work to bring your data up to date. In our experience, it may take between 10 to 20 minutes per day worth of Poloniex data to be processed. The time it will take for these processes to complete the job depends on several things: > * The date of the release tells you how many days you are behind with the data set you just downloaded. @@ -241,22 +241,18 @@ Do the same with the second Task Manager element. **3. Run your first backtest**: -| Task Manager | Expand | -| :---: | :---: | -| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | +| Task Manager | Expand | Backtesting Session | +| :---: | :---: | :---: | +| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | Go to the *Tests & Live Trades Tasks* Task Manager (hover over either of the Task Manager elements to see it's name) and expand the view of child elements by clicking on the *plus sign* icon. -[ILLUSTRATION] - Follow the tree of child elements until you find the *Backtesting Session* element. -| Backtesting Session | -| :---: | -| ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | - Hover over the Backtesting Session element and click *Run*. +[ILLUSTRATION] + You just started a backtesting session with a series of pre-configured parameters, including, for instance, the date range on which the backtesting session runs. Later on, you will learn how to adjust these parameters. You will notice the element will display a date, signalling the progress of the session. The current session will backtest the strategy during the first nine months of 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date dissapears. @@ -267,7 +263,7 @@ Then, you may pull down the horizontal bar to go to the charts to see the result If you are not, use the wheel of your mouse while pointing at the charts to scroll into the 1 hr time period. You do this so that the backtest runs in the time period for which the strategy was designed. -![Getting-Started-Backtesting02](https://user-images.githubusercontent.com/13994516/65598904-c97fd100-df9c-11e9-93f4-324979e67a2d.gif) +[ILLUSTRATION] You may now navigate the charts by clicking and dragging, or by zooming in and out with the wheel of your mouse. If you change the time period, you will not see the simulated data, as each time period may hold its own simulation. From 9a57ac35cea227f47b6000ead5fd1c638a9480ae Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 7 Oct 2019 16:36:42 +0200 Subject: [PATCH 03/81] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b510ca14a..646a0cc62 100644 --- a/README.md +++ b/README.md @@ -259,7 +259,7 @@ You will notice the element will display a date, signalling the progress of the Then, you may pull down the horizontal bar to go to the charts to see the results. Make sure you are standing in the 1 hr (one hour) time period. Notice the time box at the bottom of the charts: -![Getting-Started-Charts-Time-Period](https://user-images.githubusercontent.com/13994516/65598453-c0423480-df9b-11e9-9346-04631dd9719e.gif) +[ILLUSTRATION] If you are not, use the wheel of your mouse while pointing at the charts to scroll into the 1 hr time period. You do this so that the backtest runs in the time period for which the strategy was designed. From 7147baed8456d65e09560adfaf85be072f2e4227 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 14 Oct 2019 16:53:59 +0200 Subject: [PATCH 04/81] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 646a0cc62..098fc28a8 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-supera ## Before You Begin -This *Guetting Started Guide* will quickly show you the very basics of the app, so that you can rapidly see the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest. +**This *Guetting Started Guide* will quickly show you the very basics of the app, so that you can rapidly see the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest.** The following recommendations may make your life easier using this pre-release in alpha stage: @@ -233,7 +233,7 @@ Do the same with the second Task Manager element. [ILLUSTRATION] -> **NOTES ON MARKET DATA**: You just started the *Trading Engine* along with the *sensors* that extract live data from the exchange and the *indicators* that process raw trades data. These processes will remain running for as long as you keep the browser open running the app. The bots processing exchange data and building indicators datasets will work to bring your data up to date. In our experience, it may take between 10 to 20 minutes per day worth of Poloniex data to be processed. The time it will take for these processes to complete the job depends on several things: +> **NOTES ON MARKET DATA**: You just started the *Trading Engine* along with the *sensors* that extract live data from the exchange and the *indicators* that process raw trades data. These processes will remain running for as long as you keep the browser open running the app. The bots processing exchange data and building indicators datasets will work to bring your data up to date. In our experience, it may take between 10 to 20 minutes per day's worth of Poloniex data to be processed. The time it will take for these processes to complete the job depends on several things: > * The date of the release tells you how many days you are behind with the data set you just downloaded. > * The speed and processing power of your machine will make a difference too. > * The average number of trades per day at the exchange determines the volume of data the app needs to retrieve and process. @@ -245,7 +245,7 @@ Do the same with the second Task Manager element. | :---: | :---: | :---: | | ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | -Go to the *Tests & Live Trades Tasks* Task Manager (hover over either of the Task Manager elements to see it's name) and expand the view of child elements by clicking on the *plus sign* icon. +Go to the *Tests & Live Trades Tasks* Task Manager (hover over either of the Task Manager elements to see its name) and expand the view of child elements by clicking on the *plus sign* icon. Follow the tree of child elements until you find the *Backtesting Session* element. @@ -255,7 +255,7 @@ Hover over the Backtesting Session element and click *Run*. You just started a backtesting session with a series of pre-configured parameters, including, for instance, the date range on which the backtesting session runs. Later on, you will learn how to adjust these parameters. -You will notice the element will display a date, signalling the progress of the session. The current session will backtest the strategy during the first nine months of 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date dissapears. +You will notice the element will display a date, signaling the progress of the session. The current session will backtest the strategy during the first nine months of 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date disappears. Then, you may pull down the horizontal bar to go to the charts to see the results. Make sure you are standing in the 1 hr (one hour) time period. Notice the time box at the bottom of the charts: From 4232ecf0098ddd2c7e980cc156a88a66696bf201 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 14 Oct 2019 17:03:01 +0200 Subject: [PATCH 05/81] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 098fc28a8..d6e08ed73 100644 --- a/README.md +++ b/README.md @@ -103,11 +103,11 @@ Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-supera ## Before You Begin -**This *Guetting Started Guide* will quickly show you the very basics of the app, so that you can rapidly see the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest.** +**This *Getting Started Guide* will quickly show you the very basics of the app so that you can rapidly see the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest.** The following recommendations may make your life easier using this pre-release in alpha stage: -* We highly recommend you use Chrome to run the app, so that you have a similar environment as developers in case you need help. +* We highly recommend you use Chrome to run the app so that you have a similar environment as developers in case you need help. * You will benefit from having a decent Console / Command Line application for similar reasons: we hope you won't need it, but in case you do, it may save you lots of hassle and make a difference troubleshooting and getting help from the community. We recommend [Console Emulator Cmder](https://cmder.net/). @@ -179,7 +179,7 @@ Go to the ```Superalgos Desktop App``` folder and double click on ```Superalgos. **1-B. In Mac systems, download and install Node JS**: -Node.js is an open source server environment required for the app to run. Go to the [Node Js downloads page](https://nodejs.org/en/download/) and download the Mac installer. Run the installer and go through the process until Node Js is installed. +Node.js is an open-source server environment required for the app to run. Go to the [Node Js downloads page](https://nodejs.org/en/download/) and download the Mac installer. Run the installer and go through the process until Node Js is installed. Now, use the Finder app to go to the ```Superalgos Desktop App``` folder and do a *secondary click* (tap the touchpad with two fingers) to open up the menu. Select *New Terminal Tab at Folder*. Once in the Terminal, type ```node run``` and hit *Enter*. @@ -283,7 +283,7 @@ If you have a version of the Superalgos Desktop App and wish to upgrade to a new **3.** You will keep the ```Data-Storage``` folder intact and delete all the remaining folders within the ```Superalgos Desktop App``` folder. You do not need to get rid of the historic market data every time you upgrade your app. **Do not delete your ```Data-Storage``` folder**. -**4.** Download the latest patch or latest release from the location advertised in the Official Announcement Channel. +**4.** Download the latest patch or latest release from the location advertised on the Official Announcement Channel. > **WARNING**: Always beware of what random people may post in open Telegram groups or forums. Patches and releases will always be made available at the [Releases page](https://github.com/Superalgos/DesktopApp/releases) of this repository only. From 707ab0f33e3511defcb622bf35855da0e466d5e0 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 14 Oct 2019 17:17:28 +0200 Subject: [PATCH 06/81] Update README.md --- README.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d6e08ed73..68a931898 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-supera * [Layers Panel](#layers-panel) * [Main Elements](#main-elements) * [Mouse Wheel Operations](#mouse-wheel-operations) + * [Keyboard Shortcuts](#keyboard-shortcuts) * [Floating Panels](#floating-panels) * [Layers](#layers) * [Indicator Layers](#indicator-layers) @@ -301,7 +302,7 @@ Use the control in the center of the turquoise bar to pull the bar up and down i

Pulling the bar to the very top of the screen causes the _Charting System_ to stop consuming resources in your local machine, and gives you an ample view of the _Designer_. -The **_Designer_** allows you to manage your _Trading System_. The structure represented by the various icons nested in a hierarchy of elements is the representation of the logic behind your _Strategies_. +The **_Designer_** allows you to manage your [Workspace](#workspace). The structure represented by the various icons nested in a hierarchy of elements is the representation of the logic behind your _Strategies_. ![image](https://user-images.githubusercontent.com/13994516/58325421-f32bbe80-7e29-11e9-9478-9e6e4a02ae47.png)

@@ -313,17 +314,11 @@ The **_Charting System_** plots indicators data along with the actions taken by

The **_Superalgos Protocol_** (also referred to as the _protocol_) determines the structure in which all the information regarding a trading system is stored and—at the same time—provides a clear guidance on how traders using the various tools developed and distributed by the Superalgos Project shall create and automate their strategies. -> You don't really _need_ to know this, but for the sake of context... -> -> The **_Strategy Engine_** backtests and forward tests the instructions defined on its _protocol_ file input. In coordination with the _Strategy Executor_, the engine can also live trade. -> ->The **_Strategy Executor_** interprets the execution instructions embedded at a _protocol_ file. The instructions determine the type of order to use, and what to do in every possible situation that could emerge during the placement and management of exchange orders. - # Charts Interface ## Layers Panel -This panel includes different layers you may visualize by toggling them on and off with a single mouse clicks. +This panel includes different layers you may visualize by toggling them on and off with a single mouse click. The layer title bar can have 3 possible background colors: 1. **Red**: layer is off. @@ -352,6 +347,15 @@ There are many things you can do with your mouse wheel. ![Mouse-Wheel](https://user-images.githubusercontent.com/13994516/58434568-a01d6a00-80bc-11e9-9a58-3edd4852f07c.gif) +## Keyboard Shortcuts + +When on the charts, you may use the following key combinations: + +1. Shift + ← to pan to the left. +1. Shift + → to pan to the right. +1. Shift + ↑ to pan upwards. +1. Shift + ↓ to pan downwards. + ## Floating Panels To minimize a panel, click on the small triangle on the right of their title bar. This will automatically position the panel at the bottom of the screen. Clicking again restores the panel to its previous position. From 2dce7d86e1affa8d4ca802d3cfa4cad794fbc8d1 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 14 Oct 2019 17:38:25 +0200 Subject: [PATCH 07/81] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68a931898..08e8112a5 100644 --- a/README.md +++ b/README.md @@ -427,9 +427,9 @@ If we consider that one Bollinger Channel can have sub-channels with the same di The Designer organizes the workflow to build strategies following the framework implemented by the _Superalgos Protocol_. If you are not familiar with the protocol, please read either of the following articles: -* [Superalgos Protocol V0.1 - the Short Version, for Experienced Traders](https://medium.com/@julian_superalgos/superalgos-protocol-v0-1-the-short-version-for-experienced-traders-86c3fa43f1c0). +* [Superalgos Protocol V0.1 - the Short Version, for Experienced Traders](https://medium.com/superalgos/superalgos-protocol-v0-1-the-short-version-for-experienced-traders-86c3fa43f1c0). -* [Superalgos Protocol V0.1 - the Long Version, for Beginner Traders](https://medium.com/@julian_superalgos/superalgos-protocol-v0-1-the-long-version-for-beginner-traders-f293f1cc6c13). +* [Superalgos Protocol V0.1 - the Long Version, for Beginner Traders](https://medium.com/superalgos/superalgos-protocol-v0-1-the-long-version-for-beginner-traders-f293f1cc6c13). The Designer features a visual interface in which all elements encompassing strategies and other concepts are represented by icons organized in a hierarchical structure, as defined by the protocol. The hierarchy starts with Definitions, which in the future may have any number of Trading Systems, which in turn may have any number of Strategies. From 76c22f87ad5d5bc49797259b43d35374989dd10a Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 15 Oct 2019 11:33:54 +0200 Subject: [PATCH 08/81] Update README.md --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 08e8112a5..eb54380f9 100644 --- a/README.md +++ b/README.md @@ -431,9 +431,11 @@ The Designer organizes the workflow to build strategies following the framework * [Superalgos Protocol V0.1 - the Long Version, for Beginner Traders](https://medium.com/superalgos/superalgos-protocol-v0-1-the-long-version-for-beginner-traders-f293f1cc6c13). -The Designer features a visual interface in which all elements encompassing strategies and other concepts are represented by icons organized in a hierarchical structure, as defined by the protocol. The hierarchy starts with Definitions, which in the future may have any number of Trading Systems, which in turn may have any number of Strategies. +The Designer features a visual interface in which all elements encompassing strategies and other concepts are represented by icons organized in a hierarchical structure, as defined by the protocol. -Elements are bound to each other in a tree-like structure, and tend to self-organize along the workspace. Dragging and dropping a sample workspace on the Designer is also the fastest way to get started with the Superalgos Desktop App. +The hierarchy starts with a *definition*, which contains—among other things—a *trading system*. The trading system contains *strategies* which are described in *stages*. + +Elements are bound to each other in a tree-like structure, and tend to self-organize across the workspace. Dragging and dropping a sample workspace on the Designer is the fastest way to get started with the Superalgos Desktop App. ![Designer-Drag-Drop](https://user-images.githubusercontent.com/13994516/63524115-b724fa00-c4fb-11e9-9894-48f62be71c02.gif) @@ -441,19 +443,23 @@ Elements are bound to each other in a tree-like structure, and tend to self-orga ![workspace](https://user-images.githubusercontent.com/13994516/63503989-de1a0680-c4d0-11e9-8c1a-36eb526fd7de.png) -The workspace is a concept that refers to all the information available about: +The workspace is a concept that refers to all the information available in the Designer, including: -* Definitions, which may include API Keys. -* Trading Systems, their Strategies, and their configurations. +* Definitions, which are the top level of each hierarchy (you may have multiple definitions in your workspace). +* Processes, trading systems, their strategies, and their configurations, which are child elements of definitions. * The position and status of all elements within the Designer, even those which are disconnected from the hierarchy. +You may think of the workspace as your desktop. It is not part of the hierachical structure of information that describes your definitions. Instead, it contains definitions. + Backing up your workspace is the best way to store trading systems, ready to be deployed. Your workspace is saved at the browser level every time you make a change, but still, you should back up your workspace once in a while so that you can go back to past versions. ## Definitions ![definition](https://user-images.githubusercontent.com/13994516/63503991-deb29d00-c4d0-11e9-8c03-bf2e618f9ef6.png) -Definitions include every single parameter describing your Trading Systems, as well as your Personal Data, including API Keys. Your Definitions are saved every time you click RESTART SIMULATION or RESTART LIVE TRADING. You may also save Definitions by clicking _Save Changes_ on its element menu. Unlike the workspace, only elements that are attached to the hierachy belong to the Definitions. +Definitions include every single parameter describing your Trading Systems, as well as your Personal Data, including API Keys, and the management of processes running in the background. + +You may also save Definitions by clicking _Save Changes_ on its element menu. Unlike the workspace, only elements that are attached to the hierachy belong to the Definitions. Definitions is the top-level element in the hierarchy, with two children elements: Personal Data and Trading System. We will discuss Personal Data later on, when we cover [Live Trading](#live-trading). From c70da376ad5e160f03c065abacb8cba168381d04 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 15 Oct 2019 14:24:01 +0200 Subject: [PATCH 09/81] Update README.md --- README.md | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index eb54380f9..38b42a9a1 100644 --- a/README.md +++ b/README.md @@ -335,9 +335,13 @@ Notice the following three elements relative to the position of the mouse pointe 2. To the right, the current rate. This is the rate (in this case USDT per BTC) at the mouse pointer position. 3. Below, the current time period (or candle size if you wish). This is the currently displayed time period—not only for candles, but for any other object plotted across available layers. -## Mouse Wheel Operations +## Navigation -There are many things you can do with your mouse wheel. +### Using your Mouse + +Left-click on the charts and drag to move accross the charts. + +There are many things you can do with your mouse wheel: 1. Scroll over the Layers Panel to access layers that may be out of reach downwards. 1. Scroll on top of or next to the datetime to produce a horizontal scaling. @@ -347,7 +351,7 @@ There are many things you can do with your mouse wheel. ![Mouse-Wheel](https://user-images.githubusercontent.com/13994516/58434568-a01d6a00-80bc-11e9-9a58-3edd4852f07c.gif) -## Keyboard Shortcuts +### Keyboard Navigation When on the charts, you may use the following key combinations: @@ -457,11 +461,11 @@ Backing up your workspace is the best way to store trading systems, ready to be ![definition](https://user-images.githubusercontent.com/13994516/63503991-deb29d00-c4d0-11e9-8c03-bf2e618f9ef6.png) -Definitions include every single parameter describing your Trading Systems, as well as your Personal Data, including API Keys, and the management of processes running in the background. +Definitions include every single parameter describing your trading systems, as well as your *personal data* (including API Keys), and the management of processes running in the background. -You may also save Definitions by clicking _Save Changes_ on its element menu. Unlike the workspace, only elements that are attached to the hierachy belong to the Definitions. +Pretty much like with every other element in the hierarchy, you may back up your definitions using the back up button on the definition's menu. -Definitions is the top-level element in the hierarchy, with two children elements: Personal Data and Trading System. We will discuss Personal Data later on, when we cover [Live Trading](#live-trading). +Definitions is the top-level element in the hierarchy, with three children elements: Trading System, Personal Data and Network. We will briefly discuss the *trading system* and leave the other two for later. ### Trading System @@ -469,9 +473,9 @@ Definitions is the top-level element in the hierarchy, with two children element A *trading system* is a collection of strategies that conform to certain parameters. -> **TEMPORAL LIMITATION:** At present, only one Trading System is allowed at a time. +> **TEMPORAL LIMITATION:** At present, only one trading system is allowed at a time per each definition. If you wish to have more than one trading system, then you will create a new definition to hold the new trading system. -The one parameter that needs to be defined early on is the Base Asset, that is, the asset you wish to stand on when you are out of the market, with no open positions. We will review the rest of the Trading System parameters later on. +The one parameter that needs to be defined early on is the *base asset*, that is, the asset you wish to stand on when you are out of the market, with no open positions. We will review the rest of the trading system parameters later on. | Parameters | Base Asset | | :---: | :---: | @@ -499,6 +503,19 @@ Before discussing [Working with Strategies](#working-with-strategies), let's rev ## Interface +### Navigation + +Left-click on the black background and drag to move around the workspace. + +You may also use the following key combinations on your keyboard: + +1. Ctrl + ← to pan to the left. +1. Ctrl + → to pan to the right. +1. Ctrl + ↑ to pan upwards. +1. Ctrl + ↓ to pan downwards. + +> For Mac users, replace Ctrl with Command + ### Element's Menu Hoovering the mouse pointer over elements causes a menu to pop up. @@ -544,6 +561,12 @@ Elements may be attached only to conceptually related parents. For instance, a * As the Superalgos Protocol indicates, the definition of strategies is done in stages: ```Trigger > Open > Manage > Close```. We will review each stage, one by one, but let's first discuss the common elements among them. +Becoming familiar with the Superalgos Protocol will significantly increase your understanding of how to build strategies, so we highly recommend reading either of the following articles: + +* [Superalgos Protocol V0.1 - the Short Version, for Experienced Traders](https://medium.com/superalgos/superalgos-protocol-v0-1-the-short-version-for-experienced-traders-86c3fa43f1c0). + +* [Superalgos Protocol V0.1 - the Long Version, for Beginner Traders](https://medium.com/superalgos/superalgos-protocol-v0-1-the-long-version-for-beginner-traders-f293f1cc6c13). + The Designer provides a Graphic User Interface for traders to input the _rules_ and _formulas_ that determine the behavior of strategies. Traders need to define the rules to _trigger on_ and _trigger off_ each strategy, to _take a position_, to manage _take profit_ targets and _stops_. ### Situations and Conditions From cff10bcbfd8d7a48785e91b644019ddb1454a8b1 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 15 Oct 2019 14:31:05 +0200 Subject: [PATCH 10/81] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 38b42a9a1..87e4efad7 100644 --- a/README.md +++ b/README.md @@ -626,7 +626,11 @@ In the example above, _condition C_ would be _true_ if the whole candle falls wi ### Starting a Strategy from Scratch -> In addition to the explanations available here, [a comprehensive video tutorial for building strategies](https://youtu.be/ZlkGkxSMsio) is available in our YouTube channel. The video is slightly outdated in that it doesn't take transaction fees into account when running simulations. Also, the Superalgos Desktop App (the client version of the Platform) does not feature a menu on top. Otherwise, the content is still valid. +> In addition to the explanations available here, [a comprehensive video tutorial for building strategies](https://youtu.be/ZlkGkxSMsio) is available in our YouTube channel. The video is slightly outdated in the following aspects: +> * it doesn't take transaction fees into account when running simulations; +> * the Superalgos Desktop App (the client version of the Platform) does not feature a menu on top; +> * simulations are no longer run clicking a button on the horizontal bar. +> Otherwise, the logic for building strategies as described in the video is still valid. Strategies within a specific Trading System respond to the parameters set for the corresponding Trading System. This means they all have the same Base Asset, and they all share the _initialCapital_ (see [Trading System](#trading-system) for further references). From 45323ced848edbba9f58a6e3d8670378eb387d82 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 15 Oct 2019 14:32:23 +0200 Subject: [PATCH 11/81] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 87e4efad7..9b98e4ef3 100644 --- a/README.md +++ b/README.md @@ -630,6 +630,7 @@ In the example above, _condition C_ would be _true_ if the whole candle falls wi > * it doesn't take transaction fees into account when running simulations; > * the Superalgos Desktop App (the client version of the Platform) does not feature a menu on top; > * simulations are no longer run clicking a button on the horizontal bar. +> > Otherwise, the logic for building strategies as described in the video is still valid. Strategies within a specific Trading System respond to the parameters set for the corresponding Trading System. This means they all have the same Base Asset, and they all share the _initialCapital_ (see [Trading System](#trading-system) for further references). From a18d1e67ddaa07a83a27fa7b122f7234604cd220 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 15 Oct 2019 17:30:45 +0200 Subject: [PATCH 12/81] Update README.md --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b98e4ef3..c015023a6 100644 --- a/README.md +++ b/README.md @@ -789,10 +789,17 @@ You may import any element—formulas, conditions, situations, phases, stages, c **distanceToLast.closePosition:** The number of periods between the last Close Position and the current candle. +# Network + +Before discussing the various forms of strategy testing and live trading available, it is important to explain the basic aspects of how those and other processes work. # Simulation -A simulation is a combined backtesting plus paper trading operation, meaning that the simulation may run over both historic and up-to-date, live data. All actions performed by strategies are plotted directly over the charts, as explained in the [Private Layers](#private-layers) section. +A simulation is the visual representation over the charts of any of the forms of strategy testing available within the app: + +* **Backtesting:** testing over historic data; +* **Paper-trading:** testing over a live data feed, without placing orders at the exchange (orders are simulated); +* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *position size*. ## Running the First Simulation From 37c5295a58a236b832beb237335cd832df5f05bb Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 15 Oct 2019 20:27:58 +0200 Subject: [PATCH 13/81] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index c015023a6..ddd500ff5 100644 --- a/README.md +++ b/README.md @@ -793,6 +793,25 @@ You may import any element—formulas, conditions, situations, phases, stages, c Before discussing the various forms of strategy testing and live trading available, it is important to explain the basic aspects of how those and other processes work. +| Network | Network Node | +| :---: | :---: | +| ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) | + +At the moment, the app manages data sets locally. However, in the future, it will also source data and services from a peer-to-peer network of nodes which will provide those services. + +For the time being, all you need to know is that the *network* is one of the direct children of a definition, and that the one *node* in the network is where you will manage the processes that run in your local machine. + +## Task Manager, Tasks and Bots + +| Task Manager | Task | Bot | +| :---: | :---: | :---: | +| ![situations](https://user-images.githubusercontent.com/13994516/63511799-72409980-c4e2-11e9-8f2a-5bc4a8d9d6ed.png) | ![conditions](https://user-images.githubusercontent.com/13994516/63511800-72d93000-c4e2-11e9-98a2-259c7f0edca2.png) | ![code](https://user-images.githubusercontent.com/13994516/63511802-72d93000-c4e2-11e9-9cbf-df75cc9bbe0b.png) | + +A *task manager* is an entity that controls any number of *tasks*. A task is an entity that controls any number of *bots*. There currently are three kinds of bots that you will run to provide you with the data and functions you need: + + +The workspace templates + # Simulation A simulation is the visual representation over the charts of any of the forms of strategy testing available within the app: From 57bd8f71ecb1997c8c3be6c8e0781841cb27ffa7 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Wed, 16 Oct 2019 12:25:18 +0200 Subject: [PATCH 14/81] Update README.md --- README.md | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ddd500ff5..dd1d65cf1 100644 --- a/README.md +++ b/README.md @@ -789,10 +789,12 @@ You may import any element—formulas, conditions, situations, phases, stages, c **distanceToLast.closePosition:** The number of periods between the last Close Position and the current candle. -# Network +# Managing Processes Before discussing the various forms of strategy testing and live trading available, it is important to explain the basic aspects of how those and other processes work. +## Network + | Network | Network Node | | :---: | :---: | | ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) | @@ -805,12 +807,28 @@ For the time being, all you need to know is that the *network* is one of the dir | Task Manager | Task | Bot | | :---: | :---: | :---: | -| ![situations](https://user-images.githubusercontent.com/13994516/63511799-72409980-c4e2-11e9-8f2a-5bc4a8d9d6ed.png) | ![conditions](https://user-images.githubusercontent.com/13994516/63511800-72d93000-c4e2-11e9-98a2-259c7f0edca2.png) | ![code](https://user-images.githubusercontent.com/13994516/63511802-72d93000-c4e2-11e9-9cbf-df75cc9bbe0b.png) | +| | | | + +A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*. In other words, a task manager starts and stops tasks, and tasks are the devices you will use to start and stop bots. + +There currently are three kinds of bots that you will run to provide you with the data and functions you need: + +* **Sensors:** they extract raw data from the exchange; +* **Indicators:** they process data to produce more ellaborate datasets; +* **Trading Engine:** it is the bot that reads a Superalgos Protocol file containing the details of trading strategies and interacts with the Superalgos Desktop App to run them as simulations (using a simulation plotter) or to trade live. + +Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you do not use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own. + +All workspaces in the ```Quick-Start-Examples``` folder include two task managers, each with a name that you can see on top of the element when you hover the mouse pointer over the icon: + +* **Keep Datasets Up-to-Date:** This task manager has several tasks, each controlling one of the bots required to keep the datasets in your machine up to date, including sensors and indicators. If you wish to have the data up-to-date, you need to *Start All Tasks* using the menu. This is a pre-requisite for trading live, or even doing paper-trading and forward tests. + +* **Tests & Live Trading:** This is the task manager you will use to set up your backtesting, paper-trading, forward testing and live testing sessions. + + -A *task manager* is an entity that controls any number of *tasks*. A task is an entity that controls any number of *bots*. There currently are three kinds of bots that you will run to provide you with the data and functions you need: -The workspace templates # Simulation From d96b0c9e9c294320a975edcc55afb5eb26e02c08 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Wed, 16 Oct 2019 14:09:35 +0200 Subject: [PATCH 15/81] Update README.md --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index dd1d65cf1..7353e9a47 100644 --- a/README.md +++ b/README.md @@ -805,9 +805,9 @@ For the time being, all you need to know is that the *network* is one of the dir ## Task Manager, Tasks and Bots -| Task Manager | Task | Bot | -| :---: | :---: | :---: | -| | | | +| Task Manager | Task | Sensor | Indicator | Trading Engine | +| :---: | :---: | :---: | :---: | :---: | +| | | | | | A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*. In other words, a task manager starts and stops tasks, and tasks are the devices you will use to start and stop bots. @@ -817,11 +817,11 @@ There currently are three kinds of bots that you will run to provide you with th * **Indicators:** they process data to produce more ellaborate datasets; * **Trading Engine:** it is the bot that reads a Superalgos Protocol file containing the details of trading strategies and interacts with the Superalgos Desktop App to run them as simulations (using a simulation plotter) or to trade live. -Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you do not use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own. +Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you *do not* use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own, starting from the definition menu. -All workspaces in the ```Quick-Start-Examples``` folder include two task managers, each with a name that you can see on top of the element when you hover the mouse pointer over the icon: +All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos Network and a network node with two task managers, each with a name that you can see on top of the element when you hover the mouse pointer: -* **Keep Datasets Up-to-Date:** This task manager has several tasks, each controlling one of the bots required to keep the datasets in your machine up to date, including sensors and indicators. If you wish to have the data up-to-date, you need to *Start All Tasks* using the menu. This is a pre-requisite for trading live, or even doing paper-trading and forward tests. +* **Keep Datasets Up-to-Date:** This task manager has several tasks, each controlling one of the bots required to keep the datasets in your machine up to date, including sensors and indicators. If you wish to have the data up-to-date, you need to *Start All Tasks* using the menu. This is also a pre-requisite for trading live, doing paper-trading and forward testing. * **Tests & Live Trading:** This is the task manager you will use to set up your backtesting, paper-trading, forward testing and live testing sessions. From 07032ec343556495391fc352a45a95fed845164f Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Wed, 16 Oct 2019 15:02:26 +0200 Subject: [PATCH 16/81] Update README.md --- README.md | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7353e9a47..cd7a3b6b1 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-supera * [Bollinger Channels](#bollinger-channels) * [Bollinger SubChannels](#bollinger-subchannels) * [Internal](#internal) -* [Simulation](#simulation) +* [Simulations](#simulations) * [Running the First Simulation](#running-the-first-simulation) * [Exchange Fees](#exchange-fees) * [Slippage](#slippage) @@ -801,15 +801,21 @@ Before discussing the various forms of strategy testing and live trading availab At the moment, the app manages data sets locally. However, in the future, it will also source data and services from a peer-to-peer network of nodes which will provide those services. -For the time being, all you need to know is that the *network* is one of the direct children of a definition, and that the one *node* in the network is where you will manage the processes that run in your local machine. +For the time being, all you need to know is that the *network* is one of the direct child elements of a definition, and that the one *node* in the network is where you will manage the processes that run in your local machine. -## Task Manager, Tasks and Bots +## Task Manager, Tasks, Bots and Processes | Task Manager | Task | Sensor | Indicator | Trading Engine | | :---: | :---: | :---: | :---: | :---: | | | | | | | -A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*. In other words, a task manager starts and stops tasks, and tasks are the devices you will use to start and stop bots. +A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*, which in turn may run any number of *processes*. + +In other words, a task manager starts and stops tasks, and tasks are the devices you will use to start and stop bots. + +Each bot may do more than one thing, thus, they may run one or more processes. Bots and processes are preconfigured so that you don't need to worry about their technical intricacies. + +**All you need to do is the basic operation: starting and stopping them via the corresponding tasks whenever you need them.** There currently are three kinds of bots that you will run to provide you with the data and functions you need: @@ -817,21 +823,20 @@ There currently are three kinds of bots that you will run to provide you with th * **Indicators:** they process data to produce more ellaborate datasets; * **Trading Engine:** it is the bot that reads a Superalgos Protocol file containing the details of trading strategies and interacts with the Superalgos Desktop App to run them as simulations (using a simulation plotter) or to trade live. -Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you *do not* use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own, starting from the definition menu. +> Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you *do not* use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own, starting from the definition menu. It is unlikely that you will be able to do this properly, so we highly reccommend you use one of the supplied templates. -All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos Network and a network node with two task managers, each with a name that you can see on top of the element when you hover the mouse pointer: +All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos Network and a network node with two task managers. Each task manager has a name, which becomes visible only upon hovering the mouse pointer: -* **Keep Datasets Up-to-Date:** This task manager has several tasks, each controlling one of the bots required to keep the datasets in your machine up to date, including sensors and indicators. If you wish to have the data up-to-date, you need to *Start All Tasks* using the menu. This is also a pre-requisite for trading live, doing paper-trading and forward testing. +* **Keep Datasets Up-to-Date:** This task manager has several tasks, each controlling one of the bots required to keep the datasets in your machine up to date, including both sensors and indicators. If you wish to have the data up-to-date, you need to *Start All Tasks* using the menu. This is also a pre-requisite for trading live, doing paper-trading and forward testing. -* **Tests & Live Trading:** This is the task manager you will use to set up your backtesting, paper-trading, forward testing and live testing sessions. +* **Tests & Live Trading:** This is the task manager you will use to run the trading engine, so that you can set up your backtesting, paper-trading, forward testing and live testing sessions. In our templates, you will always find at least two tasks, so that you may run live-trading sessions issolated from your tests. This means that you will run one instance of the trading engine for live-trading and any number of instances of the trading engine for your testing sessions. + +[ILLUSTRATION] + +# Testing and Simulations - - - -# Simulation - A simulation is the visual representation over the charts of any of the forms of strategy testing available within the app: * **Backtesting:** testing over historic data; From 6a4985748add391c1fea9e6f6deaaac2a8b9e5cf Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Wed, 16 Oct 2019 17:25:58 +0200 Subject: [PATCH 17/81] Update README.md --- README.md | 109 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 62 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index cd7a3b6b1..7aa5e6501 100644 --- a/README.md +++ b/README.md @@ -789,6 +789,44 @@ You may import any element—formulas, conditions, situations, phases, stages, c **distanceToLast.closePosition:** The number of periods between the last Close Position and the current candle. +### Contitions and Formulas with Data from Different Time Periods + +When building your conditions and formulas, you may want to include analysis concerning a different time period than the one in which you intenddto run your simulation and live-trading. + +The variables explained above, written as described, always refer to the time period on which the simulation or live-trading is running. To refer to other time periods, you need to use a mechanism built-in the app, implementing the following syntax: + +```chart.at + time period + . + your variable``` + +For example: + +```chart.at04hs.candle.close > chart.at04hs.candle.previous.close``` + +The above statement compares the current 4 hours candle to the previous 4 hours candle, no matter what time period you are simulating in. + +| Time Period | Syntax | +| :---: | :---: | +| 1 min | ```chart.at01min.``` | +| 2 min | ```chart.at02min.``` | +| 3 min | ```chart.at03min.``` | +| 4 min | ```chart.at04min.``` | +| 5 min | ```chart.at05min.``` | +| 10 min | ```chart.at10min.``` | +| 15 min | ```chart.at15min.``` | +| 20 min | ```chart.at20min.``` | +| 30 min | ```chart.at30min.``` | +| 40 min | ```chart.at40min.``` | +| 45 min | ```chart.at45min.``` | +| 1 h | ```chart.at01hs.``` | +| 2 hs | ```chart.at02hs.``` | +| 3 hs | ```chart.at03hs.``` | +| 4 hs | ```chart.at04hs.``` | +| 6 hs | ```chart.at06hs.``` | +| 8 hs | ```chart.at08hs.``` | +| 12 hs | ```chart.at12hs.``` | +| 24 hs | ```chart.at24hs.``` | + +> **TECHNICAL LIMITATION**: When you are simulating and live-trading on time periods in the order of minutes (below 1 hour), you may access any other time period variables, as explained above. However, when you are simulating or live-trading in time periods of 1 hour and above, you may only access data of time periods of 1 hour and above. + # Managing Processes Before discussing the various forms of strategy testing and live trading available, it is important to explain the basic aspects of how those and other processes work. @@ -835,19 +873,35 @@ All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos N # Testing and Simulations - +| Backtesting | Paper-Trading | +| :---: | :---: | +| ![session-backtesting](https://user-images.githubusercontent.com/13994516/66930152-7990a900-f034-11e9-8f97-2216e139cf40.png) | ![session-paper-trading](https://user-images.githubusercontent.com/13994516/66930155-7990a900-f034-11e9-9c87-0f5627c6f219.png) | A simulation is the visual representation over the charts of any of the forms of strategy testing available within the app: * **Backtesting:** testing over historic data; * **Paper-trading:** testing over a live data feed, without placing orders at the exchange (orders are simulated); -* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *position size*. +* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *position size* (we will cover forward testing later on). -## Running the First Simulation +As explained in the previous chapter, the trading engine is the bot that handles testing sessions, and is controlled by a task and it's corresponding task manager. In order to run a testing session, you will set up the session under a process of the trading engine. -In order to run a first simulation, you need to have a strategy in working order, as described in the [Starting a Strategy from Scratch](https://github.com/Superalgos/DesktopApp/blob/master/README.md#starting-a-strategy-from-scratch) section. +[ILLUSTRATION] -## Exchange Fees +For your convenience, all our templates in the ```Quick-Start-Examples``` folder come with at least one backtesting and one paper-trading session set up. All you need to do is customize the *parameters* to your liking and, if you wish, add or remove layers to the *layer manager*. + +## Parameters + +| Parameters | +| :---: | +| ![parameters](https://user-images.githubusercontent.com/13994516/63508921-3f46d780-c4db-11e9-970d-8d5e2ca5ebe3.png) | + +Each testing session has its own set of parameters. This allows you to configure different trading sessions with different parameters, and go back and forth between them as required. For instance, you may have different backtesting sessions with different date ranges, different exchange fees or different slippage settings. + +> If any of these parameters is missing from the configuration of the testing session, the app's fall-back mechanism will look for the parameters at the trading system level and use those settings instead. + +We covered the *Base Asset* parameter when explaining [trading systems](#trading-system). Let's now review the rest. + +### Exchange Fees Fees are a crucial part of the game. A strategy may work like a charm when you leave fees out of the equation but would lead you to bankruptcy in a live trading situation. @@ -875,7 +929,7 @@ The trade hits the take profit target above the Position Rate level, however, du > If the *Fee Structure* parameter is left empty or disconnected from your Trading System, fees will not be computed during simulations. -## Slippage +### Slippage [Slippage](https://en.wikipedia.org/wiki/Slippage_(finance)) is another issue you need to be aware of to more realistically evaluate a Strategy. The price at which the Exchange will fill the order placed by the Execution Engine is seldom going to match the conditions of the simulation. @@ -901,7 +955,7 @@ The result of slippage in simulations is taken into account by the graphic repre > If the *Slippage* parameter is left empty or disconnected from your Trading System, slippage will not be computed during simulations. -## Datetime Range +### Datetime Range | Parameters | Time Range | | :---: | :---: | @@ -929,49 +983,10 @@ The Datetime Range parameter of your Trading System is used to control the perio **B.** If you do not enter a *finalDatetime*, then the forward-test will run for one year. -## Time Period +### Time Period Simulations run in the time period active at the moment of clicking the RESTART SIMULATION button. Only one time period may be active at any point in time: if you run a simulation in a different time period than a previous simulation, the previous one stops—however, the previous simulation data is conserved and may be accessed again by going back to the corresponding time period. - -### Contitions and Formulas with Data from Different Time Periods - -When building your conditions and formulas, you may want to include analysis concerning a different time period than the one in which you intend to run your simulation and live-trading. - -The [Available Variables](#available-variables) explained above, written as described, always refer to the time period on which the simulation or live-trading is running. To refer to other time periods, you need to use a mechanism built-in the app, implementing the following syntax: - -```chart.at + time period + . + your variable``` - -For example: - -```chart.at04hs.candle.close > chart.at04hs.candle.previous.close``` - -The above statement compares the current 4 hours candle to the previous 4 hours candle, no matter what time period you are simulating in. - -| Time Period | Syntax | -| :---: | :---: | -| 1 min | ```chart.at01min.``` | -| 2 min | ```chart.at02min.``` | -| 3 min | ```chart.at03min.``` | -| 4 min | ```chart.at04min.``` | -| 5 min | ```chart.at05min.``` | -| 10 min | ```chart.at10min.``` | -| 15 min | ```chart.at15min.``` | -| 20 min | ```chart.at20min.``` | -| 30 min | ```chart.at30min.``` | -| 40 min | ```chart.at40min.``` | -| 45 min | ```chart.at45min.``` | -| 1 h | ```chart.at01hs.``` | -| 2 hs | ```chart.at02hs.``` | -| 3 hs | ```chart.at03hs.``` | -| 4 hs | ```chart.at04hs.``` | -| 6 hs | ```chart.at06hs.``` | -| 8 hs | ```chart.at08hs.``` | -| 12 hs | ```chart.at12hs.``` | -| 24 hs | ```chart.at24hs.``` | - -> **TECHNICAL LIMITATION**: When you are simulating and live-trading on time periods in the order of minutes (below 1 hour), you may access any other time period variables, as explained above. However, when you are simulating or live-trading in time periods of 1 hour and above, you may only access data of time periods of 1 hour and above. - ## Simulation Processes Once you run a simulation, it keeps running for as long as the node.js processes are running at the console. When the simulation reaches the present time, it remains active, calculating dynamically as new data is retrieved from the exchange. From 4e440983efb949c875a8ffcb570da1ec652221da Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Wed, 16 Oct 2019 17:40:46 +0200 Subject: [PATCH 18/81] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7aa5e6501..f54067bda 100644 --- a/README.md +++ b/README.md @@ -843,15 +843,15 @@ For the time being, all you need to know is that the *network* is one of the dir ## Task Manager, Tasks, Bots and Processes -| Task Manager | Task | Sensor | Indicator | Trading Engine | -| :---: | :---: | :---: | :---: | :---: | -| | | | | | +| Task Manager | Task | Sensor | Indicator | Trading Engine | Process | +| :---: | :---: | :---: | :---: | :---: | :---: | +| | | | | | | A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*, which in turn may run any number of *processes*. In other words, a task manager starts and stops tasks, and tasks are the devices you will use to start and stop bots. -Each bot may do more than one thing, thus, they may run one or more processes. Bots and processes are preconfigured so that you don't need to worry about their technical intricacies. +Each bot may perform more than one job, thus, they may run one or more processes. Bots and processes are preconfigured so that you don't need to worry about their technical intricacies. **All you need to do is the basic operation: starting and stopping them via the corresponding tasks whenever you need them.** @@ -927,7 +927,7 @@ To illustrate how fees affect your bottom line, take a look at the image below. The trade hits the take profit target above the Position Rate level, however, due to fees, the trade has a negative 0.32% ROI. -> If the *Fee Structure* parameter is left empty or disconnected from your Trading System, fees will not be computed during simulations. +> If the *Fee Structure* parameter is left empty or disconnected both from your testing session and your Trading System, fees will not be computed during simulations. ### Slippage From 35fd6f40a81d4910d9480ae3d152dbc1261afcdb Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Wed, 16 Oct 2019 22:37:14 +0200 Subject: [PATCH 19/81] Update README.md --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f54067bda..92ba252df 100644 --- a/README.md +++ b/README.md @@ -845,7 +845,7 @@ For the time being, all you need to know is that the *network* is one of the dir | Task Manager | Task | Sensor | Indicator | Trading Engine | Process | | :---: | :---: | :---: | :---: | :---: | :---: | -| | | | | | | +| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | | | | | | A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*, which in turn may run any number of *processes*. @@ -881,13 +881,15 @@ A simulation is the visual representation over the charts of any of the forms of * **Backtesting:** testing over historic data; * **Paper-trading:** testing over a live data feed, without placing orders at the exchange (orders are simulated); -* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *position size* (we will cover forward testing later on). +* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *position size*. + +We will cover *forward testing* when we discuss live trading. For the time being, we will focus on the first two steps of the strategy testing process. As explained in the previous chapter, the trading engine is the bot that handles testing sessions, and is controlled by a task and it's corresponding task manager. In order to run a testing session, you will set up the session under a process of the trading engine. [ILLUSTRATION] -For your convenience, all our templates in the ```Quick-Start-Examples``` folder come with at least one backtesting and one paper-trading session set up. All you need to do is customize the *parameters* to your liking and, if you wish, add or remove layers to the *layer manager*. +For your convenience, all our templates in the ```Quick-Start-Examples``` folder come with at least one backtesting and one paper-trading session set up. All you need to do is customize the *parameters* to your liking and, if you wish, add or remove layers to the *layer manager*, both child elements of each testing session. ## Parameters @@ -939,7 +941,7 @@ To account for slippage during simulations, you may enter slippage values for th | :---: | :---: | | ![parameters](https://user-images.githubusercontent.com/13994516/63508921-3f46d780-c4db-11e9-970d-8d5e2ca5ebe3.png) | ![slippage](https://user-images.githubusercontent.com/13994516/63638432-0d26a880-c688-11e9-9ab4-004c7b29345f.png) | -Find the *Slippage* parameter under your Trading System and enter the desired values for each of the below: +Simulations take *slippage* into account when the following piece of code is present and properly configured in your *Slippage* parameter: ``` { @@ -953,7 +955,7 @@ The number you enter is applied as a percentage of the price of the order and ad The result of slippage in simulations is taken into account by the graphic representation of each trade created by the Simulation Trades layer. -> If the *Slippage* parameter is left empty or disconnected from your Trading System, slippage will not be computed during simulations. +> If the *Slippage* parameter is left empty or disconnected both from your testing session and your Trading System, slippage will not be computed during simulations. ### Datetime Range From 2edad13a2380a373512e5501c9ccb398d401ed87 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 10:47:19 +0200 Subject: [PATCH 20/81] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 92ba252df..a251de301 100644 --- a/README.md +++ b/README.md @@ -178,7 +178,7 @@ You should end up with the following folder structure: Go to the ```Superalgos Desktop App``` folder and double click on ```Superalgos.exe```. Now, skip the Mac instructions and go directly to point 2 below. -**1-B. In Mac systems, download and install Node JS**: +**1-B. In other systems (Mac, Linux, etc.), download and install Node JS**: Node.js is an open-source server environment required for the app to run. Go to the [Node Js downloads page](https://nodejs.org/en/download/) and download the Mac installer. Run the installer and go through the process until Node Js is installed. @@ -845,7 +845,8 @@ For the time being, all you need to know is that the *network* is one of the dir | Task Manager | Task | Sensor | Indicator | Trading Engine | Process | | :---: | :---: | :---: | :---: | :---: | :---: | -| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | | | | | | +| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | +![timeline](https://user-images.githubusercontent.com/13994516/67079956-73b1d980-f194-11e9-89e0-9c8d1ea2ad1d.png) | ![bot-sensor](https://user-images.githubusercontent.com/13994516/67079734-000fcc80-f194-11e9-911d-2b537e4cb8f2.png) | ![bot-indicator](https://user-images.githubusercontent.com/13994516/67079733-000fcc80-f194-11e9-98d7-3426dd956d65.png) | ![trading-engine](https://user-images.githubusercontent.com/13994516/67079740-00a86300-f194-11e9-8609-793f66dd7378.png) | ![process](https://user-images.githubusercontent.com/13994516/67079738-00a86300-f194-11e9-9f59-a4cc4ce6d56c.png) | A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*, which in turn may run any number of *processes*. From 1b2e06ceee10b6f17ed9eb6d9b280da7f5a98319 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 10:48:40 +0200 Subject: [PATCH 21/81] Update README.md --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index a251de301..f83be79b9 100644 --- a/README.md +++ b/README.md @@ -845,8 +845,7 @@ For the time being, all you need to know is that the *network* is one of the dir | Task Manager | Task | Sensor | Indicator | Trading Engine | Process | | :---: | :---: | :---: | :---: | :---: | :---: | -| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | -![timeline](https://user-images.githubusercontent.com/13994516/67079956-73b1d980-f194-11e9-89e0-9c8d1ea2ad1d.png) | ![bot-sensor](https://user-images.githubusercontent.com/13994516/67079734-000fcc80-f194-11e9-911d-2b537e4cb8f2.png) | ![bot-indicator](https://user-images.githubusercontent.com/13994516/67079733-000fcc80-f194-11e9-98d7-3426dd956d65.png) | ![trading-engine](https://user-images.githubusercontent.com/13994516/67079740-00a86300-f194-11e9-8609-793f66dd7378.png) | ![process](https://user-images.githubusercontent.com/13994516/67079738-00a86300-f194-11e9-9f59-a4cc4ce6d56c.png) | +| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![timeline](https://user-images.githubusercontent.com/13994516/67079956-73b1d980-f194-11e9-89e0-9c8d1ea2ad1d.png) | ![bot-sensor](https://user-images.githubusercontent.com/13994516/67079734-000fcc80-f194-11e9-911d-2b537e4cb8f2.png) | ![bot-indicator](https://user-images.githubusercontent.com/13994516/67079733-000fcc80-f194-11e9-98d7-3426dd956d65.png) | ![trading-engine](https://user-images.githubusercontent.com/13994516/67079740-00a86300-f194-11e9-8609-793f66dd7378.png) | ![process](https://user-images.githubusercontent.com/13994516/67079738-00a86300-f194-11e9-9f59-a4cc4ce6d56c.png) | A *task manager* is an entity that controls any number of *tasks*, and tasks are used to control *bots*, which in turn may run any number of *processes*. From 735c8e900095a11f9ecc41887291a275a5cd2774 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 10:58:53 +0200 Subject: [PATCH 22/81] Update README.md --- README.md | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f83be79b9..d907491e4 100644 --- a/README.md +++ b/README.md @@ -909,9 +909,9 @@ Fees are a crucial part of the game. A strategy may work like a charm when you l Simulations take fees into account when the following piece of code is present and properly configured in your *Fee Structure* parameter: -| Parameters | Fee Structure | -| :---: | :---: | -| ![parameters](https://user-images.githubusercontent.com/13994516/63508921-3f46d780-c4db-11e9-970d-8d5e2ca5ebe3.png) | ![fee-structure](https://user-images.githubusercontent.com/13994516/63638434-0dbf3f00-c688-11e9-9b3e-7cb1ff7e4814.png) | +| Fee Structure | +| :---: | +| ![fee-structure](https://user-images.githubusercontent.com/13994516/63638434-0dbf3f00-c688-11e9-9b3e-7cb1ff7e4814.png) | ``` { @@ -937,9 +937,9 @@ The trade hits the take profit target above the Position Rate level, however, du To account for slippage during simulations, you may enter slippage values for the three different occasions in which the Execution Engine will place orders: Take Position, Take Profit and Stop. -| Parameters | Slippage | -| :---: | :---: | -| ![parameters](https://user-images.githubusercontent.com/13994516/63508921-3f46d780-c4db-11e9-970d-8d5e2ca5ebe3.png) | ![slippage](https://user-images.githubusercontent.com/13994516/63638432-0d26a880-c688-11e9-9ab4-004c7b29345f.png) | +| Slippage | +| :---: | +| ![slippage](https://user-images.githubusercontent.com/13994516/63638432-0d26a880-c688-11e9-9ab4-004c7b29345f.png) | Simulations take *slippage* into account when the following piece of code is present and properly configured in your *Slippage* parameter: @@ -959,10 +959,9 @@ The result of slippage in simulations is taken into account by the graphic repre ### Datetime Range -| Parameters | Time Range | -| :---: | :---: | -| ![parameters](https://user-images.githubusercontent.com/13994516/63508921-3f46d780-c4db-11e9-970d-8d5e2ca5ebe3.png) | ![time-range](https://user-images.githubusercontent.com/13994516/63638435-0dbf3f00-c688-11e9-8bbd-5e00906cdfa1.png) | - +| Time Range | +| :---: | +| ![time-range](https://user-images.githubusercontent.com/13994516/63638435-0dbf3f00-c688-11e9-8bbd-5e00906cdfa1.png) | The Datetime Range parameter of your Trading System is used to control the period of time in which the simulation will be calculated. Depending on how you set up this parameter you will be either backtesting, paper-trading, or both at the same time. @@ -987,6 +986,10 @@ The Datetime Range parameter of your Trading System is used to control the perio ### Time Period +| Time Range | +| :---: | +| ![schedule](https://user-images.githubusercontent.com/13994516/67080564-ce980080-f195-11e9-9e1e-4f71dd433e57.png) | + Simulations run in the time period active at the moment of clicking the RESTART SIMULATION button. Only one time period may be active at any point in time: if you run a simulation in a different time period than a previous simulation, the previous one stops—however, the previous simulation data is conserved and may be accessed again by going back to the corresponding time period. ## Simulation Processes From 02135fe791eee0e99b296a62954eef7d06361e59 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 11:00:29 +0200 Subject: [PATCH 23/81] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d907491e4..b72a96423 100644 --- a/README.md +++ b/README.md @@ -986,7 +986,7 @@ The Datetime Range parameter of your Trading System is used to control the perio ### Time Period -| Time Range | +| Time Period | | :---: | | ![schedule](https://user-images.githubusercontent.com/13994516/67080564-ce980080-f195-11e9-9e1e-4f71dd433e57.png) | From aef705cdd5d67c21278583ead608641ecca54df1 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 13:01:36 +0200 Subject: [PATCH 24/81] Update README.md --- README.md | 72 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 48 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index b72a96423..a15ddba23 100644 --- a/README.md +++ b/README.md @@ -961,13 +961,13 @@ The result of slippage in simulations is taken into account by the graphic repre | Time Range | | :---: | -| ![time-range](https://user-images.githubusercontent.com/13994516/63638435-0dbf3f00-c688-11e9-8bbd-5e00906cdfa1.png) | +| ![schedule](https://user-images.githubusercontent.com/13994516/67080564-ce980080-f195-11e9-9e1e-4f71dd433e57.png) | -The Datetime Range parameter of your Trading System is used to control the period of time in which the simulation will be calculated. Depending on how you set up this parameter you will be either backtesting, paper-trading, or both at the same time. +The Datetime Range parameter is used to control the period of time in which the simulation will be calculated. **1. Backtesting**: -**A.** To backtest a specific period of time in the past, introduce an *initialDatetime* and a *finalDatetime*: +You will set an *initialDatetime* and a *finalDatetime*: ``` { @@ -976,39 +976,63 @@ The Datetime Range parameter of your Trading System is used to control the perio } ``` -**B.** If you set a *finalDatetime* in the past but not an *initialDatetime*, then the simulation will start at the point in time the charts are at when you click the START BACKTESTING button. That is, the *initialDatetime* is taken from the position of the charts. +If you do not set an *initialDatetime* the app's fallback mechanism will try to get it from the parameters at the level of the trading system. In case there is no *initialDatetime*, the calculation will start at the current position of the charts. + +If you don't set a *finalDatetime* at the level of the testing session or the trading system, then calculations will run until the present time. **2. Paper-trading**: -**A.** To do a forward-test, enter the current date as the *initialDatetime* and the date up to which you wish to run the forward-test as the *finalDatetime*. - -**B.** If you do not enter a *finalDatetime*, then the forward-test will run for one year. +Paper trading sessions only require a *finalDatetime*. If you do not set one either at the level of the session or the trading system then the session will run for one year. ### Time Period | Time Period | | :---: | -| ![schedule](https://user-images.githubusercontent.com/13994516/67080564-ce980080-f195-11e9-9e1e-4f71dd433e57.png) | +| ![time-period](https://user-images.githubusercontent.com/13994516/67087015-597ef800-f1a2-11e9-8a5e-712a13ef99d4.png) | -Simulations run in the time period active at the moment of clicking the RESTART SIMULATION button. Only one time period may be active at any point in time: if you run a simulation in a different time period than a previous simulation, the previous one stops—however, the previous simulation data is conserved and may be accessed again by going back to the corresponding time period. +Testing sessions run in the time period specified in this parameter. -## Simulation Processes +Available options at the sub-hour level are: -Once you run a simulation, it keeps running for as long as the node.js processes are running at the console. When the simulation reaches the present time, it remains active, calculating dynamically as new data is retrieved from the exchange. +``` +01-min +02-min +03-min +04-min +05-min +10-min +15-min +20-min +30-min +45-min +``` -If you click RESTART SIMULATION, processes are stopped and restarted. This results in past simulation data for the same *time period* being deleted and new data being written as the calculations advance. +Available options at larger time periods are: -The simulation process is associated to the Definitions structure present at the moment of running the simulation. Changes you make in your Definitions afterwards are only taken into account when you restart the simulation. - -All of these considerations apply for Live Trading as well. +``` +01-hs +02-hs +03-hs +04-hs +06-hs +08-hs +12-hs +24-hs +``` ## Simulation Layers -Back on the Charts, the following layers plot strategies' actions over the market data, providing a comprehensive set of visual clues showing how strategies would behave when trading. +| Layer Manager | +| :---: | +| ![layer-manager](https://user-images.githubusercontent.com/13994516/67079737-00a86300-f194-11e9-85cb-2704afa30f04.png) | -### Trading Simulation +The layer manager allows you to determine which visualization layers will be available at the Layers Panel to plot the results of testing sessions over the charts. -The Trading Simulation layer displays a backtest + forward test (paper trading) of whatever strategies you have created in the system. At sign up, you are provided with an initial set of strategies so that you can be up and running as quickly as possible. By activating the Trading Simulation layer you should be able to see something like this: +Back on the charts, the following layers plot strategies' actions over the market data, providing a comprehensive set of visual clues showing how strategies would behave when trading. + +### Simulation + +The *Simulation* layer displays a backtest + forward test (paper trading) of whatever strategies you have created in the system. At sign up, you are provided with an initial set of strategies so that you can be up and running as quickly as possible. By activating the Trading Simulation layer you should be able to see something like this: ![Trading-Simulation](https://user-images.githubusercontent.com/13994516/58564550-6c158680-822d-11e9-8bb1-102912d4bfd0.gif)

@@ -1032,21 +1056,21 @@ Notice the red horizontal bars indicating the _stop_ value for each period (cand ![Trading-Simulation-Stop](https://user-images.githubusercontent.com/13994516/58564450-3e304200-822d-11e9-8281-cc4b9cc22746.gif) -### Simulation Conditions +### Formulas and Conditions -The Trading Conditions layer helps identify which _conditions_ are met at each candle. Notice how _conditions_ are highlighted as the cursor moves through different candles. +The *ormulas and Conditions* layer helps identify which _conditions_ are met at each candle. Notice how _conditions_ are highlighted as the cursor moves through different candles. ![Trading-Simulation-Conditions](https://user-images.githubusercontent.com/13994516/58564448-3e304200-822d-11e9-967b-8c74fb8532fe.gif) -### Simulation Strategies +### Strategies -The Simulation Strategies layer identifies trigger on and trigger off events, signaling the activation and deactivation of strategies. +The *Strategies* layer identifies trigger on and trigger off events, signaling the activation and deactivation of strategies. ![Trading-Simulation-Strategies](https://user-images.githubusercontent.com/13994516/58565955-fd85f800-822f-11e9-9f95-9d0a477a4460.gif) -### Simulation Trades +### Trades -The Simulation Trades layer marks trades with a triangle whose hypotenuse connects the price at the _take position_ event with the _exit_ price. When the trade is profitable, the triangle is green; when the _exit_ happens at a loss, the triangle is red. +The *Trades* layer marks trades with a triangle whose hypotenuse connects the price at the _take position_ event with the _exit_ price. When the trade is profitable, the triangle is green; when the _exit_ happens at a loss, the triangle is red. ![Trading-Simulation-Trades](https://user-images.githubusercontent.com/13994516/58574801-1a76f700-8241-11e9-9144-0db81636dace.gif) From 2fa35b8d9e875160c68261b4533dca3cba8e2973 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 13:12:44 +0200 Subject: [PATCH 25/81] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a15ddba23..665185c9f 100644 --- a/README.md +++ b/README.md @@ -791,7 +791,7 @@ You may import any element—formulas, conditions, situations, phases, stages, c ### Contitions and Formulas with Data from Different Time Periods -When building your conditions and formulas, you may want to include analysis concerning a different time period than the one in which you intenddto run your simulation and live-trading. +When building your conditions and formulas, you may want to include analysis concerning a different time period than the one in which you intend to run your simulation and live-trading. The variables explained above, written as described, always refer to the time period on which the simulation or live-trading is running. To refer to other time periods, you need to use a mechanism built-in the app, implementing the following syntax: @@ -959,7 +959,7 @@ The result of slippage in simulations is taken into account by the graphic repre ### Datetime Range -| Time Range | +| Datetime Range | | :---: | | ![schedule](https://user-images.githubusercontent.com/13994516/67080564-ce980080-f195-11e9-9e1e-4f71dd433e57.png) | @@ -1032,22 +1032,22 @@ Back on the charts, the following layers plot strategies' actions over the marke ### Simulation -The *Simulation* layer displays a backtest + forward test (paper trading) of whatever strategies you have created in the system. At sign up, you are provided with an initial set of strategies so that you can be up and running as quickly as possible. By activating the Trading Simulation layer you should be able to see something like this: +The *Simulation* layer displays the actions of strategies throughout the tested period. Actions include the *take position event* and the management of *stop* and *take profit* in phases. By activating the Simulation layer you should be able to see something like this: ![Trading-Simulation](https://user-images.githubusercontent.com/13994516/58564550-6c158680-822d-11e9-8bb1-102912d4bfd0.gif)

-Notice Asset Balances in the bottom left corner of the screen. Asset A is your _base asset_. +Notice Asset Balances in the bottom left corner of the screen. Asset A represents BTC while Asset B represents USDT. ![Trading-Simulation-Asset-Balances](https://user-images.githubusercontent.com/13994516/58564447-3e304200-822d-11e9-9e90-e4f02212de5a.gif)

-The dashed line represents the duration of the trade at the price of the _take position_ event. Notice how the _base asset_ is exchanged for Asset B and back to the _base asset_ as the trade closes. +The dashed line represents the duration of the trade at the price of the _take position_ event. Notice how one asset is exchanged for the other asset at the take position event, and exchanged back as the trade closes. ![Trading-Simulation-Trade-Duration](https://user-images.githubusercontent.com/13994516/58564452-3ec8d880-822d-11e9-8b4e-4cd892df69e7.gif)

-Notice the green horizontal bars indicating the _take profit_ value for each period (candle). _Take profit_ is managed in _phases_, marked with the corresponding icons. +Notice the green horizontal lines indicating the _take profit_ value for each period (candle). _Take profit_ is managed in _phases_, marked with the corresponding icons. ![Trading-Simulation-Take-Profit](https://user-images.githubusercontent.com/13994516/58564451-3ec8d880-822d-11e9-84c4-7e2147018297.gif)

@@ -1058,7 +1058,7 @@ Notice the red horizontal bars indicating the _stop_ value for each period (cand ### Formulas and Conditions -The *ormulas and Conditions* layer helps identify which _conditions_ are met at each candle. Notice how _conditions_ are highlighted as the cursor moves through different candles. +The *Formulas and Conditions* layer helps identify which _conditions_ are met at each candle. Notice how _conditions_ are highlighted as the mouse pointer moves through different candles. ![Trading-Simulation-Conditions](https://user-images.githubusercontent.com/13994516/58564448-3e304200-822d-11e9-967b-8c74fb8532fe.gif) From db7590b0e96ce182bedbe79bf6aff16afc98d6ba Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 14:17:56 +0200 Subject: [PATCH 26/81] Update README.md --- README.md | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 665185c9f..4b3f2ea32 100644 --- a/README.md +++ b/README.md @@ -984,6 +984,12 @@ If you don't set a *finalDatetime* at the level of the testing session or the tr Paper trading sessions only require a *finalDatetime*. If you do not set one either at the level of the session or the trading system then the session will run for one year. +``` +{ +"finalDatetime": "2020-09-25T00:00:00.000Z" +} +``` + ### Time Period | Time Period | @@ -1074,9 +1080,33 @@ The *Trades* layer marks trades with a triangle whose hypotenuse connects the pr ![Trading-Simulation-Trades](https://user-images.githubusercontent.com/13994516/58574801-1a76f700-8241-11e9-9144-0db81636dace.gif) -# Live Trading +# Forward Testing and Live Trading -Once you are happy with your strategy, running it as a fully automated bot to trade live is quite simple. Truth be told, your strategy running as a simulation is pretty much a trading bot already—only that orders don't go to the exchange. +Once you are happy with your strategy after extensive backtesting and paper-trading sessions, running it as a fully automated bot to trade live is quite simple. Truth be told, your strategy running as a simulation is pretty much a trading bot already—only that orders don't go to the exchange. + +| Forward Testing | Live Trading | +| :---: | :---: | +| ![session-forward-testing](https://user-images.githubusercontent.com/13994516/67090258-eed1ba80-f1a9-11e9-9b00-d281d50d6eff.png) | ![session-live-trading](https://user-images.githubusercontent.com/13994516/67090259-eed1ba80-f1a9-11e9-896a-a8320f3e3f40.png) | + +It is recommended to forward test your strategy before commiting serious capital to live trading. Forward testing is usually the final testing phase before going live. It involves placing orders at the exchange for a fraction of the capital that you intend to use when trading live. + +Forward testing sessions and live trading sessions need to be configured under their corresponding tasks, pretty much like was explained for backtesting and paper-trading sessions. + +Let's review the few differences and some things you need to take into account: + +| Datetime Range | +| :---: | +| ![schedule](https://user-images.githubusercontent.com/13994516/67080564-ce980080-f195-11e9-9e1e-4f71dd433e57.png) | + +``` +{ +"finalDatetime": "2019-09-25T00:00:00.000Z" +} +``` + +Like with paper trading sessions, you only require a *finalDatetime*. If you do not set one either at the level of the session or the trading system then the session will run for one year. + +> The **Exchange Rate** and **Slippage** parameters do not affect forward testing or live trading. However, those parameters are taken into account when creating simulation layers, which are also avaialbe during forward testing and live trading. ## Getting Started From 9ed3da89772fda6c34ad21ed5816d2b22504bff6 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 19:52:52 +0200 Subject: [PATCH 27/81] Update README.md --- README.md | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 4b3f2ea32..2eb0a90ad 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,21 @@ This is a pre-release in alpha stage. The app is still under heavy development. ![Illustration](https://user-images.githubusercontent.com/13994516/63528460-4550ae80-c503-11e9-8db6-22995e0b9c16.gif) -## Setting the Right Expectations +# System Requirements + +The Superalgos Desktop App is a web app, therefore, it is cross-platform. The team is testing mostly on Windows systems, but there are users on Mac and Linux systems as well. + +The minimum hardware setup recommended for actively using the app, designing strategies and interacting with the charts is 8 GB of RAM and a dual-core processor at 2.4 GHz. + +The minimum hardware setup for a virtual machine (VM) or virtual private server (VPS) destined to trade live and not intended for active use is 4 GB of RAM and a dual-core processor at 2.4 GHz. This is recommended to minimize deployment costs. Under this configuration, the app becomes slow to react to user input. Under such configuration, you should start the live trading session and minimize the browser for lower CPU and memory consumption. + +The following recommendations may make your life easier using this pre-release in alpha stage: + +* We highly recommend you use Chrome to run the app so that you have a similar environment as developers in case you need help. + +* You will benefit from having a decent Console / Command Line application for similar reasons: we hope you won't need it, but in case you do, it may save you lots of hassle and make a difference troubleshooting and getting help from the community. We recommend [Console Emulator Cmder](https://cmder.net/). + +# Setting the Right Expectations for this Alpha-stage Pre-release Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-superalgos-desktop-app.shtml#expectations) page to understand who this app is directed at, as well as what you can expect from the app in terms of user experience, current features and limitations. @@ -104,23 +118,23 @@ Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-supera ## Before You Begin -**This *Getting Started Guide* will quickly show you the very basics of the app so that you can rapidly see the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest.** +**This *Getting Started Guide* will quickly show you the very basics of the app so that you can rapidly grasp the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest.** -The following recommendations may make your life easier using this pre-release in alpha stage: +The app's vocation is to become a comprehensive trading automation system. This is not a simple plug-and-play bot. It is a platform that allows you to design and automate a wide variety of strategies, with great flexibility. -* We highly recommend you use Chrome to run the app so that you have a similar environment as developers in case you need help. +However, flexibility and fine user control over the way bots operate comes at a cost: the learning curve required to tap into it's full potential. That said, we do intend to make light use of the app as easy as possible, for instance, for loading existing strategies and trading live right off the bat. -* You will benefit from having a decent Console / Command Line application for similar reasons: we hope you won't need it, but in case you do, it may save you lots of hassle and make a difference troubleshooting and getting help from the community. We recommend [Console Emulator Cmder](https://cmder.net/). +We will keep improving user experience with your feedback. > Bear in mind that the app evolves fast. We do our best to keep this README up to date, however, some of the images illustrating these explanations may defer from what you will find in the app. -> **WARNING: The Superalgos Desktop App is at a very early stage of development. As such, errors may occur at any point, including errors that can cause you to lose money. You are responsible for taking all precautions before starting trading live. Make sure you test with small amounts of money, the kind you can afford losing. Trade live at your own risk.** +> **WARNING: The Superalgos Desktop App is at a very early stage of development. As such, errors may occur at any point, including errors that can cause you to lose money. You are responsible for taking all precautions before starting trading live. Make sure you forward test with small amounts of money, the kind you can afford losing. Trade live at your own risk.** -## The Quick Version for Experienced PC Operators +## Initial Setup: The Quick Version for Experienced PC Operators **1. Downloads**: -Download the software package from the [latest software release](https://github.com/Superalgos/DesktopApp/releases/tag/v.0.0.3-alpha) (```Superalgos-Desktop-App.zip```) and extract the file in an accessible route (you will launch the app from these folders). +Download the software package from the [latest software release](https://github.com/Superalgos/DesktopApp/releases/tag/v.0.0.3-alpha) (```Superalgos-Desktop-App.zip```) and extract the file in an accessible route (you will launch the app from the resulting folders). Download historic market data from the [latest data release](https://github.com/Superalgos/DesktopApp/releases/tag/data.poloniex.btc.usdt.2019.10.05) (```Poloniex.BTC.USDT.Historic.Data.zip```) and extract the file inside the ```Superalgos Desktop App``` folder generated by the software ZIP package. @@ -134,7 +148,7 @@ You should end up with the following folder structure: > NOTE FOR DEVELOPERS: Instead of using the executable file to run the app, you may want to use ```node run``` from within the root ```Superalgos Desktop App``` folder, to run on your full Node Js installation. -## The Extended Version for Regular Folks +## Initial Setup: The Extended Version for Regular Folks ### Downloads From 9ac4b240553db236396dd6a4ac8a969f9c274108 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 20:49:01 +0200 Subject: [PATCH 28/81] Update README.md --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 2eb0a90ad..b0ff5551f 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ The minimum hardware setup for a virtual machine (VM) or virtual private server The following recommendations may make your life easier using this pre-release in alpha stage: -* We highly recommend you use Chrome to run the app so that you have a similar environment as developers in case you need help. +* We highly recommend you use Chrome to run the app so that you have a similar environment as developers in case you need help. We are not testing on any other browsers. * You will benefit from having a decent Console / Command Line application for similar reasons: we hope you won't need it, but in case you do, it may save you lots of hassle and make a difference troubleshooting and getting help from the community. We recommend [Console Emulator Cmder](https://cmder.net/). @@ -190,13 +190,15 @@ You should end up with the following folder structure: **1-A. In Windows systems, use the executable file to run the app**: -Go to the ```Superalgos Desktop App``` folder and double click on ```Superalgos.exe```. Now, skip the Mac instructions and go directly to point 2 below. +Go to the ```Superalgos Desktop App``` folder and double click on ```Superalgos.exe```. Now, skip the *other systems* instructions and go directly to point 2 below. **1-B. In other systems (Mac, Linux, etc.), download and install Node JS**: -Node.js is an open-source server environment required for the app to run. Go to the [Node Js downloads page](https://nodejs.org/en/download/) and download the Mac installer. Run the installer and go through the process until Node Js is installed. +Node.js is an open-source server environment required for the app to run. Go to the [Node Js downloads page](https://nodejs.org/en/download/) and download your system's installer. Run the installer and go through the process until Node Js is installed. -Now, use the Finder app to go to the ```Superalgos Desktop App``` folder and do a *secondary click* (tap the touchpad with two fingers) to open up the menu. Select *New Terminal Tab at Folder*. Once in the Terminal, type ```node run``` and hit *Enter*. +If you are on Mac, use the Finder app to go to the ```Superalgos Desktop App``` folder and do a *secondary click* (tap the touchpad with two fingers) to open up the menu. Select *New Terminal Tab at Folder*. Once in the Terminal, type ```node run``` and hit *Enter*. + +If you are on Linux, open a Terminal / Console, go to the ```Superalgos Desktop App``` folder, type ```node run``` and hit *Enter*. **2. Drag and drop an example workspace**: @@ -260,23 +262,23 @@ Do the same with the second Task Manager element. | :---: | :---: | :---: | | ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | -Go to the *Tests & Live Trades Tasks* Task Manager (hover over either of the Task Manager elements to see its name) and expand the view of child elements by clicking on the *plus sign* icon. +Go to the *Tests & Live Trading* Task Manager (hover over either of the Task Manager elements to see its name) and expand the view of child elements by clicking on the *plus sign* icon. Follow the tree of child elements until you find the *Backtesting Session* element. -Hover over the Backtesting Session element and click *Run*. +Hover over the Backtesting Session element and click *Run* on the menu. [ILLUSTRATION] You just started a backtesting session with a series of pre-configured parameters, including, for instance, the date range on which the backtesting session runs. Later on, you will learn how to adjust these parameters. -You will notice the element will display a date, signaling the progress of the session. The current session will backtest the strategy during the first nine months of 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date disappears. +You will notice the element will display a date, signaling the progress of the session. The current session will backtest the strategy during 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date disappears. Then, you may pull down the horizontal bar to go to the charts to see the results. Make sure you are standing in the 1 hr (one hour) time period. Notice the time box at the bottom of the charts: [ILLUSTRATION] -If you are not, use the wheel of your mouse while pointing at the charts to scroll into the 1 hr time period. You do this so that the backtest runs in the time period for which the strategy was designed. +If you are not at the 1 hr time period use the wheel of your mouse while pointing at the charts to zoom in, until you reach the the 1 hr time period. You do this so that you may see the results of the backtesting session, which in the case of the example strategies, are calculated and plotted over the charts at 1 hr. [ILLUSTRATION] From 7fc0adb8f6ec13381be89cff6dd1b6a05f866bfd Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 21:38:51 +0200 Subject: [PATCH 29/81] Update README.md --- README.md | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b0ff5551f..2ae398863 100644 --- a/README.md +++ b/README.md @@ -278,11 +278,11 @@ Then, you may pull down the horizontal bar to go to the charts to see the result [ILLUSTRATION] -If you are not at the 1 hr time period use the wheel of your mouse while pointing at the charts to zoom in, until you reach the the 1 hr time period. You do this so that you may see the results of the backtesting session, which in the case of the example strategies, are calculated and plotted over the charts at 1 hr. +If you are not at the 1 hr time period use the wheel of your mouse while pointing at the charts to zoom in, until you reach the the 1 hr time period. You do this so that you may see the results of the backtesting session, which in the case of the example strategies, are calculated and plotted over the 1 hr charts. [ILLUSTRATION] -You may now navigate the charts by clicking and dragging, or by zooming in and out with the wheel of your mouse. If you change the time period, you will not see the simulated data, as each time period may hold its own simulation. +You may now navigate the charts by clicking and dragging, or by zooming in and out with the wheel of your mouse. If you change the time period, you will not see the simulated data, as each time period may hold its own set of simulations. Congratulations! You've run your first simulation! @@ -290,11 +290,11 @@ The rest of this README file contains all the information you need to build your # Upgrading Your Existing Installation -You should expect patches and even new releases to become available regularly. Appropriate notices will be placed on the [Official Superalgos Telegram Announcements Channel](https://t.me/superalgos), which will be forwarded to the several Community groups when this happens. +You should expect patches and even new releases to become available regularly. Appropriate notices will be placed on the [Official Superalgos Telegram Announcements Channel](https://t.me/superalgos), which will be forwarded to the several Community groups. If you have a version of the Superalgos Desktop App and wish to upgrade to a new version you should do the following: -**1.** Stop the app by closing your browser. Allow a minute or two until no activity stops before closing the Console/Command Line running the programs. +**1.** Stop the app by closing your browser. Allow a minute or two until all activity stops before closing the Console/Command Line running the programs. **2.** Make sure you are not storing any personal files, such as your Workspace backups and so on in your ```Superalgos Desktop App``` folders. Move them to a different location if you are. @@ -306,29 +306,39 @@ If you have a version of the Superalgos Desktop App and wish to upgrade to a new **5.** Extract/unpack the contents of the ZIP file directly into the ```Superalgos Desktop App``` folder. That's it. You are up and running with the new version. Simply start the app the same way you always do unless new instructions become available in this README file. +**6.** Occasionally, the new version of the app may introduce changes that may require you to update your existing strategies. If that is the case, the announcement of the new release should explain how to proceed with your existing strategies. + # Overview > **Watch the [Superalgos Platform Quick Getting Started Guide](https://www.youtube.com/watch?v=_apiM49udL0) video for a quick intro. The video is slightly outdated in that the Superalgos Desktop App (the client version of the Platform) does not require a login and does not feature a menu on top. Otherwise, the content is still valid.** The first time you run the app, you will see the following screen, split in half. The top half features the space used by the _Charting System_ and the bottom half features the _Designer_. -Use the control in the center of the turquoise bar to pull the bar up and down in order to make more room to either application. +Use the control in the center of the turquoise bar to pull the bar up and down in order to make more room to either application. + +You may also use your keyboard as follows: + +1. Alt + ↑ to close the Charts and open the Designer. +1. Alt + ↓ to close the Designer and open the Charts. ![Drag-Panels](https://user-images.githubusercontent.com/13994516/58413461-1ac49600-8079-11e9-9dd8-96f416e75b33.gif)

-Pulling the bar to the very top of the screen causes the _Charting System_ to stop consuming resources in your local machine, and gives you an ample view of the _Designer_. -The **_Designer_** allows you to manage your [Workspace](#workspace). The structure represented by the various icons nested in a hierarchy of elements is the representation of the logic behind your _Strategies_. +> **Tip:** Pulling the bar to the very top of the screen causes the Charts to stop consuming resources in your machine, and gives you an ample view of the Designer. + +The Designer allows you to manage your [Workspace](#workspace). The structure represented by the various icons nested in a hierarchy of elements is the representation of the logic behind your _strategies_. ![image](https://user-images.githubusercontent.com/13994516/58325421-f32bbe80-7e29-11e9-9478-9e6e4a02ae47.png)

-Pulling the bar to the very bottom of the screen causes the _Designer_ to stop consuming resources from your local machine, and offers a full-screen view of the _Charting System_. -The **_Charting System_** plots indicators data along with the actions taken by the _Strategy Engine_ and the _Executor_, integrated with market data. +> **Tip:** Pulling the bar to the very bottom of the screen causes the Designer to stop consuming resources from your machine, and offers a full-screen view of the Charts. + +The *_Charts_* plots indicators data along with the actions taken by strategies, integrated with market data. ![image](https://user-images.githubusercontent.com/13994516/58325972-c37db600-7e2b-11e9-9aa2-9f6faaf8dd94.png)

-The **_Superalgos Protocol_** (also referred to as the _protocol_) determines the structure in which all the information regarding a trading system is stored and—at the same time—provides a clear guidance on how traders using the various tools developed and distributed by the Superalgos Project shall create and automate their strategies. + +The *Superalgos Protocol* (also referred to as the _protocol_) determines the structure in which all the information regarding a trading system is stored and—at the same time—provides a clear guidance on how traders using the various tools developed and distributed by the Superalgos Project shall create and automate their strategies. # Charts Interface From 9f03c78df6df42693fef624846bec4a26661f67b Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 22:46:37 +0200 Subject: [PATCH 30/81] Update README.md --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 2ae398863..7a8ca32d9 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,15 @@ -# Superalgos Desktop App Documentation +# Superalgos Desktop App The Superalgos Desktop App is the client application of the Superalgos Platform suite, and provides a visual environment for developing and automating crypto-trading strategies. +The app's vocation is to become a comprehensive trading automation system. This is not a simple plug-and-play bot. It is a platform that allows you to design and automate a wide variety of strategies, with great flexibility. + +However, flexibility and fine user control over the way bots operate come at a cost: the learning curve required to tap into the app's full potential. That said, we do intend to make light use of the app as easy as possible, for instance, for loading existing strategies and trading live right off the bat, with minimal input. + This is a pre-release in alpha stage. The app is still under heavy development. We appreciate your help testing the app and reporting any errors you may experience. +We will keep improving user experience with your feedback. + ![Illustration](https://user-images.githubusercontent.com/13994516/63528460-4550ae80-c503-11e9-8db6-22995e0b9c16.gif) # System Requirements @@ -120,12 +126,6 @@ Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-supera **This *Getting Started Guide* will quickly show you the very basics of the app so that you can rapidly grasp the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest.** -The app's vocation is to become a comprehensive trading automation system. This is not a simple plug-and-play bot. It is a platform that allows you to design and automate a wide variety of strategies, with great flexibility. - -However, flexibility and fine user control over the way bots operate comes at a cost: the learning curve required to tap into it's full potential. That said, we do intend to make light use of the app as easy as possible, for instance, for loading existing strategies and trading live right off the bat. - -We will keep improving user experience with your feedback. - > Bear in mind that the app evolves fast. We do our best to keep this README up to date, however, some of the images illustrating these explanations may defer from what you will find in the app. > **WARNING: The Superalgos Desktop App is at a very early stage of development. As such, errors may occur at any point, including errors that can cause you to lose money. You are responsible for taking all precautions before starting trading live. Make sure you forward test with small amounts of money, the kind you can afford losing. Trade live at your own risk.** From d58b92f4a915947d121a90c6c0b0a546f346fec8 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Fri, 18 Oct 2019 23:06:04 +0200 Subject: [PATCH 31/81] Update README.md --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a8ca32d9..6d1758ab2 100644 --- a/README.md +++ b/README.md @@ -26,10 +26,30 @@ The following recommendations may make your life easier using this pre-release i * You will benefit from having a decent Console / Command Line application for similar reasons: we hope you won't need it, but in case you do, it may save you lots of hassle and make a difference troubleshooting and getting help from the community. We recommend [Console Emulator Cmder](https://cmder.net/). -# Setting the Right Expectations for this Alpha-stage Pre-release +# Setting the Right Expectations Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-superalgos-desktop-app.shtml#expectations) page to understand who this app is directed at, as well as what you can expect from the app in terms of user experience, current features and limitations. +Beyond the list of [Current Features & Limitations](https://superalgos.org/tools-superalgos-desktop-app.shtml#features_limitations) you will find in the website, what you will get is a client application that runs entirely on users' machines. This is to fulfill the design principle of a trustless deployment: you don't need to trust any third party with your Strategies, API Keys, personal information, or funds. + +Traders rely on data sets for backtesting. The app retrieves raw trades data directly from xxchanges and processes data to produce candles and a few indicators, which are stored in your local machine. + +The volume of trades data generated at exchanges is massive. Exchanges APIs impose limits on the bandwidth of data you may retrieve from your machine per unit of time. To save you from spending days or weeks running processes to retrieve the data you will need for backtesting, we include historic market data in our releases. + +This has a small non-monetary cost associated: the zip files you will download are a bit heavy and highly compressed. As a result, it may take 30 to 60 minutes for your machine to decompress the files. Also, a second small cost is that this adds a step in the process to fire up the app the first time. + +# Motivation + +Superalgos is pre-releasing an early alpha-stage version of the Superalgos Desktop App, in the hope that early adopters will help us shape the software and evolve it into a robust product. We try our best to make installation and operation easy, but at this point, the app is directed at tech-savvy individuals with a knack for learning a few PC operator tricks while installing and using the app. + +If you don't consider yourself an early adopter and usually go to your 10-year-old for advice on using your PC, you may still give it a shot. Developers and users in the [Community](https://t.me/superalgoscommunity) will be happy to give you a hand and get you up and running. + +We value highly all feedback. We are listening and actively participating in the various Superalgos Community group. + +We keep a wish list for new features in the form of [issues in this repository](https://github.com/Superalgos/DesktopApp/issues). If you are missing a key feature, feel free to open an issue using the ```improvement``` label. + +However, bear in mind that the app is at an early stage of development and that the current priority is stabilization and delivery of core features. + # Table of Contents * [Getting Started](#getting-started) From d07608152751fe6f31a2524ea4c359cab327e894 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sat, 19 Oct 2019 16:02:30 +0200 Subject: [PATCH 32/81] Update README.md --- README.md | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 6d1758ab2..fec19a6a9 100644 --- a/README.md +++ b/README.md @@ -332,7 +332,7 @@ If you have a version of the Superalgos Desktop App and wish to upgrade to a new > **Watch the [Superalgos Platform Quick Getting Started Guide](https://www.youtube.com/watch?v=_apiM49udL0) video for a quick intro. The video is slightly outdated in that the Superalgos Desktop App (the client version of the Platform) does not require a login and does not feature a menu on top. Otherwise, the content is still valid.** -The first time you run the app, you will see the following screen, split in half. The top half features the space used by the _Charting System_ and the bottom half features the _Designer_. +The first time you run the app, you will see the following screen, split in half. The top half features the space used by the _Charts_ and the bottom half features the _Designer_. Use the control in the center of the turquoise bar to pull the bar up and down in order to make more room to either application. @@ -353,7 +353,7 @@ The Designer allows you to manage your [Workspace](#workspace). The structure re > **Tip:** Pulling the bar to the very bottom of the screen causes the Designer to stop consuming resources from your machine, and offers a full-screen view of the Charts. -The *_Charts_* plots indicators data along with the actions taken by strategies, integrated with market data. +The *_Charts_* shows indicators data along with the actions taken by strategies, integrated with market data. ![image](https://user-images.githubusercontent.com/13994516/58325972-c37db600-7e2b-11e9-9aa2-9f6faaf8dd94.png)

@@ -408,7 +408,7 @@ When on the charts, you may use the following key combinations: ## Floating Panels -To minimize a panel, click on the small triangle on the right of their title bar. This will automatically position the panel at the bottom of the screen. Clicking again restores the panel to its previous position. +To minimize a panel, click on the small triangle on the right of its title bar. This will automatically position the panel at the bottom of the screen. Clicking again restores the panel to its previous position. You may also drag and drop the panels by right-clicking on the title bar. @@ -416,7 +416,7 @@ You may also drag and drop the panels by right-clicking on the title bar. ## Layers -The Superalgos Desktop App is an open system, meaning anyone can build layers for the _Charting System_. So far—with our current limited manpower—we have created several Indicator Layers described below, along with a few Simulation and Execution Layers described further down this document. +The Superalgos Desktop App is an open system, meaning anyone can build layers for the Charts. So far—with our current limited manpower—we have created several indicator layers described below, along with a few simulation and execution Layers described further down this document. ### Indicator Layers @@ -440,13 +440,13 @@ This is an unusual pattern proving any data set may be plotted on the charts (an #### Volume Stairs Patterns -A similar concept, this time with volumes. Whenever a sequence of volume bars is found where each one is bigger than the previous one, they are bundled together in a "Stair". The same applies when they are going down (the next is smaller than the previous one). For a trading bot, this serves to identify if sell or buy volumes are raising or declining, if any. +A similar concept, this time with volumes. Whenever a sequence of volume bars is found where each one is bigger than the previous one, they are bundled together in a "Stair". The same applies when they are going down (the next is smaller than the previous one). For a trading bot, this serves to identify if sell or buy volumes are raising or declining. ![Volume-Stairs](https://user-images.githubusercontent.com/13994516/58435908-1ae98380-80c3-11e9-8c0d-87a105b4e021.gif) #### Bollinger Bands -This is the traditional [Bollinger Bands indicator](https://en.wikipedia.org/wiki/Bollinger_Bands). Bollinger Bands have a moving average, in our case calculated with the last 20 periods (the line in the middle of the bands). We are plotting the moving average with one color when it is going up, and with a different color when it's going down. The upper band is at 2 Standard Deviations from the center, pretty much like the lower band, also at 2 Standard Deviations. These are the most widely used Bollinger Bands settings. +This is the traditional [Bollinger Bands indicator](https://en.wikipedia.org/wiki/Bollinger_Bands). Bollinger Bands have a moving average, in our case calculated with the last 20 periods (the line in the middle of the bands). We are plotting the moving average with one color when it is going up, and with a different color when it's going down. The upper band is at 2 Standard Deviations from the moving average, pretty much like the lower band, also at 2 Standard Deviations. These are the most widely used Bollinger Bands settings. ![Bollinger-Bands](https://user-images.githubusercontent.com/13994516/58435901-1a50ed00-80c3-11e9-853a-68d39ba7958b.gif) @@ -463,13 +463,13 @@ The chart features lines at %B value 30 and 70 since those are the most common v #### Bollinger Channels -This is a non-standard indicator derived from the Bollinger Bands. These types of channels are calculated using the Bollinger Bands moving average. Essentially an upward channel begins when the moving average turns from going down to going up, and the channel finishes when it turns from going up to down. A downward channel starts when the Bollinger Band moving average turns from going up to down, and it finishes when it starts going up again. Upward channels are plotted in green, while downward channels in red. Additional information can be found at the indicator's panel, like the number of periods contained at the channel. +This is a non-standard indicator derived from the Bollinger Bands. These types of channels are calculated using the Bollinger Bands moving average. Essentially an upward channel begins when the moving average changes _direction_ from going down to going up, and the channel finishes when it turns from going up to down. A downward channel starts when the Bollinger Band moving average turns from going up to down, and it finishes when it starts going up again. Upward channels are plotted in green, while downward channels in red. Additional information can be found at the indicator's panel, like the number of periods contained at the channel. ![Bollinger-Channels](https://user-images.githubusercontent.com/13994516/58497359-146b1280-817c-11e9-9f4d-99fee41cd27f.gif) #### Bollinger Sub-Channels -If we consider that one Bollinger Channel can have sub-channels with the same direction (up or down) but different slopes, then we get to the concept of Bollinger Sub-Channels. The most important property of a sub-channel is its slope. The possible values are: side, gentle, medium, high and extreme. With this information, a trading bot could easily ask if it is in a sub-channel with a certain slope and for how many periods. +If we consider that one Bollinger Channel can have sub-channels with the same direction (up or down) but different slopes, then we get to the concept of Bollinger Sub-Channels. The most important property of a sub-channel is its slope. The possible values are: Side, Gentle, Medium, High and Extreme. With this information, a trading bot could easily ask if it is in a sub-channel with a certain slope and for how many periods. The slope or inclination of the moving average may be an indication of momentum. ![Bollinger-Sub-Channels](https://user-images.githubusercontent.com/13994516/58497358-146b1280-817c-11e9-83df-219d0fffa9f0.gif) @@ -511,7 +511,7 @@ Definitions include every single parameter describing your trading systems, as w Pretty much like with every other element in the hierarchy, you may back up your definitions using the back up button on the definition's menu. -Definitions is the top-level element in the hierarchy, with three children elements: Trading System, Personal Data and Network. We will briefly discuss the *trading system* and leave the other two for later. +A definition is the top-level element in the hierarchy, with three children elements: Trading System, Personal Data and Network. We will briefly discuss the *trading system* and leave the other two for later. ### Trading System @@ -575,7 +575,7 @@ The following menu options are tools that will help you manipulate the arrangeme | --- | --- | | ![fix-pinned](https://user-images.githubusercontent.com/13994516/63041034-2df04080-bec7-11e9-88d3-8b7c1d42a666.png) | The element is pinned on a specific X-Y coordinate on the workspace. | | ![menu-fix-unpinned](https://user-images.githubusercontent.com/13994516/63041045-35afe500-bec7-11e9-8f21-c8b3b66d3a0b.png) | The element is free, not pinned. | -| ![menu-mobility-freeze](https://user-images.githubusercontent.com/13994516/63041051-39436c00-bec7-11e9-8194-7cdd113147e4.png) | The element's connections with its parent and children are frozen. Connecting lines are blue. | +| ![menu-mobility-freeze](https://user-images.githubusercontent.com/13994516/63041051-39436c00-bec7-11e9-8194-7cdd113147e4.png) | The element's connections with its parent and children are frozen. Connecting lines are blue. If you freeze your definition, then the whole hierachy is frozen. | | ![menu-mobility-unfreeze](https://user-images.githubusercontent.com/13994516/63041053-3b0d2f80-bec7-11e9-8b6f-ebe50dcb4d25.png) | The element's connections are unfrozen. | | ![menu-tensor-fixed-angles](https://user-images.githubusercontent.com/13994516/63041062-3fd1e380-bec7-11e9-814f-e8cabc90fd12.png) | The element is locked to a rotational symmetry in relation with the rest of the elements at the same level of the hierarchy, thus all angles between elements are equal. Connection lines are orange.| | ![menu-tensor-free-angles](https://user-images.githubusercontent.com/13994516/63041066-42343d80-bec7-11e9-828e-b2d9a191fea2.png) | The element is not locked in a rotational symmetry; instead, angles are free. Connection lines are yellow.| @@ -592,15 +592,29 @@ The rest of the menu options available in most elements are the following: ### Detachment and Attachment of Elements -Elements in the workspace may be detached from its parent, carrying all children with it. When an element is detached, it is no longer taken into account in simulations or live trading. This feature enables testing different parameters, keeping alternatives handy in the same workspace. +Elements in the workspace may be detached from its parent, carrying all children with it. When an element is detached, it is no longer taken into account in simulations or live trading, as it no longer belongs to the definition. This feature enables testing different parameters, keeping alternatives handy in the same workspace. ![Designer-Attach-Detach](https://user-images.githubusercontent.com/13994516/63227849-6d7e9b80-c1eb-11e9-9a02-6f760f383751.gif)

To detach an element, right-click on it and drag it away from the parent element. To attach an element, right-click on it and move it closer to the element you wish to attach it to. +> **NOTE**: Elements may not be detached or attached to frozen elements. You need to unfreeze them before attaching or detaching. + Elements may be attached only to conceptually related parents. For instance, a *condition* may be attached to a *situation*, but it can not be attached to a *formula*. +### Element Shortcuts + +You may define shortcuts for frequently-used elements with the following procedure: + +1. Hover the mouse pointer over the target element until the menu opens up. +1. Click Ctrl + your preferred key to assign the shortcut. +1. A sign will appear below the element confirming the assignation of the shortcut. + +> **NOTE**: For Mac users, replace Ctrl with Command + +Repeat the same procedure to remove a shortcut. + ## Working with Strategies ![strategy](https://user-images.githubusercontent.com/13994516/63512399-0d863e80-c4e4-11e9-9690-bacadc185a27.png) @@ -613,7 +627,7 @@ Becoming familiar with the Superalgos Protocol will significantly increase your * [Superalgos Protocol V0.1 - the Long Version, for Beginner Traders](https://medium.com/superalgos/superalgos-protocol-v0-1-the-long-version-for-beginner-traders-f293f1cc6c13). -The Designer provides a Graphic User Interface for traders to input the _rules_ and _formulas_ that determine the behavior of strategies. Traders need to define the rules to _trigger on_ and _trigger off_ each strategy, to _take a position_, to manage _take profit_ targets and _stops_. +The Designer provides a graphic user interface (GUI) for traders to input the _rules_ and _formulas_ that determine the behavior of strategies. Traders need to define the rules to _trigger on_ and _trigger off_ each strategy, to _take a position_, to manage _take profit_ targets and _stops_. ### Situations and Conditions @@ -679,9 +693,9 @@ In the example above, _condition C_ would be _true_ if the whole candle falls wi > > Otherwise, the logic for building strategies as described in the video is still valid. -Strategies within a specific Trading System respond to the parameters set for the corresponding Trading System. This means they all have the same Base Asset, and they all share the _initialCapital_ (see [Trading System](#trading-system) for further references). +Strategies within a specific trading system respond to the parameters set for the corresponding trading system. This means they all have the same base asset, and they all share the _initialCapital_ (see [Trading System](#trading-system) for further references). -To start a brand new strategy, go to the Trading System icon and click _Add Strategy_ on the menu. Several icons will pop up on the screen. As you work on each stage (```Trigger > Open > Manage > Close```), you may need to add the missing items corresponding to certain elements. +To start a brand new strategy, go to the Trading System element and click _Add Strategy_ on the menu. Several icons will pop up on the screen. As you work on each stage (```Trigger > Open > Manage > Close```), you may need to add the missing items corresponding to certain elements. ![Designer-New-Strategy](https://user-images.githubusercontent.com/13994516/63052412-8df2e100-bedf-11e9-9ee9-9f4f4f61eeb3.gif)

@@ -835,7 +849,7 @@ You may import any element—formulas, conditions, situations, phases, stages, c **distanceToLast.closePosition:** The number of periods between the last Close Position and the current candle. -### Contitions and Formulas with Data from Different Time Periods +### Conditions and Formulas with Data from Different Time Periods When building your conditions and formulas, you may want to include analysis concerning a different time period than the one in which you intend to run your simulation and live-trading. From 19a83e2c707356fb150704b1650d7c67892d48fd Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sat, 19 Oct 2019 16:32:56 +0200 Subject: [PATCH 33/81] Update README.md --- README.md | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fec19a6a9..24800caa0 100644 --- a/README.md +++ b/README.md @@ -736,6 +736,14 @@ You may import any element—formulas, conditions, situations, phases, stages, c ![Designer-Drag-Drop](https://user-images.githubusercontent.com/13994516/63052820-a283a900-bee0-11e9-99b3-67273cba96a0.gif) +### Working with Multiple Strategies + +When you have more than one strategy under the same trading system, all strategies share the *parameters* defined at the trading system level. This means that all strategies will work with the same *base asset* and share the same *initialCapital*. + +As a consequence, strategies within a trading system may never be triggered on at the same time. Under such setting, when a strategy is triggered on, it blocks the triggering of the rest of the strategies within the trading system. + +If you wish to have multiple strategies that work independently of each other, then you need to place them on different trading systems. At this point, the app supports only one trading system per definition. As a result, if you wish to have multiple independent strategies, then you need to have multiple definitions, each with one trading system. + ## Available Variables ### Candles @@ -921,7 +929,7 @@ There currently are three kinds of bots that you will run to provide you with th * **Indicators:** they process data to produce more ellaborate datasets; * **Trading Engine:** it is the bot that reads a Superalgos Protocol file containing the details of trading strategies and interacts with the Superalgos Desktop App to run them as simulations (using a simulation plotter) or to trade live. -> Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you *do not* use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own, starting from the definition menu. It is unlikely that you will be able to do this properly, so we highly reccommend you use one of the supplied templates. +> **NOTE:** Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you *do not* use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own, starting from the definition menu. It is unlikely that you will be able to do this properly, so we highly reccommend you use one of the supplied templates. All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos Network and a network node with two task managers. Each task manager has a name, which becomes visible only upon hovering the mouse pointer: @@ -931,6 +939,8 @@ All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos N [ILLUSTRATION] +> **PRO TIP:** The [Getting Started Guide](#getting-started-guide) instructed you to start all tasks on both of these task managers. However, once you become familiar with the app, you may want to start only individual tasks according to your specific needs. + # Testing and Simulations | Backtesting | Paper-Trading | @@ -941,7 +951,7 @@ A simulation is the visual representation over the charts of any of the forms of * **Backtesting:** testing over historic data; * **Paper-trading:** testing over a live data feed, without placing orders at the exchange (orders are simulated); -* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *position size*. +* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *[positionSize](#internal)*. We will cover *forward testing* when we discuss live trading. For the time being, we will focus on the first two steps of the strategy testing process. @@ -951,6 +961,10 @@ As explained in the previous chapter, the trading engine is the bot that handles For your convenience, all our templates in the ```Quick-Start-Examples``` folder come with at least one backtesting and one paper-trading session set up. All you need to do is customize the *parameters* to your liking and, if you wish, add or remove layers to the *layer manager*, both child elements of each testing session. +> **PRO TIP**: The app allows for having multiple testing sessions. You may add and work with multiple sessions by backing up the existing session at the level of the process. Then drop the backup on the workspace, attach it to the trading engine and give the new session a new name. + +[ILLUSTRATION] + ## Parameters | Parameters | @@ -959,7 +973,7 @@ For your convenience, all our templates in the ```Quick-Start-Examples``` folder Each testing session has its own set of parameters. This allows you to configure different trading sessions with different parameters, and go back and forth between them as required. For instance, you may have different backtesting sessions with different date ranges, different exchange fees or different slippage settings. -> If any of these parameters is missing from the configuration of the testing session, the app's fall-back mechanism will look for the parameters at the trading system level and use those settings instead. +> If any of these parameters is missing from the configuration of the testing session, the app's fallback mechanism will look for the parameters at the trading system level and use those settings instead. We covered the *Base Asset* parameter when explaining [trading systems](#trading-system). Let's now review the rest. @@ -989,11 +1003,11 @@ To illustrate how fees affect your bottom line, take a look at the image below. The trade hits the take profit target above the Position Rate level, however, due to fees, the trade has a negative 0.32% ROI. -> If the *Fee Structure* parameter is left empty or disconnected both from your testing session and your Trading System, fees will not be computed during simulations. +> **NOTE:** If the *Fee Structure* parameter is left empty or disconnected both from your testing session and your Trading System, fees will not be computed during simulations. ### Slippage -[Slippage](https://en.wikipedia.org/wiki/Slippage_(finance)) is another issue you need to be aware of to more realistically evaluate a Strategy. The price at which the Exchange will fill the order placed by the Execution Engine is seldom going to match the conditions of the simulation. +[Slippage](https://en.wikipedia.org/wiki/Slippage_(finance)) is another issue you need to be aware of to more realistically evaluate a strategy. The price at which the exchange will fill the order placed by the Execution Engine is seldom going to match the conditions of the simulation. To account for slippage during simulations, you may enter slippage values for the three different occasions in which the Execution Engine will place orders: Take Position, Take Profit and Stop. @@ -1015,7 +1029,7 @@ The number you enter is applied as a percentage of the price of the order and ad The result of slippage in simulations is taken into account by the graphic representation of each trade created by the Simulation Trades layer. -> If the *Slippage* parameter is left empty or disconnected both from your testing session and your Trading System, slippage will not be computed during simulations. +> **NOTE:** If the *Slippage* parameter is left empty or disconnected both from your testing session and your Trading System, slippage will not be computed during simulations. ### Datetime Range @@ -1108,6 +1122,8 @@ Notice Asset Balances in the bottom left corner of the screen. Asset A represent ![Trading-Simulation-Asset-Balances](https://user-images.githubusercontent.com/13994516/58564447-3e304200-822d-11e9-9e90-e4f02212de5a.gif)

+> **NOTE:** For the time being, asset balances displayed on screen correspond to the Simulation layer that was turned on last. + The dashed line represents the duration of the trade at the price of the _take position_ event. Notice how one asset is exchanged for the other asset at the take position event, and exchanged back as the trade closes. ![Trading-Simulation-Trade-Duration](https://user-images.githubusercontent.com/13994516/58564452-3ec8d880-822d-11e9-8b4e-4cd892df69e7.gif) @@ -1124,7 +1140,7 @@ Notice the red horizontal bars indicating the _stop_ value for each period (cand ### Formulas and Conditions -The *Formulas and Conditions* layer helps identify which _conditions_ are met at each candle. Notice how _conditions_ are highlighted as the mouse pointer moves through different candles. +The *Formulas and Conditions* layer helps identify which conditions are met at each candle. Notice how conditions are highlighted as the mouse pointer moves through different candles. ![Trading-Simulation-Conditions](https://user-images.githubusercontent.com/13994516/58564448-3e304200-822d-11e9-967b-8c74fb8532fe.gif) From 271f6f4d71aaebce75a356361d3154ed262323ef Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sat, 19 Oct 2019 18:11:14 +0200 Subject: [PATCH 34/81] Update README.md --- README.md | 68 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 47 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 24800caa0..c7006500c 100644 --- a/README.md +++ b/README.md @@ -1164,55 +1164,81 @@ Once you are happy with your strategy after extensive backtesting and paper-trad | :---: | :---: | | ![session-forward-testing](https://user-images.githubusercontent.com/13994516/67090258-eed1ba80-f1a9-11e9-9b00-d281d50d6eff.png) | ![session-live-trading](https://user-images.githubusercontent.com/13994516/67090259-eed1ba80-f1a9-11e9-896a-a8320f3e3f40.png) | -It is recommended to forward test your strategy before commiting serious capital to live trading. Forward testing is usually the final testing phase before going live. It involves placing orders at the exchange for a fraction of the capital that you intend to use when trading live. +It is recommended to forward test your strategy before commiting serious capital to live trading. Forward testing is usually the final testing phase before going live. It involves placing orders at the exchange for a fraction of the capital that you intend to use when trading live, and that is actually the only difference between a forward testing session and a live trading session. -Forward testing sessions and live trading sessions need to be configured under their corresponding tasks, pretty much like was explained for backtesting and paper-trading sessions. +Forward testing sessions and live trading sessions need to be configured under their corresponding tasks, pretty much like was explained for backtesting and paper-trading sessions, with a few minor nouances: -Let's review the few differences and some things you need to take into account: - -| Datetime Range | -| :---: | -| ![schedule](https://user-images.githubusercontent.com/13994516/67080564-ce980080-f195-11e9-9e1e-4f71dd433e57.png) | - -``` -{ -"finalDatetime": "2019-09-25T00:00:00.000Z" -} -``` +**1. Datetime Range** Like with paper trading sessions, you only require a *finalDatetime*. If you do not set one either at the level of the session or the trading system then the session will run for one year. +``` +{ +"finalDatetime": "2020-12-31T23:59:99.999Z" +} +``` + > The **Exchange Rate** and **Slippage** parameters do not affect forward testing or live trading. However, those parameters are taken into account when creating simulation layers, which are also avaialbe during forward testing and live trading. +**2. Forward Testing Session Configuration** + +In the case of forward testing you will want to configure what is the percentage of your capital that you wish to use for testing. You do this by clicking the *Edit Session* option on the session's menu and entering the desired value in the code snipet: + +``` +{"balancePercentage": 1} +``` + +The number you enter is applied as a percentage of the *positionSize* you defined on the [Open Stage](#open-stage) of the strategy. For instance, ```"balancePercentage": 1``` means the position will be set for 1% of the defined *postionSize*. + +The following topics cover information that is common both to forward testing and live trading sessions. + ## Getting Started All you need to do to start live-trading is: -1. Get your API Keys from the exchange (see instructions for [Poloniex](#poloniex-api-keys)). +1. Go to your definition and click *Add Personal Data* on the menu. In the new Personal Data element, click *Add Exchange Account*. In the Exchange Account element, click *Add Asset* and *Add Key*. -2. Enter the public key and secret in the *Account Key* element attached to the *Exchange Account* element. Simply replace the *New Key* title with the *public key*, and enter the *secret* as the *Key Value*.

![Live-Trading-API-Key](https://user-images.githubusercontent.com/13994516/63278457-94020c80-c2a7-11e9-9436-340f2c60c999.gif) +2. Get your API Key from the exchange (see instructions for [Poloniex](#poloniex-api-keys)). + +3. Enter the public key and secret in the *Account Key* element: simply replace the *New Key* title with the *public key*, and enter the *secret* as the *Key Value*.

![Live-Trading-API-Key](https://user-images.githubusercontent.com/13994516/63278457-94020c80-c2a7-11e9-9436-340f2c60c999.gif)

-3. Make sure the following elements are present in your strategy. If they are not, simply add them: go to the _Open Stage_ element and select _Add Open Execution_ on the menu; do the same with the _Close Stage_, adding _Close Execution_). No need to configure anything, simply make sure the elements are there). +4. Make sure the following elements are present in your strategy. If they are not, simply add them: go to the _Open Stage_ element and select _Add Open Execution_ on the menu; do the same with the _Close Stage_, adding _Close Execution_). No need to configure anything, simply make sure the elements are there). | Icon | Element | Stage | | :---: | :---: | :--- | | ![execution](https://user-images.githubusercontent.com/13994516/63542647-25c87e80-c521-11e9-899a-318bd6c62288.png) | Open Execution | Open Stage | | ![execution](https://user-images.githubusercontent.com/13994516/63542647-25c87e80-c521-11e9-899a-318bd6c62288.png) | Close Execution | Close Stage | -4. Go back to the Charts and make sure they are positioned in the *time period* you wish to trade in. +5. Go to the forward testing or live trading session and click *Run* on the menu. > **WARNING: The Superalgos Desktop App is at a very early stage of development. As such, errors may occur at any point, including errors that can cause you to lose money. You are responsible for taking all precautions before starting trading live. Make sure you test with small amounts of money, the kind you can afford losing. Also, make sure you understand the [Execution Limitations](#execution-limitations). Trade live at your own risk.** -5. Click RESTART LIVE TRADING. - ## Live Trading Process -As soon as you click RESTART LIVE TRADING, your bot will be trading live. What happens is that you are still running a simulation—thus all the simulation layers keep plotting the same kind of information over the charts. +As soon as you click *Run*, your bot will be forward testing or trading live. What happens is that you are still running a simulation—thus all the simulation layers keep plotting the same kind of information over the Charts. The difference is that orders will now go to the exchange. -Your trading bot is executed every 30 to 60 seconds, depending on the capacity of your machine. This is something you need to consider when picking a time period to trade, as the time lag between the moment the candle closes at the exchange and the time your trading bot is executed, will be more or less significant. +**For maximum efficiency, we recommend you run live trading sessions on the 01-min time period. Your bot will then be executed every 60 seconds to evaluate your strategy rules and decide if any action needs to be taken. This is important even if your strategy operates at a lower frequency, as running the live session at the 01-min time period guarantees that the engine will exit trades as soon as the last one-minute candle tags your stop or take profit target. On the contrary, if you run the live trading session at a time period higher than 01-min, slippage may be considerably greater.** + +For the above recommendation to be viable, then all of your conditions and formulas will need to be explicit in referencing the time period. Let's clarify what this means. + +Let's assume you wish to trade live with the [Weak-hands buster](https://github.com/Superalgos/Strategy-BTC-WeakHandsBuster) strategy, which operates mostly at the one hour time period. + +The first condition of the trigger on event is: + +``` +chart.at01hs.candle.previous.max > chart.at01hs.bollingerBand.previous.movingAverage + chart.at01hs.bollingerBand.previous.deviation +``` + +The use of ```chart.at01hs.``` makes explicit that the candle to check is the one at the 01-hs time period, as explained in the chapter [Conditions and Formulas with Data from Different Time Periods](https://github.com/Superalgos/DesktopApp/blob/develop/README.md#contitions-and-formulas-with-data-from-different-time-periods). + +This makes the trading engine check the 01-hs time period, even if the bot is running every minute. + +If, on the contrary, the condition was ```candle.previous.max > bollingerBand.previous.movingAverage + bollingerBand.previous.deviation``` then the trading engine would be checking the candles at the 01-min chart, which is not what is intended. + +> **NOTE:** All strategies offered as examples in the ```Quick-Start-Examples``` folder are now set up according to the above criteria. ## Live Trading History Layer From dfd00b153d6206acf773ffe6b376eb3cc3fca196 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sun, 20 Oct 2019 11:54:46 +0200 Subject: [PATCH 35/81] Update README.md --- README.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c7006500c..e988d1548 100644 --- a/README.md +++ b/README.md @@ -54,9 +54,9 @@ However, bear in mind that the app is at an early stage of development and that * [Getting Started](#getting-started) * [Before You Begin](#before-you-begin) - * [The Quick Version for Experienced PC Operators](#the-quick-version-for-experienced-pc-operators) - * [The Extended Version for Regular Folks](#the-extended-version-for-regular-folks) - * [Downloads](#downloads/) + * [Initial Setup: The Quick Version for Experienced PC Operators](#initial-setup-the-quick-version-for-experienced-pc-operators) + * [Initial Setup: The Extended Version for Regular Folks](#initial-setup-the-extended-version-for-regular-folks) + * [Downloads](#downloads) * [Running the App](#running-the-app) * [Running Your First Backtest](#running-your-first-backtest) * [Upgrading Your Existing Installation](#upgrading-your-existing-installation) @@ -64,8 +64,9 @@ However, bear in mind that the app is at an early stage of development and that * [Charts Interface](#charts-interface) * [Layers Panel](#layers-panel) * [Main Elements](#main-elements) - * [Mouse Wheel Operations](#mouse-wheel-operations) - * [Keyboard Shortcuts](#keyboard-shortcuts) + * [Navigation](#navigation) + * [Using your Mouse](#using-your-mouse) + * [Keyboard Navigation](#keyboard-navigation) * [Floating Panels](#floating-panels) * [Layers](#layers) * [Indicator Layers](#indicator-layers) @@ -82,8 +83,10 @@ However, bear in mind that the app is at an early stage of development and that * [Definitions](#definitions) * [Trading System](#trading-system) * [Interface](#interface) + * [Navigation](navigation-1) * [Element's Menu](#elements-menu) * [Detachment and Attachment of Elements](#detachment-and-attachment-of-elements) + * [Element Shortcuts](#element-shortcuts) * [Working with Strategies](#working-with-strategies) * [Situations and Conditions](#situations-and-conditions) * [Comparison and Logical Operators](#comparison-and-logical-operators) @@ -91,9 +94,10 @@ However, bear in mind that the app is at an early stage of development and that * [Trigger Stage](#trigger-stage) * [Open Stage](#open-stage) * [Using an Existing Strategy](#using-an-existing-strategy) + * [Working with Multiple Strategies](#working-with-multiple-strategies) * [Available Variables](#available-variables) * [Candles](#candles) - * [Bollinger Band](#bollinger-band) + * [Bollinger Bands](#bollinger-band) * [Percentage Bandwidth](#percentage-bandwidth) * [Bollinger Channels](#bollinger-channels) * [Bollinger SubChannels](#bollinger-subchannels) @@ -765,7 +769,7 @@ If you wish to have multiple strategies that work independently of each other, t > Previous Property: The _.previous_ property is a property common to all indicators. You may use the property on each of the indicators in a similar way. -### Bollinger Band +### Bollinger Bands **bollingerBand.movingAverage:** The value of the current moving average (20 periods). From 00cb9b75bec66db4a186bd0e81d58f4f591638a6 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sun, 20 Oct 2019 12:19:21 +0200 Subject: [PATCH 36/81] Update README.md --- README.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e988d1548..6579a2850 100644 --- a/README.md +++ b/README.md @@ -97,26 +97,27 @@ However, bear in mind that the app is at an early stage of development and that * [Working with Multiple Strategies](#working-with-multiple-strategies) * [Available Variables](#available-variables) * [Candles](#candles) - * [Bollinger Bands](#bollinger-band) + * [Bollinger Bands](#bollinger-bands-1) * [Percentage Bandwidth](#percentage-bandwidth) * [Bollinger Channels](#bollinger-channels) * [Bollinger SubChannels](#bollinger-subchannels) * [Internal](#internal) -* [Simulations](#simulations) - * [Running the First Simulation](#running-the-first-simulation) - * [Exchange Fees](#exchange-fees) - * [Slippage](#slippage) - * [Datetime Range](#datetime-range) - * [Time Period](#time-period) - * [Contitions and Formulas with Data from Different Time Periods](#contitions-and-formulas-with-data-from-different-time-periods) - * [Simulation Processes](#simulation-processes) +* [Managing Processes](#managing-processes) + * [Network](#network) + * [Task Manager, Tasks, Bots and Processes](#task-manager-tasks-bots-and-processes) +* [Testing and Simulations](#testing-and-simulations) + * [Parameters](#parameters) + * [Exchange Fees](#exchange-fees) + * [Slippage](#slippage) + * [Datetime Range](#datetime-range) + * [Time Period](#time-period) * [Simulation Layers](#simulation-layers) - * [Trading Simulation](#trading-simulation) - * [Simulation Conditions](#simulation-conditions) - * [Simulation Strategies](#simulation-strategies) - * [Simulation Trades](#simulation-trades) -* [Live Trading](#live-trading) - * [Getting Started](#getting-started) + * [Simulation](#simulation) + * [Formulas and Conditions](#formulas-and-conditions) + * [Strategies](#strategies) + * [Trades](#trades) +* [Forward Testing and Live Trading](#forward-testing-and-live-trading) + * [Getting Started](#getting-started-1) * [Live Trading Process](#live-trading-process) * [Live Trading History Layer](#live-trading-history-layer) * [Execution Limitations](#execution-limitations) From 3353b71395ab2c1892e8ae6812ca8695a3d9580d Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sun, 20 Oct 2019 12:22:59 +0200 Subject: [PATCH 37/81] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6579a2850..67118240b 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ However, bear in mind that the app is at an early stage of development and that * [Definitions](#definitions) * [Trading System](#trading-system) * [Interface](#interface) - * [Navigation](navigation-1) + * [Navigation](#navigation-1) * [Element's Menu](#elements-menu) * [Detachment and Attachment of Elements](#detachment-and-attachment-of-elements) * [Element Shortcuts](#element-shortcuts) From df43420a582de6e5f6fe1458f3d932c47944c8db Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Sun, 20 Oct 2019 12:28:59 +0200 Subject: [PATCH 38/81] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 67118240b..08481e3da 100644 --- a/README.md +++ b/README.md @@ -96,12 +96,13 @@ However, bear in mind that the app is at an early stage of development and that * [Using an Existing Strategy](#using-an-existing-strategy) * [Working with Multiple Strategies](#working-with-multiple-strategies) * [Available Variables](#available-variables) - * [Candles](#candles) + * [Candles](#candles-1) * [Bollinger Bands](#bollinger-bands-1) * [Percentage Bandwidth](#percentage-bandwidth) - * [Bollinger Channels](#bollinger-channels) + * [Bollinger Channels](#bollinger-channels-1) * [Bollinger SubChannels](#bollinger-subchannels) * [Internal](#internal) + * [Conditions and Formulas with Data from Different Time Periods](#conditions-and-formulas-with-data-from-different-time-periods) * [Managing Processes](#managing-processes) * [Network](#network) * [Task Manager, Tasks, Bots and Processes](#task-manager-tasks-bots-and-processes) From 6ecf2fcffe42ccbaf3d9be6bb8e7044b9456810d Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 10:04:10 +0200 Subject: [PATCH 39/81] Update README.md --- README.md | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 08481e3da..d9923c288 100644 --- a/README.md +++ b/README.md @@ -961,14 +961,14 @@ A simulation is the visual representation over the charts of any of the forms of We will cover *forward testing* when we discuss live trading. For the time being, we will focus on the first two steps of the strategy testing process. -As explained in the previous chapter, the trading engine is the bot that handles testing sessions, and is controlled by a task and it's corresponding task manager. In order to run a testing session, you will set up the session under a process of the trading engine. +As explained in the previous chapter, the trading engine is the bot that handles testing sessions, and is controlled by a task and it's corresponding task manager. + +**To run a testing session, you will set up the session under a process of the trading engine and click *Run* on its menu.** [ILLUSTRATION] For your convenience, all our templates in the ```Quick-Start-Examples``` folder come with at least one backtesting and one paper-trading session set up. All you need to do is customize the *parameters* to your liking and, if you wish, add or remove layers to the *layer manager*, both child elements of each testing session. -> **PRO TIP**: The app allows for having multiple testing sessions. You may add and work with multiple sessions by backing up the existing session at the level of the process. Then drop the backup on the workspace, attach it to the trading engine and give the new session a new name. - [ILLUSTRATION] ## Parameters @@ -1162,6 +1162,36 @@ The *Trades* layer marks trades with a triangle whose hypotenuse connects the pr ![Trading-Simulation-Trades](https://user-images.githubusercontent.com/13994516/58574801-1a76f700-8241-11e9-9144-0db81636dace.gif) +## Advanced Backtesting + +The app allows for having multiple testing sessions. You may add and work with multiple sessions by backing up the existing session at the level of the process. Then drop the backup on the workspace, attach it to the trading engine and give the new session a new name. + +[ILLUSTRATION] + +### Testing Logic Variations + +Being able to run multiple backtesting sessions allows you to speed up the strategy tuning stage. + +For instance, you may want to check how different variations of a condition in the *take position event* affect the results. To tests all variations at the same time, you would: + +1. Replicate a backtesting session backing up the correponding *process* element (along with its children) and dropping the backup on your workspace, as many times as you require, [attaching it](#detachment-and-attachment-of-elements) to an available trading engine. + +[ILLUSTRATION] + +2. Rename each backtesting session with a significant name that is related to the different variations of the condition you wish to test. + +[ILLUSTRATION] + +3. Set up the first variation of the condition and run the corresponding backtesting session. Replace the first variation with the second one, and launch the second backtesting session. Repeat as many times as desired. + +### Testing on Non-Linear Date Ranges + +It is a known fact that testing and optimizing a strategy over a complete data set may lead to data-mining or [overfitting](https://en.wikipedia.org/wiki/Overfitting). + +Being able to set up multiple backtesting operations allows you to segment your data set as you may consider appropriate, for instance, creating sessions to test only on odd months, every three or six months, or in a more random-like arrangement. + +The system provides enough flexibility to accommodate different baacktesting criteria and styles. It is up to you how to set it up. + # Forward Testing and Live Trading Once you are happy with your strategy after extensive backtesting and paper-trading sessions, running it as a fully automated bot to trade live is quite simple. Truth be told, your strategy running as a simulation is pretty much a trading bot already—only that orders don't go to the exchange. From 7311571532d878672c3f46fbd1b473977df3de4f Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 10:06:31 +0200 Subject: [PATCH 40/81] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d9923c288..c50be0f03 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,9 @@ However, bear in mind that the app is at an early stage of development and that * [Formulas and Conditions](#formulas-and-conditions) * [Strategies](#strategies) * [Trades](#trades) + * [Advanced Backtesting](#advanced-backtesting) + * [Testing Logic Variations](#testing-logic-variations) + * [Testing on Non-Linear Date Ranges](#testing-on-non-linear-date-ranges) * [Forward Testing and Live Trading](#forward-testing-and-live-trading) * [Getting Started](#getting-started-1) * [Live Trading Process](#live-trading-process) From c758df3e9c038eceab53561e3e1178c19994f6ff Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 10:55:44 +0200 Subject: [PATCH 41/81] Update README.md --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c50be0f03..6f02a8bfd 100644 --- a/README.md +++ b/README.md @@ -960,7 +960,7 @@ A simulation is the visual representation over the charts of any of the forms of * **Backtesting:** testing over historic data; * **Paper-trading:** testing over a live data feed, without placing orders at the exchange (orders are simulated); -* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the defined *[positionSize](#internal)*. +* **Forward testing:** testing over a live data feed, placing actual orders at the exchange for a fraction of the available balance. We will cover *forward testing* when we discuss live trading. For the time being, we will focus on the first two steps of the strategy testing process. @@ -1221,13 +1221,23 @@ Like with paper trading sessions, you only require a *finalDatetime*. If you do **2. Forward Testing Session Configuration** -In the case of forward testing you will want to configure what is the percentage of your capital that you wish to use for testing. You do this by clicking the *Edit Session* option on the session's menu and entering the desired value in the code snipet: +In the case of forward testing you will want to configure what is the percentage of your balance that you wish to use for testing. You do this by clicking the *Edit Session* option on the session's menu and entering the desired value in the code snipet: ``` {"balancePercentage": 1} ``` -The number you enter is applied as a percentage of the *positionSize* you defined on the [Open Stage](#open-stage) of the strategy. For instance, ```"balancePercentage": 1``` means the position will be set for 1% of the defined *postionSize*. +The number you enter is applied as a percentage of *balanceAssetA* or *balanceAssetB* (for BTC and USDT-based strategies respectively) to obtain the forward-testing balance that will be available to the *positionSize* formula you defined on the [Open Stage](#open-stage) of the strategy. + +For instance, ```"balancePercentage": 1``` means that 1% of your balance will be made available. + +Let's draw a quick example: + +Your base asset is USDT and your *initialBalance* is USDT 10,000. + +If you set up your forward-testing session with ```"balancePercentage": 1```, then USDT 10,000 * 1% = **USDT 100**. This is the balance that will be available to your forward-testing session. + +> **NOTE:** You need to take this into account at the time of defining your *positionSize* formula. If the formula is a constant, you may easily run out of balance, as only a fraction of the balance will be available for the strategy to use. It may be a good idea to set up your *positionSize* as a function of your available balance instead. The following topics cover information that is common both to forward testing and live trading sessions. From f5f18fc753e01bb2379bcbfc10432e4ca8250d9f Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 10:57:08 +0200 Subject: [PATCH 42/81] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6f02a8bfd..4bd8c5d67 100644 --- a/README.md +++ b/README.md @@ -1227,6 +1227,8 @@ In the case of forward testing you will want to configure what is the percentage {"balancePercentage": 1} ``` +[ILLUSTRATION] + The number you enter is applied as a percentage of *balanceAssetA* or *balanceAssetB* (for BTC and USDT-based strategies respectively) to obtain the forward-testing balance that will be available to the *positionSize* formula you defined on the [Open Stage](#open-stage) of the strategy. For instance, ```"balancePercentage": 1``` means that 1% of your balance will be made available. From 701f09bf79de589f0fb7acc43de42f5a829e8e68 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 11:02:22 +0200 Subject: [PATCH 43/81] Update README.md --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4bd8c5d67..0a93c7414 100644 --- a/README.md +++ b/README.md @@ -1241,11 +1241,13 @@ If you set up your forward-testing session with ```"balancePercentage": 1```, th > **NOTE:** You need to take this into account at the time of defining your *positionSize* formula. If the formula is a constant, you may easily run out of balance, as only a fraction of the balance will be available for the strategy to use. It may be a good idea to set up your *positionSize* as a function of your available balance instead. -The following topics cover information that is common both to forward testing and live trading sessions. +In the same way as the balance is scaled down, the *minimumBalance* and *maximumBalance* are also scaled down accordingly. ## Getting Started -All you need to do to start live-trading is: +The following topics cover information that is common both to forward testing and live trading sessions. + +All you need to do to start forward-testing or live-trading is: 1. Go to your definition and click *Add Personal Data* on the menu. In the new Personal Data element, click *Add Exchange Account*. In the Exchange Account element, click *Add Asset* and *Add Key*. From fb08b24e06a849e4f1a1b86bea23b5ca452a9df8 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 11:35:09 +0200 Subject: [PATCH 44/81] Update README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 0a93c7414..cbf45ec0a 100644 --- a/README.md +++ b/README.md @@ -1338,6 +1338,16 @@ An additional limitation is that there currently is no feature to break up order > **It is important that you fully understand the implications of these limitations if you are considering to trade live with the app at this stage, as you will need to adapt to the current state of affairs.** +## Running Multiple Forward-Testing or Live-Trading Sessions from the Same Definition + +If for some reason you wish to run more than one forward-testing or live-trading session from within the same definition, you need to know that—due to restrictions on API use impossed by exchanges—you may not use the same API Key from different processes. + +This means that you will need to create a different API Key for each session you wish to run. You will create the keys as explained on the [Getting Started](#getting-started-1) section above. + +However, in order to let the app know which API Key you wish to use in each session, you will move the corresponding API Key from the *Personal Data* branch to the *parameters* of the session. Simply detach the API Key element from the *Exchange Account* element and re-attach it to the session's *parameters*. + +[ILLUSTRATION] + ## Poloniex API Keys This is how you create an API Key in Poloniex: From edaead1773358bf5bc961e1b156ba1d74e83f79f Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 11:36:28 +0200 Subject: [PATCH 45/81] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cbf45ec0a..3ebee5405 100644 --- a/README.md +++ b/README.md @@ -1338,7 +1338,7 @@ An additional limitation is that there currently is no feature to break up order > **It is important that you fully understand the implications of these limitations if you are considering to trade live with the app at this stage, as you will need to adapt to the current state of affairs.** -## Running Multiple Forward-Testing or Live-Trading Sessions from the Same Definition +## Multiple Forward-Testing or Live-Trading Sessions from the Same Definition If for some reason you wish to run more than one forward-testing or live-trading session from within the same definition, you need to know that—due to restrictions on API use impossed by exchanges—you may not use the same API Key from different processes. From 70dcdc68f6ebe691d818032a5b61d082611cdf9b Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 11:39:43 +0200 Subject: [PATCH 46/81] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 3ebee5405..336c776f0 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,7 @@ However, bear in mind that the app is at an early stage of development and that * [Live Trading Process](#live-trading-process) * [Live Trading History Layer](#live-trading-history-layer) * [Execution Limitations](#execution-limitations) + * [Multiple Forward-Testing or Live-Trading Sessions from the Same Definition](#multiple-forward-testing-or-live-trading-sessions-from-the-same-definition) * [Poloniex API Keys](#poloniex-api-keys) * [Advanced Use](#advanced-use) * [Working with Multiple Definitions](#working-with-multiple-definitions) From 9b701edfccfe25f948bc086278ecc37c69114d9f Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 13:11:45 +0200 Subject: [PATCH 47/81] Update README.md --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 336c776f0..8c603ced3 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ However, bear in mind that the app is at an early stage of development and that * [Live Trading Process](#live-trading-process) * [Live Trading History Layer](#live-trading-history-layer) * [Execution Limitations](#execution-limitations) - * [Multiple Forward-Testing or Live-Trading Sessions from the Same Definition](#multiple-forward-testing-or-live-trading-sessions-from-the-same-definition) + * [Multiple Forward-Testing or Live-Trading Sessions within the Same Definition](#multiple-forward-testing-or-live-trading-sessions-within-the-same-definition) * [Poloniex API Keys](#poloniex-api-keys) * [Advanced Use](#advanced-use) * [Working with Multiple Definitions](#working-with-multiple-definitions) @@ -750,9 +750,9 @@ You may import any element—formulas, conditions, situations, phases, stages, c When you have more than one strategy under the same trading system, all strategies share the *parameters* defined at the trading system level. This means that all strategies will work with the same *base asset* and share the same *initialCapital*. -As a consequence, strategies within a trading system may never be triggered on at the same time. Under such setting, when a strategy is triggered on, it blocks the triggering of the rest of the strategies within the trading system. +As a consequence, strategies within a trading system may never be triggered on at the same time. Under such setting, when a strategy is triggered on, it blocks the triggering of the rest of the strategies within the trading system until the strategy is triggered off. -If you wish to have multiple strategies that work independently of each other, then you need to place them on different trading systems. At this point, the app supports only one trading system per definition. As a result, if you wish to have multiple independent strategies, then you need to have multiple definitions, each with one trading system. +If you wish to have multiple strategies that work independently of each other, then you need to place them on different trading systems. At this point, the app supports only one trading system per definition. As a result, if you wish to have multiple independent strategies, then you need to have multiple definitions, each with one trading system. Learn how to do that in the [Working with Multiple Definitions](#working-with-multiple-definitions) section. ## Available Variables @@ -1339,7 +1339,7 @@ An additional limitation is that there currently is no feature to break up order > **It is important that you fully understand the implications of these limitations if you are considering to trade live with the app at this stage, as you will need to adapt to the current state of affairs.** -## Multiple Forward-Testing or Live-Trading Sessions from the Same Definition +## Multiple Forward-Testing or Live-Trading Sessions within the Same Definition If for some reason you wish to run more than one forward-testing or live-trading session from within the same definition, you need to know that—due to restrictions on API use impossed by exchanges—you may not use the same API Key from different processes. @@ -1349,6 +1349,8 @@ However, in order to let the app know which API Key you wish to use in each sess [ILLUSTRATION] +> **NOTE:** If you don't specify which API Key to use at the session level, the app's fallback mechanism will look for an API Key at the level of the Personal Data element. If more than one forward testing or live trading session end up using the same API Key, you should expect errors to occurr. + ## Poloniex API Keys This is how you create an API Key in Poloniex: @@ -1379,14 +1381,20 @@ Copy the *secret* to use it in the Superalgos Desktop App. Once you leave this s # Advanced Use +This section covers app features that power users may find useful. + ## Working with Multiple Definitions -For the time being, the app does not allow having multiple trading systems under your Definition, however, you may have more than one Definition in your Workspace. This may also be useful is you wish to use different API keys for different strategies. +For the time being, the app does not allow having multiple trading systems under the same definition, however, you may have more than one definition in your workspace. -To add a Definition, drag and drop a Definition file, and select _Run_ in the menu, setting the execution focus on the new Definition, as indicated by the white ring surrounding the Definition element. +This is actually what is required to be able to trade live with multiple trading systems at the same time from within a single instance of the app, in a single machine. + +You would usually work with each definition on separate workspaces. If you wish to bring one of your definitions to a workspace in which you already have a working definition, you just need to back up the target definition and drop the resulting file on your target workspace. ![Advanced-Multiple-Definitions](https://user-images.githubusercontent.com/13994516/63945104-14c4c380-ca73-11e9-940e-f3b3412e4bc6.gif) +The two definitions work independently from each other, from within the same workspace. To trade live with both definitions at the same time, make sure you have a different API Keys configured in each definition, and run one live trading session on each of the definitions. + # Troubleshooting ## On-screen Errors and Warnings From 67e463296c9e36e9b89a90ab5c509b7f460e9a00 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 13:17:41 +0200 Subject: [PATCH 48/81] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8c603ced3..4f07b61dc 100644 --- a/README.md +++ b/README.md @@ -1170,6 +1170,10 @@ The *Trades* layer marks trades with a triangle whose hypotenuse connects the pr The app allows for having multiple testing sessions. You may add and work with multiple sessions by backing up the existing session at the level of the process. Then drop the backup on the workspace, attach it to the trading engine and give the new session a new name. +The number of backtesting sessions you may run simultaneously is capped by your machine's capacity. Current tests indicate that a dual core processor at 2.4GHz may process up to 5 sessions at the same time without compromising the machine's performance. + +Running more sessions than the optimal number your machine may process efficiently may result in the the sessions taking more time to process than if they were run in a sequence. + [ILLUSTRATION] ### Testing Logic Variations From 7b83437c066871172e53bb28561f0b0f474451e0 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 13:51:54 +0200 Subject: [PATCH 49/81] Update README.md --- README.md | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4f07b61dc..5777cfa8c 100644 --- a/README.md +++ b/README.md @@ -1414,13 +1414,11 @@ Bear in mind that when the split tab is fully closed, errors will no longer show ## Market Data / Indicators Seem to be Outdated -If you are running the app for the first time or you stopped running the app for some time, data will not be up to date. Every time you start the app, it will take some time for data to catch up with the present time. If you wish to make sure your bots are running, simply click RESTART SIMULATION, check if the processes are running in your console and eventually, refresh the concerned layers. +If you are running the app for the first time or you stopped running the app for some time, data will not be up to date. Every time you start the app, it will take some time for data to catch up with the present time. -![Troubleshooting-Refresh-Layers](https://user-images.githubusercontent.com/13994516/63114415-18494c80-bf95-11e9-8755-0fb2cb293ea0.gif) +To update your datasets until the present time, you need to *Run All Tasks* in your *Keep Datasets Up-to-Date* task manager, as explained on the [Task Manager, Tasks, Bots and Processes](#task-manager-tasks-bots-and-processes) section, and allow enough time for the processes to go through the missing data. -## New Simulation Doesn't Seem to Match My New Settings - -When you are working with a strategy, changing conditions, formulas or any other parameters, you will likely be re-running simulations (RESTARTING BOTS) so that the bots take on the new settings. Every time you RESTART SIMULATION, the system waits for a little while and automatically refreshes the Simulation Layers. However, it may happen that the auto-refresh happens before the new data is made available by the bots, so you may wish to refresh the Simulation Layers manually if that seems to be the case. +[ILLUSTRATION] # Reporting Bugs @@ -1446,9 +1444,7 @@ These Node.js components provide the infrastructure required to run different ki * **Plotters**: create visual representations of data sets to render the information in a human-friendly manner, most likely over the charts. -* **Simulation and Trading Bots**: read a Superalgos Protocol file containing the details of trading strategies and interact with the Superalgos Desktop App to run them as simulations (using a simulation plotter) or to trade live. - -When you click the RESTART SIMULATION button, several bots are executed in a specific order, taking into account dependencies, as defined in the ```CloneExecutor\sequence.json``` file. These processes run in a loop, retrieving data from the exchange, producing indicators, running simulations and trading live—online. +* **Trading Engine**: read a Superalgos Protocol file containing the details of trading strategies and interact with the Superalgos Desktop App to run them as simulations (using a simulation plotter) or to trade live. ## How Algorithms Work @@ -1456,7 +1452,7 @@ Bots mission is—in essence—creating _products_ that others can consume. To Each bot may have several processes, and processes don't necessarily have a one-to-one relationship with products. That is, a product can be the result of the work of one or more processes. -Bot processes run when called by the app and stop when they finish the task at hand, to wake up again only when the sequence is completed and a new round of executions starts. +Bot processes run when called by the corresponding task and stop when they finish the task at hand, to wake up again after the interval defined in the bot's configuration file. The data sets processes create are the actual _output_ of bots which are stored in the file system. But processes also produce and store a second valuable piece of information: _status reports_. @@ -1481,7 +1477,7 @@ A _minutes file_ contains data corresponding to one single minute and is store A _file sequence_ consists of sequential information that is not necessarily structured on any particular timeframe. The process stores two types of files: the one ending in _.Sequence.json_ contains the number of files in the sequence, and the sequence is formed by multiple files ending in a sequential number _(e.g. 15.json)_. A _single file_ is pretty much just that: a data set that is stored in one file only. -## Current Bots Sequence +## Current Bots Dependencies Let's put all this in perspective by analyzing the processes, products, and dependencies of a few existing bots. @@ -1519,7 +1515,7 @@ Let's take a look at another indicator, [Olivia](https://github.com/AAMasters/A ### Jason -The last link in the chain usually comes in the form of user strategies handled by the simulation and trading engine—[Jason](https://github.com/AAMasters/AAJason-Trading-Engine-Bot)—consuming data from indicators to make trading decisions. +The last link in the chain usually comes in the form of user strategies handled by the trading engine—[Jason](https://github.com/AAMasters/AAJason-Trading-Engine-Bot)—consuming data from indicators to make trading decisions. Of course, the main goal of a strategy is to perform profitable trading. However, notice that Jason has outputs too: @@ -1531,6 +1527,8 @@ Of course, the main goal of a strategy is to perform profitable trading. However Each of these bots produces an output in the form of JSON files, which are stored under the ```\Data-Storage\aamasters\AAMasters``` folder, sorted by bot. +### Sensors and Indicators Output + The route for writting bot's output is built as follows: ```Bot Name and version > the version of AACloud (an internal platform component) > the version of the data set > Output folder``` @@ -1555,9 +1553,23 @@ _e.g.:_ ![Technical-Outputs](https://user-images.githubusercontent.com/13994516/63342762-979b9f00-c34c-11e9-8975-4735f0778d35.gif) +### Trading Engine Output + +The trading engine is a particular case, as it stores data from multiple simulation and live-trading sessions, including sessions from different definitions and even workspaces. + +To do this efficiently, the trading engine creates folders for storing the output and status reports of each session, naming each folder after the session ID, which is unique across definitions. + +If for some reason you wish to change the name of an output folder for something easier to read, you may include the following snipet under the *Edit Session* option in the menu of the corresponding session: + +``` +"folderName":"YourName" +``` + +> **NOTE:** Make sure you use a valid file system name, including only valid characters. Also, bear in mind that is you reuse the same name on different sessions, you may end up with unexpected outcomes. + ## Status Reports -In addition to outputting a data set, bots also store a Status Report. These reports keep crucial information that allows the same and other bots know what happened in the previous execution. +In addition to outputting a data set, bots also store a Status Report. These reports keep crucial information that allows the same and other bots to know what happened in the previous execution. Status reports are stored in the Reports folder, at the same level in the structure as the Output folder. From 13a1d0fd86cc5d0a39777a14c1a6d1835e9bcbde Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 14:07:44 +0200 Subject: [PATCH 50/81] Update README.md --- README.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5777cfa8c..f3dfa8588 100644 --- a/README.md +++ b/README.md @@ -132,13 +132,12 @@ However, bear in mind that the app is at an early stage of development and that * [Troubleshooting](#troubleshooting) * [On-screen Errors and Warnings](#on-screen-errors-and-warnings) * [Market Data / Indicators Seem to be Outdated](#market-data--indicators-seem-to-be-outdated) - * [New Simulation Doesn't Seem to Match My New Settings](#new-simulation-doesnt-seem-to-match-my-new-settings) * [Reporting Bugs](#reporting-bugs) * [Technical Overview](#technical-overview) * [How Algorithms Work](#how-algorithms-work) * [Dependencies](#dependencies) * [Types of Data Sets](#types-of-data-sets) - * [Current Bots Sequence](#current-bots-sequence) + * [Current Bots Dependencies](#current-bots-dependencies) * [Charly](#charly) * [Bruce](#bruce) * [Olivia](#olivia) @@ -147,6 +146,8 @@ However, bear in mind that the app is at an early stage of development and that * [Paula](#paula) * [Jason](#jason) * [Outputs](#outputs) + * [Sensors and Indicators Output](#sensors-and-indicators-output) + * [Trading Engine Output](#trading-engine-output) * [Status Reports](#status-reports) * [Logs](#logs) @@ -1565,7 +1566,17 @@ If for some reason you wish to change the name of an output folder for something "folderName":"YourName" ``` -> **NOTE:** Make sure you use a valid file system name, including only valid characters. Also, bear in mind that is you reuse the same name on different sessions, you may end up with unexpected outcomes. +You custom name will be displayed along with the session ID in the name of the folder, in the following format: + +``` +YourName - 3e139ae2-138c-42ac-99d6-e0cf9c7c6ee6 +``` + +If you wish to know which ID corresponds to a certain session without defining a custom name, you may obtain it by clicking Ctrl + . while hovering the mouse pointer over the target session element. + +[ILLUSTRATION] + +> **NOTE:** Replace Ctrl with Command in Mac systems. ## Status Reports @@ -1575,6 +1586,8 @@ Status reports are stored in the Reports folder, at the same level in the struct ![Technical-Status-Report](https://user-images.githubusercontent.com/13994516/63348840-63c77600-c35a-11e9-98ad-1d9f9e1b81f1.gif) +> **NOTE:** The same considerations as explained for the [Trading Engine Output](#trading-engine-output) apply for trading engine storage of status reports. + ## Logs Each bot keeps its own set of log files, stored under a similar folder structure as bot's Output and Reports. The difference is that the Log-Files folder is at the root level of the release folder, instead of being inside Data-Storage: @@ -1587,3 +1600,5 @@ Log files contain detailed information about each execution of the bot. As such, Each folder may contain more than one file. Lighter files tend to include data about the initialization stage, while heavier files usually feature the data corresponding to the actual work the bot does. ![Technical-Logs](https://user-images.githubusercontent.com/13994516/63350228-4f38ad00-c35d-11e9-8074-bdd73ac68bd8.gif) + +> **NOTE:** The same considerations as explained for the [Trading Engine Output](#trading-engine-output) apply for trading engine storage of logs. From 6aab16b0daec7952a9c0040be0c33f392d41d4bd Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 14:20:20 +0200 Subject: [PATCH 51/81] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index f3dfa8588..87bca2af6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Superalgos Desktop App -The Superalgos Desktop App is the client application of the Superalgos Platform suite, and provides a visual environment for developing and automating crypto-trading strategies. +The Superalgos Desktop App is the client application of the Superalgos Platform suite and provides a visual environment for developing and automating crypto-trading strategies. The app's vocation is to become a comprehensive trading automation system. This is not a simple plug-and-play bot. It is a platform that allows you to design and automate a wide variety of strategies, with great flexibility. However, flexibility and fine user control over the way bots operate come at a cost: the learning curve required to tap into the app's full potential. That said, we do intend to make light use of the app as easy as possible, for instance, for loading existing strategies and trading live right off the bat, with minimal input. -This is a pre-release in alpha stage. The app is still under heavy development. We appreciate your help testing the app and reporting any errors you may experience. +This is a pre-release in alpha stage. The app is still under heavy development. We appreciate your help in testing the app and reporting any errors you may experience. We will keep improving user experience with your feedback. @@ -18,7 +18,7 @@ The Superalgos Desktop App is a web app, therefore, it is cross-platform. The te The minimum hardware setup recommended for actively using the app, designing strategies and interacting with the charts is 8 GB of RAM and a dual-core processor at 2.4 GHz. -The minimum hardware setup for a virtual machine (VM) or virtual private server (VPS) destined to trade live and not intended for active use is 4 GB of RAM and a dual-core processor at 2.4 GHz. This is recommended to minimize deployment costs. Under this configuration, the app becomes slow to react to user input. Under such configuration, you should start the live trading session and minimize the browser for lower CPU and memory consumption. +The minimum hardware setup for a virtual machine (VM) or a virtual private server (VPS) destined to trade live and not intended for active use is 4 GB of RAM and a dual-core processor at 2.4 GHz. This is recommended to minimize deployment costs. Under this configuration, the app becomes slow to react to user input. Under such configuration, you should start the live trading session and minimize the browser for lower CPU and memory consumption. The following recommendations may make your life easier using this pre-release in alpha stage: @@ -30,9 +30,9 @@ The following recommendations may make your life easier using this pre-release i Please refer to the [Superalgos Desktop App](https://superalgos.org/tools-superalgos-desktop-app.shtml#expectations) page to understand who this app is directed at, as well as what you can expect from the app in terms of user experience, current features and limitations. -Beyond the list of [Current Features & Limitations](https://superalgos.org/tools-superalgos-desktop-app.shtml#features_limitations) you will find in the website, what you will get is a client application that runs entirely on users' machines. This is to fulfill the design principle of a trustless deployment: you don't need to trust any third party with your Strategies, API Keys, personal information, or funds. +Beyond the list of [Current Features & Limitations](https://superalgos.org/tools-superalgos-desktop-app.shtml#features_limitations) you will find on the website, what you will get is a client application that runs entirely on users' machines. This is to fulfill the design principle of a trustless deployment: you don't need to trust any third party with your Strategies, API Keys, personal information, or funds. -Traders rely on data sets for backtesting. The app retrieves raw trades data directly from xxchanges and processes data to produce candles and a few indicators, which are stored in your local machine. +Traders rely on data sets for backtesting. The app retrieves raw trades data directly from exchanges and processes data to produce candles and a few indicators, which are stored in your local machine. The volume of trades data generated at exchanges is massive. Exchanges APIs impose limits on the bandwidth of data you may retrieve from your machine per unit of time. To save you from spending days or weeks running processes to retrieve the data you will need for backtesting, we include historic market data in our releases. @@ -303,13 +303,13 @@ Hover over the Backtesting Session element and click *Run* on the menu. You just started a backtesting session with a series of pre-configured parameters, including, for instance, the date range on which the backtesting session runs. Later on, you will learn how to adjust these parameters. -You will notice the element will display a date, signaling the progress of the session. The current session will backtest the strategy during 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date disappears. +You will notice the element will display a date, signaling the progress of the session. The current session will backtest the strategy in 2019. It may take anything between 5 to 20 minutes (depending on your machine's processing power) to finish. You can tell the process finished calculating the backtesting session once the progress date disappears. Then, you may pull down the horizontal bar to go to the charts to see the results. Make sure you are standing in the 1 hr (one hour) time period. Notice the time box at the bottom of the charts: [ILLUSTRATION] -If you are not at the 1 hr time period use the wheel of your mouse while pointing at the charts to zoom in, until you reach the the 1 hr time period. You do this so that you may see the results of the backtesting session, which in the case of the example strategies, are calculated and plotted over the 1 hr charts. +If you are not at the 1 hr time period use the wheel of your mouse while pointing at the charts to zoom in until you reach the 1 hr time period. You do this so that you may see the results of the backtesting session, which in the case of the example strategies, are calculated and plotted over the 1 hr charts. [ILLUSTRATION] @@ -345,7 +345,7 @@ If you have a version of the Superalgos Desktop App and wish to upgrade to a new The first time you run the app, you will see the following screen, split in half. The top half features the space used by the _Charts_ and the bottom half features the _Designer_. -Use the control in the center of the turquoise bar to pull the bar up and down in order to make more room to either application. +Use the control in the center of the turquoise bar to pull the bar up and down to make more room for either application. You may also use your keyboard as follows: @@ -369,7 +369,7 @@ The *_Charts_* shows indicators data along with the actions taken by strategies, ![image](https://user-images.githubusercontent.com/13994516/58325972-c37db600-7e2b-11e9-9aa2-9f6faaf8dd94.png)

-The *Superalgos Protocol* (also referred to as the _protocol_) determines the structure in which all the information regarding a trading system is stored and—at the same time—provides a clear guidance on how traders using the various tools developed and distributed by the Superalgos Project shall create and automate their strategies. +The *Superalgos Protocol* (also referred to as the _protocol_) determines the structure in which all the information regarding a trading system is stored and—at the same time—provides clear guidance on how traders using the various tools developed and distributed by the Superalgos Project shall create and automate their strategies. # Charts Interface From 0c9073a88f7efb306a92b8262f41719efecc58dd Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 14:27:01 +0200 Subject: [PATCH 52/81] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 87bca2af6..8ee430e8a 100644 --- a/README.md +++ b/README.md @@ -378,9 +378,9 @@ The *Superalgos Protocol* (also referred to as the _protocol_) determines the st This panel includes different layers you may visualize by toggling them on and off with a single mouse click. The layer title bar can have 3 possible background colors: -1. **Red**: layer is off. -2. **Green**: layer is on. -3. **Yellow**: layer is loading. If it stays yellow, it means it can't load fully. +1. **Red**: the layer is off. +2. **Green**: the layer is on. +3. **Yellow**: the layer is loading; if it stays yellow, it means it can't load fully. ![Layers](https://user-images.githubusercontent.com/13994516/58434206-c04c2980-80ba-11e9-964b-8223ad99eb0b.gif) @@ -390,13 +390,13 @@ Notice the following three elements relative to the position of the mouse pointe 1. Above, the current datetime. This is the date and time at the mouse pointer position. 2. To the right, the current rate. This is the rate (in this case USDT per BTC) at the mouse pointer position. -3. Below, the current time period (or candle size if you wish). This is the currently displayed time period—not only for candles, but for any other object plotted across available layers. +3. Below, the current time period (or candle size if you wish). This is the currently displayed time period—not only for candles but for any other object plotted across available layers. ## Navigation ### Using your Mouse -Left-click on the charts and drag to move accross the charts. +Left-click on the charts and drag to move across the charts. There are many things you can do with your mouse wheel: @@ -451,7 +451,7 @@ This is an unusual pattern proving any data set may be plotted on the charts (an #### Volume Stairs Patterns -A similar concept, this time with volumes. Whenever a sequence of volume bars is found where each one is bigger than the previous one, they are bundled together in a "Stair". The same applies when they are going down (the next is smaller than the previous one). For a trading bot, this serves to identify if sell or buy volumes are raising or declining. +A similar concept, this time with volumes. Whenever a sequence of volume bars is found where each one is bigger than the previous one, they are bundled together in a "Stair". The same applies when they are going down (the next is smaller than the previous one). For a trading bot, this serves to identify if sell or buy volumes are rising or declining. ![Volume-Stairs](https://user-images.githubusercontent.com/13994516/58435908-1ae98380-80c3-11e9-8c0d-87a105b4e021.gif) @@ -463,12 +463,12 @@ This is the traditional [Bollinger Bands indicator](https://en.wikipedia.org/wik #### Percentage Bandwidth (%B) -This is a well-known indicator that derives from the Bollinger Bands. In a nutshell it tells you how close the price is either to the upper band or the lower band at any point in time. When the price is in the middle of the bands (it is calculated with the close value of each candle), then %B is in the middle of its chart, at value 50. When the price touches the upper band, then %B is at 100, and finally when the price is at the lower band, then %B is at 0. +This is a well-known indicator that derives from the Bollinger Bands. In a nutshell, it tells you how close the price is either to the upper band or the lower band at any point in time. When the price is in the middle of the bands (it is calculated with the close value of each candle), then %B is in the middle of its chart, at value 50. When the price touches the upper band, then %B is at 100, and finally when the price is at the lower band, then %B is at 0. ![Bollinger-Bands-Percentage-Bandwidth](https://user-images.githubusercontent.com/13994516/58435903-1a50ed00-80c3-11e9-90d5-e0d5293c76ad.gif)

-The chart features lines at %B value 30 and 70 since those are the most common values for traders to forecast when a reversal may happen. In our chart, %B is the one represented at #1. We've found useful to add a moving average in order to smooth volatility a bit, and to be able to ask—at any time—if it is going up or down. The moving average calculated with the last 5 %B values is plotted as line #2. Finally we've also added a property called Bandwidth, which represents the separation of the upper band from the lower band. It is a measure of volatility and is plotted at #3. +The chart features lines at %B values 30 and 70 since those are the most common values for traders to forecast when a reversal may happen. In our chart, %B is the one represented at #1. We've found useful to add a moving average to smooth volatility a bit and to be able to ask—at any time—if it is going up or down. The moving average calculated with the last 5 %B values is plotted as line #2. Finally, we've also added a property called Bandwidth, which represents the separation of the upper band from the lower band. It is a measure of volatility and is plotted at #3. ![image](https://user-images.githubusercontent.com/9479367/56834223-1c7c1d80-6871-11e9-9687-ae5dc12d0336.png) @@ -480,7 +480,7 @@ This is a non-standard indicator derived from the Bollinger Bands. These types o #### Bollinger Sub-Channels -If we consider that one Bollinger Channel can have sub-channels with the same direction (up or down) but different slopes, then we get to the concept of Bollinger Sub-Channels. The most important property of a sub-channel is its slope. The possible values are: Side, Gentle, Medium, High and Extreme. With this information, a trading bot could easily ask if it is in a sub-channel with a certain slope and for how many periods. The slope or inclination of the moving average may be an indication of momentum. +If we consider that one Bollinger Channel can have sub-channels in the same direction (up or down) but different slopes, then we get to the concept of Bollinger Sub-Channels. The most important property of a sub-channel is its slope. The possible values are Side, Gentle, Medium, High and Extreme. With this information, a trading bot could easily ask if it is in a sub-channel with a certain slope and for how many periods. The slope or inclination of the moving average may be an indication of momentum. ![Bollinger-Sub-Channels](https://user-images.githubusercontent.com/13994516/58497358-146b1280-817c-11e9-83df-219d0fffa9f0.gif) From 1a40a2e8530350f73d3fb79d453bcb6855bf4d65 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 14:33:26 +0200 Subject: [PATCH 53/81] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8ee430e8a..c65ae8b6a 100644 --- a/README.md +++ b/README.md @@ -494,9 +494,9 @@ The Designer organizes the workflow to build strategies following the framework The Designer features a visual interface in which all elements encompassing strategies and other concepts are represented by icons organized in a hierarchical structure, as defined by the protocol. -The hierarchy starts with a *definition*, which contains—among other things—a *trading system*. The trading system contains *strategies* which are described in *stages*. +The hierarchy starts with a *definition*, which contains—among other things—a *trading system*. The trading system contains *strategies* described in *stages*. -Elements are bound to each other in a tree-like structure, and tend to self-organize across the workspace. Dragging and dropping a sample workspace on the Designer is the fastest way to get started with the Superalgos Desktop App. +Elements are bound to each other in a tree-like structure and tend to self-organize across the workspace. Dragging and dropping a sample workspace on the Designer is the fastest way to get started with the Superalgos Desktop App. ![Designer-Drag-Drop](https://user-images.githubusercontent.com/13994516/63524115-b724fa00-c4fb-11e9-9894-48f62be71c02.gif) @@ -510,7 +510,7 @@ The workspace is a concept that refers to all the information available in the D * Processes, trading systems, their strategies, and their configurations, which are child elements of definitions. * The position and status of all elements within the Designer, even those which are disconnected from the hierarchy. -You may think of the workspace as your desktop. It is not part of the hierachical structure of information that describes your definitions. Instead, it contains definitions. +You may think of the workspace as your desktop. It is not part of the hierarchical structure of information that describes your definitions. Instead, it contains definitions. Backing up your workspace is the best way to store trading systems, ready to be deployed. Your workspace is saved at the browser level every time you make a change, but still, you should back up your workspace once in a while so that you can go back to past versions. @@ -520,7 +520,7 @@ Backing up your workspace is the best way to store trading systems, ready to be Definitions include every single parameter describing your trading systems, as well as your *personal data* (including API Keys), and the management of processes running in the background. -Pretty much like with every other element in the hierarchy, you may back up your definitions using the back up button on the definition's menu. +Pretty much like with every other element in the hierarchy, you may back up your definitions using the backup button on the definition's menu. A definition is the top-level element in the hierarchy, with three children elements: Trading System, Personal Data and Network. We will briefly discuss the *trading system* and leave the other two for later. @@ -575,7 +575,7 @@ You may also use the following key combinations on your keyboard: ### Element's Menu -Hoovering the mouse pointer over elements causes a menu to pop up. +Hovering the mouse pointer over elements causes a menu to pop up. ![Designer-Element-Menu](https://user-images.githubusercontent.com/13994516/63047274-621e2e00-bed4-11e9-90ff-614b279c9910.gif)

@@ -586,10 +586,10 @@ The following menu options are tools that will help you manipulate the arrangeme | --- | --- | | ![fix-pinned](https://user-images.githubusercontent.com/13994516/63041034-2df04080-bec7-11e9-88d3-8b7c1d42a666.png) | The element is pinned on a specific X-Y coordinate on the workspace. | | ![menu-fix-unpinned](https://user-images.githubusercontent.com/13994516/63041045-35afe500-bec7-11e9-8f21-c8b3b66d3a0b.png) | The element is free, not pinned. | -| ![menu-mobility-freeze](https://user-images.githubusercontent.com/13994516/63041051-39436c00-bec7-11e9-8194-7cdd113147e4.png) | The element's connections with its parent and children are frozen. Connecting lines are blue. If you freeze your definition, then the whole hierachy is frozen. | +| ![menu-mobility-freeze](https://user-images.githubusercontent.com/13994516/63041051-39436c00-bec7-11e9-8194-7cdd113147e4.png) | The element's connections with its parent and children are frozen. Connecting lines are blue. If you freeze your definition, then the whole hierarchy is frozen. | | ![menu-mobility-unfreeze](https://user-images.githubusercontent.com/13994516/63041053-3b0d2f80-bec7-11e9-8b6f-ebe50dcb4d25.png) | The element's connections are unfrozen. | -| ![menu-tensor-fixed-angles](https://user-images.githubusercontent.com/13994516/63041062-3fd1e380-bec7-11e9-814f-e8cabc90fd12.png) | The element is locked to a rotational symmetry in relation with the rest of the elements at the same level of the hierarchy, thus all angles between elements are equal. Connection lines are orange.| -| ![menu-tensor-free-angles](https://user-images.githubusercontent.com/13994516/63041066-42343d80-bec7-11e9-828e-b2d9a191fea2.png) | The element is not locked in a rotational symmetry; instead, angles are free. Connection lines are yellow.| +| ![menu-tensor-fixed-angles](https://user-images.githubusercontent.com/13994516/63041062-3fd1e380-bec7-11e9-814f-e8cabc90fd12.png) | The element is locked to a rotational symmetry in relation to the rest of the elements at the same level of the hierarchy, thus all angles between elements are equal. The connection lines are orange.| +| ![menu-tensor-free-angles](https://user-images.githubusercontent.com/13994516/63041066-42343d80-bec7-11e9-828e-b2d9a191fea2.png) | The element is not locked in a rotational symmetry; instead, angles are free. The connection lines are yellow.| | ![menu-tree-minus](https://user-images.githubusercontent.com/13994516/63041070-44969780-bec7-11e9-9a42-3f13264b3ed2.png) | Clicking the _minus_ button contracts the branch of child elements. | | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | Clicking the _plus_ button expands the branch of child elements. | @@ -598,12 +598,12 @@ The rest of the menu options available in most elements are the following: | Icon | Action | | --- | --- | | ![menu-backup](https://user-images.githubusercontent.com/13994516/63045559-e66eb200-bed0-11e9-8f4d-6385147161fb.png) | **Backup**: Backs up the element along with all its children, including sensitive information such as API keys (in case of the Workspace and Personal Data elements), by downloading to the user's machine a JSON file containing the element's description. | -| ![menu-delete](https://user-images.githubusercontent.com/13994516/63045560-e66eb200-bed0-11e9-8b67-feb72b4ab253.png) | **Delete**: Deletes the element and all it's children. A confirmation is required (an additional click). | +| ![menu-delete](https://user-images.githubusercontent.com/13994516/63045560-e66eb200-bed0-11e9-8b67-feb72b4ab253.png) | **Delete**: Deletes the element and all its children. A confirmation is required (an additional click). | | ![menu-share](https://user-images.githubusercontent.com/13994516/63045561-e7074880-bed0-11e9-88a2-cf99a0ede94e.png) | **Share**: Downloads a JSON file—in a similar manner as with the Backup operation—with one big difference: no personal information is included in the description of the element, so that the file may be freely shared. | ### Detachment and Attachment of Elements -Elements in the workspace may be detached from its parent, carrying all children with it. When an element is detached, it is no longer taken into account in simulations or live trading, as it no longer belongs to the definition. This feature enables testing different parameters, keeping alternatives handy in the same workspace. +Elements in the workspace may be detached from its parent, carrying all children with it. When an element is detached, it is no longer taken into account in simulations or live trading, as it no longer belongs to the definition. This feature enables testing of different parameters, keeping alternatives handy in the same workspace. ![Designer-Attach-Detach](https://user-images.githubusercontent.com/13994516/63227849-6d7e9b80-c1eb-11e9-9a02-6f760f383751.gif)

From 99a376ddd183d53af24a134c46798aa0c2e061f1 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 14:40:15 +0200 Subject: [PATCH 54/81] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c65ae8b6a..595ca3748 100644 --- a/README.md +++ b/README.md @@ -648,7 +648,7 @@ The Designer provides a graphic user interface (GUI) for traders to input the _r The protocol calls these sets of rules _situations_, in the sense that you are trying to determine what is going on with the market and, if the 'situation' is right, certain _actions_ or _events_ should be triggered. -In other words, you define _situations_ in which you wish a certain _event_ to happen (i.e.: trigger on the strategy, take a position, etc.) and each situation is described as a set of _conditions_ that need to be met in order for the _event_ to be triggered. +In other words, you define _situations_ in which you wish a certain _event_ to happen (i.e.: trigger on the strategy, take a position, etc.) and each situation is described as a set of _conditions_ that need to be met for the _event_ to be triggered. ![Designer-Situation-Condition-Code](https://user-images.githubusercontent.com/13994516/63052184-fe4d3280-bede-11e9-87b0-7fb67964450c.gif)

@@ -659,13 +659,13 @@ When ***all conditions*** within a _situation_ evaluate _true_, then the _situat On the other hand, when a certain event has multiple _situations_, then _situations_ are evaluated with the _OR_ operator (e.g. if either _situation 1_ OR _situation 2_ are true, then the event will be triggered. -This set up of _conditions_ and _situations_ allows to take the same kind of action (trigger a certain event) upon the occurrence of different desireable scenarios, each described by one _situation_. +This set up of _conditions_ and _situations_ allows taking the same kind of action (trigger a certain event) upon the occurrence of different desirable scenarios, each described by one _situation_. -Put in other words, events may be triggered in different circumstance, meaning that you are free to define different _situations_ upon which the event would be triggered. In such case, when **any** of the _situations_ evaluate _true_, then the event shall be triggered. +Put in other words, events may be triggered in different circumstances, meaning that you are free to define different _situations_ upon which the event would be triggered. In such a case, when **any** of the _situations_ evaluate _true_, then the event shall be triggered. #### Comparison and Logical Operators -In order to define _conditions_ you will use _statements_ using any of the [available variables](#available-variables) that describe what is happening with the market. Remember, _conditions_ need to evaluate either _true_ or _false_. +To define _conditions_ you will use _statements_ using any of the [available variables](#available-variables) that describe what is happening with the market. Remember, _conditions_ need to evaluate either _true_ or _false_. To create such statements you will use comparison and logical operators: @@ -697,7 +697,7 @@ In the example above, _condition C_ would be _true_ if the whole candle falls wi ### Starting a Strategy from Scratch -> In addition to the explanations available here, [a comprehensive video tutorial for building strategies](https://youtu.be/ZlkGkxSMsio) is available in our YouTube channel. The video is slightly outdated in the following aspects: +> In addition to the explanations available here, [a comprehensive video tutorial for building strategies](https://youtu.be/ZlkGkxSMsio) is available on our YouTube channel. The video is slightly outdated in the following aspects: > * it doesn't take transaction fees into account when running simulations; > * the Superalgos Desktop App (the client version of the Platform) does not feature a menu on top; > * simulations are no longer run clicking a button on the horizontal bar. @@ -729,21 +729,21 @@ To start a brand new strategy, go to the Trading System element and click _Add S | Icon | Element | Description | | :---: | :---: | :--- | -| ![stage-open-position-size](https://user-images.githubusercontent.com/13994516/63513822-7e7b2580-c4e7-11e9-98d5-624bb5c3c2ab.png) | Position Size | A formula, determines how much capital is put in each trade. The formula may be a constant (a fixed numerical value), or may relate to relevant [available variables](#available-variables). The resulting value should not be higher than your available balance (*balanceAssetA* if you stand on BTC and *balanceAssetB* if you stand on USDT). *e.g.: ```assetBalanceB``` puts all your available balance in each trade, in case your _base asset_ is USDT.* | -| ![stage-open-postion-rate](https://user-images.githubusercontent.com/13994516/63513820-7e7b2580-c4e7-11e9-94e5-237cd751d273.png) | Position Rate | A formula, at this point, not taken into account during live trading. We recommend you use ```candle.close``` in your formula until the *Execution Engine* allow users more control over execution (learn more about current [Execution Limitations](#execution-limitations)). | +| ![stage-open-position-size](https://user-images.githubusercontent.com/13994516/63513822-7e7b2580-c4e7-11e9-98d5-624bb5c3c2ab.png) | Position Size | A formula, determines how much capital is put in each trade. The formula may be a constant (a fixed numerical value) or may relate to relevant [available variables](#available-variables). The resulting value should not be higher than your available balance (*balanceAssetA* if you stand on BTC and *balanceAssetB* if you stand on USDT). *e.g.: ```assetBalanceB``` puts all your available balance in each trade, in case your _base asset_ is USDT.* | +| ![stage-open-postion-rate](https://user-images.githubusercontent.com/13994516/63513820-7e7b2580-c4e7-11e9-94e5-237cd751d273.png) | Position Rate | A formula, at this point, not taken into account during live trading. We recommend you use ```candle.close``` in your formula until the *Execution Engine* allows users more control over execution (learn more about current [Execution Limitations](#execution-limitations)). | In addition to *Position Rate* and *Position Size*, you also need to define the initial values for your *Stop* and *Take Profit*. The initial value is set as a formula on Phase 0 (refer to the Superalgos Protocol articles for an explanation on managing Stop and Take Profit in phases). | Icon | Element | Description | | :---: | :---: | :--- | | ![stage-open-stop](https://user-images.githubusercontent.com/13994516/63513824-7f13bc00-c4e7-11e9-8410-d40504334c72.png)
![phase](https://user-images.githubusercontent.com/13994516/63513823-7f13bc00-c4e7-11e9-9d54-bef993401eb0.png) | Stop, Phase 0 | A formula, determines your initial *Stop* value. A likely scenario is relating your initial stop to the *positionRate* (the price at which the position was taken). *e.g.: ```positionRate - positionRate * 0.02``` sets your initial stop at 2% below the price at which you take the position.* | -| ![stage-open-take-profit](https://user-images.githubusercontent.com/13994516/63513819-7e7b2580-c4e7-11e9-87c7-b604ef0df363.png)
![phase](https://user-images.githubusercontent.com/13994516/63513823-7f13bc00-c4e7-11e9-9d54-bef993401eb0.png) | Take Profit, Phase 0 | A formula, determines your initial *Take Profit* value. Again, you may chose to relat your initial take profit to the *positionRate* or any other available variable. | +| ![stage-open-take-profit](https://user-images.githubusercontent.com/13994516/63513819-7e7b2580-c4e7-11e9-87c7-b604ef0df363.png)
![phase](https://user-images.githubusercontent.com/13994516/63513823-7f13bc00-c4e7-11e9-9d54-bef993401eb0.png) | Take Profit, Phase 0 | A formula, determines your initial *Take Profit* value. Again, you may choose to relate your initial take profit to the *positionRate* or any other available variable. | ### Using an Existing Strategy Thanks to the implementation of the Superalgos Protocol, all strategies built within the Superalgos Desktop App are portable. This means that people may use strategies built by other people or groups of people. -You may import any element—formulas, conditions, situations, phases, stages, complete strategies, complete trading systems and even complete workspaces—simply by dragging and dropping them on the workspace. +You may import any element—formulas, conditions, situations, phases, stages, complete strategies, complete trading systems, and even complete workspaces—simply by dragging and dropping them on the workspace. ![Designer-Drag-Drop](https://user-images.githubusercontent.com/13994516/63052820-a283a900-bee0-11e9-99b3-67273cba96a0.gif) @@ -751,7 +751,7 @@ You may import any element—formulas, conditions, situations, phases, stages, c When you have more than one strategy under the same trading system, all strategies share the *parameters* defined at the trading system level. This means that all strategies will work with the same *base asset* and share the same *initialCapital*. -As a consequence, strategies within a trading system may never be triggered on at the same time. Under such setting, when a strategy is triggered on, it blocks the triggering of the rest of the strategies within the trading system until the strategy is triggered off. +As a consequence, strategies within a trading system may never be triggered on at the same time. Under such a setting, when a strategy is triggered on, it blocks the triggering of the rest of the strategies within the trading system until the strategy is triggered off. If you wish to have multiple strategies that work independently of each other, then you need to place them on different trading systems. At this point, the app supports only one trading system per definition. As a result, if you wish to have multiple independent strategies, then you need to have multiple definitions, each with one trading system. Learn how to do that in the [Working with Multiple Definitions](#working-with-multiple-definitions) section. From fefa76affc9830815ab40a7f6eb485fcfa767efb Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 14:45:34 +0200 Subject: [PATCH 55/81] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 595ca3748..35feda026 100644 --- a/README.md +++ b/README.md @@ -772,7 +772,7 @@ If you wish to have multiple strategies that work independently of each other, t * ```"Up"```: candle.close > candle.open (bullish candle) * ```"Side"```: candle.close = candle.open (neutral candle) -**candle.previous:** Refers to the previous candle. You may use _candle.previous_ to fetch any of the variables of the previous candle (i.e.: _candle.previous.close_). You may also use as many _.previous_ modifiers as required to fetch values of more than one period behind the current one (i.e.: _candle.previous.previous.max_ returns the maximum value of two candles before the current one). +**candle.previous:** This refers to the previous candle. You may use _candle.previous_ to fetch any of the variables of the previous candle (i.e.: _candle.previous.close_). You may also use as many _.previous_ modifiers as required to fetch values of more than one period behind the current one (i.e.: _candle.previous.previous.max_ returns the maximum value of two candles before the current one). > Previous Property: The _.previous_ property is a property common to all indicators. You may use the property on each of the indicators in a similar way. @@ -818,9 +818,9 @@ If you wish to have multiple strategies that work independently of each other, t **bollingerSubChannel.direction:** Possible values are ```"Down"```, ```"Up"```, and ```"Side"```. -**bollingerSubChannel.period:** The number of periods the sub channel spans at the moment the variable is being read. For instance, if a sub channel spans 10 candles and the variable is checked on the fourth candle, then _bollingerChannel.period_ = 4. Put in other words, it is the current span of the subchannel. +**bollingerSubChannel.period:** The number of periods the subchannel spans at the moment the variable is being read. For instance, if a subchannel spans 10 candles and the variable is checked on the fourth candle, then _bollingerChannel.period_ = 4. Put in other words, it is the current span of the subchannel. -**bollingerSubChannel.slope:** Indicates how steep the slope of the sub channel is. Possible values are ```"Side"```, ```"Gentle"```, ```"Medium"```, ```"Steep"```, ```"Extreme"``` (in order from lowest to highest). +**bollingerSubChannel.slope:** Indicates how steep the slope of the subchannel is. Possible values are ```"Side"```, ```"Gentle"```, ```"Medium"```, ```"Steep"```, ```"Extreme"``` (in order from lowest to highest). ### Internal @@ -916,9 +916,9 @@ Before discussing the various forms of strategy testing and live trading availab | :---: | :---: | | ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) | -At the moment, the app manages data sets locally. However, in the future, it will also source data and services from a peer-to-peer network of nodes which will provide those services. +At the moment, the app manages data sets locally. However, in the future, it will also source data and services from a peer-to-peer network of nodes that will provide those services. -For the time being, all you need to know is that the *network* is one of the direct child elements of a definition, and that the one *node* in the network is where you will manage the processes that run in your local machine. +For the time being, all you need to know is that the *network* is one of the direct child elements of a definition and that the one *node* in the network is where you will manage the processes that run in your local machine. ## Task Manager, Tasks, Bots and Processes @@ -937,16 +937,16 @@ Each bot may perform more than one job, thus, they may run one or more processes There currently are three kinds of bots that you will run to provide you with the data and functions you need: * **Sensors:** they extract raw data from the exchange; -* **Indicators:** they process data to produce more ellaborate datasets; +* **Indicators:** they process data to produce more elaborate datasets; * **Trading Engine:** it is the bot that reads a Superalgos Protocol file containing the details of trading strategies and interacts with the Superalgos Desktop App to run them as simulations (using a simulation plotter) or to trade live. -> **NOTE:** Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you *do not* use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own, starting from the definition menu. It is unlikely that you will be able to do this properly, so we highly reccommend you use one of the supplied templates. +> **NOTE:** Remember all of these elements (Network, Network Node, Task Manager, Tasks and Bots) are part of your definition. If you *do not* use one of the Quick-Start Examples workspaces supplied with the release, you will need to create all of these elements on your own, starting from the definition menu. It is unlikely that you will be able to do this properly, so we highly recommend you use one of the supplied templates. All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos Network and a network node with two task managers. Each task manager has a name, which becomes visible only upon hovering the mouse pointer: * **Keep Datasets Up-to-Date:** This task manager has several tasks, each controlling one of the bots required to keep the datasets in your machine up to date, including both sensors and indicators. If you wish to have the data up-to-date, you need to *Start All Tasks* using the menu. This is also a pre-requisite for trading live, doing paper-trading and forward testing. -* **Tests & Live Trading:** This is the task manager you will use to run the trading engine, so that you can set up your backtesting, paper-trading, forward testing and live testing sessions. In our templates, you will always find at least two tasks, so that you may run live-trading sessions issolated from your tests. This means that you will run one instance of the trading engine for live-trading and any number of instances of the trading engine for your testing sessions. +* **Tests & Live Trading:** This is the task manager you will use to run the trading engine so that you can set up your backtesting, paper-trading, forward testing and live testing sessions. In our templates, you will always find at least two tasks, so that you may run live-trading sessions isolated from your tests. This means that you will run one instance of the trading engine for live-trading and any number of instances of the trading engine for your testing sessions. [ILLUSTRATION] From d6d8d143c727e253c9176019038c0bf58e5c12d1 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 16:01:34 +0200 Subject: [PATCH 56/81] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 35feda026..152315f0a 100644 --- a/README.md +++ b/README.md @@ -958,7 +958,7 @@ All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos N | :---: | :---: | | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66930152-7990a900-f034-11e9-8f97-2216e139cf40.png) | ![session-paper-trading](https://user-images.githubusercontent.com/13994516/66930155-7990a900-f034-11e9-9c87-0f5627c6f219.png) | -A simulation is the visual representation over the charts of any of the forms of strategy testing available within the app: +A simulation is a visual representation over the charts of any of the forms of strategy testing available within the app: * **Backtesting:** testing over historic data; * **Paper-trading:** testing over a live data feed, without placing orders at the exchange (orders are simulated); @@ -966,7 +966,7 @@ A simulation is the visual representation over the charts of any of the forms of We will cover *forward testing* when we discuss live trading. For the time being, we will focus on the first two steps of the strategy testing process. -As explained in the previous chapter, the trading engine is the bot that handles testing sessions, and is controlled by a task and it's corresponding task manager. +As explained in the previous chapter, the trading engine is the bot that handles testing sessions and is controlled by a task and its corresponding task manager. **To run a testing session, you will set up the session under a process of the trading engine and click *Run* on its menu.** @@ -984,7 +984,7 @@ For your convenience, all our templates in the ```Quick-Start-Examples``` folder Each testing session has its own set of parameters. This allows you to configure different trading sessions with different parameters, and go back and forth between them as required. For instance, you may have different backtesting sessions with different date ranges, different exchange fees or different slippage settings. -> If any of these parameters is missing from the configuration of the testing session, the app's fallback mechanism will look for the parameters at the trading system level and use those settings instead. +> If any of these parameters are missing from the configuration of the testing session, the app's fallback mechanism will look for the parameters at the trading system level and use those settings instead. We covered the *Base Asset* parameter when explaining [trading systems](#trading-system). Let's now review the rest. @@ -1036,7 +1036,7 @@ Simulations take *slippage* into account when the following piece of code is pre } ``` -The number you enter is applied as a percentage of the price of the order and added or substracted from the price depending on the circumstances, always working against you. For instance, ```"positionRate": 0.1``` means the position will be set at a price 0.1% higher if you stand on USDT or lower if you stand in BTC. +The number you enter is applied as a percentage of the price of the order and added or subtracted from the price depending on the circumstances, always working against you. For instance, ```"positionRate": 0.1``` means the position will be set at a price 0.1% higher if you stand on USDT or lower if you stand in BTC. The result of slippage in simulations is taken into account by the graphic representation of each trade created by the Simulation Trades layer. @@ -1133,7 +1133,7 @@ Notice Asset Balances in the bottom left corner of the screen. Asset A represent ![Trading-Simulation-Asset-Balances](https://user-images.githubusercontent.com/13994516/58564447-3e304200-822d-11e9-9e90-e4f02212de5a.gif)

-> **NOTE:** For the time being, asset balances displayed on screen correspond to the Simulation layer that was turned on last. +> **NOTE:** For the time being, asset balances displayed on-screen correspond to the Simulation layer that was turned on last. The dashed line represents the duration of the trade at the price of the _take position_ event. Notice how one asset is exchanged for the other asset at the take position event, and exchanged back as the trade closes. @@ -1145,7 +1145,7 @@ Notice the green horizontal lines indicating the _take profit_ value for each pe ![Trading-Simulation-Take-Profit](https://user-images.githubusercontent.com/13994516/58564451-3ec8d880-822d-11e9-84c4-7e2147018297.gif)

-Notice the red horizontal bars indicating the _stop_ value for each period (candle). Stop is managed in _phases_, marked with the corresponding icons. +Notice the red horizontal lines indicating the _stop_ value for each period (candle). *Stop* is managed in _phases_ marked with the corresponding icons. ![Trading-Simulation-Stop](https://user-images.githubusercontent.com/13994516/58564450-3e304200-822d-11e9-8281-cc4b9cc22746.gif) @@ -1171,9 +1171,9 @@ The *Trades* layer marks trades with a triangle whose hypotenuse connects the pr The app allows for having multiple testing sessions. You may add and work with multiple sessions by backing up the existing session at the level of the process. Then drop the backup on the workspace, attach it to the trading engine and give the new session a new name. -The number of backtesting sessions you may run simultaneously is capped by your machine's capacity. Current tests indicate that a dual core processor at 2.4GHz may process up to 5 sessions at the same time without compromising the machine's performance. +The number of backtesting sessions you may run simultaneously is capped by your machine's capacity. Current tests indicate that a dual-core processor at 2.4GHz may process up to 5 sessions at the same time without compromising the machine's performance. -Running more sessions than the optimal number your machine may process efficiently may result in the the sessions taking more time to process than if they were run in a sequence. +Running more sessions than the optimal number your machine may process efficiently may result in the sessions taking more time to process than if they were run in a sequence. [ILLUSTRATION] @@ -1183,7 +1183,7 @@ Being able to run multiple backtesting sessions allows you to speed up the strat For instance, you may want to check how different variations of a condition in the *take position event* affect the results. To tests all variations at the same time, you would: -1. Replicate a backtesting session backing up the correponding *process* element (along with its children) and dropping the backup on your workspace, as many times as you require, [attaching it](#detachment-and-attachment-of-elements) to an available trading engine. +1. Replicate a backtesting session backing up the corresponding *process* element (along with its children) and dropping the backup on your workspace, as many times as you require, [attaching it](#detachment-and-attachment-of-elements) to an available trading engine. [ILLUSTRATION] @@ -1199,7 +1199,7 @@ It is a known fact that testing and optimizing a strategy over a complete data s Being able to set up multiple backtesting operations allows you to segment your data set as you may consider appropriate, for instance, creating sessions to test only on odd months, every three or six months, or in a more random-like arrangement. -The system provides enough flexibility to accommodate different baacktesting criteria and styles. It is up to you how to set it up. +The system provides enough flexibility to accommodate different backtesting criteria and styles. It is up to you how to set it up. # Forward Testing and Live Trading From 72fb5142169fbb30f1ce315d421ce6d6028c39b4 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 16:08:54 +0200 Subject: [PATCH 57/81] Update README.md --- README.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 152315f0a..afa2a35d5 100644 --- a/README.md +++ b/README.md @@ -1209,9 +1209,9 @@ Once you are happy with your strategy after extensive backtesting and paper-trad | :---: | :---: | | ![session-forward-testing](https://user-images.githubusercontent.com/13994516/67090258-eed1ba80-f1a9-11e9-9b00-d281d50d6eff.png) | ![session-live-trading](https://user-images.githubusercontent.com/13994516/67090259-eed1ba80-f1a9-11e9-896a-a8320f3e3f40.png) | -It is recommended to forward test your strategy before commiting serious capital to live trading. Forward testing is usually the final testing phase before going live. It involves placing orders at the exchange for a fraction of the capital that you intend to use when trading live, and that is actually the only difference between a forward testing session and a live trading session. +It is recommended to forward test your strategy before committing serious capital to live-trading. Forward testing is usually the final testing phase before going live. It involves placing orders at the exchange for a fraction of the capital that you intend to use when trading live, and that is actually the only difference between a forward testing session and a live trading session. -Forward testing sessions and live trading sessions need to be configured under their corresponding tasks, pretty much like was explained for backtesting and paper-trading sessions, with a few minor nouances: +Forward testing sessions and live trading sessions need to be configured under their corresponding tasks, pretty much like was explained for backtesting and paper-trading sessions, with a few minor nuances: **1. Datetime Range** @@ -1223,11 +1223,11 @@ Like with paper trading sessions, you only require a *finalDatetime*. If you do } ``` -> The **Exchange Rate** and **Slippage** parameters do not affect forward testing or live trading. However, those parameters are taken into account when creating simulation layers, which are also avaialbe during forward testing and live trading. +> The **Exchange Rate** and **Slippage** parameters do not affect forward testing or live trading. However, those parameters are taken into account when creating simulation layers, which are also available during forward-testing and live-trading. **2. Forward Testing Session Configuration** -In the case of forward testing you will want to configure what is the percentage of your balance that you wish to use for testing. You do this by clicking the *Edit Session* option on the session's menu and entering the desired value in the code snipet: +In the case of forward testing you will want to configure what is the percentage of your balance that you wish to use for testing. You do this by clicking the *Edit Session* option on the session's menu and entering the desired value in the code snippet: ``` {"balancePercentage": 1} @@ -1247,7 +1247,7 @@ If you set up your forward-testing session with ```"balancePercentage": 1```, th > **NOTE:** You need to take this into account at the time of defining your *positionSize* formula. If the formula is a constant, you may easily run out of balance, as only a fraction of the balance will be available for the strategy to use. It may be a good idea to set up your *positionSize* as a function of your available balance instead. -In the same way as the balance is scaled down, the *minimumBalance* and *maximumBalance* are also scaled down accordingly. +Just like the balance is scaled down, the *minimumBalance* and *maximumBalance* are also scaled down accordingly. ## Getting Started @@ -1346,15 +1346,15 @@ An additional limitation is that there currently is no feature to break up order ## Multiple Forward-Testing or Live-Trading Sessions within the Same Definition -If for some reason you wish to run more than one forward-testing or live-trading session from within the same definition, you need to know that—due to restrictions on API use impossed by exchanges—you may not use the same API Key from different processes. +If for some reason you wish to run more than one forward-testing or live-trading session from within the same definition, you need to know that—due to restrictions on API use imposed by exchanges—you may not use the same API Key from different processes. -This means that you will need to create a different API Key for each session you wish to run. You will create the keys as explained on the [Getting Started](#getting-started-1) section above. +This means that you will need to create a different API Key for each session you wish to run. You will create the keys as explained in the [Getting Started](#getting-started-1) section above. -However, in order to let the app know which API Key you wish to use in each session, you will move the corresponding API Key from the *Personal Data* branch to the *parameters* of the session. Simply detach the API Key element from the *Exchange Account* element and re-attach it to the session's *parameters*. +However, to let the app know which API Key you wish to use in each session, you will move the corresponding API Key from the *Personal Data* branch to the *parameters* of the session. Simply detach the API Key element from the *Exchange Account* element and re-attach it to the session's *parameters*. [ILLUSTRATION] -> **NOTE:** If you don't specify which API Key to use at the session level, the app's fallback mechanism will look for an API Key at the level of the Personal Data element. If more than one forward testing or live trading session end up using the same API Key, you should expect errors to occurr. +> **NOTE:** If you don't specify which API Key to use at the session level, the app's fallback mechanism will look for an API Key at the level of the Personal Data element. If more than one forward-testing or live-trading session ends up using the same API Key, you should expect errors to occur. ## Poloniex API Keys @@ -1365,7 +1365,7 @@ Go to the tools menu and select *API KEYS*... ![image](https://user-images.githubusercontent.com/13994516/63279745-da586b00-c2a9-11e9-9eaa-fd94c5cd96a5.png)

-If you have never used the API before, chances are it is disabled at the exchange. So before actually creating an API Key you will need to enable them... +If you have never used the API before, chances are it is disabled at the exchange. So before actually creating an API Key, you will need to enable them... ![image](https://user-images.githubusercontent.com/13994516/63279823-fcea8400-c2a9-11e9-929e-0b090ad6f31c.png)

From 88e4b8de4f3362752a59bc6186d51b19a42861f3 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 16:29:09 +0200 Subject: [PATCH 58/81] Update README.md --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index afa2a35d5..4f5ef0d91 100644 --- a/README.md +++ b/README.md @@ -1404,7 +1404,7 @@ The two definitions work independently from each other, from within the same wor ## On-screen Errors and Warnings -It may happen that your simulation or live trading is not working as expected. The first thing to do in such case is look around within your workspace. Errors are signaled with a red circle surrounding the relevant element of the workspace. Hoover the mouse pointer over the element and you should get a description of what may be that is causing the unexpected behavior. +It may happen that your simulation or live trading is not working as expected. The first thing to do in such a case is to look around within your workspace. Errors are signaled with a red circle surrounding the relevant element of the workspace. Hover the mouse pointer over the element and you should get a description of what is that is causing the unexpected behavior. ![On-screen-errors](https://user-images.githubusercontent.com/13994516/63213696-b52ff500-c10f-11e9-9bc1-741ecb0858ef.gif)

@@ -1425,11 +1425,11 @@ To update your datasets until the present time, you need to *Run All Tasks* in y We highly appreciate bug reports. This is what you need to do: -1. Make sure you are running the latest release and that you have upgraded to the latest patch. You may find information about releases and patches in the [releases](https://github.com/Superalgos/DesktopApp/releases) page. If you are not running the latest patch, please upgrade and test your issue again before reporting anything. +1. Make sure you are running the latest release and that you have upgraded to the latest patch. You may find information about releases and patches on the [releases](https://github.com/Superalgos/DesktopApp/releases) page. If you are not running the latest patch, please upgrade and test your issue again before reporting anything. -2. Go to the [Issues](https://github.com/Superalgos/DesktopApp/issues) page in this repository and take a moment to search for similar existing open issues. If you find someone has the same issue as you, you may find helpful to follow the thread and comment if you have any new information about the issue. +2. Go to the [Issues](https://github.com/Superalgos/DesktopApp/issues) page in this repository and take a moment to search for similar existing open issues. If you find one similar to yours, you may find helpful to follow the thread and may contribute by commenting and introducing new information about the issue. -3. If there are no similar issues, then open a new one. Do your best to describe the problem as thoroughly as possible.

Developers will be interested in knowing how to reproduce the issue in their own systems, so please describe the process that leads to the issue as clearly as possible. Capturing a GIF video showing the steps that lead to the issue would be of great help! [LICEcap](https://www.cockos.com/licecap/) is a lightweight, simple app that can help you with that. If developers can reproduce the issue, half of the problem is solved already.

If the issue seems to happen under specific conditions, you might want to share your _Definitions_ with developers. To do this, go to the Definitions element in your workspace and select _Share_ in the menu. A file containing your strategy and other parameters, but NOT your API keys, will download to your browser's download folder. Upload this file to the issue only if you feel comfortable with sharing it openly. If not, then wait for developers to contact you.

Please make sure you enable Github notifications when someone responds to the issue, as developers may want to ask questions.

If the issue happens while using the app at the browser, then please include a screen capture of Chrome's Console. Open DevTools with the F12 key (when the browser is in focus) and click the Console tab, then go back and reproduce the issue. Take a screen capture of the Console and paste it along with your report.

Feel free to also include screen captures of the app itself if there is anything relevant you wish to show to developers.

![image](https://user-images.githubusercontent.com/13994516/63112941-c18e4380-bf91-11e9-95e2-6fb064d5aead.png) +3. If there are no similar issues, then open a new one. Do your best to describe the problem as thoroughly as possible.

Developers will be interested in knowing how to reproduce the issue in their systems, so please describe the process that leads to the issue as clearly as possible. Capturing a GIF video showing the steps that lead to the issue would be of great help! [LICEcap](https://www.cockos.com/licecap/) is a lightweight, simple app that can help you with that. If developers can reproduce the issue, half of the problem is solved already.

If the issue seems to happen under specific conditions, you might want to share your _Definitions_ with developers. To do this, go to the Definitions element in your workspace and select _Share_ in the menu. A file containing your strategy and other parameters, but NOT your API keys, will download to your browser's download folder. Upload this file to the issue only if you feel comfortable with sharing it openly. If not, then wait for developers to contact you.

Please make sure you enable Github notifications when someone responds to the issue, as developers may want to ask questions.

If the issue happens while using the app at the browser, then please include a screen capture of Chrome's Console. Open DevTools with the F12 key (when the browser is in focus) and click the Console tab, then go back and reproduce the issue. Take a screen capture of the Console and paste it along with your report.

Feel free to also include screen captures of the app itself if there is anything relevant you wish to show to developers.

![image](https://user-images.githubusercontent.com/13994516/63112941-c18e4380-bf91-11e9-95e2-6fb064d5aead.png) # Technical Overview @@ -1449,19 +1449,19 @@ These Node.js components provide the infrastructure required to run different ki ## How Algorithms Work -Bots mission is—in essence—creating _products_ that others can consume. To do this, they run _processes_ which produce and store _data sets_. +Bots' mission is—in essence—creating _products_ that others can consume. To do this, they run _processes_ that produce and store _data sets_. Each bot may have several processes, and processes don't necessarily have a one-to-one relationship with products. That is, a product can be the result of the work of one or more processes. Bot processes run when called by the corresponding task and stop when they finish the task at hand, to wake up again after the interval defined in the bot's configuration file. -The data sets processes create are the actual _output_ of bots which are stored in the file system. But processes also produce and store a second valuable piece of information: _status reports_. +The data sets processes create are the actual _output_ of bots, and are stored in the file system. But processes also produce and store a second valuable piece of information: _status reports_. Status reports serve as temporal annotations that bots read every time they are called by the app to know what was done in the previous run and what the state of affairs is at present. Status reports are dynamic, and they change constantly, with updates after every single run of the associated process. ### Dependencies -We established that bots produce products for others to consume. This _others_ include other algorithms, meaning that bots usually depend on the data sets produced by other bots. We call these _data dependencies_, which are declared on each bot configuration file. +We established that bots produce products for others to consume. _Others_ include other algorithms, meaning that bots usually depend on the data sets produced by other bots. We call these _data dependencies_, which are declared on each bot configuration file. Bots consume their own status report and they might as well consume status reports from other algorithms. We call these _status dependencies_, which are too declared in each bot configuration file. @@ -1522,7 +1522,7 @@ Of course, the main goal of a strategy is to perform profitable trading. However * Trading-Simulation, Simulation-Strategies, Simulation-Trades, and Simulation-Conditions, are data sets that the [Trading Simulation Plotter](https://github.com/AAMasters/Plotters-Trading-Simulation) reads to create a visual representation of strategies' actions over the charts. -* Live Trading History, Trading-Execution and Trading-Process are data sets used to render live-trading activity over the charts. +* Live Trading History, Trading-Execution, and Trading-Process are data sets used to render live-trading activity over the charts. ## Outputs @@ -1530,7 +1530,7 @@ Each of these bots produces an output in the form of JSON files, which are store ### Sensors and Indicators Output -The route for writting bot's output is built as follows: +The route for writing bot's output is built as follows: ```Bot Name and version > the version of AACloud (an internal platform component) > the version of the data set > Output folder``` @@ -1560,13 +1560,13 @@ The trading engine is a particular case, as it stores data from multiple simulat To do this efficiently, the trading engine creates folders for storing the output and status reports of each session, naming each folder after the session ID, which is unique across definitions. -If for some reason you wish to change the name of an output folder for something easier to read, you may include the following snipet under the *Edit Session* option in the menu of the corresponding session: +If for some reason you wish to change the name of an output folder for something easier to read, you may include the following snippet under the *Edit Session* option in the menu of the corresponding session: ``` "folderName":"YourName" ``` -You custom name will be displayed along with the session ID in the name of the folder, in the following format: +Your custom name will be displayed along with the session ID in the name of the folder, in the following format: ``` YourName - 3e139ae2-138c-42ac-99d6-e0cf9c7c6ee6 From fe26aa9fff1c1a277dfc88f715c5442b3bd2639d Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 20:14:16 +0200 Subject: [PATCH 59/81] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4f5ef0d91..64e1145d9 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,8 @@ If you are on Mac, use the Finder app to go to the ```Superalgos Desktop App``` If you are on Linux, open a Terminal / Console, go to the ```Superalgos Desktop App``` folder, type ```node run``` and hit *Enter*. +![Getting-Started-Guide-01-App-Launch](https://user-images.githubusercontent.com/13994516/67231207-2907ba00-f43f-11e9-83e8-e36cc844b0eb.gif) + **2. Drag and drop an example workspace**: The app will load on your default browser. You should either [set Chrome as your default browser](https://support.google.com/chrome/answer/95417?co=GENIE.Platform%3DDesktop&hl=en) before executing the file or simply close the non-Chrome browser, open Chrome and go to http://localhost:1337/. @@ -241,7 +243,7 @@ Also, a Console/Command Line/Terminal window will open. The Console must be open Go to the ```Superalgos Desktop App/Quick-Start-Examples``` folder, drag your preferred example file and drop it on the _Designer_ (the area with a black background in the bottom half of the screen) to start with a working template. -[ILLUSTRATION] +![Getting-Started-Guide-02-Drop-Workspace](https://user-images.githubusercontent.com/13994516/67231208-2907ba00-f43f-11e9-82b4-d78c0ace4d0a.gif) **Available Quick Start Examples**: From 0b1648a581acbb76dc1ac25ee86bf050204d5155 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 20:59:55 +0200 Subject: [PATCH 60/81] Update README.md --- README.md | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 64e1145d9..8642d0fae 100644 --- a/README.md +++ b/README.md @@ -271,23 +271,28 @@ If you haven't yet, start by importing either ```Share - Workspace - Bull run ri | :---: | :---: | | ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66308204-ca065900-e906-11e9-8b66-80f7fa605f2d.png) | -Open up the Designer section of the app by dragging the horizontal bar upwards and locate the two Task Manager elements connected to the Network Node element on the left-hand side of the screen. +Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use your keyboard Alt + ↑. -> To move around the Designer, click on the black background and drag to pan in the desired direction. +Now click and drag the dark background to pan towards the white semicircle in the bottom. That is your *definition*, which is the top level of the hierarchical structure the stores all the information you need to trade. -Then, hover your mouse pointer over either of the Task Manager elements and click ```Run All Tasks``` in the menu. You will not see any immediate effect in your browser, but if you take a look at the Console, you will notice activity indicating that several processes are running. +![Getting-Started-Guide-03-Move-to-Definition](https://user-images.githubusercontent.com/13994516/67234224-0d071700-f445-11e9-8c77-b00c0d4a39d1.gif) -Do the same with the second Task Manager element. +Now follow the dotted line to the left. You will find the *Superalgos Network* element, and further down the line, you will find the *Node* element. Then there is a fork, with one line going down and left, and another going up and left. Follow the one going down until you reach the *Task Manager* element. Hover the mouse pointer over the element and click *Run All Tasks* on the menu. Notice the name of the Task Manager showing on top of the icon when you hover you mouse: "**Keep Datasets Up-to-Date**" -> Notice how each of the two Task Manager elements display a name when you hover your mouse pointer. +![Getting-Started-Guide-04-Task-Manager-1](https://user-images.githubusercontent.com/13994516/67234227-0d9fad80-f445-11e9-988d-deb6f3405950.gif) -[ILLUSTRATION] +You just started the *sensors* that extract live data from the exchange and the *indicators* that process raw trades data. -> **NOTES ON MARKET DATA**: You just started the *Trading Engine* along with the *sensors* that extract live data from the exchange and the *indicators* that process raw trades data. These processes will remain running for as long as you keep the browser open running the app. The bots processing exchange data and building indicators datasets will work to bring your data up to date. In our experience, it may take between 10 to 20 minutes per day's worth of Poloniex data to be processed. The time it will take for these processes to complete the job depends on several things: -> * The date of the release tells you how many days you are behind with the data set you just downloaded. -> * The speed and processing power of your machine will make a difference too. -> * The average number of trades per day at the exchange determines the volume of data the app needs to retrieve and process. -> * The number of trades the exchange returns per each request determines the size of the pipeline the exchanges allow API users to use. +These processes will remain running for as long as you keep the browser open running the app. The bots processing exchange data and building indicators datasets will work to bring your data up to date. In our experience, it may take between 10 to 20 minutes per day's worth of Poloniex data to be processed. The time it will take for these processes to complete the job depends on several things: + +* The date of the release tells you how many days you are behind with the data set you just downloaded. +* The speed and processing power of your machine will make a difference too. +* The average number of trades per day at the exchange determines the volume of data the app needs to retrieve and process. +* The number of trades the exchange returns per each request determines the size of the pipeline the exchanges allow API users to use. + +You will not see any immediate effect in your browser, but notice how your console application is buzzing with activity: + +![Getting-Started-Guide-05-Console](https://user-images.githubusercontent.com/13994516/67233532-b8af6780-f443-11e9-98e0-8efec4a305fe.gif) **3. Run your first backtest**: @@ -295,13 +300,11 @@ Do the same with the second Task Manager element. | :---: | :---: | :---: | | ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | -Go to the *Tests & Live Trading* Task Manager (hover over either of the Task Manager elements to see its name) and expand the view of child elements by clicking on the *plus sign* icon. +Now you will go back to the Node element and follow the line going up until you find another task manager. To the left, you will see an element called Task. You will hover over it and click *Run* on the menu. -Follow the tree of child elements until you find the *Backtesting Session* element. +Keep following the tree of child elements until you find the *Backtesting Session* element called *2019*. Hover the pointer to open the menu and click *Run*. -Hover over the Backtesting Session element and click *Run* on the menu. - -[ILLUSTRATION] +![Getting-Started-Guide-06-Task-Manager-2](https://user-images.githubusercontent.com/13994516/67234228-0d9fad80-f445-11e9-9905-1e41e1735afc.gif) You just started a backtesting session with a series of pre-configured parameters, including, for instance, the date range on which the backtesting session runs. Later on, you will learn how to adjust these parameters. From 46d93e96549a9000a33b0582e22d1547a19e9585 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 21:04:05 +0200 Subject: [PATCH 61/81] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8642d0fae..b56a15dbd 100644 --- a/README.md +++ b/README.md @@ -277,7 +277,7 @@ Now click and drag the dark background to pan towards the white semicircle in th ![Getting-Started-Guide-03-Move-to-Definition](https://user-images.githubusercontent.com/13994516/67234224-0d071700-f445-11e9-8c77-b00c0d4a39d1.gif) -Now follow the dotted line to the left. You will find the *Superalgos Network* element, and further down the line, you will find the *Node* element. Then there is a fork, with one line going down and left, and another going up and left. Follow the one going down until you reach the *Task Manager* element. Hover the mouse pointer over the element and click *Run All Tasks* on the menu. Notice the name of the Task Manager showing on top of the icon when you hover you mouse: "**Keep Datasets Up-to-Date**" +Now follow the dotted line to the left. You will find the *Superalgos Network* element, and further down the line, you will find the *Node* element. Then there is a fork, with one line going down and left, and another going up and left. Follow the one going down until you reach the *Task Manager* element. Hover the mouse pointer over the element and click *Run All Tasks* on the menu. Notice the name of the Task Manager showing on top of the icon when you hover you mouse: "*Keep Datasets Up-to-Date*" ![Getting-Started-Guide-04-Task-Manager-1](https://user-images.githubusercontent.com/13994516/67234227-0d9fad80-f445-11e9-988d-deb6f3405950.gif) @@ -302,7 +302,7 @@ You will not see any immediate effect in your browser, but notice how your conso Now you will go back to the Node element and follow the line going up until you find another task manager. To the left, you will see an element called Task. You will hover over it and click *Run* on the menu. -Keep following the tree of child elements until you find the *Backtesting Session* element called *2019*. Hover the pointer to open the menu and click *Run*. +Keep following the tree of child elements until you find the *Backtesting Session* element called *BCK Test 2019*. Hover the pointer to open the menu and click *Run*. ![Getting-Started-Guide-06-Task-Manager-2](https://user-images.githubusercontent.com/13994516/67234228-0d9fad80-f445-11e9-9905-1e41e1735afc.gif) From 9504420b57e1b7305546ecf50583826cffb10c0b Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 21:10:47 +0200 Subject: [PATCH 62/81] Update README.md --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b56a15dbd..cd37691fe 100644 --- a/README.md +++ b/README.md @@ -241,6 +241,10 @@ Also, a Console/Command Line/Terminal window will open. The Console must be open > Closing the Console/Command Line may cause your market data to become corrupt. The proper way of closing the application is closing your browser first, and allow a minute for processes to stop before closing the Console. +| Workspace | +| :---: | +| ![workspace](https://user-images.githubusercontent.com/13994516/67235108-bd294f80-f446-11e9-8212-687786d84f80.png) | + Go to the ```Superalgos Desktop App/Quick-Start-Examples``` folder, drag your preferred example file and drop it on the _Designer_ (the area with a black background in the bottom half of the screen) to start with a working template. ![Getting-Started-Guide-02-Drop-Workspace](https://user-images.githubusercontent.com/13994516/67231208-2907ba00-f43f-11e9-82b4-d78c0ace4d0a.gif) @@ -267,9 +271,9 @@ If you haven't yet, start by importing either ```Share - Workspace - Bull run ri **2. Start processes**: -| Task Manager | Network Node | -| :---: | :---: | -| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66308204-ca065900-e906-11e9-8b66-80f7fa605f2d.png) | +| Superalgos Network | Network Node | Task Manager | +| :---: | :---: | :---: | +| ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) |![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use your keyboard Alt + ↑. From 31b959f9e8d12da7fac606bfac46c7874ae45007 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 21:12:38 +0200 Subject: [PATCH 63/81] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd37691fe..435bec92a 100644 --- a/README.md +++ b/README.md @@ -271,8 +271,9 @@ If you haven't yet, start by importing either ```Share - Workspace - Bull run ri **2. Start processes**: -| Superalgos Network | Network Node | Task Manager | -| :---: | :---: | :---: | +| Definition | Superalgos Network | Network Node | Task Manager | +| :---: | :---: | :---: | :---: | +| ![text](https://user-images.githubusercontent.com/13994516/67235441-64a68200-f447-11e9-9a14-298f3cceb4f4.png) | ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) |![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use your keyboard Alt + ↑. From 5eafc4b0788c21e280793019e6a32cbae465c1ca Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 21:14:16 +0200 Subject: [PATCH 64/81] Update README.md --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 435bec92a..200d59d83 100644 --- a/README.md +++ b/README.md @@ -235,16 +235,16 @@ If you are on Linux, open a Terminal / Console, go to the ```Superalgos Desktop **2. Drag and drop an example workspace**: +| Workspace | +| :---: | +| ![workspace](https://user-images.githubusercontent.com/13994516/67235108-bd294f80-f446-11e9-8212-687786d84f80.png) | + The app will load on your default browser. You should either [set Chrome as your default browser](https://support.google.com/chrome/answer/95417?co=GENIE.Platform%3DDesktop&hl=en) before executing the file or simply close the non-Chrome browser, open Chrome and go to http://localhost:1337/. Also, a Console/Command Line/Terminal window will open. The Console must be open for as long as the app is running. Do not close the window or stop the processes running on it. You may minimize the Console if your Operating System allows you to do so. > Closing the Console/Command Line may cause your market data to become corrupt. The proper way of closing the application is closing your browser first, and allow a minute for processes to stop before closing the Console. -| Workspace | -| :---: | -| ![workspace](https://user-images.githubusercontent.com/13994516/67235108-bd294f80-f446-11e9-8212-687786d84f80.png) | - Go to the ```Superalgos Desktop App/Quick-Start-Examples``` folder, drag your preferred example file and drop it on the _Designer_ (the area with a black background in the bottom half of the screen) to start with a working template. ![Getting-Started-Guide-02-Drop-Workspace](https://user-images.githubusercontent.com/13994516/67231208-2907ba00-f43f-11e9-82b4-d78c0ace4d0a.gif) @@ -273,8 +273,7 @@ If you haven't yet, start by importing either ```Share - Workspace - Bull run ri | Definition | Superalgos Network | Network Node | Task Manager | | :---: | :---: | :---: | :---: | -| ![text](https://user-images.githubusercontent.com/13994516/67235441-64a68200-f447-11e9-9a14-298f3cceb4f4.png) -| ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) |![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | +| ![text](https://user-images.githubusercontent.com/13994516/67235441-64a68200-f447-11e9-9a14-298f3cceb4f4.png) | ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) |![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use your keyboard Alt + ↑. From fc37b35fd5c3d7309cb914d9044df2b66812ad87 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 21:19:26 +0200 Subject: [PATCH 65/81] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 200d59d83..db9b16e73 100644 --- a/README.md +++ b/README.md @@ -275,7 +275,7 @@ If you haven't yet, start by importing either ```Share - Workspace - Bull run ri | :---: | :---: | :---: | :---: | | ![text](https://user-images.githubusercontent.com/13994516/67235441-64a68200-f447-11e9-9a14-298f3cceb4f4.png) | ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) |![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | -Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use your keyboard Alt + ↑. +Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use Alt + ↑ in your keyboard . Now click and drag the dark background to pan towards the white semicircle in the bottom. That is your *definition*, which is the top level of the hierarchical structure the stores all the information you need to trade. @@ -300,9 +300,9 @@ You will not see any immediate effect in your browser, but notice how your conso **3. Run your first backtest**: -| Task Manager | Expand | Backtesting Session | -| :---: | :---: | :---: | -| ![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | ![menu-tree-plus](https://user-images.githubusercontent.com/13994516/63041077-45c7c480-bec7-11e9-965c-38e4fd706c38.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | +| Task | Backtesting Session | +| :---: | :---: | +| ![timeline](https://user-images.githubusercontent.com/13994516/67079956-73b1d980-f194-11e9-89e0-9c8d1ea2ad1d.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | Now you will go back to the Node element and follow the line going up until you find another task manager. To the left, you will see an element called Task. You will hover over it and click *Run* on the menu. From 52288062c12b0b3cedbd9b24973e0f93e1420538 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 21:25:50 +0200 Subject: [PATCH 66/81] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index db9b16e73..6533ab3ab 100644 --- a/README.md +++ b/README.md @@ -300,11 +300,11 @@ You will not see any immediate effect in your browser, but notice how your conso **3. Run your first backtest**: -| Task | Backtesting Session | -| :---: | :---: | -| ![timeline](https://user-images.githubusercontent.com/13994516/67079956-73b1d980-f194-11e9-89e0-9c8d1ea2ad1d.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | +| Task | Process | Backtesting Session | +| :---: | :---: | :---: | +| ![timeline](https://user-images.githubusercontent.com/13994516/67079956-73b1d980-f194-11e9-89e0-9c8d1ea2ad1d.png) | ![process](https://user-images.githubusercontent.com/13994516/67079738-00a86300-f194-11e9-9f59-a4cc4ce6d56c.png) | ![session-backtesting](https://user-images.githubusercontent.com/13994516/66318052-e7452280-e91a-11e9-94a7-90ebe6ee6e62.png) | -Now you will go back to the Node element and follow the line going up until you find another task manager. To the left, you will see an element called Task. You will hover over it and click *Run* on the menu. +Now you will go back to the Node element and follow the line going up until you find another task manager. To the left, you will see an element called Task. You will hover over it and click *Run* on the menu. Notice how the *task*, along with the *process* further down the line start showing a progress ring indicating that they are running. Keep following the tree of child elements until you find the *Backtesting Session* element called *BCK Test 2019*. Hover the pointer to open the menu and click *Run*. From 17f286872f4ebb9a6aa602efa469aa42b03d251f Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Mon, 21 Oct 2019 21:39:41 +0200 Subject: [PATCH 67/81] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6533ab3ab..2d28a6494 100644 --- a/README.md +++ b/README.md @@ -316,14 +316,20 @@ You will notice the element will display a date, signaling the progress of the s Then, you may pull down the horizontal bar to go to the charts to see the results. Make sure you are standing in the 1 hr (one hour) time period. Notice the time box at the bottom of the charts: -[ILLUSTRATION] +![Getting-Started-Guide-06-Go-to-Charts](https://user-images.githubusercontent.com/13994516/67237146-fc599f80-f44a-11e9-8da4-c95fc6295d52.gif) If you are not at the 1 hr time period use the wheel of your mouse while pointing at the charts to zoom in until you reach the 1 hr time period. You do this so that you may see the results of the backtesting session, which in the case of the example strategies, are calculated and plotted over the 1 hr charts. -[ILLUSTRATION] +![Getting-Started-Guide-07-Zoom-In](https://user-images.githubusercontent.com/13994516/67237088-d7fdc300-f44a-11e9-8ae5-d3fd394ffc22.gif) + +Now go the *Layers Panel* on the left-hand side of the screen and use the wheel of you mouse to scroll down until you find the Layers named "*BCK Test 2019*, and turn them on with a single click on each. + +![Getting-Started-Guide-08-Turn-on-Layers](https://user-images.githubusercontent.com/13994516/67237090-d8965980-f44a-11e9-86ba-3eb1e6980ae2.gif) You may now navigate the charts by clicking and dragging, or by zooming in and out with the wheel of your mouse. If you change the time period, you will not see the simulated data, as each time period may hold its own set of simulations. +![Getting-Started-Guide-09-Navigate](https://user-images.githubusercontent.com/13994516/67237276-3e82e100-f44b-11e9-977f-a02da0857b38.gif) + Congratulations! You've run your first simulation! The rest of this README file contains all the information you need to build your own strategies, modify, test and use existing ones, and eventually start trading live. From 9bd8fd6262aaeb7da76c54bfe86a62bed814ad6b Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 10:20:15 +0200 Subject: [PATCH 68/81] Update README.md --- README.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2d28a6494..fa1123a9a 100644 --- a/README.md +++ b/README.md @@ -356,7 +356,7 @@ If you have a version of the Superalgos Desktop App and wish to upgrade to a new # Overview -> **Watch the [Superalgos Platform Quick Getting Started Guide](https://www.youtube.com/watch?v=_apiM49udL0) video for a quick intro. The video is slightly outdated in that the Superalgos Desktop App (the client version of the Platform) does not require a login and does not feature a menu on top. Otherwise, the content is still valid.** +> **Watch the [Superalgos Platform Quick Getting Started Guide video](https://www.youtube.com/watch?v=_apiM49udL0) for a quick intro. The video is slightly outdated in that the Superalgos Desktop App (the client version of the Platform) does not require a login and does not feature a menu on top. Otherwise, the content is still valid.** The first time you run the app, you will see the following screen, split in half. The top half features the space used by the _Charts_ and the bottom half features the _Designer_. @@ -367,22 +367,19 @@ You may also use your keyboard as follows: 1. Alt + ↑ to close the Charts and open the Designer. 1. Alt + ↓ to close the Designer and open the Charts. -![Drag-Panels](https://user-images.githubusercontent.com/13994516/58413461-1ac49600-8079-11e9-9dd8-96f416e75b33.gif) -

+![Overview-01-Separator](https://user-images.githubusercontent.com/13994516/67267448-9d2f7580-f4b2-11e9-8f5c-123f8b0f360b.gif) > **Tip:** Pulling the bar to the very top of the screen causes the Charts to stop consuming resources in your machine, and gives you an ample view of the Designer. The Designer allows you to manage your [Workspace](#workspace). The structure represented by the various icons nested in a hierarchy of elements is the representation of the logic behind your _strategies_. -![image](https://user-images.githubusercontent.com/13994516/58325421-f32bbe80-7e29-11e9-9478-9e6e4a02ae47.png) -

+![Overview-02-Workspace](https://user-images.githubusercontent.com/13994516/67267449-9d2f7580-f4b2-11e9-9ae8-1eb1355de07d.gif) > **Tip:** Pulling the bar to the very bottom of the screen causes the Designer to stop consuming resources from your machine, and offers a full-screen view of the Charts. The *_Charts_* shows indicators data along with the actions taken by strategies, integrated with market data. -![image](https://user-images.githubusercontent.com/13994516/58325972-c37db600-7e2b-11e9-9aa2-9f6faaf8dd94.png) -

+![Overview-03-Charts](https://user-images.githubusercontent.com/13994516/67267949-a79e3f00-f4b3-11e9-9c0b-0c4aecf2d37d.gif) The *Superalgos Protocol* (also referred to as the _protocol_) determines the structure in which all the information regarding a trading system is stored and—at the same time—provides clear guidance on how traders using the various tools developed and distributed by the Superalgos Project shall create and automate their strategies. @@ -397,7 +394,7 @@ The layer title bar can have 3 possible background colors: 2. **Green**: the layer is on. 3. **Yellow**: the layer is loading; if it stays yellow, it means it can't load fully. -![Layers](https://user-images.githubusercontent.com/13994516/58434206-c04c2980-80ba-11e9-964b-8223ad99eb0b.gif) +![Overview-04-Layers](https://user-images.githubusercontent.com/13994516/67267950-a836d580-f4b3-11e9-931b-81c8dff088ac.gif) ## Main Elements @@ -421,7 +418,7 @@ There are many things you can do with your mouse wheel: 1. Scroll on top of or next to the time period to change the time period to available values. 1. Scroll elsewhere over the chart to zoom in and out. The App will not only zoom in and out of the chart, but also automatically adjust the time period to the most convenient one (for the current zoom level). -![Mouse-Wheel](https://user-images.githubusercontent.com/13994516/58434568-a01d6a00-80bc-11e9-9a58-3edd4852f07c.gif) +![Overview-05-Mouse-Use](https://user-images.githubusercontent.com/13994516/67268341-7a9e5c00-f4b4-11e9-848d-c520b4a8f1ff.gif) ### Keyboard Navigation @@ -432,6 +429,8 @@ When on the charts, you may use the following key combinations: 1. Shift + ↑ to pan upwards. 1. Shift + ↓ to pan downwards. +![Overview-06-Keyboard-Navigation](https://user-images.githubusercontent.com/13994516/67268342-7b36f280-f4b4-11e9-956d-109c65fdd5ba.gif) + ## Floating Panels To minimize a panel, click on the small triangle on the right of its title bar. This will automatically position the panel at the bottom of the screen. Clicking again restores the panel to its previous position. From 32cf2444109ae7559ec66a504c85bb9744eeb0d4 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 10:46:15 +0200 Subject: [PATCH 69/81] Update README.md --- README.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index fa1123a9a..8a619ea9d 100644 --- a/README.md +++ b/README.md @@ -404,6 +404,8 @@ Notice the following three elements relative to the position of the mouse pointe 2. To the right, the current rate. This is the rate (in this case USDT per BTC) at the mouse pointer position. 3. Below, the current time period (or candle size if you wish). This is the currently displayed time period—not only for candles but for any other object plotted across available layers. +![Charts-01-Main-Elements](https://user-images.githubusercontent.com/13994516/67268983-141a3d80-f4b6-11e9-96cc-c0dc3d9188f7.gif) + ## Navigation ### Using your Mouse @@ -449,42 +451,41 @@ The Superalgos Desktop App is an open system, meaning anyone can build layers fo Typical candlesticks. -![Candles](https://user-images.githubusercontent.com/13994516/58435905-1a50ed00-80c3-11e9-860a-bb4afc8e0f42.gif) +![Charts-03-Layers-Candles](https://user-images.githubusercontent.com/13994516/67269992-0a91d500-f4b8-11e9-9c67-a2bf3607d913.gif) #### Volumes We innovated a bit placing the buy volume at the bottom (in green), and the sell volume at the top (in red). -![Volumes](https://user-images.githubusercontent.com/13994516/58435907-1ae98380-80c3-11e9-90e5-de9052b166c4.gif) +![Charts-04-Layers-Volumes](https://user-images.githubusercontent.com/13994516/67269993-0b2a6b80-f4b8-11e9-8951-a1fbf12652b8.gif) #### Candle Stairs Patterns This is an unusual pattern proving any data set may be plotted on the charts (and by extension, that anything can be added to the system). A Stair Pattern is defined as a set of candles going in the same direction, either up or down. You can think of these patterns as "Candle Channels", as they represent channels with an up or down direction based on underlying candles direction. -![Candle-Stairs](https://user-images.githubusercontent.com/13994516/58435906-1ae98380-80c3-11e9-893e-1f8cd1b5c925.gif) +![Charts-05-Layers-Candle-Stairs](https://user-images.githubusercontent.com/13994516/67270464-05815580-f4b9-11e9-8a8d-7d18b8c470d7.gif) #### Volume Stairs Patterns A similar concept, this time with volumes. Whenever a sequence of volume bars is found where each one is bigger than the previous one, they are bundled together in a "Stair". The same applies when they are going down (the next is smaller than the previous one). For a trading bot, this serves to identify if sell or buy volumes are rising or declining. -![Volume-Stairs](https://user-images.githubusercontent.com/13994516/58435908-1ae98380-80c3-11e9-8c0d-87a105b4e021.gif) +![Charts-06-Layers-Volume-Stairs](https://user-images.githubusercontent.com/13994516/67270466-0619ec00-f4b9-11e9-8f62-8c227696c0fc.gif) #### Bollinger Bands This is the traditional [Bollinger Bands indicator](https://en.wikipedia.org/wiki/Bollinger_Bands). Bollinger Bands have a moving average, in our case calculated with the last 20 periods (the line in the middle of the bands). We are plotting the moving average with one color when it is going up, and with a different color when it's going down. The upper band is at 2 Standard Deviations from the moving average, pretty much like the lower band, also at 2 Standard Deviations. These are the most widely used Bollinger Bands settings. -![Bollinger-Bands](https://user-images.githubusercontent.com/13994516/58435901-1a50ed00-80c3-11e9-853a-68d39ba7958b.gif) +![Charts-07-Bollinger-Bands](https://user-images.githubusercontent.com/13994516/67270467-0619ec00-f4b9-11e9-9482-fbec44f0bf83.gif) #### Percentage Bandwidth (%B) This is a well-known indicator that derives from the Bollinger Bands. In a nutshell, it tells you how close the price is either to the upper band or the lower band at any point in time. When the price is in the middle of the bands (it is calculated with the close value of each candle), then %B is in the middle of its chart, at value 50. When the price touches the upper band, then %B is at 100, and finally when the price is at the lower band, then %B is at 0. -![Bollinger-Bands-Percentage-Bandwidth](https://user-images.githubusercontent.com/13994516/58435903-1a50ed00-80c3-11e9-90d5-e0d5293c76ad.gif) -

+![Charts-08-Percentage-Bandwidth](https://user-images.githubusercontent.com/13994516/67270468-0619ec00-f4b9-11e9-9dd5-e1def0d8c246.gif) The chart features lines at %B values 30 and 70 since those are the most common values for traders to forecast when a reversal may happen. In our chart, %B is the one represented at #1. We've found useful to add a moving average to smooth volatility a bit and to be able to ask—at any time—if it is going up or down. The moving average calculated with the last 5 %B values is plotted as line #2. Finally, we've also added a property called Bandwidth, which represents the separation of the upper band from the lower band. It is a measure of volatility and is plotted at #3. -![image](https://user-images.githubusercontent.com/9479367/56834223-1c7c1d80-6871-11e9-9687-ae5dc12d0336.png) +![Charts-09-Percentage-Bandwidth-Lines](https://user-images.githubusercontent.com/13994516/67270469-0619ec00-f4b9-11e9-8334-135bb54db1bf.gif) #### Bollinger Channels From eaa4676df3eea6c630821b3a182b8d4d234c6b50 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 10:55:38 +0200 Subject: [PATCH 70/81] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8a619ea9d..1ec1b7e31 100644 --- a/README.md +++ b/README.md @@ -491,13 +491,13 @@ The chart features lines at %B values 30 and 70 since those are the most common This is a non-standard indicator derived from the Bollinger Bands. These types of channels are calculated using the Bollinger Bands moving average. Essentially an upward channel begins when the moving average changes _direction_ from going down to going up, and the channel finishes when it turns from going up to down. A downward channel starts when the Bollinger Band moving average turns from going up to down, and it finishes when it starts going up again. Upward channels are plotted in green, while downward channels in red. Additional information can be found at the indicator's panel, like the number of periods contained at the channel. -![Bollinger-Channels](https://user-images.githubusercontent.com/13994516/58497359-146b1280-817c-11e9-9f4d-99fee41cd27f.gif) +![Charts-10-Bollinger-Channels](https://user-images.githubusercontent.com/13994516/67271113-34e49200-f4ba-11e9-8365-070738856f2a.gif) #### Bollinger Sub-Channels If we consider that one Bollinger Channel can have sub-channels in the same direction (up or down) but different slopes, then we get to the concept of Bollinger Sub-Channels. The most important property of a sub-channel is its slope. The possible values are Side, Gentle, Medium, High and Extreme. With this information, a trading bot could easily ask if it is in a sub-channel with a certain slope and for how many periods. The slope or inclination of the moving average may be an indication of momentum. -![Bollinger-Sub-Channels](https://user-images.githubusercontent.com/13994516/58497358-146b1280-817c-11e9-83df-219d0fffa9f0.gif) +![Charts-11-Bollinger-SubChannels](https://user-images.githubusercontent.com/13994516/67271114-34e49200-f4ba-11e9-90c8-77623de1dd04.gif) # Designer @@ -513,7 +513,7 @@ The hierarchy starts with a *definition*, which contains—among other things— Elements are bound to each other in a tree-like structure and tend to self-organize across the workspace. Dragging and dropping a sample workspace on the Designer is the fastest way to get started with the Superalgos Desktop App. -![Designer-Drag-Drop](https://user-images.githubusercontent.com/13994516/63524115-b724fa00-c4fb-11e9-9894-48f62be71c02.gif) +![Designer-01-Drop-Workspace](https://user-images.githubusercontent.com/13994516/67271115-34e49200-f4ba-11e9-9309-e9e7046384a0.gif) ## Workspace @@ -760,7 +760,7 @@ Thanks to the implementation of the Superalgos Protocol, all strategies built wi You may import any element—formulas, conditions, situations, phases, stages, complete strategies, complete trading systems, and even complete workspaces—simply by dragging and dropping them on the workspace. -![Designer-Drag-Drop](https://user-images.githubusercontent.com/13994516/63052820-a283a900-bee0-11e9-99b3-67273cba96a0.gif) +![Designer-01-Drop-Workspace](https://user-images.githubusercontent.com/13994516/67271115-34e49200-f4ba-11e9-9309-e9e7046384a0.gif)Using an Existing Strategy ### Working with Multiple Strategies From deb092834b932ba6f8360977d467644dcddfb734 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 11:20:58 +0200 Subject: [PATCH 71/81] Update README.md --- README.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 1ec1b7e31..01d7f8020 100644 --- a/README.md +++ b/README.md @@ -961,11 +961,13 @@ All workspaces in the ```Quick-Start-Examples``` folder include the Superalgos N * **Keep Datasets Up-to-Date:** This task manager has several tasks, each controlling one of the bots required to keep the datasets in your machine up to date, including both sensors and indicators. If you wish to have the data up-to-date, you need to *Start All Tasks* using the menu. This is also a pre-requisite for trading live, doing paper-trading and forward testing. +![Network-01-Keep-Datasets-Up-to-Date](https://user-images.githubusercontent.com/13994516/67271884-be489400-f4bb-11e9-94d6-46a7244186d6.gif) + * **Tests & Live Trading:** This is the task manager you will use to run the trading engine so that you can set up your backtesting, paper-trading, forward testing and live testing sessions. In our templates, you will always find at least two tasks, so that you may run live-trading sessions isolated from your tests. This means that you will run one instance of the trading engine for live-trading and any number of instances of the trading engine for your testing sessions. -[ILLUSTRATION] +![Network-02-Tests-Live-Trading](https://user-images.githubusercontent.com/13994516/67272045-0bc50100-f4bc-11e9-82b2-5f7c565e73e6.gif) -> **PRO TIP:** The [Getting Started Guide](#getting-started-guide) instructed you to start all tasks on both of these task managers. However, once you become familiar with the app, you may want to start only individual tasks according to your specific needs. +> **PRO TIP:** The [Getting Started Guide](#getting-started-guide) instructed you to start all tasks on the *Keep Datasets Up-to-Date* task manager, but only the required task to start a backtesting session on the *Tests & Live Trading* task manager. Once you become proficient with the app, you may want to start only individual tasks according to your specific needs. # Testing and Simulations @@ -985,11 +987,11 @@ As explained in the previous chapter, the trading engine is the bot that handles **To run a testing session, you will set up the session under a process of the trading engine and click *Run* on its menu.** -[ILLUSTRATION] +![Network-03-Running-Backtest](https://user-images.githubusercontent.com/13994516/67272210-68c0b700-f4bc-11e9-8eb2-04a253451932.gif) For your convenience, all our templates in the ```Quick-Start-Examples``` folder come with at least one backtesting and one paper-trading session set up. All you need to do is customize the *parameters* to your liking and, if you wish, add or remove layers to the *layer manager*, both child elements of each testing session. -[ILLUSTRATION] +![Network-04-Parameters](https://user-images.githubusercontent.com/13994516/67272211-68c0b700-f4bc-11e9-82c4-570699faa673.gif) ## Parameters @@ -1186,27 +1188,23 @@ The *Trades* layer marks trades with a triangle whose hypotenuse connects the pr The app allows for having multiple testing sessions. You may add and work with multiple sessions by backing up the existing session at the level of the process. Then drop the backup on the workspace, attach it to the trading engine and give the new session a new name. +![Network-05-Multiple-Backtests](https://user-images.githubusercontent.com/13994516/67272829-90644f00-f4bd-11e9-9559-3f01233ecee8.gif) + The number of backtesting sessions you may run simultaneously is capped by your machine's capacity. Current tests indicate that a dual-core processor at 2.4GHz may process up to 5 sessions at the same time without compromising the machine's performance. Running more sessions than the optimal number your machine may process efficiently may result in the sessions taking more time to process than if they were run in a sequence. -[ILLUSTRATION] - ### Testing Logic Variations Being able to run multiple backtesting sessions allows you to speed up the strategy tuning stage. For instance, you may want to check how different variations of a condition in the *take position event* affect the results. To tests all variations at the same time, you would: -1. Replicate a backtesting session backing up the corresponding *process* element (along with its children) and dropping the backup on your workspace, as many times as you require, [attaching it](#detachment-and-attachment-of-elements) to an available trading engine. +**1.** Replicate a backtesting session backing up the corresponding *process* element (along with its children) and dropping the backup on your workspace, as many times as you require, [attaching it](#detachment-and-attachment-of-elements) to an available trading engine. -[ILLUSTRATION] +**2.** Rename each backtesting session with a significant name that is related to the different variations of the condition you wish to test. -2. Rename each backtesting session with a significant name that is related to the different variations of the condition you wish to test. - -[ILLUSTRATION] - -3. Set up the first variation of the condition and run the corresponding backtesting session. Replace the first variation with the second one, and launch the second backtesting session. Repeat as many times as desired. +**3.** Set up the first variation of the condition and run the corresponding backtesting session. Replace the first variation with the second one, and launch the second backtesting session. Repeat as many times as desired. ### Testing on Non-Linear Date Ranges From 42cf8ede1fde7e28154df9824fcf57b3c0379716 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:03:29 +0200 Subject: [PATCH 72/81] Update README.md --- README.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 01d7f8020..2a09b1e3a 100644 --- a/README.md +++ b/README.md @@ -1138,39 +1138,41 @@ The layer manager allows you to determine which visualization layers will be ava Back on the charts, the following layers plot strategies' actions over the market data, providing a comprehensive set of visual clues showing how strategies would behave when trading. +> **NOTE:** The examples below illustrate the [*Weak-hands Buster*](https://github.com/Superalgos/Strategy-BTC-WeakHandsBuster) strategy, designed to sell BTC as prices start dropping and re-buy BTC as prices stabilize at a lower level. + ### Simulation The *Simulation* layer displays the actions of strategies throughout the tested period. Actions include the *take position event* and the management of *stop* and *take profit* in phases. By activating the Simulation layer you should be able to see something like this: -![Trading-Simulation](https://user-images.githubusercontent.com/13994516/58564550-6c158680-822d-11e9-8bb1-102912d4bfd0.gif) -

+![Simulation-Layers-01-Simulation-1](https://user-images.githubusercontent.com/13994516/67279788-040d5880-f4cc-11e9-9098-11496fac9c79.gif) Notice Asset Balances in the bottom left corner of the screen. Asset A represents BTC while Asset B represents USDT. -![Trading-Simulation-Asset-Balances](https://user-images.githubusercontent.com/13994516/58564447-3e304200-822d-11e9-9e90-e4f02212de5a.gif) -

+![Simulation-Layers-02-Simulation-2](https://user-images.githubusercontent.com/13994516/67279789-040d5880-f4cc-11e9-9124-9076273e6dfd.gif) > **NOTE:** For the time being, asset balances displayed on-screen correspond to the Simulation layer that was turned on last. The dashed line represents the duration of the trade at the price of the _take position_ event. Notice how one asset is exchanged for the other asset at the take position event, and exchanged back as the trade closes. -![Trading-Simulation-Trade-Duration](https://user-images.githubusercontent.com/13994516/58564452-3ec8d880-822d-11e9-8b4e-4cd892df69e7.gif) -

+![Simulation-Layers-03-Simulation-3](https://user-images.githubusercontent.com/13994516/67279791-040d5880-f4cc-11e9-9cac-db42c419ca0c.gif) Notice the green horizontal lines indicating the _take profit_ value for each period (candle). _Take profit_ is managed in _phases_, marked with the corresponding icons. -![Trading-Simulation-Take-Profit](https://user-images.githubusercontent.com/13994516/58564451-3ec8d880-822d-11e9-84c4-7e2147018297.gif) -

+![Simulation-Layers-04-Simulation-4](https://user-images.githubusercontent.com/13994516/67279792-040d5880-f4cc-11e9-8487-cf390d78da92.gif) Notice the red horizontal lines indicating the _stop_ value for each period (candle). *Stop* is managed in _phases_ marked with the corresponding icons. -![Trading-Simulation-Stop](https://user-images.githubusercontent.com/13994516/58564450-3e304200-822d-11e9-8281-cc4b9cc22746.gif) +![Simulation-Layers-05-Simulation-5](https://user-images.githubusercontent.com/13994516/67279793-04a5ef00-f4cc-11e9-8ac1-32e98762bf5b.gif) ### Formulas and Conditions The *Formulas and Conditions* layer helps identify which conditions are met at each candle. Notice how conditions are highlighted as the mouse pointer moves through different candles. -![Trading-Simulation-Conditions](https://user-images.githubusercontent.com/13994516/58564448-3e304200-822d-11e9-967b-8c74fb8532fe.gif) +![Simulation-Layers-06-Conditions](https://user-images.githubusercontent.com/13994516/67279794-04a5ef00-f4cc-11e9-9c53-cf5694701b50.gif) + +It also allows to track the value of each formula, for instance, those used to dynamically manage take profit in phases. + +![Simulation-Layers-07-Formulas](https://user-images.githubusercontent.com/13994516/67279796-053e8580-f4cc-11e9-8688-4fea62c1f40b.gif) ### Strategies From 7a6b29002ca0ca60f0c360cce24a124774c774ab Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:19:08 +0200 Subject: [PATCH 73/81] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2a09b1e3a..127a90519 100644 --- a/README.md +++ b/README.md @@ -1178,13 +1178,13 @@ It also allows to track the value of each formula, for instance, those used to d The *Strategies* layer identifies trigger on and trigger off events, signaling the activation and deactivation of strategies. -![Trading-Simulation-Strategies](https://user-images.githubusercontent.com/13994516/58565955-fd85f800-822f-11e9-9f95-9d0a477a4460.gif) +![Simulation-Layers-08-Strategies](https://user-images.githubusercontent.com/13994516/67280186-dd035680-f4cc-11e9-82e8-e52706749f5a.gif) ### Trades The *Trades* layer marks trades with a triangle whose hypotenuse connects the price at the _take position_ event with the _exit_ price. When the trade is profitable, the triangle is green; when the _exit_ happens at a loss, the triangle is red. -![Trading-Simulation-Trades](https://user-images.githubusercontent.com/13994516/58574801-1a76f700-8241-11e9-9144-0db81636dace.gif) +![Simulation-Layers-09-Trades](https://user-images.githubusercontent.com/13994516/67280187-dd9bed00-f4cc-11e9-93be-74b497d8f7b5.gif) ## Advanced Backtesting @@ -1367,7 +1367,9 @@ This means that you will need to create a different API Key for each session you However, to let the app know which API Key you wish to use in each session, you will move the corresponding API Key from the *Personal Data* branch to the *parameters* of the session. Simply detach the API Key element from the *Exchange Account* element and re-attach it to the session's *parameters*. -[ILLUSTRATION] +Alternatively, you may backup the API Key, delete the original one at the *Personal Data* level, import the one you just backed up by dropping it next to the live-trading session, and attaching it to its parameters. + +![Live-Trading-Multiple-Keys](https://user-images.githubusercontent.com/13994516/67280790-3ae46e00-f4ce-11e9-9dc5-14de8c560de2.gif) > **NOTE:** If you don't specify which API Key to use at the session level, the app's fallback mechanism will look for an API Key at the level of the Personal Data element. If more than one forward-testing or live-trading session ends up using the same API Key, you should expect errors to occur. From 94aea63c09e1d58d9c864128a8ca09ecf633b219 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:28:26 +0200 Subject: [PATCH 74/81] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 127a90519..0f754462b 100644 --- a/README.md +++ b/README.md @@ -1247,8 +1247,7 @@ In the case of forward testing you will want to configure what is the percentage ``` {"balancePercentage": 1} ``` - -[ILLUSTRATION] +![Live-Trading-02-Forward-Testing-Config](https://user-images.githubusercontent.com/13994516/67281056-e42b6400-f4ce-11e9-9f95-2a17b20db0c5.gif) The number you enter is applied as a percentage of *balanceAssetA* or *balanceAssetB* (for BTC and USDT-based strategies respectively) to obtain the forward-testing balance that will be available to the *positionSize* formula you defined on the [Open Stage](#open-stage) of the strategy. @@ -1436,7 +1435,7 @@ If you are running the app for the first time or you stopped running the app for To update your datasets until the present time, you need to *Run All Tasks* in your *Keep Datasets Up-to-Date* task manager, as explained on the [Task Manager, Tasks, Bots and Processes](#task-manager-tasks-bots-and-processes) section, and allow enough time for the processes to go through the missing data. -[ILLUSTRATION] +![Troubleshooting-01-Start-all-tasks](https://user-images.githubusercontent.com/13994516/67281294-5b60f800-f4cf-11e9-8f22-27655ec9e2a6.gif) # Reporting Bugs @@ -1591,7 +1590,7 @@ YourName - 3e139ae2-138c-42ac-99d6-e0cf9c7c6ee6 If you wish to know which ID corresponds to a certain session without defining a custom name, you may obtain it by clicking Ctrl + . while hovering the mouse pointer over the target session element. -[ILLUSTRATION] +![Session-ID](https://user-images.githubusercontent.com/13994516/67281472-c1e61600-f4cf-11e9-85dc-d81d7b2d014b.gif) > **NOTE:** Replace Ctrl with Command in Mac systems. From 7406a0cc4c2c745085dffdba515f74fc1e872a94 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:31:25 +0200 Subject: [PATCH 75/81] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f754462b..80aa4ab4e 100644 --- a/README.md +++ b/README.md @@ -275,13 +275,13 @@ If you haven't yet, start by importing either ```Share - Workspace - Bull run ri | :---: | :---: | :---: | :---: | | ![text](https://user-images.githubusercontent.com/13994516/67235441-64a68200-f447-11e9-9a14-298f3cceb4f4.png) | ![network](https://user-images.githubusercontent.com/13994516/66855353-59ed7800-ef83-11e9-8de9-db40971faa7b.png) | ![network-node](https://user-images.githubusercontent.com/13994516/66855357-5a860e80-ef83-11e9-917d-95cd8394588b.png) |![task](https://user-images.githubusercontent.com/13994516/66308205-ca9eef80-e906-11e9-8864-f7dba886bc7d.png) | -Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use Alt + ↑ in your keyboard . +Open up the Designer section of the app by dragging the horizontal bar upwards. You may also use Alt + ↑ in your keyboard. Now click and drag the dark background to pan towards the white semicircle in the bottom. That is your *definition*, which is the top level of the hierarchical structure the stores all the information you need to trade. ![Getting-Started-Guide-03-Move-to-Definition](https://user-images.githubusercontent.com/13994516/67234224-0d071700-f445-11e9-8c77-b00c0d4a39d1.gif) -Now follow the dotted line to the left. You will find the *Superalgos Network* element, and further down the line, you will find the *Node* element. Then there is a fork, with one line going down and left, and another going up and left. Follow the one going down until you reach the *Task Manager* element. Hover the mouse pointer over the element and click *Run All Tasks* on the menu. Notice the name of the Task Manager showing on top of the icon when you hover you mouse: "*Keep Datasets Up-to-Date*" +Now follow the dotted line to the left. You will find the *Superalgos Network* element, and further down the line, you will find the *Node* element. Then there is a fork, with one line going down and left, and another going up and left. Follow the one going down until you reach the *Task Manager* element. Hover the mouse pointer over the element and click *Run All Tasks* on the menu. Notice the name of the Task Manager showing on top of the icon when you hover your mouse: "*Keep Datasets Up-to-Date*" ![Getting-Started-Guide-04-Task-Manager-1](https://user-images.githubusercontent.com/13994516/67234227-0d9fad80-f445-11e9-988d-deb6f3405950.gif) @@ -322,7 +322,7 @@ If you are not at the 1 hr time period use the wheel of your mouse while pointin ![Getting-Started-Guide-07-Zoom-In](https://user-images.githubusercontent.com/13994516/67237088-d7fdc300-f44a-11e9-8ae5-d3fd394ffc22.gif) -Now go the *Layers Panel* on the left-hand side of the screen and use the wheel of you mouse to scroll down until you find the Layers named "*BCK Test 2019*, and turn them on with a single click on each. +Now go the *Layers Panel* on the left-hand side of the screen and use the wheel of your mouse to scroll down until you find the Layers named "*BCK Test 2019*, and turn them on with a single click on each. ![Getting-Started-Guide-08-Turn-on-Layers](https://user-images.githubusercontent.com/13994516/67237090-d8965980-f44a-11e9-86ba-3eb1e6980ae2.gif) From c35bbf0a9e4a9cb9eea42385cbae7b3aff1a9e6d Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:35:08 +0200 Subject: [PATCH 76/81] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 80aa4ab4e..b261a3a35 100644 --- a/README.md +++ b/README.md @@ -439,7 +439,7 @@ To minimize a panel, click on the small triangle on the right of its title bar. You may also drag and drop the panels by right-clicking on the title bar. -![Panels](https://user-images.githubusercontent.com/13994516/58580610-d0e0d900-824d-11e9-8c57-501eb9429ba6.gif) +![Charts-02-Panels](https://user-images.githubusercontent.com/13994516/67281843-a0d1f500-f4d0-11e9-85ad-9843219953b4.gif) ## Layers From 33e932c1e2782a934d90a35f876f8485b072a4af Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:45:17 +0200 Subject: [PATCH 77/81] Update README.md --- README.md | 37 +++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b261a3a35..c6e3fbe67 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ However, bear in mind that the app is at an early stage of development and that **This *Getting Started Guide* will quickly show you the very basics of the app so that you can rapidly grasp the app's potential. It will take you through a sequence of instructions that you need to follow to download and install the app, run it for the first time, import an existing strategy and run your first backtest.** -> Bear in mind that the app evolves fast. We do our best to keep this README up to date, however, some of the images illustrating these explanations may defer from what you will find in the app. +> **NOTE:** Bear in mind that the app evolves fast. We do our best to keep this README up to date, however, some of the images illustrating these explanations may defer from what you will find in the app. > **WARNING: The Superalgos Desktop App is at a very early stage of development. As such, errors may occur at any point, including errors that can cause you to lose money. You are responsible for taking all precautions before starting trading live. Make sure you forward test with small amounts of money, the kind you can afford losing. Trade live at your own risk.** @@ -173,11 +173,12 @@ You should end up with the following folder structure: ![image](https://user-images.githubusercontent.com/13994516/65512836-56158b00-deda-11e9-8d81-0dcd79efb480.png) -> Make sure the data ended up as the ```Data-Storage``` folder, right inside the ```Superalgos Desktop App``` root folder. + +> **NOTE:** Make sure the data ended up as the ```Data-Storage``` folder, right inside the ```Superalgos Desktop App``` root folder. **2. Continue with [Running the App](#running-the-app)** -> NOTE FOR DEVELOPERS: Instead of using the executable file to run the app, you may want to use ```node run``` from within the root ```Superalgos Desktop App``` folder, to run on your full Node Js installation. +> **NOTE FOR DEVELOPERS:** Instead of using the executable file to run the app, you may want to use ```node run``` from within the root ```Superalgos Desktop App``` folder, to run on your full Node Js installation. ## Initial Setup: The Extended Version for Regular Folks @@ -215,7 +216,7 @@ You should end up with the following folder structure: ![image](https://user-images.githubusercontent.com/13994516/65512836-56158b00-deda-11e9-8d81-0dcd79efb480.png) -> Make sure the data ended up as the ```Data-Storage``` folder, right inside the ```Superalgos Desktop App``` root folder. +> **NOTE:** Make sure the data ended up as the ```Data-Storage``` folder, right inside the ```Superalgos Desktop App``` root folder. ### Running the App @@ -243,7 +244,7 @@ The app will load on your default browser. You should either [set Chrome as your Also, a Console/Command Line/Terminal window will open. The Console must be open for as long as the app is running. Do not close the window or stop the processes running on it. You may minimize the Console if your Operating System allows you to do so. -> Closing the Console/Command Line may cause your market data to become corrupt. The proper way of closing the application is closing your browser first, and allow a minute for processes to stop before closing the Console. +> **NOTE:** Closing the Console/Command Line may cause your market data to become corrupt. The proper way of closing the application is closing your browser first, and allow a minute for processes to stop before closing the Console. Go to the ```Superalgos Desktop App/Quick-Start-Examples``` folder, drag your preferred example file and drop it on the _Designer_ (the area with a black background in the bottom half of the screen) to start with a working template. @@ -364,18 +365,18 @@ Use the control in the center of the turquoise bar to pull the bar up and down t You may also use your keyboard as follows: -1. Alt + ↑ to close the Charts and open the Designer. -1. Alt + ↓ to close the Designer and open the Charts. +**1.** Alt + ↑ to close the Charts and open the Designer. +**1.** Alt + ↓ to close the Designer and open the Charts. ![Overview-01-Separator](https://user-images.githubusercontent.com/13994516/67267448-9d2f7580-f4b2-11e9-8f5c-123f8b0f360b.gif) -> **Tip:** Pulling the bar to the very top of the screen causes the Charts to stop consuming resources in your machine, and gives you an ample view of the Designer. +> **TIP:** Pulling the bar to the very top of the screen causes the Charts to stop consuming resources in your machine, and gives you an ample view of the Designer. The Designer allows you to manage your [Workspace](#workspace). The structure represented by the various icons nested in a hierarchy of elements is the representation of the logic behind your _strategies_. ![Overview-02-Workspace](https://user-images.githubusercontent.com/13994516/67267449-9d2f7580-f4b2-11e9-9ae8-1eb1355de07d.gif) -> **Tip:** Pulling the bar to the very bottom of the screen causes the Designer to stop consuming resources from your machine, and offers a full-screen view of the Charts. +> **TIP:** Pulling the bar to the very bottom of the screen causes the Designer to stop consuming resources from your machine, and offers a full-screen view of the Charts. The *_Charts_* shows indicators data along with the actions taken by strategies, integrated with market data. @@ -586,7 +587,7 @@ You may also use the following key combinations on your keyboard: 1. Ctrl + ↑ to pan upwards. 1. Ctrl + ↓ to pan downwards. -> For Mac users, replace Ctrl with Command +> **NOTE:** For Mac users, replace Ctrl with Command ### Element's Menu @@ -625,7 +626,7 @@ Elements in the workspace may be detached from its parent, carrying all children To detach an element, right-click on it and drag it away from the parent element. To attach an element, right-click on it and move it closer to the element you wish to attach it to. -> **NOTE**: Elements may not be detached or attached to frozen elements. You need to unfreeze them before attaching or detaching. +> **NOTE:** Elements may not be detached or attached to frozen elements. You need to unfreeze them before attaching or detaching. Elements may be attached only to conceptually related parents. For instance, a *condition* may be attached to a *situation*, but it can not be attached to a *formula*. @@ -637,7 +638,7 @@ You may define shortcuts for frequently-used elements with the following procedu 1. Click Ctrl + your preferred key to assign the shortcut. 1. A sign will appear below the element confirming the assignation of the shortcut. -> **NOTE**: For Mac users, replace Ctrl with Command +> **NOTE:** For Mac users, replace Ctrl with Command Repeat the same procedure to remove a shortcut. @@ -760,7 +761,7 @@ Thanks to the implementation of the Superalgos Protocol, all strategies built wi You may import any element—formulas, conditions, situations, phases, stages, complete strategies, complete trading systems, and even complete workspaces—simply by dragging and dropping them on the workspace. -![Designer-01-Drop-Workspace](https://user-images.githubusercontent.com/13994516/67271115-34e49200-f4ba-11e9-9309-e9e7046384a0.gif)Using an Existing Strategy +![Designer-01-Drop-Workspace](https://user-images.githubusercontent.com/13994516/67271115-34e49200-f4ba-11e9-9309-e9e7046384a0.gif) ### Working with Multiple Strategies @@ -789,7 +790,7 @@ If you wish to have multiple strategies that work independently of each other, t **candle.previous:** This refers to the previous candle. You may use _candle.previous_ to fetch any of the variables of the previous candle (i.e.: _candle.previous.close_). You may also use as many _.previous_ modifiers as required to fetch values of more than one period behind the current one (i.e.: _candle.previous.previous.max_ returns the maximum value of two candles before the current one). -> Previous Property: The _.previous_ property is a property common to all indicators. You may use the property on each of the indicators in a similar way. +> **NOTE:** Previous Property: The _.previous_ property is a property common to all indicators. You may use the property on each of the indicators in a similar way. ### Bollinger Bands @@ -806,7 +807,7 @@ If you wish to have multiple strategies that work independently of each other, t **bollingerBand.previous:** Use _.previous_ like with candles (see _candle.previous_ above). ->Learn more about the [Bollinger Band](https://en.wikipedia.org/wiki/Bollinger_bands) +> **NOTE:** Learn more about the [Bollinger Band](https://en.wikipedia.org/wiki/Bollinger_bands) ### Percentage Bandwidth @@ -1001,7 +1002,7 @@ For your convenience, all our templates in the ```Quick-Start-Examples``` folder Each testing session has its own set of parameters. This allows you to configure different trading sessions with different parameters, and go back and forth between them as required. For instance, you may have different backtesting sessions with different date ranges, different exchange fees or different slippage settings. -> If any of these parameters are missing from the configuration of the testing session, the app's fallback mechanism will look for the parameters at the trading system level and use those settings instead. +> **NOTE:** If any of these parameters are missing from the configuration of the testing session, the app's fallback mechanism will look for the parameters at the trading system level and use those settings instead. We covered the *Base Asset* parameter when explaining [trading systems](#trading-system). Let's now review the rest. @@ -1238,7 +1239,7 @@ Like with paper trading sessions, you only require a *finalDatetime*. If you do } ``` -> The **Exchange Rate** and **Slippage** parameters do not affect forward testing or live trading. However, those parameters are taken into account when creating simulation layers, which are also available during forward-testing and live-trading. +> **NOTE:** The **Exchange Rate** and **Slippage** parameters do not affect forward testing or live trading. However, those parameters are taken into account when creating simulation layers, which are also available during forward-testing and live-trading. **2. Forward Testing Session Configuration** @@ -1356,7 +1357,7 @@ Had there been a stop somewhere in the range of the sudden price drop, chances a An additional limitation is that there currently is no feature to break up orders, therefore, the size of your orders and the likeliness of them getting filled depend on the liquidity of the market/exchange. -> **It is important that you fully understand the implications of these limitations if you are considering to trade live with the app at this stage, as you will need to adapt to the current state of affairs.** +> **NOTE: It is important that you fully understand the implications of these limitations if you are considering to trade live with the app at this stage, as you will need to adapt to the current state of affairs.** ## Multiple Forward-Testing or Live-Trading Sessions within the Same Definition From 16bdf0ce277db7d836af8e3690cb34539c2246e8 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:46:58 +0200 Subject: [PATCH 78/81] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c6e3fbe67..cd2ce1589 100644 --- a/README.md +++ b/README.md @@ -365,8 +365,8 @@ Use the control in the center of the turquoise bar to pull the bar up and down t You may also use your keyboard as follows: -**1.** Alt + ↑ to close the Charts and open the Designer. -**1.** Alt + ↓ to close the Designer and open the Charts. +1. Alt + ↑ to close the Charts and open the Designer. +1. Alt + ↓ to close the Designer and open the Charts. ![Overview-01-Separator](https://user-images.githubusercontent.com/13994516/67267448-9d2f7580-f4b2-11e9-8f5c-123f8b0f360b.gif) @@ -401,9 +401,9 @@ The layer title bar can have 3 possible background colors: Notice the following three elements relative to the position of the mouse pointer: -1. Above, the current datetime. This is the date and time at the mouse pointer position. -2. To the right, the current rate. This is the rate (in this case USDT per BTC) at the mouse pointer position. -3. Below, the current time period (or candle size if you wish). This is the currently displayed time period—not only for candles but for any other object plotted across available layers. +**1.** Above, the current datetime. This is the date and time at the mouse pointer position. +**2.** To the right, the current rate. This is the rate (in this case USDT per BTC) at the mouse pointer position. +**3.** Below, the current time period (or candle size if you wish). This is the currently displayed time period—not only for candles but for any other object plotted across available layers. ![Charts-01-Main-Elements](https://user-images.githubusercontent.com/13994516/67268983-141a3d80-f4b6-11e9-96cc-c0dc3d9188f7.gif) From 3df75502335e898d9d542f9cdb3326f383a7e1bb Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:47:46 +0200 Subject: [PATCH 79/81] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index cd2ce1589..316e6162e 100644 --- a/README.md +++ b/README.md @@ -402,7 +402,9 @@ The layer title bar can have 3 possible background colors: Notice the following three elements relative to the position of the mouse pointer: **1.** Above, the current datetime. This is the date and time at the mouse pointer position. + **2.** To the right, the current rate. This is the rate (in this case USDT per BTC) at the mouse pointer position. + **3.** Below, the current time period (or candle size if you wish). This is the currently displayed time period—not only for candles but for any other object plotted across available layers. ![Charts-01-Main-Elements](https://user-images.githubusercontent.com/13994516/67268983-141a3d80-f4b6-11e9-96cc-c0dc3d9188f7.gif) From 3c0f9e4d97fca1b919a98be6cb4c5f70d949eb43 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:49:37 +0200 Subject: [PATCH 80/81] Update README.md --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 316e6162e..148da610a 100644 --- a/README.md +++ b/README.md @@ -391,9 +391,11 @@ The *Superalgos Protocol* (also referred to as the _protocol_) determines the st This panel includes different layers you may visualize by toggling them on and off with a single mouse click. The layer title bar can have 3 possible background colors: -1. **Red**: the layer is off. -2. **Green**: the layer is on. -3. **Yellow**: the layer is loading; if it stays yellow, it means it can't load fully. +**1. Red**: the layer is off. + +**2. Green**: the layer is on. + +**3. Yellow**: the layer is loading; if it stays yellow, it means it can't load fully. ![Overview-04-Layers](https://user-images.githubusercontent.com/13994516/67267950-a836d580-f4b3-11e9-931b-81c8dff088ac.gif) @@ -636,9 +638,11 @@ Elements may be attached only to conceptually related parents. For instance, a * You may define shortcuts for frequently-used elements with the following procedure: -1. Hover the mouse pointer over the target element until the menu opens up. -1. Click Ctrl + your preferred key to assign the shortcut. -1. A sign will appear below the element confirming the assignation of the shortcut. +**1.** Hover the mouse pointer over the target element until the menu opens up. + +**1.** Click Ctrl + your preferred key to assign the shortcut. + +**1.** A sign will appear below the element confirming the assignation of the shortcut. > **NOTE:** For Mac users, replace Ctrl with Command From d0eba7f958ba0fbb3eedb1f3039ffd868e39eea5 Mon Sep 17 00:00:00 2001 From: Julian Molina Date: Tue, 22 Oct 2019 13:52:18 +0200 Subject: [PATCH 81/81] Update README.md --- README.md | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 148da610a..388788877 100644 --- a/README.md +++ b/README.md @@ -638,11 +638,9 @@ Elements may be attached only to conceptually related parents. For instance, a * You may define shortcuts for frequently-used elements with the following procedure: -**1.** Hover the mouse pointer over the target element until the menu opens up. - -**1.** Click Ctrl + your preferred key to assign the shortcut. - -**1.** A sign will appear below the element confirming the assignation of the shortcut. +1. Hover the mouse pointer over the target element until the menu opens up. +1. Click Ctrl + your preferred key to assign the shortcut. +1. A sign will appear below the element confirming the assignation of the shortcut. > **NOTE:** For Mac users, replace Ctrl with Command @@ -1276,21 +1274,21 @@ The following topics cover information that is common both to forward testing an All you need to do to start forward-testing or live-trading is: -1. Go to your definition and click *Add Personal Data* on the menu. In the new Personal Data element, click *Add Exchange Account*. In the Exchange Account element, click *Add Asset* and *Add Key*. +**1.** Go to your definition and click *Add Personal Data* on the menu. In the new Personal Data element, click *Add Exchange Account*. In the Exchange Account element, click *Add Asset* and *Add Key*. -2. Get your API Key from the exchange (see instructions for [Poloniex](#poloniex-api-keys)). +**2.** Get your API Key from the exchange (see instructions for [Poloniex](#poloniex-api-keys)). -3. Enter the public key and secret in the *Account Key* element: simply replace the *New Key* title with the *public key*, and enter the *secret* as the *Key Value*.

![Live-Trading-API-Key](https://user-images.githubusercontent.com/13994516/63278457-94020c80-c2a7-11e9-9436-340f2c60c999.gif) +**3.** Enter the public key and secret in the *Account Key* element: simply replace the *New Key* title with the *public key*, and enter the *secret* as the *Key Value*.

![Live-Trading-API-Key](https://user-images.githubusercontent.com/13994516/63278457-94020c80-c2a7-11e9-9436-340f2c60c999.gif)

-4. Make sure the following elements are present in your strategy. If they are not, simply add them: go to the _Open Stage_ element and select _Add Open Execution_ on the menu; do the same with the _Close Stage_, adding _Close Execution_). No need to configure anything, simply make sure the elements are there). +**4.** Make sure the following elements are present in your strategy. If they are not, simply add them: go to the _Open Stage_ element and select _Add Open Execution_ on the menu; do the same with the _Close Stage_, adding _Close Execution_). No need to configure anything, simply make sure the elements are there). | Icon | Element | Stage | | :---: | :---: | :--- | | ![execution](https://user-images.githubusercontent.com/13994516/63542647-25c87e80-c521-11e9-899a-318bd6c62288.png) | Open Execution | Open Stage | | ![execution](https://user-images.githubusercontent.com/13994516/63542647-25c87e80-c521-11e9-899a-318bd6c62288.png) | Close Execution | Close Stage | -5. Go to the forward testing or live trading session and click *Run* on the menu. +**5.** Go to the forward testing or live trading session and click *Run* on the menu. > **WARNING: The Superalgos Desktop App is at a very early stage of development. As such, errors may occur at any point, including errors that can cause you to lose money. You are responsible for taking all precautions before starting trading live. Make sure you test with small amounts of money, the kind you can afford losing. Also, make sure you understand the [Execution Limitations](#execution-limitations). Trade live at your own risk.** @@ -1448,11 +1446,11 @@ To update your datasets until the present time, you need to *Run All Tasks* in y We highly appreciate bug reports. This is what you need to do: -1. Make sure you are running the latest release and that you have upgraded to the latest patch. You may find information about releases and patches on the [releases](https://github.com/Superalgos/DesktopApp/releases) page. If you are not running the latest patch, please upgrade and test your issue again before reporting anything. +**1.** Make sure you are running the latest release and that you have upgraded to the latest patch. You may find information about releases and patches on the [releases](https://github.com/Superalgos/DesktopApp/releases) page. If you are not running the latest patch, please upgrade and test your issue again before reporting anything. -2. Go to the [Issues](https://github.com/Superalgos/DesktopApp/issues) page in this repository and take a moment to search for similar existing open issues. If you find one similar to yours, you may find helpful to follow the thread and may contribute by commenting and introducing new information about the issue. +**2.** Go to the [Issues](https://github.com/Superalgos/DesktopApp/issues) page in this repository and take a moment to search for similar existing open issues. If you find one similar to yours, you may find helpful to follow the thread and may contribute by commenting and introducing new information about the issue. -3. If there are no similar issues, then open a new one. Do your best to describe the problem as thoroughly as possible.

Developers will be interested in knowing how to reproduce the issue in their systems, so please describe the process that leads to the issue as clearly as possible. Capturing a GIF video showing the steps that lead to the issue would be of great help! [LICEcap](https://www.cockos.com/licecap/) is a lightweight, simple app that can help you with that. If developers can reproduce the issue, half of the problem is solved already.

If the issue seems to happen under specific conditions, you might want to share your _Definitions_ with developers. To do this, go to the Definitions element in your workspace and select _Share_ in the menu. A file containing your strategy and other parameters, but NOT your API keys, will download to your browser's download folder. Upload this file to the issue only if you feel comfortable with sharing it openly. If not, then wait for developers to contact you.

Please make sure you enable Github notifications when someone responds to the issue, as developers may want to ask questions.

If the issue happens while using the app at the browser, then please include a screen capture of Chrome's Console. Open DevTools with the F12 key (when the browser is in focus) and click the Console tab, then go back and reproduce the issue. Take a screen capture of the Console and paste it along with your report.

Feel free to also include screen captures of the app itself if there is anything relevant you wish to show to developers.

![image](https://user-images.githubusercontent.com/13994516/63112941-c18e4380-bf91-11e9-95e2-6fb064d5aead.png) +**3.** If there are no similar issues, then open a new one. Do your best to describe the problem as thoroughly as possible.

Developers will be interested in knowing how to reproduce the issue in their systems, so please describe the process that leads to the issue as clearly as possible. Capturing a GIF video showing the steps that lead to the issue would be of great help! [LICEcap](https://www.cockos.com/licecap/) is a lightweight, simple app that can help you with that. If developers can reproduce the issue, half of the problem is solved already.

If the issue seems to happen under specific conditions, you might want to share your _Definitions_ with developers. To do this, go to the Definitions element in your workspace and select _Share_ in the menu. A file containing your strategy and other parameters, but NOT your API keys, will download to your browser's download folder. Upload this file to the issue only if you feel comfortable with sharing it openly. If not, then wait for developers to contact you.

Please make sure you enable Github notifications when someone responds to the issue, as developers may want to ask questions.

If the issue happens while using the app at the browser, then please include a screen capture of Chrome's Console. Open DevTools with the F12 key (when the browser is in focus) and click the Console tab, then go back and reproduce the issue. Take a screen capture of the Console and paste it along with your report.

Feel free to also include screen captures of the app itself if there is anything relevant you wish to show to developers.

![image](https://user-images.githubusercontent.com/13994516/63112941-c18e4380-bf91-11e9-95e2-6fb064d5aead.png) # Technical Overview