Create and Test Forex Strategies
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
eas-guide:exit-rules [2018/01/31 09:48] – yavor | eas-guide:exit-rules [2020/12/11 09:55] – Ilan Vardy | ||
---|---|---|---|
Line 18: | Line 18: | ||
===== One Exit Rule Indicator ===== | ===== One Exit Rule Indicator ===== | ||
- | You can add Exit Rules indicators by using the **+ Add a new exit rule** button at the bottom of the Exit Rules list. You can't have more than two Exit Rules so the button becomes inactive when this limit is reached. When you click the button, the program opens an Exit Rule Indicator panel at the left side of the Editor. There you can choose an indicator and set its Logical condition and parameters. | + | You can add Exit Rules indicators by using the **+ Add a new exit rule** button at the bottom of the Exit Rules list. The maximum number of Exit rules permitted is 2, after which the button becomes inactive, when this limit is reached. When you click the button, the program opens an Exit Rule Indicator panel at the left side of the Editor. There you can choose an indicator and set its Logical condition and parameters. |
- | All of the indicators have a Logical condition that can either be fulfilled or not fulfilled. When you create a strategy you should | + | All of the indicators have a Logical condition that can either be fulfilled or not fulfilled. When you create a strategy you should |
<WRAP group> | <WRAP group> | ||
Line 33: | Line 33: | ||
The example above shows one Exit Rule indicator – Bollinger Bands, with a logical rule: "The bar opens above Upper Band". | The example above shows one Exit Rule indicator – Bollinger Bands, with a logical rule: "The bar opens above Upper Band". | ||
- | The condition "The bar opens above Upper Band" can be either true or false. If you have an open long position and it happens | + | The condition "The bar opens above Upper Band" can be either true or false. If you have an open long position and a situation occurs where that the current bar opens above the upper Bollinger band, the strategy will close that position at Bar Open with a market order. |
Let's now imagine that we have a short position and the bar also opens above the Upper band. The rule in the indicator slot is satisfied for a long position, but it is not satisfied for a short one because your rule for short positions follows the opposite logic. If we have to put it explicitly: close short when "The bar opens below the Lower Band". Because we are short and the exit rule doesn' | Let's now imagine that we have a short position and the bar also opens above the Upper band. The rule in the indicator slot is satisfied for a long position, but it is not satisfied for a short one because your rule for short positions follows the opposite logic. If we have to put it explicitly: close short when "The bar opens below the Lower Band". Because we are short and the exit rule doesn' | ||
Line 39: | Line 39: | ||
===== Multiple Rules ===== | ===== Multiple Rules ===== | ||
- | When there are multiple Exit Rules, the program closes a position at Bar Open when at least one of these rules is satisfied. This is a key difference between the Entry Rules and the Exit Rules. The program is very sensitive when it decides to close a position. | + | When there are multiple Exit Rules, the program closes a position at Bar Open when at least **one** of these rules is satisfied. This is a key difference between the Entry Rules and the Exit Rules. The program is very sensitive when it decides to close a position. |
<WRAP group> | <WRAP group> | ||
Line 50: | Line 50: | ||
</ | </ | ||
- | Let' | + | Let' |
~~DISQUS~~ | ~~DISQUS~~ | ||