Difference between revisions of "Core Rules"

From NakedMarkets
Jump to navigation Jump to search
Line 47: Line 47:
It's possible to define every possible value according to the [[Default Rules]] or [[User Rules]], available in Rule Manager.
It's possible to define every possible value according to the [[Default Rules]] or [[User Rules]], available in Rule Manager.
<br>
<br>
For example, the following Value Core Rule calculates the value Close of the last candle - Low of the last candle. To sum up, it represents the size of the last candle<br>
The value returned by this Rule is a simple number :
[[File:ValueRuleExample.png|600px|left|alt=ValueRuleExample|ValueRuleExample]]
[[File:ValueRuleExample.png|600px|left|alt=ValueRuleExample|ValueRuleExample]]
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
You can see above that the title name of the Rule is blue because the Rule is composed by arithmetic expression.
<br>
<br>

Revision as of 00:49, 23 August 2021

Summary

The Core Rules are the core underlying component of every other rules (Setup, Entry and Exit Rules). You can define an expression to calculate a value or to evaluate a condition.
There are two types of Core Rules : the Conditional Core rules and the Value core rules. They are distinguished by their color icon.
Every Core Rule is composed itself by at least 2 Core Rules :

VoidCoreRuleExample









These can be defined by User Rules (Rules created by the user) or Default Rules (Rules already installed in Naked Markets)

CondCoreRules
Conditional Core Rules

The Conditional Core Rules rely on a user-defined statement. They are based on the boolean logic.
It's possible to define every possible condition according according to the Default Rules or User Rules, available in Rule Manager.
For example, the following Conditional Core Rule evaluate the expression between the Close of the last candle and the its low.
If the Close of the last candle is greater than its Low, this Core Rule will return True, False otherwise :

ConditionalRuleExample












You can see above that the title name of the Rule is violet because the Rule is composed by conditional expression.

CondValueRules
Value Core Rules

The Value Core Rules rely on a user-defined value. They are based on arithmetics.
It's possible to define every possible value according to the Default Rules or User Rules, available in Rule Manager.
For example, the following Value Core Rule calculates the value Close of the last candle - Low of the last candle. To sum up, it represents the size of the last candle
The value returned by this Rule is a simple number :

ValueRuleExample












You can see above that the title name of the Rule is blue because the Rule is composed by arithmetic expression.