The Entry Rules are the Rules dedicated to specify how to enter the Markets.
The Entry Rules are the Rules dedicated to specify how to enter the Markets.
<br>These Rules allow the user to define the Order type, the Stoploss, the Takeprofit, the Lot calculation method, the expiration delay (for pending orders) and eventually an Exit Rule.
<br>These Rules allow the user to define the [[Entry Rules#Order Type|Order type]], the [[Entry Rules#Stoploss|Stoploss]], the [[Entry Rules#Takeprofit|Takeprofit]], the [[Entry Rules#Lot size|Lot calculation]] method, the [[Entry Rules#Expiration delay|expiration delay]] (for pending orders) and eventually an [[Exit Rules|Exit Rule]].
<br>The Price Execution (for pending orders), the Stoploss and the Takeprofit can be calculated with a [[Core Rules#Value Core Rules|Value Rule]]. This provides the possibility to have dynamic locations of these properties depending on the Market state.
<br>The Price Execution (for pending orders), the Stoploss and the Takeprofit can be calculated with a [[Core Rules#Value Core Rules|Value Rule]]. This provides the possibility to have dynamic locations of these properties depending on the Market state.
<br>
Entry Rules can be assigned to a [[Setup Rules|Setup Rule]] or can be assigned by the user by [[User Rules#Using User Rules during Backtesting|drag&dropping it]] on a Chart during the Backtest.
The Order Stoploss is defined by a [[Core Rules#Value Core Rules|Default or User Value Rule]]. The Stoploss is optionnal. However, we strongly recommend to always set a Stoploss on every order, to mitigate the risk.
The Order Stoploss is defined by a [[Core Rules#Value Core Rules|Default or User Value Rule]]. The Stoploss is optionnal. However, we strongly recommend to always set a Stoploss on every order, to mitigate the risk on the Markets.
<br>You can assign it by drag&dropping the related Rule.
<br>You can assign it by drag&dropping the related Rule.
<br>
<br>
<br>
<br>
=== Takeprofit ===
=== Takeprofit ===
The Order Takeprofit is defined by a [[Core Rules#Value Core Rules|Default or User Value Rule]]. The Takeprofit is optionnal.
The Order Takeprofit is defined by a [[Core Rules#Value Core Rules|Default or User Value Rule]]. The Takeprofit is optionnal.
Line 72:
Line 75:
* Time span : the pending order will be automatically deleted after this time span ellapsed
* Time span : the pending order will be automatically deleted after this time span ellapsed
Assigning an Exit Rule is optionnal. By inserting an Exit Rule to the Entry Rule, it's possible to automatically manage the order properties (trailing stop or trailing exits for example).
Assigning an Exit Rule is optionnal. By inserting an Exit Rule to the Entry Rule, it's possible to automatically manage the opened order properties (trailing stop or trailing exits for example).
<br>You can assign it by drag&dropping the related Rule.
<br>You can assign it by drag&dropping the related Rule.
The Entry Rules are the Rules dedicated to specify how to enter the Markets.
These Rules allow the user to define the Order type, the Stoploss, the Takeprofit, the Lot calculation method, the expiration delay (for pending orders) and eventually an Exit Rule.
The Price Execution (for pending orders), the Stoploss and the Takeprofit can be calculated with a Value Rule. This provides the possibility to have dynamic locations of these properties depending on the Market state.
Entry Rules can be assigned to a Setup Rule or can be assigned by the user by drag&dropping it on a Chart during the Backtest.
Empty Entry Rule :
Order Type
The Order Type defines which kind of orders you want to use to enter the Market :
Instant Buy Order
Instant Sell Order
Pending Buy stop Order
Pending Sell stop Order
Pending Buy limit Order
Pending Sell limit Order
By double-clicking on the Order Type of the Entry Rule, you can choose it :
EntryRuleOrderType
Stoploss
The Order Stoploss is defined by a Default or User Value Rule. The Stoploss is optionnal. However, we strongly recommend to always set a Stoploss on every order, to mitigate the risk on the Markets.
You can assign it by drag&dropping the related Rule.
Takeprofit
The Order Takeprofit is defined by a Default or User Value Rule. The Takeprofit is optionnal.
You can assign it by drag&dropping the related Rule.
Lot size
The Lot size allows the user to define which type of risk calculation he wants :
Automatic lot calculation : The percentage risk per trade
Static lot calculation : The value of static lot size
EntryRuleOrderLots
Execution Price
The Order Execution Price is defined by a Default or User Value Rule. It concerns only Pending orders.
You can assign it by drag&dropping the related Rule.
Expiration delay
The Expiration delay order can define a period of time which will delete the pending order after it ellapsed.
You can define 2 different Expiration mode calculation :
Number of Bars : the pending order will be automatically deleted after having displayed this number of Bars
Time span : the pending order will be automatically deleted after this time span ellapsed
EntryRuleOrderExpiration
Exit Rule
Assigning an Exit Rule is optionnal. By inserting an Exit Rule to the Entry Rule, it's possible to automatically manage the opened order properties (trailing stop or trailing exits for example).
You can assign it by drag&dropping the related Rule.