Setup Rules: Difference between revisions
Line 30: | Line 30: | ||
=== The Setup Condition === | === The Setup Condition === | ||
The Setup Condition is composed by at least one Conditional Core Rule. The expression has to return True or False. Thus, a Setup Condition can be filled with any type of Rule if the overall expression is a condition : | |||
* Default Rules, composed by one or more Conditional Core Rules | |||
* User Rules, returning a condition (ex: 2 Value Core Rules comparison will return True or False) | |||
<br> | |||
Example with a Default Conditional Rule : | |||
[[File:SetupRuleConditionExample1.png|left|alt=SetupRuleConditionExample1|SetupRuleConditionExample1]] | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
Example with 2 Default Value Rules, returning a condition : | |||
[[File:SetupRuleConditionExample2.png|left|alt=SetupRuleConditionExample2|SetupRuleConditionExample2]] | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
Example with a User defined Conditional Rule : | |||
[[File:SetupRuleConditionExample3.png|left|alt=SetupRuleConditionExample3|SetupRuleConditionExample3]] | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | |||
<br> | <br> | ||
=== The Actions === | === The Actions === | ||
<br> | <br> |
Revision as of 09:23, 24 August 2021
Summary
The Setup Rules are the Rules dedicated to perform actions when a certain condition is met. These Rules allow the possibility to launch an action (pause the backtest, show a message) and/or to enter the Market automatically by inserting an Exit Rule.
The Setup Rules are divided in two parts :
- The Setup Condition : the condition defined by the User which will be checked by the Software on every new Bar printed on the Charts.
- The Actions : the action to perform when the previous condition is filled
Empty Setup Rule :

The Setup Condition
The Setup Condition is composed by at least one Conditional Core Rule. The expression has to return True or False. Thus, a Setup Condition can be filled with any type of Rule if the overall expression is a condition :
- Default Rules, composed by one or more Conditional Core Rules
- User Rules, returning a condition (ex: 2 Value Core Rules comparison will return True or False)
Example with a Default Conditional Rule :

Example with 2 Default Value Rules, returning a condition :

Example with a User defined Conditional Rule :

The Actions