HUGE Refactoring Superalgos Project to Foundations Project done
This commit is contained in:
1 parent
c9c0aeaca7
commit
87edcc043d
3557 files changed
+10791
-10789
No files matched your search
+24
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 1,
|
||||
"type": "Defining a Trading Idea Tutorial",
|
||||
"definition": {
|
||||
"text": "This tutorial teaches you how to formulate a testable trading idea. In a way, it is an introduction to the systematic approach to trading, a crucial concept that you must grasp to automate strategies. The example laid out in this tutorial is later used in the rest of the series.",
|
||||
"updated": 1617115041307
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Title",
|
||||
"text": "About This Tutorial",
|
||||
"updated": 1617115088230
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Workspace: Trading System Design Tutorials Plugin Workspace."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Maintainer: @julianmolina (Telegram)."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 2,
|
||||
"type": "Tutorial - Defining a Trading Idea",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "trading-strategy"
|
||||
},
|
||||
"text": "Before you may build a Trading Strategy, you first need to come up with a clear and testable trading idea."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "A trading idea is a precursor to a trading strategy. While a complete strategy entails the rules for taking, managing and exiting a position, a trading idea is concerned with the first of those issues only."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Testing a trading idea before committing to building a complete strategy is the logical approach because managing and exiting failed entries is not what you should be aiming for!"
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "This tutorial explains how to properly formulate a trading idea that may later be tested."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 3,
|
||||
"type": "Tutorial Step - Before we start...",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "bullet-warning"
|
||||
},
|
||||
"text": "Let me give you the heads up on a few matters you should consider before we start!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Take any trading-related information for what it's worth! When I share trading concepts, take them with a grain of salt! I'm just a tutorial, not your financial advisor! I'm here to teach you Superalgos, not to tell you how to trade! If you are not a trader, you may pick up something of value, but always make sure you do your own research!"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "This tutorial is aimed at a wide audience! I'll take it easy and lay out concepts so that everyone may understand them. If you are a seasoned trader you may feel some explanations are too basic. In that case, feel free to skip this tutorial and go to the next one in the series."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 4,
|
||||
"type": "Tutorial Step - Ready to Mine..?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "data-tasks"
|
||||
},
|
||||
"text": "We'll mine some data to analyze a few events over the charts. We'll use the same data to test the trading idea in the next tutorial!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The sensor bot will run on the BTC/USDT market (Binance) from January 1st, 2020, along with the following indicators from the Masters data mine: Candles Volumes, Bollinger Bands, and Bollinger Channels."
|
||||
},
|
||||
{
|
||||
"style": "Warning",
|
||||
"text": "If you have data on this market/exchange but on a different time range, this may affect your data! Read the sensor bot documentation to learn how! If the data you have is not important, feel free to keep going!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 5,
|
||||
"type": "Tutorial Step - Let's Mine Some Data..!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "run"
|
||||
},
|
||||
"text": "Now that you understand the implications of running this data mining operation, let's get on with it!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Select \"Run All Project Data Tasks\" on the Data Tasks node menu!",
|
||||
"updated": 1622447060448
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "If you are doing this tutorial after doing other tutorials, chances are you may already have part of the data required, which may make things faster! Either way, no need to wait for the data mining to get to the present time... you may keep going with the tutorial!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 6,
|
||||
"type": "Tutorial Step - Why Test Trading Ideas..?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "help"
|
||||
},
|
||||
"text": "Setting up, testing, and deploying a trading strategy requires time and effort. We test trading ideas to avoid wasting resources."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "To test a trading idea, we need to formalize it into a hypothesis that:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "proposes a trading process, "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "selects the appropriate context; "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "defines the main entry rules; "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "predicts a specific outcome; "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "offers a specific testing mechanism. "
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Let's expand on each of these topics so that we can set clear goals for defining a trading idea."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 7,
|
||||
"type": "Tutorial Step - The Trading Process",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "trading-system"
|
||||
},
|
||||
"text": "The first dimension we should define is what type of strategy the hypothesis is aimed at."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "A simple rule-of-thumb is determining if it is a scalping, day-trading, swing trading, or position trading strategy."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "This definition provides a notion of the expected holding period, that is, the average time range expected for each position to be open."
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The value of such a definition is that it provides a guideline as to what time frames to analyze to determine the existence of trends."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 8,
|
||||
"type": "Tutorial Step - The Appropriate Context",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-trends"
|
||||
},
|
||||
"text": "The second important dimension to define is the general context that the hypothesis is aimed at."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Few—if any—technical analysis-based strategies perform consistently on undefined market situations."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "The minimum required definition is as to whether the hypothesis targets downtrends, uptrends, or sideways markets."
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The usual resource is a multi-time frame analysis based on one or more indicators that determine what the existing trend is at different time frames, and any other factors that may be of importance to the specific strategy, for example, volume or volatility."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 9,
|
||||
"type": "Tutorial Step - The Entry Rules",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "take-position-event"
|
||||
},
|
||||
"text": "The third aspect to be defined are the rules for triggering the strategy and taking a position."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Many times, the rules to trigger the strategy derive from the analysis of the context. For example, you wish the strategy to be active when a specific trend is detected by some specific method."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "The rules to take a position are usually referred to as the signal and the signal confirmation."
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Those rules are the description of the specific event that determines when to enter a position. For example, the crossover of two specific lines, or a certain value on a specific indicator."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 10,
|
||||
"type": "Tutorial Step - The Prediction",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "hit-ratio"
|
||||
},
|
||||
"text": "The fourth aspect to consider is what we expect from this idea, and this is highly dependent on the type of strategy."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "For example, for a swing strategy, taking a position twice per month with a 50% hit ratio may be acceptable, but not for a scalping strategy."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Defining what we expect from the strategy in terms of trading frequency and hit ratio helps to determine if the strategy is worth pursuing or not."
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "If the tests show that the idea doesn't produce as many trades or as many good entries as is desirable, you may want to come up with a new idea."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 11,
|
||||
"type": "Tutorial Step - The Testing Mechanism",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "backtesting-session"
|
||||
},
|
||||
"text": "The final concern is defining how the idea is to be tested. This too is dependent on the type of strategy!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The focus of the trading idea is the entry point, not the management of the trade or the exit. However..."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "How do we measure if the entry points are good or bad? What period do we use for testing?"
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The first question leads us to acknowledge that we may need to define some arbitrary stop loss and take profit targets so that we can determine if the resulting entry points are likely to be hits or fails. We will deal with the second question in the next tutorial."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 12,
|
||||
"type": "Tutorial Step - Let's Go On a Field Trip!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "tutorial"
|
||||
},
|
||||
"text": "The rest of this tutorial is about putting into practice what we just discussed!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "We'll take a deep dive into the charts, learn a thing or two about a specific indicator, and try to come up with a proper trading idea that we can test in the next tutorial!"
|
||||
},
|
||||
{
|
||||
"style": "Important",
|
||||
"text": "Buckle up! I foresee a few sharp turns ahead!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 13,
|
||||
"type": "Tutorial Step - Are We Up to Date..?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "indicator-process-instance"
|
||||
},
|
||||
"text": "By now, all processes should be at 100%. We need the data to be ready so that we can go and do some work on the charts!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Look around and see if all processes are at 100%. If all of them are, then stop the data mining!"
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Wait until all processes reach the 100% mark before continuing!"
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "In the next step we are going to the charts to check the Bollinger Bands so that we can discuss the trading idea we will test!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 14,
|
||||
"type": "Tutorial Step - BB On the Charts!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-bands"
|
||||
},
|
||||
"text": "Let's take a look at the Bollinger Bands! If it's not on already, find the Bollinger Bands layer in the Masters layer manager."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The indicator features a 20-period moving average in the center. It features a line on top located two standard deviations above the moving average. We call this line the upper band. And it also features a line two standard deviations below the moving average. We call this one the lower band. Together, they are the Bollinger Bands."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Notice how the price ranges sideways bouncing off the upper and the lower bands. Sometimes it may go out of the boundaries of the bands, either higher or lower, but most of the time it stays within the range of the bands."
|
||||
}
|
||||
]
|
||||
}
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 15,
|
||||
"type": "Tutorial Step - Bollinger Bands Rules",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-bands"
|
||||
},
|
||||
"text": "Now that you've seen the bands on the charts, let's go through the rules that teach us how to interpret and use them!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "If you are not familiar with this indicator, it's definitely worth spending a few minutes reading the rules,",
|
||||
"updated": 1622458251795
|
||||
},
|
||||
{
|
||||
"style": "Link",
|
||||
"text": "as defined by John Bollinger himself!->www.bollingerbands.com/bollinger-band-rules?ref=superalgos",
|
||||
"updated": 1622458339543
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Please, read what John Bollinger has to say about how to interpret this popular indicator!"
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Rules 6 to 8 are of particular significance to what we will be attempting later on!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 16,
|
||||
"type": "Tutorial Step - Can You Think of Any Ideas?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "help"
|
||||
},
|
||||
"text": "You've seen the Bollinger Bands and you know how to read them... Can you think of a trading idea to build a strategy with?"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Take a few minutes roaming around this chart and see if you can come up with something!"
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Indicators are usually built by analysts and traders to mathematically describe trading ideas."
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "The idea we will discuss next has to do with breakouts! But that is just one of the four or five popular ideas using this indicator!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 17,
|
||||
"type": "Tutorial Step - Breakdown of the BBs",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-candles"
|
||||
},
|
||||
"text": "Weak-hands Buster is based on the idea that a breakdown of the BB may predict a deepening of a downtrend and some reversals."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "I just brought you to April 10th, 2020 to check a case of a breakdown of the bands. See what happens at the following candles:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "04 hs: A candle closes below the lower band at 7.176 USDT."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "05 hs: A second candle closes below the band at 7.140 USDT."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "06 hs: A more serious drop follows, accentuating the price action seen earlier."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "16 hs: Ten hours after the first breakdown, the lowest hourly close of the day marks 6.766 USDT, more than 6% below."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 18,
|
||||
"type": "Tutorial Step - What Else is Going On?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-candles"
|
||||
},
|
||||
"text": "We just took note of what happened after this breakdown of the bands on the 1H chart... What else is going on with the market?"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Take a look at the price action a few candles earlier!"
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "There were two breakdowns previous to the one we checked, one on April 9th at 12 hs, and before that, another one on April 7th at 21 hs. Both breakdowns were significant, in the sense that the candles closed way lower than the lower band. However, in both cases price bounced back into the bands."
|
||||
}
|
||||
]
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 19,
|
||||
"type": "Tutorial Step - Let's Zoom Out!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "time-frame"
|
||||
},
|
||||
"text": "We've got an idea of what's going on in the 1H time frame. Let's zoom out a bit and take a look at the intermediate-term."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "I just brought you to the 4H chart, on the same dates. Notice the following:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Breakdown: The breakdown we saw in the 1H chart is evident in the 4H chart too."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Immediate past: Before the breakdown on April 10th, the market had been ranging for a while."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Before that: The market was trending upwards—that is, the intermediate-term was in an uptrend."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Downtrend: The breakdown on April 10th marked the start of a downtrend in the intermediate-term."
|
||||
}
|
||||
]
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 20,
|
||||
"type": "Tutorial Step - The Big Picture!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "time-frame"
|
||||
},
|
||||
"text": "The 4H chart showed a clear shift in the trend after the breakdown, but... what about the long-term? Let's check the daily chart!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Find the April 10th candle and take a minute to think of what it meant—in the big picture—what we just analyzed in the lower time frames. This is what I see:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "The walk: The ranging period we saw from the 7th until the 10th of April was in fact a little walk on the daily upper band. By the BB rules, this means that price is relatively high in this time frame."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Pullback: The breakdown in the lower time frames marked the pullback from the daily upper band."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Continuation: The price action in the larger time frame ended up being a normal pullback and continuation, barely crossing the moving average."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 21,
|
||||
"type": "Tutorial Step - What Do We Make of This?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "help"
|
||||
},
|
||||
"text": "We can't arrive at universal conclusions by analyzing a single case, but we can propose a hypothesis to test!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "At this point, a reasonable hypothesis would be:"
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "In the context of an uptrend in the daily chart, a breakdown of the Bollinger Bands in the 1H chart may predict a reversal in the intermediate trend."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Let's save this hypothesis for later and look into one other case!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 22,
|
||||
"type": "Tutorial Step - Look to Your Left!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-candles"
|
||||
},
|
||||
"text": "Does the price action to your left ring a bell? Do you recognize this major market crash?"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "You're looking at the March 12-13th, 2020 ~50% pandemic market crash! Spend a few minutes analyzing the daily chart!"
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "In short, we can see that the market was in a downtrend since February 25th—if we take the turning south of the moving average and the breakdown of the bands as an indication of the beginning of the trend."
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "Take a look at the lower time frames too!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 23,
|
||||
"type": "Tutorial Step - Wouldn't It Be Nice?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-candles"
|
||||
},
|
||||
"text": "How cool would it be to be able to predict the continuation of a downturn once the trend is already established?"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Predicting the reversal of a well-established trend is a very tricky task. The analysis we just did for April 10th is a good example: while the breakdown in the 1H and 4H time frames marked a trend reversal in the intermediate-term, the long-term trend remained intact."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "A safer approach to trading is predicting the continuation of a trend that is already established! <br/><br/>Remember Rule 8? Closes outside the Bollinger Bands are initially continuation signals!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 24,
|
||||
"type": "Tutorial Step - March 7th to March 12th",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-bands"
|
||||
},
|
||||
"text": "Back in the 1H time frame, let's take a look at what happened between these dates in the context of a daily downtrend."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "List",
|
||||
"text": "March 7th, 17 hs: A breakdown after a two-day-long volatility squeeze triggers a downtrend."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "March 8th, 15 hs: Further breakdowns accelerate the downturn."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "March 12th, 07 hs: Five hours before the biggest market crash in recent history, a series of breakdowns trigger a new downturn after three days of ranging price action."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Do you see the pattern? Can you formulate a hypothesis that we can test?"
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 25,
|
||||
"type": "Tutorial Step - We've got Two Hypotheses!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "nodes-highlights"
|
||||
},
|
||||
"text": "Let's recover our previous hypothesis and come up with a new one for the most recent observations!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Hypothesis 1: In the context of an uptrend in the daily chart, a breakdown of the Bollinger Bands in the 1H chart may predict a reversal in the intermediate trend."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Hypothesis 2: In the context of a downtrend in the daily chart, a breakdown of the Bollinger Bands in the 1H chart may predict an acceleration of the downtrend."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "We may think of these two as the core of two different trading ideas! But that is not all, right?"
|
||||
}
|
||||
]
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 26,
|
||||
"type": "Tutorial Step - What Is Missing?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "help"
|
||||
},
|
||||
"text": "What we've got is a vague definition of the context and the entry point rules! We still need to formalize our hypothesis!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Remember, our trading idea should:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "propose a trading process, "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "select the appropriate context; "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "define the main entry rules; "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "predict a specific outcome; "
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "offer a specific testing mechanism! "
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Let's proceed with fulfilling those requirements!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 27,
|
||||
"type": "Tutorial Step - Let's Define the First Two!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "layer-trends"
|
||||
},
|
||||
"text": "Let's advance with the definition of the trading process and the context in which these ideas should operate."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Trading process: Since we rely on trends in the 24H charts, this will be a swing strategy, with positions open—potentially—for several days."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Context: The first hypothesis is for uptrends in the 24H chart. The second, for downtrends and likely for ranging markets as well. We will leave the definition as of how the trends are to be determined for later on, once you become familiar with the tools available in Superalgos."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The goal of the idea is to accumulate bitcoin selling BTC to rebuy at a cheaper price."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 28,
|
||||
"type": "Tutorial Step - Entry Rules",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "trigger-on-event"
|
||||
},
|
||||
"text": "The main entry rules were the focus of the analysis we did on the charts, but let's add a couple more considerations."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "We found that a breakdown in the 1H chart may predict an intermediate-term reversal when on a daily uptrend, and—when on a daily downtrend—an acceleration of the downturn. However, we also noticed several breakdowns that didn't produce either. This means that we should take a breakdown as a signal, not as a confirmation in and of itself."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Our confirmation is a second consecutive breakdown in the 1H chart!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 29,
|
||||
"type": "Tutorial Step - Predictions and Testing",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "user-defined-statistic"
|
||||
},
|
||||
"text": "It's not like we're trying to divine the future and will get graded on our accuracy! The prediction is more like an expectation!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Prediction: We expect either of these ideas to trade at least twice per month, with a 50% hit ratio."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Testing: For uptrends, we will set these targets: stop loss at 3% and take profit at 5%. For downtrends we should be more optimistic as the strategy aims to capture big market moves: we will set a 3% stop loss and 10% take profit targets."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Remember! This doesn't mean that is how we would manage the positions! It's just to evaluate the entry points!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 30,
|
||||
"type": "Tutorial Step - Et Voilà..!",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "nodes-highlights"
|
||||
},
|
||||
"text": "That's it! We finally have a proper hypothesis that we can test to decide if the idea is worth pursuing or not!"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "We'll take it from there in the next tutorial!"
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "In the next tutorial in the series, we will dive into how Superalgos guides you through the process of setting up the trading idea to be tested on historical data. We'll learn about the syntax to write conditions and formulas, about how to use indicators from within strategies, and whatever else we may need along the way!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Defining a Trading Idea",
|
||||
"pageNumber": 31,
|
||||
"type": "Tutorial Step - Ready For The Next One..?",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": "tutorial"
|
||||
},
|
||||
"text": "The tutorial to the right is the next in the series about designing trading systems. Shall we keep going?"
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "The next tutorial in the series is about implementing the ideas we just came up with on a Trading System so that they may be tested."
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "Click Next to finish this tutorial, and select Play in the next one when you are ready!"
|
||||
}
|
||||
]
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 1,
|
||||
"type": "Tutorial - Intro for Developers",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "This tutorial walks you through the technical aspects of Superalgos so that you may take advantage of the infrastructure in place as efficiently as possible."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "I will cover the following topics:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Architecture: Architectural overview of the system."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Client: How the Client is organized."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Frontend: How the UI works."
|
||||
},
|
||||
{
|
||||
"style": "Link",
|
||||
"text": "->"
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "This is a 3-year-old project that has pivoted a few times to reach its current state of development. It was initially intended for trading bots competitions and is now focused on crypto-trading automation in general. The main technical pivot occurred when we decided to depart from a centralized cloud-based app, to a decentralized network of nodes."
|
||||
}
|
||||
]
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 2,
|
||||
"type": "Tutorial Topic - System Architecture",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "Superalgos is essentially a Node.js application + a Web App."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The overall idea is that Superalgos runs at users' machines. Advanced users may deploy multiple Superalgos nodes in a LAN and distribute tasks easily. In the current version, these nodes are not ready to be exposed to the Internet. Someday they will, and eventually, they will be able to provide services to other users. These services may include:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Data Products: Pre-calculated indicators or studies."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Backtest Execution: To scale testing capabilities."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Live Trading Execution: Only if trusted entities emerge."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Data Processing Execution: External data processing power."
|
||||
},
|
||||
{
|
||||
"style": "Link",
|
||||
"text": "->"
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 3,
|
||||
"type": "Tutorial Topic - Client",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The Client has two main components: The Client and the Task Server. When you run the app, what you are running are the Client. An instance of the Task Server is put to run once a user decides to run a task."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Once the services at the Client are running, the default web browser is called with the URL of the local machine so that it may load the UI and let users interact with the system."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The system holds all of its data and logs in the installation folder. The system does not modify—in any way—anything outside the installation folder. Deleting this folder completely removes Superalgos from the computer."
|
||||
}
|
||||
]
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 4,
|
||||
"type": "Tutorial Topic - Client",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "Is a collection of servers running on a single Node.js process."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The servers are:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Web Server: Serves all the JS files that form the User Interface to the browser."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Web Sockets Server: Enables the UI to reach the Client via WS."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Events Server: Enables the UI to communicate with the Task Manager Server and all of the Task Servers process instances via events over WS."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Task Manager Server: Manges Task Servers processes based on users commands."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "All of these servers are custom built—in-house—for Superalgos. We prefer to build on top of rock-solid, widely-used, low-level libraries only, like WS, for instance."
|
||||
}
|
||||
]
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 5,
|
||||
"type": "Tutorial Step - Web Server",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The Web Server has two main goals: it serves all the JS files that form the Web App and all the data files to be plotted at the charts to the browser that is running the UI."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The complete list Web Server uses is:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "JS Files: Enables the Web App to run on a browser."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "JSON Data Files: Allows the UI to access data to plot."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Images: Images used on the UI are served from the Web Server."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "JSON Workspaces Files: Allow users to create definitions on different Workspaces."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "JSON Plugin Files: Files that are automatically included on Workspaces for convenience."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 6,
|
||||
"type": "Tutorial Step - Web Sockets Server",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "This is a simple implementation of a web sockets server. It essentially allows the UI or any of the other services to communicate with the Events Server via WS."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The system does not allow different processes to talk to each other via WS. All they can do is talk to the Events Server to subscribe to events or to emit events."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The Web Socket Server enables this indirect communication mechanism between all processes and the UI running on a single machine, as well as communication between processes running on different machines."
|
||||
}
|
||||
]
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 7,
|
||||
"type": "Tutorial Step - Events Server",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The Events Server provides the communication model between processes and the UI. It essentially allows any entity inside each process to create a system-wide event handler and allow any other entity inside a process (or the UI) to subscribe or emit events at that event handler."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Events-based communication happens between:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "UI and Task Manager: To run and stop Task Server processes."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Task Server and UI: To get online feedback of what is going on at the Task Server, to display relevant status info at the UI."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The communication between the UI and the Web Server is HTTP only."
|
||||
}
|
||||
]
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 8,
|
||||
"type": "Tutorial Step - Task Manager Server",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The Task Manager Server is a simple server to manage the execution of Task Servers Node.js processes. It keeps track of all the instances running at any point in time and allows the UI to decide when to run more instance or stop any of those running."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The Task Manager Server provides the following commands to the UI:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Run Task: Used to run a new task, spawns a Node.js fork process where a Task Server is run."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Stop Task: Sends a fork-process-message to the Task Server instance that needs to stop."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Task Status: Tells the caller if the Task Id provided corresponds to a running task or not."
|
||||
}
|
||||
]
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 9,
|
||||
"type": "Tutorial Topic - Task Server",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The Task Server is a Node.js fork process of Client that receives the definition of the Task that needs to run from the UI ."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The definition includes:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Bot to run: The bot might be a Sensor Bot, an Indicator Bot or a Trading Bot."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Processes to run: Each bot definition may have one or more bot processes."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The UI is where all definitions live. Every time the user runs a task, the UI collects all the relevant information into a single, giant JSON object and sends this to the Task Manager Server, which in turn, after the fork process is running, passes this definition to the Task Server instance just created. With that definition, the Task Server knows all the details of the task to run."
|
||||
}
|
||||
]
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 10,
|
||||
"type": "Tutorial Topic - Frontend",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The Frontend is essentially a Javascript web-app running on the browser."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "As of today it contains:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Canvas App: Most of the functionality is here. The name reflects the fact that most of the UI is rendered in an HTML 5 canvas object."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Files Component Includes the mechanisms to read data files in a way that is suitable for navigating through large datasets while plotting the information in real-time."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The UI was built entirely in-house. We did not reuse any framework to display the design space or the charts."
|
||||
},
|
||||
{
|
||||
"style": "Important",
|
||||
"text": "The UI is tested in Chrome only."
|
||||
}
|
||||
]
|
||||
}
|
||||
+54
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 11,
|
||||
"type": "Tutorial Topic - Canvas App",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "Most of the action happens on an HTML 5 Canvas animation. The rest is pure HTML + CSS, nothing else."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The main object of the Canvas App is called canvas. It is essentially a collection of different space objects:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Charting Space: Where charts are displayed,"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Design Space: Where definitions are maintained."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Floating Space: Enables visual scripting."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Side Space: Currently, the workspace selector."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Docs Space: In-app documentation."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Tutorial Space: Enables tutorials like this one."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Panel Space: Where plotter panels live."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Cockpit Space: Currently, the slider ."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Top Space: Currently, the top bar with logo."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 12,
|
||||
"type": "Tutorial Step - Canvas Animation",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The animation runs a physics() and a draw() function for each space, allowing each of them to have their own physics engine / rules and render themselves as a top-level layer on the UI."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "At each frame, the animation calls the physics() function of each space first and, second, the draw() function. Then, it requests a callback from the browser and starts all over again."
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "Depending on how many things the user keeps open, both the physics() call or the draw() call may last more or less time. This makes the frames-per-second variable, and a function of the number of things that need to be calculated or rendered on-screen."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 13,
|
||||
"type": "Tutorial Step - Charting Space",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "This is where the charts are displayed. It allows users to navigate through multi-dimensional datasets."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The Charting Space has its own object structure that partially matches the definitions set by the user on the Charting Space hierarchy. This means that, whenever the user adds a chart, removes a scale, or changes a configuration of any of the nodes inside the Charting Space hierarchy, the Charting Space senses these changes and adapts its object model, most of the time in real-time, which in turn changes the way that the charts are displayed."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The Charting Space uses the Files Components as its data provider."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 14,
|
||||
"type": "Tutorial Step - Design Space",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "Manages the core concept of nodes which, when attached to one another, may form vast definitions easily made and maintained by users."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The system features a file called App Schema which has the rules about the existing types of nodes, which nodes may be the child of other nodes, and which may reference other nodes and which. It also defines the menu items of nodes. All these rules are enforced on the Design Space."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Users may then attach nodes, establish references between nodes, select menu items, and more..."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The Design Space is tightly coupled with the Floating Space."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 15,
|
||||
"type": "Tutorial Step - Floating Space",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "This is like the low-level part of the Design Space. It features a physics engine that governs the physical interactions of floating objects."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "At runtime, each node on the Design Space behaves like a molecule featuring three atoms working together: the first one is called Floating Object and belongs to the Floating Space, which controls its position and collision-related physics; the second one is a UiObject which lives at the Design Space and controls the UI of the node, including menu, label, etc.; the third one is a Node that is—essentially—the information contained in that node."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "When you save the Workspace, Floating Objects and UIOBjects are detached from Nodes, and saved as a big JSON object with only its data."
|
||||
}
|
||||
]
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 16,
|
||||
"type": "Tutorial Step - Side Space",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "It is the section on the left, accessed by clicking a tab button. As of today, it features a Workspace selector for users to switch between different workspaces."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "On the Side Space users may:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Select an included workspace: The system ships with one or more included workspaces that serve as examples or case studies."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Select one's own workspaces: By renaming any included workspace, the user may create a workspace and switch workspaces using the Side Space."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The Side Space is expected to grow in functionality in the future."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 17,
|
||||
"type": "Tutorial Step - Docs Space",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "This is where the documentation web site is loaded. It's an HTML iFrame inside a DIV, animated in and out of the screen."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "There is an ongoing effort to bring the documentation web site into the app. What you can see today is just the first step in that direction."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The current documentation is implemented as a separate repository, hosted by Github Pages."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 18,
|
||||
"type": "Tutorial Step - Tutorial Space",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "Enables running tutorials. It is not based on the HTML canvas, but on HTML + CSS."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The Tutorial Space is the highest top-tier layer of all the system since its rendered above everything else. It can manipulate other spaces based on the configuration of each tutorial topic and step."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Not only may tutorials move the user around the UI, but may also take most actions users themselves may take, like, for instance, running tasks of any kind."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "The Tutorial Space is a new addition to the system. For that reason, few tutorials exist today, but we expect this to change in the future."
|
||||
}
|
||||
]
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 19,
|
||||
"type": "Tutorial Step - Panel Space",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "The Panel Space is where all panels defined by plotters exist. The space has its own physics engine which governs the way users interact with panels, and panels with other panels."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Panels are constrained within the boundaries of the Panel Space, which matches the boundaries of the Charting Space."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Although the panel space has existed since the project's inception, it is still quite underdeveloped, and there is a lot of room to improve it."
|
||||
}
|
||||
]
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 20,
|
||||
"type": "Tutorial Topic - Files Component",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "Encapsulates different data providers able to read datasets organized in different ways."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The system defines these types of data providers:"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Market Files: For time-frames of 1 hour and above, it is convenient to have a single file with all the data of the whole market."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Daily Files: For time-frames below 1 hour, up to 1 minute, it is convenient to split market data into one file per day."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Single File: Sometimes a process may generate a single file irrespective of the time-frame."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Files Sequence: Some processes may produce a sequence of files."
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "Daily Files are managed by a File Cursor which dynamically loads the files of one day and its neighboring days."
|
||||
}
|
||||
]
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"tutorial": "Developers Intro",
|
||||
"pageNumber": 21,
|
||||
"type": "Tutorial Topic - Parting Thoughts...",
|
||||
"definition": {
|
||||
"icon": {
|
||||
"project": "Foundations",
|
||||
"name": ""
|
||||
},
|
||||
"text": "As you can see, Superalgos is much more than a trading bot. It's a holistic infrastructure to manage complexity in the easiest way possible for users."
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "This introduction covered the highest level topics of the system in the hope it may help you understand the foundations on which the system is being built."
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "We hope you agree it's a good idea to reuse this infrastructure to build trading intelligence rather than code a trading bot from scratch. We hope more devs will join us!"
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "If you like the project, there are many ways to contribute. Take a look at this page featuring the roadmap to becoming a part of the team."
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user