Strategies tutorials, 1, 2, 3 ready.
This commit is contained in:
1 parent
66c7ef097d
commit
9785425550
11 files changed
+82
-28
No files matched your search
@@ -38,6 +38,10 @@
|
||||
"text": "GIFs/Superalgos/Docs/indicators/masters-bots-layers-01-volumes.gif",
|
||||
"updated": 1610399087669
|
||||
},
|
||||
{
|
||||
"style": "Anchor",
|
||||
"text": "Products & Properties"
|
||||
},
|
||||
{
|
||||
"style": "Title",
|
||||
"text": "Products & Properties"
|
||||
|
||||
@@ -128,7 +128,8 @@
|
||||
},
|
||||
{
|
||||
"style": "Javascript",
|
||||
"text": "chart.at + time frame + .productName + .previous.previous... ...previous + .propertyName"
|
||||
"text": "chart.at + time frame + .productName + .previous.previous... \n...previous + .propertyName",
|
||||
"updated": 1610471423898
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
|
||||
+10
-1
@@ -16,7 +16,16 @@
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Follow the structure of nodes under the Situation and get to the Javascript Code node under the Condition node. Click Edit on the menu, select and delete the placeholder text, and paste the below condition:<br/><br/>chart.at24hs.bollingerSubChannel.direction === 'Down'<br/><br/><strong>Label the condition node 24H Down to have a quick reference of what the condition is about.</strong>"
|
||||
"text": "Follow the structure of nodes under the Situation and get to the Javascript Code node under the Condition node. Click Edit on the menu, select and delete the placeholder text, and paste the below condition:",
|
||||
"updated": 1610469943553
|
||||
},
|
||||
{
|
||||
"style": "Javascript",
|
||||
"text": "chart.at24hs.bollingerSubChannel.direction === 'Down'"
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Label the condition node 24H Down to have a quick reference of what the condition is about."
|
||||
}
|
||||
]
|
||||
}
|
||||
+3
-2
@@ -11,7 +11,7 @@
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"style": "Javascript",
|
||||
"text": "chart.at24hs.bollingerSubChannel.slope != 'Side'"
|
||||
},
|
||||
{
|
||||
@@ -20,7 +20,8 @@
|
||||
},
|
||||
{
|
||||
"style": "Note",
|
||||
"text": "We could have chosen to write the two conditions in one by using the && operator. After all, we want the Trigger On Event to validate true when both conditions are true, right? I'll tell you why that is not a good idea in the next step!"
|
||||
"text": "We could have chosen to write the two conditions in one by using the && operator. I'll tell you why that is not a good idea in the next step!",
|
||||
"updated": 1610470019656
|
||||
}
|
||||
]
|
||||
}
|
||||
+8
-5
@@ -12,15 +12,18 @@
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "Well... this is a bit of a no-brainer right? We don't want to trade with this strategy when there is no downtrend. So, we'll reverse the logic of the trigger on event!"
|
||||
"text": "We don't want to trade with this strategy when there is no downtrend. So, we'll reverse the logic of the trigger on event! Find conditions 1 and 2 below:",
|
||||
"updated": 1610470163153
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Condition 1: chart.at24hs.bollingerSubChannel.direction === 'Up'"
|
||||
"style": "Javascript",
|
||||
"text": "chart.at24hs.bollingerSubChannel.direction === 'Up'",
|
||||
"updated": 1610470169627
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Condition 2: chart.at24hs.bollingerSubChannel.slope === 'Side'"
|
||||
"style": "Javascript",
|
||||
"text": "chart.at24hs.bollingerSubChannel.slope === 'Side'",
|
||||
"updated": 1610470175519
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
|
||||
+9
-3
@@ -12,15 +12,21 @@
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "We will set up each of the conditions in separate situations!"
|
||||
"text": "We will set up each condition in separate situation!",
|
||||
"updated": 1610470622189
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Set up the first condition in the existing situation, and the second condition in a new situation!"
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "<strong>Condition 1:</strong><br/>chart.at24hs.bollingerSubChannel.direction === 'Up'<br/><strong>Condition 2:</strong><br/>chart.at24hs.bollingerSubChannel.slope === 'Side'"
|
||||
"style": "Javascript",
|
||||
"text": "chart.at24hs.bollingerSubChannel.direction === 'Up'",
|
||||
"updated": 1610470580629
|
||||
},
|
||||
{
|
||||
"style": "Javascript",
|
||||
"text": "chart.at24hs.bollingerSubChannel.slope === 'Side'"
|
||||
}
|
||||
]
|
||||
}
|
||||
+17
-5
@@ -12,19 +12,31 @@
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Remember, time goes first: in the 1H chart! <br/>chart.at01hs."
|
||||
"text": "Remember, time goes first: in the 1H chart! ",
|
||||
"updated": 1610470932699
|
||||
},
|
||||
{
|
||||
"style": "Javascript",
|
||||
"text": "chart.at01hs."
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "The close of the candle: <br/>candle.close"
|
||||
"text": "The close of the candle is lesser than: ",
|
||||
"updated": 1610470968732
|
||||
},
|
||||
{
|
||||
"style": "Javascript",
|
||||
"text": "candle.close <"
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "Is lesser than: <br/><"
|
||||
"text": "The moving average minus the deviation, with a time frame defined for every statement:",
|
||||
"updated": 1610471073502
|
||||
},
|
||||
{
|
||||
"style": "List",
|
||||
"text": "The moving average minus the deviation, and remember you need to define a time frame for every statement: <br/>chart.at01hs.bollingerBand.movingAverage - chart.at01hs.bollingerBand.deviation"
|
||||
"style": "Javascript",
|
||||
"text": "chart.at01hs.bollingerBand.movingAverage - \nchart.at01hs.bollingerBand.deviation",
|
||||
"updated": 1610471042788
|
||||
}
|
||||
]
|
||||
}
|
||||
+7
-4
@@ -11,16 +11,19 @@
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "The complete statement:<br/>chart.at01hs.candle.close < chart.at01hs.bollingerBand.movingAverage - chart.at01hs.bollingerBand.deviation"
|
||||
"style": "Javascript",
|
||||
"text": "chart.at01hs.candle.close < \nchart.at01hs.bollingerBand.movingAverage - \nchart.at01hs.bollingerBand.deviation",
|
||||
"updated": 1610471254569
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Copy and paste the statement in the Javascript Code node!"
|
||||
"text": "Copy and paste the statement!",
|
||||
"updated": 1610471298083
|
||||
},
|
||||
{
|
||||
"style": "Success",
|
||||
"text": "Remember to give the condition a descriptive name, for example, 1H Breakdown."
|
||||
"text": "Remember to give the condition a descriptive name! 1H Breakdown?",
|
||||
"updated": 1610471356372
|
||||
}
|
||||
]
|
||||
}
|
||||
+10
-3
@@ -12,11 +12,18 @@
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "To describe the close of the previous candle, we need to use the previous property to modify each property of each indicator used on both sides of the statement:<br/>chart.at01hs.candle.previous.close < chart.at01hs.bollingerBand.<br/>previous.movingAverage - chart.at01hs.bollingerBand.<br/>previous.deviation"
|
||||
"text": "To describe the close of the previous candle, we need to use the previous property to modify each property of each indicator used on both sides of the statement:",
|
||||
"updated": 1610471485501
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "<strong>Create a new condition under the same situation and use the code above!</strong> Before you do that, notice that I introduced a couple of breaks in the statements after bollingerBand. just to have them fit the screen. You must remove them so that they don't cause trouble!"
|
||||
"style": "Javascript",
|
||||
"text": "chart.at01hs.candle.previous.close < \nchart.at01hs.bollingerBand.previous.movingAverage - \nchart.at01hs.bollingerBand.previous.deviation",
|
||||
"updated": 1610471501818
|
||||
},
|
||||
{
|
||||
"style": "Callout",
|
||||
"text": "Create a new condition under the same situation and use the code above!",
|
||||
"updated": 1610471548093
|
||||
}
|
||||
]
|
||||
}
|
||||
+10
-3
@@ -11,12 +11,19 @@
|
||||
},
|
||||
"paragraphs": [
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "I just wanted to clarify that such use is not mandatory! You may use the previous property on the statements of your choice. In our case, we need to compare the close of the candle, with the difference of the moving average and the deviation of the same candle! That is why we apply it to all statements!"
|
||||
"style": "Note",
|
||||
"text": "But such use is not mandatory! You may use the previous property as you wish. We need to compare the close of the candle with the moving average and the deviation of the same candle! That is why we apply it to all statements!",
|
||||
"updated": 1610471797965
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "But you may, for instance, want to compare the close of the current candle to the close of the previous candle! In such a case, you may build a statement as follows:<br/><br/>chart.at01hs.candle.close > chart.at01hs.candle.previous.close"
|
||||
"text": "But you may, for instance, want to compare the close of the current candle to the close of the previous candle:",
|
||||
"updated": 1610471869420
|
||||
},
|
||||
{
|
||||
"style": "Javascript",
|
||||
"text": "chart.at01hs.candle.close > \nchart.at01hs.candle.previous.close",
|
||||
"updated": 1610471621224
|
||||
}
|
||||
]
|
||||
}
|
||||
+2
-1
@@ -20,7 +20,8 @@
|
||||
},
|
||||
{
|
||||
"style": "Text",
|
||||
"text": "This happens because as soon as the strategy closes, the bot goes back to evaluating the Trigger On Event! That is what it usually does after a position is closed... look for more trading opportunities! This behavior is part of the normal functioning of the system, and a consequence of not defining the open, close, and manage stages."
|
||||
"text": "This happens because as soon as the strategy closes, the bot goes back to evaluating the Trigger On Event. That is what it usually does after a position is closed... look for more trading opportunities! This behavior is part of the normal functioning of the system, and a consequence of not defining the open, close, and manage stages.",
|
||||
"updated": 1610471951252
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user