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:monte-carlo [2019/04/06 14:37] – ?nolink in image tags vini | eas-guide:monte-carlo [2021/01/08 11:29] – Ilan Vardy | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | Monte Carlo is the best tool for testing the strategy robustness. When you create a strategy, you see its backtest statistics. However, | + | Monte Carlo is the best tool for testing the strategy robustness. When you create a strategy, you see its backtest statistics. However, the strategy might be over-optimized (curve fitted). The goal of the Monte Carlo tool is to verify that the strategy is not over-optimized. This tool allows you to apply random changes to the market data, the execution of the strategy and the numeric parameters of the strategy indicators. |
- | If you make minor changes to the strategy and its environment, | + | If you make minor changes to the strategy and its environment, |
- | On the other hand – if you make some minor changes and the strategy profits crumble | + | On the other hand – if you make some minor changes and the strategy profits crumble, it means that this strategy is over-optimized and thus, it is a bad choice to trade. |
<WRAP center round tip 60%> | <WRAP center round tip 60%> | ||
- | When you run the Monte Carlo tool, you actually do not run a single test but 20 (by default) tests. Each test is random. It can use one or more simulations. | + | When you run the Monte Carlo tool, you actually do not run just a single test but 20 (by default) tests. Each test is random. It can use one or more simulations. |
</ | </ | ||
Line 23: | Line 23: | ||
* **Randomize history data** - The tool will take a certain number of random bars and change their range. It can change the bar's Low and High values in both directions. This will result in having higher or shorter bars. | * **Randomize history data** - The tool will take a certain number of random bars and change their range. It can change the bar's Low and High values in both directions. This will result in having higher or shorter bars. | ||
- | * **Randomize spread** - If this option is enabled EA Studio can set the spread to a different value. It might vary within the borders | + | * **Randomize spread** - If this option is enabled EA Studio can set the spread to a different value. It might vary within the limits |
- | **Execution problems** - Those are related to problems when executing the signals sent from the Expert Advisor to the broker. | + | **Execution problems** - These are related to problems when executing the signals sent from the Expert Advisor to the broker. |
- | * **Randomize slippage** - Slippage is present on markets, where the prices change | + | * **Randomize slippage** - Slippage is present on markets, where the prices change |
* **Randomly skip position entry** - Will skip opening some of the positions. This sometimes happens in the real world. It might occur due to problems on the broker' | * **Randomly skip position entry** - Will skip opening some of the positions. This sometimes happens in the real world. It might occur due to problems on the broker' | ||
* **Randomly skip position exit** - Will sometimes skip closing the position. This one of course can be very destructive to the strategy. **Not** opening a position is not so bad since we won't lose any money. But **not closing** a position might result in a loss. | * **Randomly skip position exit** - Will sometimes skip closing the position. This one of course can be very destructive to the strategy. **Not** opening a position is not so bad since we won't lose any money. But **not closing** a position might result in a loss. | ||
- | * **Randomly close position** - This happens only occasionally. Your broker might close your position for some reason. Of course brokers who close your positions when they find suitable | + | * **Randomly close position** - This happens only occasionally. Your broker might close your position for some reason. Of course brokers who close your positions when they decide to are not brokers you should be trading with. |
Line 37: | Line 37: | ||
- | * **Randomize indicator parameters** - EA Studio comes with this option off by default. This is because usually strategies do not change. If enabled EA Studio will choose some of the indicators in the strategy and change their numeric values by a certain percentage (only for the test). If you have an over-optimized strategy, even minor changes in its parameters will make the profits drop significantly or the strategy | + | * **Randomize indicator parameters** - EA Studio comes with this option off by default. This is because usually strategies do not change. If enabled EA Studio will choose some of the indicators in the strategy and change their numeric values by a certain percentage (only for the test). If you have an over-optimized strategy, even minor changes in its parameters will make the profits drop significantly or the strategy |
* **Randomize backtest starting bar** - will randomize starting bar of the test. Sometimes starting at a different point in time might bring your account to zero in a very short period. | * **Randomize backtest starting bar** - will randomize starting bar of the test. Sometimes starting at a different point in time might bring your account to zero in a very short period. | ||
Line 47: | Line 47: | ||
By the default running the Monte Carlo tool will run 20 tests with randomized data. The randomization of the data will be done according to the **Simulations** checklist and the values in the **Options** tab. | By the default running the Monte Carlo tool will run 20 tests with randomized data. The randomization of the data will be done according to the **Simulations** checklist and the values in the **Options** tab. | ||
- | Each of the tests will be drawn on the **Simulations chart** with a colored line. You can see how the lines are grouped and what is the end result of each backtest. This can easily show how robust the strategy was and how destructive | + | Each of the tests will be drawn on the **Simulations chart** with a colored line. You can see how the lines are grouped and what the end result |
===== Confidence table ===== | ===== Confidence table ===== | ||
Line 61: | Line 61: | ||
For example in the screenshot above, you see the lowest row shows 100% confidence. This " | For example in the screenshot above, you see the lowest row shows 100% confidence. This " | ||
- | The tool is only named " | + | The tool is only named " |
<WRAP center round important 60%> | <WRAP center round important 60%> | ||
Line 81: | Line 81: | ||
* **Count of changed bars %** - what percentage of the bars should be changed. | * **Count of changed bars %** - what percentage of the bars should be changed. | ||
* **Data range change ATR %** - how much the bars should change in percent based on Average True Range. | * **Data range change ATR %** - how much the bars should change in percent based on Average True Range. | ||
- | * **Maximum spread (points)** - what should | + | * **Maximum spread (points)** - what should the maximum spread |
**Execution problems** | **Execution problems** | ||
- | * **Maximum slippage (points)** - how much can the maximum Random slippage | + | * **Maximum slippage (points)** - how much can the maximum Random slippage be in points |
* **Skip entry probability %** - For each new entry there will be a probability (default 2%) to skip opening the position. | * **Skip entry probability %** - For each new entry there will be a probability (default 2%) to skip opening the position. | ||
* **Skip exit probability %** - For each exit there will be a probability (default 2%) to skip exiting the position. | * **Skip exit probability %** - For each exit there will be a probability (default 2%) to skip exiting the position. | ||
- | * **Close position probability %** - What is the chance | + | * **Close position probability %** - What is the chance |
**Strategy variations** | **Strategy variations** | ||
- | * **Indicator change probability %** - chance | + | * **Indicator change probability %** - chance |
* **Indicator max change %** - shows how much a changed parameter' | * **Indicator max change %** - shows how much a changed parameter' | ||
- | * **Minimum deviation range** - by default 20 steps. This setting is meant for indicators that have parameters with very low values where changing the value by 20% won' | + | * **Minimum deviation range** - by default 20 steps. This setting is meant for indicators that have parameters with very low values where changing the value by 20% won' |
Line 112: | Line 112: | ||
These are very similar and work in the same way as the general [[eas-guide: | These are very similar and work in the same way as the general [[eas-guide: | ||
- | In the above example a strategy will be considered | + | In the above example a strategy will be considered |
~~DISQUS~~ | ~~DISQUS~~ |