Core Rules

From NakedMarkets
Revision as of 00:50, 23 August 2021 by NMWikiWeb (talk | contribs)
Jump to navigation Jump to search

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 a 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, depending on the candle printed during the Backtest :

ValueRuleExample












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